summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make fact that certain variables that are passed into LZ4HC_encodeSequence ↵Tim Zakian2019-01-091-7/+9
| | | | are changed by the function call
* Merge pull request #631 from qiuyangs/devYann Collet2019-01-091-2/+2
|\ | | | | lz4hc.c: change (length >> 8) to (length / 255)
| * lz4hc.c: change (length >> 8) to (length / 255)qiuyangs2019-01-061-2/+2
| | | | | | Every 0xff byte in the compressed block corresponds to a length of 255 (not 256) in the input data. For long repeating sequences, using (length >> 8) may generate bad compressed blocks.
* | Make LZ4F_getBlockSize public and publis in experimental sectionTim Zakian2019-01-092-8/+8
|/
* Fix Dict Size Test in `LZ4_compress_fast_continue()`W. Felix Handte2018-12-051-4/+2
| | | | | | | Dictionaries don't need to be > 4 bytes, they need to be >= 4 bytes. This test was overly conservative. Also removes the test in `LZ4_attach_dictionary()`.
* Don't Attach Very Small DictionariesW. Felix Handte2018-12-041-1/+3
| | | | | | | | | | | | | | | | | Fixes a mismatch in behavior between loading into the context (via `LZ4_loadDict()`) a very small (<= 4 bytes) non-contiguous dictionary, versus attaching it with `LZ4_attach_dictionary()`. Before this patch, this divergence could be reproduced by running ``` make -C tests fuzzer MOREFLAGS="-m32" tests/fuzzer -v -s1239 -t3146 ``` Making sure these two paths behave exactly identically is an easy way to test the correctness of the attach path, so it's desirable that this remain an unpolluted, high signal test.
* Merge remote-tracking branch 'upstream/dev' into devVincent Torri2018-12-022-0/+20
|\
| * Merge pull request #610 from antinucleon/bootcampYann Collet2018-11-262-0/+20
| |\ | | | | | | [amalgamation] lz4frame.c
| | * [amalgamation] lz4frame.cBing Xu2018-11-262-0/+20
| | |
* | | Windows: create import library with gcc directly, remove now useless def fileVincent Torri2018-12-022-66/+1
|/ /
* | Uninstall DLL and import libVincent Torri2018-11-211-0/+5
| |
* | Add explanation for the installation of the DLL in the bin directoryVincent Torri2018-11-211-0/+3
| |
* | Allow installation of lz4 for Windows (MSYS2 or when cross-compiling)Vincent Torri2018-11-201-2/+13
| |
* | update lib/README.mdVincent Torri2018-11-181-1/+4
| |
* | Add documentation about DLLTOOL variableVincent Torri2018-11-181-0/+1
| |
* | Add DLLTOOL variable so that one can override dlltool binaryVincent Torri2018-11-171-1/+3
| | | | | | | | This fix cross compilation on linux for Windows
* | Use / instead of \ when accessing files in the dll subdirectory.Vincent Torri2018-11-171-2/+2
|/ | | | This allow cross-compilation for Windows on Linux
* Enable amalgamation of lz4hc.c and lz4.cBing Xu2018-11-162-15/+29
|
* Merge pull request #593 from felixhandte/lz4hc-publish-staticYann Collet2018-10-162-31/+43
|\ | | | | Extend Macro to Allow Publishing Experimental LZ4HC Functions in Dynamic Libraries
| * Make LZ4HC Experimental Functions Dynamically PublishableW. Felix Handte2018-10-161-12/+23
| |
| * Change Comment and Make LZ4LIB_STATIC_API Available to LZ4HCW. Felix Handte2018-10-161-19/+20
| |
* | updated code documentationYann Collet2018-10-151-8/+13
| | | | | | | | to clarify #589
* | Adding information about dirty context for _HC_ family of functionsOleg Khabinov2018-10-102-14/+34
| |
* | Merge pull request #592 from lz4/compressEndYann Collet2018-10-092-11/+20
|\ \ | | | | | | fix LZ4F_compressEnd()
| * | fixed #589Yann Collet2018-10-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | following recommendations by @raggi. The fix is slightly different, but achieves the same goal, and is backed by a test tool which proves that it works (generates the error before the patch, no longer after the patch).
| * | added a test for LZ4F_compressEnd()Yann Collet2018-10-092-11/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | which actively tries to make it write out of bound. For this scenario to be possible, it's necessary to set dstCapacity < LZ4F_compressBound() When a compression operation fails, the CCtx context is left in an undefined state, therefore compression cannot resume. As a consequence : - round trip tests must be aborted, since there is nothing valid to decompress - most users avoid this situation, by ensuring that dstCapacity >= LZ4F_compressBound() For these reasons, this use case was poorly tested up to now.
* | Some followups and renamingsOleg Khabinov2018-10-012-9/+10
|/
* Merge pull request #587 from lz4/hintbugYann Collet2018-09-281-3/+5
|\ | | | | fixed improper hint
| * fixed improper hintYann Collet2018-09-281-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | when LZ4F_decompress() decodes an uncompressed block, it provides an incorrect hint for next block when frame checksum is enabled and block checksum is not. Impact is low : the hint is just an hint, the decoder works whatever the amount of input provided. But the assumption that each call to LZ4F_decompress() would generate just one complete block if input size hint was respected was broken by this error.
* | Rename initCheck to dirtyContext and use it in LZ4_resetStream_fast() to ↵Oleg Khabinov2018-09-282-20/+49
|/ | | | check if full reset is needed.
* Merge pull request #578 from lz4/support128bitYann Collet2018-09-263-42/+55
|\ | | | | Support for 128bit pointers like AS400
| * changed LZ4_streamDecode member orderYann Collet2018-09-251-1/+1
| | | | | | | | to reduce memory usage on 128-bits systems
| * increase size of LZ4 contexts for 128-bit systemsYann Collet2018-09-183-26/+37
| |
| * Merge branch 'dev' into support128bitYann Collet2018-09-182-80/+92
| |\
| * | increase lz4hc context size as constant for 128-bit systemsYann Collet2018-09-181-6/+6
| | |
| * | use byU32 mode for any pointer > 32-bitYann Collet2018-09-141-10/+12
| | | | | | | | | | | | including 128-bit, like IBM AS-400
* | | tried to clean another bunch of cppcheck warningsYann Collet2018-09-191-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so "funny" thing with cppcheck is that no 2 versions give the same list of warnings. On Mac, I'm using v1.81, which had all warnings fixed. On Travis CI, it's v1.61, and it complains about a dozen more/different things. On Linux, it's v1.72, and it finds a completely different list of a half dozen warnings. Some of these seems to be bugs/limitations in cppcheck itself. The TravisCI version v1.61 seems unable to understand %zu correctly, and seems to assume it means %u.
* | | fixed minor cppcheck warnings in libYann Collet2018-09-183-207/+208
| | |
* | | updated xxhash to latest versionYann Collet2018-09-182-332/+503
| |/ |/|
* | Merge pull request #575 from lz4/apiDocYann Collet2018-09-182-80/+92
|\ \ | |/ |/| unpublish static-only functions
| * updated build docYann Collet2018-09-131-6/+11
| |
| * unpublish static-only functionYann Collet2018-09-131-74/+81
| | | | | | | | | | | | | | these functions are now unpublished in dll by default. One needs to opt-in, using macro LZ4_PUBLISH_STATIC_FUNCTIONS. used this opportunity to update a bunch of api comments in lz4.h
* | Merge pull request #574 from lz4/enumCommaYann Collet2018-09-143-16/+16
|\ \ | | | | | | avoid final trailing comma for enum lists
| * | avoid final trailing comma for enum listsYann Collet2018-09-133-16/+16
| |/ | | | | | | | | | | | | as detected in #485 by @JoachimSchneider. Refactored the c_standards tests so that these issues get automatically detected in CI tests.
* | Merge pull request #573 from laffer1/laffer1-pkgconfig-mnbsdYann Collet2018-09-141-1/+1
|\ \ | |/ |/| FIx pkgconfig file installation on MidnightBSD
| * FIx pkgconfig file installation on MidnightBSDLucas Holt2018-09-121-1/+1
| |
* | clarify constant MFLIMITYann Collet2018-09-111-4/+5
| | | | | | | | | | | | | | and separate it from MATCH_SAFEGUARD_DISTANCE. While both constants have same value, they do not seve same purpose, hence should not be confused.
* | fixed minor warning in fuzzer.cYann Collet2018-09-102-10/+12
| | | | | | | | added a few more comments and assert()
* | restored nullifying outputYann Collet2018-09-101-1/+5
| | | | | | | | to counter possible (offset==0)
* | removed temporary debug tracesYann Collet2018-09-101-2/+0
| |