Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: add tests for `LZ4_decompress_safe_partial_usingDict` | Qi Wang | 2022-06-07 | 1 | -0/+40 |
| | | | | Signed-off-by: Qi Wang <wangqi@linux.alibaba.com> | ||||
* | fix strange printf formatting warning | Yann Collet | 2020-12-01 | 1 | -10/+11 |
| | | | | so now, `%p` _requires_ a `void*` pointer ? | ||||
* | updated license & header dates | Yann Collet | 2020-11-25 | 1 | -1/+1 |
| | |||||
* | better visual conformance | Yann Collet | 2020-11-15 | 1 | -9/+11 |
| | | | | | | only include <intrin.h> on vs2005+ (#947) remove some useless #pragma fix a few minor Visual warnings | ||||
* | attempt at silencing cppcheck | Yann Collet | 2020-11-09 | 1 | -12/+12 |
| | |||||
* | added similar tests for LZ4_saveDict() | Yann Collet | 2020-11-08 | 1 | -1/+17 |
| | | | | fast (non-HC) variant | ||||
* | fix #926 | Yann Collet | 2020-11-08 | 1 | -2/+18 |
| | | | | | fix incorrect behavior of LZ4_saveDictHC() when invoked right after initialization. | ||||
* | unified alignment test | Yann Collet | 2020-11-06 | 1 | -28/+46 |
| | | | | across lz4.c and lz4hc.c | ||||
* | fix minor explicit cast | Yann Collet | 2020-10-31 | 1 | -1/+1 |
| | |||||
* | reduce new test stack usage | Yann Collet | 2020-10-03 | 1 | -10/+12 |
| | | | | use heap instead | ||||
* | fix cppcheck unused variable warning | Yann Collet | 2020-10-02 | 1 | -0/+1 |
| | |||||
* | added LZ4_streamHC_t init test | Yann Collet | 2020-10-02 | 1 | -2/+21 |
| | | | | which includes an alignment test | ||||
* | Merge pull request #923 from lz4/fix784 | Yann Collet | 2020-09-28 | 1 | -15/+101 |
|\ | | | | | fix efficiency of LZ4_compress_HC_destSize() | ||||
| * | ensure last match not too close to end | Yann Collet | 2020-09-28 | 1 | -6/+8 |
| | | | | | | | | must respect MFLIMIT distance from oend | ||||
| * | fix incorrect counting | Yann Collet | 2020-09-28 | 1 | -1/+1 |
| | | | | | | | | after truncation of last sequence | ||||
| * | fix efficiency of LZ4_compress_HC_destSize() | Yann Collet | 2020-09-28 | 1 | -9/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | Yann Collet | 2020-09-26 | 1 | -4/+13 |
|/ | | | | | fails properly bug discovered by oss-fuzz | ||||
* | 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 | ||||
* | 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 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | added test decompress-partial with extraneous input bytes | Yann Collet | 2020-08-12 | 1 | -9/+18 |
| | | | | | fails currently, for investigation of #783 | ||||
* | Remove dirty Field From LZ4_stream_t | W. Felix Handte | 2020-08-06 | 1 | -4/+0 |
| | |||||
* | fix minor cppcheck warnings | Yann Collet | 2019-06-30 | 1 | -2/+2 |
| | |||||
* | frametest: added LZ4F decoder noise test | Yann Collet | 2019-06-30 | 1 | -6/+6 |
| | |||||
* | travisCI: added ASAN fuzzer tests | Yann Collet | 2019-06-29 | 1 | -3/+3 |
| | | | | and fixed minor formatting warnings | ||||
* | moved noisy-src decoder test into cBuffer_exact | Yann Collet | 2019-06-29 | 1 | -34/+34 |
| | | | | | so that it can also catch any potential read out-of-bound in the input buffer (none reported so far, just a precaution for the future). | ||||
* | fuzzer: added test to catch #738 | Yann Collet | 2019-06-29 | 1 | -51/+90 |
| | |||||
* | added test case for in-place decompression | Yann Collet | 2019-05-30 | 1 | -32/+63 |
| | | | | worst case, designed to make the decoder overwrite into input | ||||
* | fuzzer: changed internal buffer size | Yann Collet | 2019-05-29 | 1 | -9/+10 |
| | | | | to ensure no overflow during unit tests | ||||
* | one more conversion warning | Yann Collet | 2019-05-29 | 1 | -1/+1 |
| | |||||
* | some more minor conversion warnings fixes | Yann Collet | 2019-05-29 | 1 | -5/+5 |
| | |||||
* | fixed minor conversion warning | Yann Collet | 2019-05-29 | 1 | -1/+1 |
| | |||||
* | added comments and macros for in-place (de)compression | Yann Collet | 2019-05-29 | 1 | -2/+1 |
| | |||||
* | added test case for in-place compression | Yann Collet | 2019-05-29 | 1 | -16/+41 |
| | |||||
* | fixed read-after input in LZ4_decompress_safe() | Yann Collet | 2019-04-19 | 1 | -74/+82 |
| | |||||
* | fuzzer : reduced stack usage | Yann Collet | 2019-04-19 | 1 | -18/+18 |
| | |||||
* | fuzzer: reduce stack usage to please Visual static analyzer | Yann Collet | 2019-04-19 | 1 | -58/+66 |
| | |||||
* | address a few minor Visual warnings | Yann Collet | 2019-04-18 | 1 | -2/+2 |
| | | | | and created target cxx17build | ||||
* | fix several minor static analyzer warnings | Yann Collet | 2019-04-18 | 1 | -27/+37 |
| | |||||
* | fuzzer: fixed scan-build leak warning | Yann Collet | 2019-04-18 | 1 | -19/+10 |
| | | | | | the program exit(), so there is no need to track and dealloc every buffer. | ||||
* | fuzzer: fix explicit cast for C++ | Yann Collet | 2019-04-17 | 1 | -1/+1 |
| | |||||
* | fuzzer: added tests to detect LZ4_decompress_fast() out of bound read | Yann Collet | 2019-04-17 | 1 | -19/+27 |
| | |||||
* | Fix AIX errors/warnings | Norm Green | 2019-04-17 | 1 | -0/+4 |
| | |||||
* | fix fuzzer tests on dirty context | Yann Collet | 2019-04-15 | 1 | -3/+3 |
| | | | | | | context is no longer dirty after a failed compressed block. Actually, all indexes are fine. It remains compatible with continued streaming, and reset*_fast(). | ||||
* | and even more visual conversion warnings | Yann Collet | 2019-04-13 | 1 | -9/+11 |
| | |||||
* | fixed loadDictHC | Yann Collet | 2019-04-09 | 1 | -4/+4 |
| | | | | | by making a full initialization instead of a fast reset. | ||||
* | modified LZ4_initStreamHC() to look like LZ4_initStream() | Yann Collet | 2019-04-09 | 1 | -19/+20 |
| | | | | | it is now a pure initializer, for statically allocated states. It can initialize any memory area, and because of this, requires size. | ||||
* | created LZ4_initStream() | Yann Collet | 2019-04-05 | 1 | -3/+3 |
| | | | | | | | | | | - promoted LZ4_resetStream_fast() to stable - moved LZ4_resetStream() into deprecate, but without triggering a compiler warning - update all sources to no longer rely on LZ4_resetStream() note : LZ4_initStream() proposal is slightly different : it's able to initialize any buffer, provided that it's large enough. To this end, it accepts a void*, and returns an LZ4_stream_t*. |