Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix bad init scenario | Yann Collet | 2020-10-01 | 1 | -3/+5 |
| | |||||
* | added memcpy() related SA warning fixes | Yann Collet | 2020-10-01 | 1 | -8/+14 |
| | | | | memcpy() on NULL is UB, even if length is 0. | ||||
* | Merge branch 'safixes' of github.com:lz4/lz4 into safixes | Yann Collet | 2020-09-30 | 5 | -31/+33 |
|\ | |||||
| * | fix conversion warning | Yann Collet | 2020-09-30 | 1 | -5/+5 |
| | | |||||
| * | Merge branch 'dev' into safixes | Yann Collet | 2020-09-30 | 3 | -5/+5 |
| |\ | |||||
| | * | bump version number | Yann Collet | 2020-09-29 | 3 | -26/+48 |
| | | | | | | | | | | | | to v1.9.3 | ||||
| * | | fix minor static analyzer warnings | Yann Collet | 2020-09-30 | 12 | -91/+114 |
| |/ | | | | | | | | | detected by scan-build, cppcheck and advanved compilation flags fix #786 | ||||
* | | fix minor static analyzer warnings | Yann Collet | 2020-09-30 | 11 | -69/+90 |
|/ | | | | | detected by scan-build and cppcheck fix #786 | ||||
* | Merge pull request #923 from lz4/fix784 | Yann Collet | 2020-09-28 | 4 | -65/+216 |
|\ | | | | | fix efficiency of LZ4_compress_HC_destSize() | ||||
| * | improved last literals run on LZ4_compress_destSize | Yann Collet | 2020-09-28 | 2 | -10/+12 |
| | | | | | | | | | | | | applying new more accurate formula from LZ4_compress_HC_destSize() also : fix some minor display issue in tests/frametest | ||||
| * | ensure last match not too close to end | Yann Collet | 2020-09-28 | 3 | -27/+48 |
| | | | | | | | | must respect MFLIMIT distance from oend | ||||
| * | fix incorrect counting | Yann Collet | 2020-09-28 | 2 | -3/+4 |
| | | | | | | | | after truncation of last sequence | ||||
| * | fix efficiency of LZ4_compress_HC_destSize() | Yann Collet | 2020-09-28 | 3 | -34/+161 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge pull request #921 from lz4/doubleNull | Yann Collet | 2020-09-28 | 2 | -4/+14 |
|\ \ | | | | | | | fix compressing into NULL | ||||
| * | | fix compressing into NULL | Yann Collet | 2020-09-26 | 2 | -4/+14 |
| |/ | | | | | | | | | fails properly bug discovered by oss-fuzz | ||||
* | | Merge pull request #922 from XVilka/tinycc-support | Yann Collet | 2020-09-28 | 1 | -2/+2 |
|\ \ | |/ |/| | Fix compilation with TinyCC | ||||
| * | Fix compilation with TinyCC | Anton Kochkov | 2020-09-27 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #919 from attilaolah/cli | Yann Collet | 2020-09-23 | 1 | -6/+9 |
|\ | | | | | Add CMake option LZ4_BUILD_CLI | ||||
| * | Add CMake option LZ4_BUILD_CLI. | Attila Oláh | 2020-09-23 | 1 | -6/+9 |
|/ | | | | | Defaults to ON so nothing changes, but it can be set to OFF so that the CLI is not built at all, only the library. | ||||
* | comment bug on older versions of ZSTD_compress_destSize() | Yann Collet | 2020-09-18 | 1 | -1/+12 |
| | | | | following investigation in #859 | ||||
* | Merge pull request #918 from lz4/usan_null | Yann Collet | 2020-09-18 | 6 | -12/+66 |
|\ | | | | | Properly fix #847 | ||||
| * | fixed ubsan tests with dynamic library | Yann Collet | 2020-09-17 | 2 | -3/+7 |
| | | |||||
| * | ubsan: make pointer overflow recoverable | Yann Collet | 2020-09-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | the way `base` is used must allow 2-complement address overflow. `base` is effectively a virtual pointer, never dereferenced directly. What matters is `base + index`. This is the address that will be dereference and must be valid (it is properly validated). | ||||
| * | fixed lz4frame with blocks of size 1 | Yann Collet | 2020-09-17 | 3 | -24/+27 |
| | | | | | | | | properly track history | ||||
| * | Merge branch 'usan_null' of github.com:Cyan4973/lz4 into usan_null | Yann Collet | 2020-09-17 | 2 | -4/+4 |
| |\ | |||||
| | * | Merge branch 'usan_null' of github.com:lz4/lz4 into usan_null | Yann Collet | 2020-09-17 | 1 | -2/+5 |
| | |\ | |||||
| | * | | fix ubsan test | Yann Collet | 2020-09-17 | 2 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | which now fails with a clear error as intended (not just print a status and move on). should be reproduced on travisCI | ||||
| * | | | added the actual code change | Yann Collet | 2020-09-17 | 1 | -6/+53 |
| | |/ | |/| | |||||
* | | | Merge pull request #913 from lz4/usan_null | Yann Collet | 2020-09-17 | 1 | -0/+11 |
|\ \ \ | |/ / | | | | fix #847 | ||||
| * | | fix #847 | Yann Collet | 2020-09-15 | 1 | -2/+5 |
| |/ | | | | | | | | | support NULL input without triggering undefined sanitizer | ||||
| * | added test triggering NULL arithmetic with usan | Yann Collet | 2020-09-15 | 1 | -0/+8 |
|/ | | | | described in #847 | ||||
* | Merge pull request #910 from lz4/extraInput | Yann Collet | 2020-08-27 | 6 | -49/+128 |
|\ | | | | | Fix issue #783 | ||||
| * | fixed minor pre-existing printf formatting | Yann Collet | 2020-08-27 | 1 | -2/+2 |
| | | | | | | | | different signedness | ||||
| * | fixed strict c90 support | Yann Collet | 2020-08-27 | 1 | -2/+0 |
| | | |||||
| * | fix #783 | Yann Collet | 2020-08-27 | 3 | -32/+49 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Merge branch 'dev' into extraInput | Yann Collet | 2020-08-27 | 38 | -178/+259 |
| |\ | |/ |/| | |||||
* | | Merge pull request #909 from lz4/fasterCount | Yann Collet | 2020-08-26 | 2 | -45/+71 |
|\ \ | | | | | | | Improved software byte count | ||||
| * \ | Merge branch 'dev' into fasterCount | Yann Collet | 2020-08-26 | 3 | -97/+146 |
| |\ \ | |/ / |/| | | |||||
* | | | Merge pull request #908 from lz4/stdin_size | Yann Collet | 2020-08-26 | 3 | -97/+146 |
|\ \ \ | | | | | | | | | Added ability to determine content-size | ||||
| * | | | fix test under non-interactive environment | Yann Collet | 2020-08-25 | 1 | -1/+1 |
| | | | | |||||
| * | | | added more tests around --content-size | Yann Collet | 2020-08-25 | 1 | -1/+10 |
| | | | | | | | | | | | | | | | | notably in association with `stdin` | ||||
| * | | | use variables for program invocation | Yann Collet | 2020-08-25 | 1 | -80/+82 |
| | | | | |||||
| * | | | Merge pull request #905 from nh2/use-fstat | Yann Collet | 2020-08-25 | 2 | -16/+54 |
| |\ \ \ |/ / / / | | | | | Use fstat() to determine file size | ||||
| * | | | fixup: Portable fileno() | Niklas Hambüchen | 2020-08-25 | 1 | -1/+10 |
| | | | | |||||
| * | | | fixup: C90 compliance, clean up stat() types/calls | Niklas Hambüchen | 2020-08-25 | 1 | -27/+31 |
| | | | | |||||
| * | | | Use fstat() to determine file size. | Niklas Hambüchen | 2020-08-24 | 2 | -3/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to get the file size even when the input file is passed via stdin. This fixes `--content-size` not working in situations like $ lz4 -v --content-size < /tmp/test > /tmp/test.lz4 Warning : cannot determine input content size With this change, it works. Also helps with #904. | ||||
| | * | | added documentation about LZ4_FORCE_SW_BITCOUNT | Yann Collet | 2020-08-26 | 2 | -8/+33 |
| | | | | | | | | | | | | | | | | | | | | Also : added memory-frugal software byte count for big endian 64-bit cpus. Disabled by default. | ||||
| | * | | Merge pull request #898 from aqrit/aqrit-prefixlen | Yann Collet | 2020-08-24 | 1 | -45/+46 |
| | |\ \ | |/ / / |/| | | | rejigger bit counting intrinsics | ||||
| | * | | silence warning | aqrit | 2020-08-17 | 1 | -2/+2 |
| | | | | | | | | | | | | MSVC debug mode complains | ||||
| | * | | rejigger bit counting intrinsics | aqrit | 2020-08-12 | 1 | -45/+46 |
| | | | | | | | | | | | | | | | | | | | | Fix lz4/lz4#867 Optimize software fallback routines. Delete some faulty (and dead?) MSVC big endian code. |