summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
Commit message (Collapse)AuthorAgeFilesLines
* lz4.h: clarify the risks of using LZ4_decompress_fast()Alexey Tourbin2018-04-221-5/+7
| | | | | | | | | | | | | | The notes about "security guarantee" and "malicious inputs" seemed a bit non-technical to me, so I took the liberty to tone them down and instead describe the actual risks in technical terms. Namely, the function never writes past the end of the output buffer, so a direct hostile takeover (resulting in arbitrary code execution soon after the return from the function) is not possible. However, the application can crash because of reads from unmapped pages. I also took the liberty to describe what I believe is the only sensible usage scenario for the function: "This function is only usable if the originalSize of uncompressed data is known in advance," etc.
* Add a LZ4_STATIC_LINKING_ONLY Macro to Guard Experimental APIsW. Felix Handte2018-04-111-0/+2
|
* Expose dictCtx Functionality in LZ4W. Felix Handte2018-04-111-0/+28
|
* Rename _extState_noReset -> _extState_fastReset and Edit CommentsW. Felix Handte2018-04-111-15/+28
|
* Expose a Faster Stream Reset FunctionW. Felix Handte2018-04-101-0/+8
|
* Better Describe Functionality of Obsolete Streaming FunctionsW. Felix Handte2018-03-211-6/+10
|
* Move LZ4_compress_fast_extState_noReset Declaration to Unstable SectionW. Felix Handte2018-03-141-8/+23
|
* Restore the Other Old Streaming Functions in a Degraded FashionW. Felix Handte2018-03-141-2/+9
|
* Restore LZ4_sizeofStreamState, We Didn't Actually Need to Delete ItW. Felix Handte2018-03-131-0/+3
|
* Renames and Comment FixesW. Felix Handte2018-03-121-7/+7
|
* Lookup Matches in Separate Dictionary ContextW. Felix Handte2018-03-121-6/+8
|
* Add LZ4_compress_fast_safeExtState FunctionW. Felix Handte2018-03-121-0/+8
|
* Add a Table Type Field to LZ4_stream_tW. Felix Handte2018-03-121-2/+4
|
* Remove Obsolete Stream Functions to Free Space in LZ4_stream_tW. Felix Handte2018-03-121-6/+0
|
* bumped version number to v1.8.2Yann Collet2018-02-261-1/+1
| | | | updated NEWS was current progresses
* update code comment on LZ4 streaming interfaceYann Collet2018-02-261-11/+12
| | | | | notably regarding LZ4_saveDict() speed advantage, answering #477.
* update API doc regarding double-buffer strategyYann Collet2018-02-181-1/+3
| | | | answering question #473
* fixed code comment as detected in #466Yann Collet2018-02-071-27/+28
| | | | | Also clarified a few API code comments and updated associated html documentation
* Clarify the requirements of the LZ4 streaming APINick Terrell2018-02-021-2/+4
|
* Always prefer c++14 attributes if availableAsger Hautop Drewsen2018-01-311-4/+2
|
* Ensure LZ4_DEPRECATED("...") is before LZ4LIB_APIAsger Hautop Drewsen2018-01-311-14/+14
| | | | | | When using clang++ with std c++14 or c++17 you would get the error "an attribute list cannot appear here" when including "lz4.h" as the visibility attribute is before the c++ attribute. This ensures that the [[deprecated]] c++ attribute is before everything else in the function declarations.
* Change file format back to ASCII (from UTF-8)Po-Chuan Hsieh2018-01-171-2/+2
| | | | | | | - Replace U+00A0 by space - Fix build failure of archivers/py-borgbackup in FreeBSD Reference: https://bugs.FreeBSD.org/225235
* Fix lz4 versionPo-Chuan Hsieh2018-01-131-1/+1
|
* API : changed a few variables' names for clarityYann Collet2017-11-201-44/+44
| | | | | updated relevant doc. This patch has no impact on ABI/API, nor on binary generation.
* Separated visibility from LZ4LIB_API macro.mikir2017-10-301-7/+11
|
* complementary information for #394Yann Collet2017-08-301-8/+14
|
* clarified documentation of streaming decompression functionsYann Collet2017-08-301-9/+13
| | | | | (synchronous bufferless mode) answering questions by @jtbandes (#394)
* Don't use C++11 deprecation attribute with clangNick Terrell2017-08-241-2/+4
| | | | | Clang doesn't accept a C++11 attribute following `LZ4LIB_API`. Use the GNU attribute instead.
* dictionary compression correctly uses compression levelYann Collet2017-08-101-18/+18
| | | | Not obvious : copying the state was copying cdict's compression level
* implemented dictionary compression in lz4frameYann Collet2017-08-091-1/+1
| | | | | note : only compression API is implemented and tested still to do : decompression API
* bumped version number to 1.8.0Yann Collet2017-05-101-2/+2
| | | | | due to addition of prototype LZ4F_resetDecompressionContext()
* lz4frame : Added negative compression levelsYann Collet2017-04-091-7/+7
|
* added `extern C` for lz4.h static sectionYann Collet2017-03-171-5/+4
| | | | should make the file more compatible with C++ compiler, such as Visual or g++
* LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code pathYann Collet2017-03-161-1/+1
| | | | | Limits compression level to 10, to remain compatible with Hash Chain.
* updated lz4 version numberYann Collet2017-03-161-1/+1
|
* fix #333 : expose obsolete decoding functionsYann Collet2017-03-151-8/+2
| | | | | with deprecation warning. notified by Chen Yufei
* Export deprecated symbolsDmitry V. Levin2017-03-101-12/+12
| | | | | Deprecated symbols are still a part of ABI and have to be exported, so mark them with LZ4LIB_API attribute.
* Explicitly set visibility of public API functions when gcc is usedDmitry V. Levin2017-03-101-0/+4
| | | | | | | | | | Windows builds already limit exporting of functions to those marked with LZ4LIB_API tag. The same behaviour could be achieved on other platforms when a relatively fresh gcc is used. This change assigns public visibility to all symbols marked with LZ4LIB_API tag. When the library is built in -fvisibility=hidden mode, only these marked symbols will be exported.
* lz4.h: improved manual generationPrzemyslaw Skibinski2017-01-231-7/+9
|
* LZ4_MEMORY_USAGE can be modified from compilation command lineYann Collet2017-01-051-2/+3
|
* fixed minor display error when using -rYann Collet2016-11-281-1/+1
|
* Add C++14 standard [[deprecated]] attributeTakayuki MATSUOKA2016-11-191-1/+3
| | | | | | See also For __cplusplus predefined macro, https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html For [[deprecated]] attribute, https://isocpp.org/wiki/faq/cpp14-language#deprecated-attribute
* fixed #272 (compilation fails on gcc 4.4), reported by @totaamYann Collet2016-11-191-2/+3
|
* fix 32-bits mode.Yann Collet2016-11-171-1/+1
| | | | | | Large File support for Mac OS-X in 32-bits mode Fixed potential undefined behavior Changed makefile for 32-bits mode
* bump version numberYann Collet2016-11-151-1/+1
|
* fixed nameless union warningsYann Collet2016-11-141-8/+4
|
* fixed conversion warningsYann Collet2016-11-141-4/+4
|
* fixed __GNUC__ macroYann Collet2016-11-121-2/+2
|
* enabled deprecation warnings on remaining obsolete functionsYann Collet2016-11-121-110/+115
|
* update code commentsYann Collet2016-11-121-16/+16
|