| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
for readability.
Mostly around --list capability
|
| |
|
|
|
|
|
|
| |
to remain similar to stdlib's calloc().
Updated test to use c++ compiler for stricter signature check.
|
|\ |
|
| |\
| | |
| | | |
fix #874
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
coverity reported a warning regarding a memcpy() overwrite.
This is a false positive (the memory area is large enough),
but it's true that it's not trivial to determine (encompassing struct),
and it's proper anyway to only memcpy() just the right amount of data.
|
| |\ \
| | |/
| |/| |
fixed remaining ubsan warnings
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
makes it possible to replace at link time
malloc, calloc and free
by user-provided functions
which must be named LZ4_malloc(), LZ4_calloc() and LZ4_free().
answer #937
|
|/
|
|
|
| |
and update manuals.
fix #712
|
|
|
|
|
| |
- check alignment before casting a pointer
- saveDict : don't memmove() on NULL dst
|
|
|
|
|
| |
fix incorrect behavior of LZ4_saveDictHC()
when invoked right after initialization.
|
|\
| |
| | |
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
|
| |
| |
| |
| | |
This reverts commit 0e3933edd435c54cc2e21e38f5d4ba7bf644a24e.
|
|/
|
|
|
|
|
| |
minor: identical declaration and prototypes of `LZ4HC_compress_optimal()`
also :
very minor optimization of `LZ4_memcpy_using_offset()`
|
|
|
|
|
| |
This is now explicitly documented and asserted.
fix #927
|
|\
| |
| | |
More alignment tests
|
| |
| |
| |
| | |
for better inter-version compatibility
|
| | |
|
| |
| |
| |
| | |
align on `void*` instead : there is no `long long` inside the structure
|
| | |
|
| |
| |
| |
| | |
across lz4.c and lz4hc.c
|
| |
| |
| |
| |
| | |
this it works fine in this environment
(only x86 is suspicious)
|
|\ \
| | |
| | | |
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
|
| | |
| | |
| | |
| | | |
The "static" specifier does not guarantee that the function will be inlined.
|
| | |
| | |
| | |
| | | |
There is no reason to separate these two definitions!
|
| |/
| |
| |
| | |
This problem was reproduced on MSVC 2015 (32-bit). Both functions were called using the operator "call".
|
|/ |
|
|
|
|
| |
fix one (rare & complex) issue discovered by this test
|
| |
|
| |
|
|
|
|
| |
memcpy() on NULL is UB, even if length is 0.
|
| |
|
|\ |
|
| |
| |
| |
| | |
to v1.9.3
|
|/
|
|
|
| |
detected by scan-build, cppcheck and advanved compilation flags
fix #786
|
|\
| |
| | |
fix efficiency of LZ4_compress_HC_destSize()
|
| |
| |
| |
| |
| |
| | |
applying new more accurate formula from LZ4_compress_HC_destSize()
also : fix some minor display issue in tests/frametest
|
| |
| |
| |
| | |
must respect MFLIMIT distance from oend
|
| |
| |
| |
| | |
after truncation of last sequence
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
LZ4_compress_HC_destSize() had a tendency
to discard its last match when this match overflowed specified dstBuffer limit.
The impact is generally moderate,
but occasionally huge,
typically when this last match is very large
(such as compressing a bunch of zeroes).
Issue #784 fixed for both Chain and Opt implementations.
Added a unit test suggested by @remittor checking this topic.
|
|\ \
| | |
| | | |
fix compressing into NULL
|
| |/
| |
| |
| |
| | |
fails properly
bug discovered by oss-fuzz
|
|/ |
|
|
|
|
| |
following investigation in #859
|
|
|
|
| |
properly track history
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LZ4_decompress_safe_partial()
now also supports a scenario where
nb_bytes_to_generate is <= block_decompressed_size
And
nb_bytes_to_read is >= block_compressed_size.
Previously, the only supported scenario was
nb_bytes_to_read == block_compress_size.
Pay attention that,
if nb_bytes_to_read is > block_compressed_size,
then, necessarily, it requires that
nb_bytes_to_generate is <= block_decompress_size.
If both are larger, it will generate corrupted data.
|
|\ |
|
| |
| |
| |
| |
| | |
Also : added memory-frugal software byte count for big endian 64-bit cpus.
Disabled by default.
|