summaryrefslogtreecommitdiffstats
path: root/tests/fuzzer.c
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed _GNU_SOURCE duplicateYann Collet2019-04-051-0/+1
|
* fuzzer: fixed strict c99 with mmap+MAP_ANONYMOUSYann Collet2019-04-051-3/+1
|
* created LZ4_initStreamHC()Yann Collet2019-04-051-21/+21
| | | | | | | | - promoted LZ4_resetStreamHC_fast() to stable - moved LZ4_resetStreamHC() to deprecated (but do not generate a warning yet) - Updated doc, to highlight difference between init and reset - switched all invocations of LZ4_resetStreamHC() onto LZ4_initStreamHC() - misc: ensure `make all` also builds /tests
* make `_fast*()` decoder generate a deprecation warningYann Collet2019-04-041-2/+2
| | | | updated modification
* fixed strict C++ compilationYann Collet2019-01-091-1/+1
|
* fixed long sequence overflow testYann Collet2019-01-091-1/+3
|
* minor explicit cast warningYann Collet2019-01-091-1/+1
|
* add a test to check long sequences (#631)Yann Collet2019-01-091-40/+76
| | | | | the test fails, as intended, since #631 is not merged yet in this branch.
* clang: Fix -Wcast-qualLzu Tao2018-12-021-2/+3
|
* Fix clang warnings: -Wformat-pedantic and -Werror=overflowLzu Tao2018-12-021-4/+5
|
* Adding information about dirty context for _HC_ family of functionsOleg Khabinov2018-10-101-8/+24
|
* Some followups and renamingsOleg Khabinov2018-10-011-5/+5
|
* Rename initCheck to dirtyContext and use it in LZ4_resetStream_fast() to ↵Oleg Khabinov2018-09-281-3/+8
| | | | check if full reset is needed.
* fixed minor warning in fuzzer.cYann Collet2018-09-101-1/+0
| | | | added a few more comments and assert()
* fixed fuzzer testYann Collet2018-09-081-3/+4
| | | | and removed one blind copy, since there is no more guarantee that at least 4 bytes are still available in output buffer
* first sketch for a byte-accurate partial decoderYann Collet2018-09-071-11/+11
|
* removed one assert() conditionYann Collet2018-09-051-5/+10
| | | | which is not correct when using LZ4_HC with dictionary and starting from a low address (<0x10000).
* Fix AIX 32 bit build problem of fuzzer.cNorm Green2018-06-011-1/+5
|
* removed test that might be optimized awayYann Collet2018-05-021-2/+1
| | | | under UB rule "no overflow on int"
* introduce LZ4_decoderRingBufferSize()Yann Collet2018-05-021-36/+53
| | | | fuzzer : fix and robustify ring buffer tests
* Merge pull request #515 from svpv/refactorDecYann Collet2018-04-291-40/+81
|\ | | | | lz4.c: refactor the decoding routines
| * fuzzer.c: enabled ring buffer tests for decompress_fastAlexey Tourbin2018-04-271-40/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | Ring buffer tests were performed only with LZ4_decompress_safe_continue, leaving my buggy changes to LZ4_decompress_safe_continue undetected. The tests are now replicated and performed in a similar manner for both LZ4_decompress_safe_continue and LZ4_decompress_safe_continue (except for the small buffer case where only one function can be tested, because part of the dictionary is overwritten with the output). I also updated function names in the messages (changed them to the actual ones). The error was reported for LZ4_decompress_safe(), which I found misleading.
* | Merge pull request #512 from lz4/HC_dictYann Collet2018-04-241-1/+49
|\ \ | | | | | | In-place unmutable dictionaries for LZ4HC
| * | Add Some Simple Fuzzer TestsW. Felix Handte2018-04-201-1/+49
| |/
* | Fix compilation error and assert.Nick Terrell2018-04-231-1/+0
| |
* | Fix input size validation edge casesNick Terrell2018-04-231-0/+26
|/ | | | | | | | | | | | | | | | | The bug is a read up to 2 bytes past the end of the buffer. There are three cases for this bug, one for each test case added. * An empty input causes `token = *ip++` to read one byte too far. * A one byte input with `(token >> ML_BITS) == RUN_MASK` causes one extra byte to be read without validation. This could be combined with the first bug to cause 2 extra bytes to be read. * The case pointed out in issue #508, where `ip == iend` at the beginning of the loop after taking the shortcut. Benchmarks show no regressions on clang or gcc-7 on both my mac and devserver. Fixes #508.
* edited a few traces for debuggingYann Collet2018-04-171-3/+3
|
* fixed fuzzer testsYann Collet2018-04-161-15/+17
| | | | which were modified in parallel within branc `dev`
* Merge branch 'dev' into lowAddrYann Collet2018-04-161-2/+99
|\
| * Further Test that ExtDictCtx Mode Produces the Exact Same OutputW. Felix Handte2018-04-131-2/+21
| |
| * Add Tests for LZ4_attach_dictionary and FriendsW. Felix Handte2018-04-131-0/+78
| |
* | modified a few traces for debugtest49732018-04-121-1/+3
| |
* | fix minor conversion warningtest49732018-04-101-1/+1
| | | | | | | | cast from void not implicit for C++
* | noticed a bug when re-using hash tabletest49732018-04-061-30/+29
| | | | | | | | ./fuzzer -vv -s4217 -t7518
* | fixed lz4 compression starting at small addresstest49732018-04-051-1/+1
| | | | | | | | when using byU32 and byU16 modes
* | added low address fuzzer teststest49732018-03-211-52/+61
| |
* | fuzzer: added low address compression testYann Collet2018-02-051-1/+45
|/ | | | is expected to work on linux+gcc only.
* lz4opt supports _destSizeYann Collet2017-12-221-7/+8
| | | | no longer limited to level 9
* /tests programs compiled with LZ4_DEBUG=1Yann Collet2017-12-221-23/+21
| | | | to enable assert() within /lib
* unified HC levelsYann Collet2017-11-031-6/+6
| | | | | LZ4_setCompressionLevel() can be users accross the whole range of HC levels No more transition issue between Optimal and HC modes
* added `extern C` for lz4.h static sectionYann Collet2017-03-171-1/+1
| | | | should make the file more compatible with C++ compiler, such as Visual or g++
* LZ4_compress_HC_continue_destSize() works as intended up to level 10Yann Collet2017-03-161-1/+1
| | | | | It's incompatible with btopt though, so cLevel >= 11 feature much reduced performance (degraded mode)
* LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code pathYann Collet2017-03-161-29/+55
| | | | | Limits compression level to 10, to remain compatible with Hash Chain.
* created LZ4_HC_STATIC_LINKING_ONLY sectionYann Collet2017-03-161-3/+4
| | | | where are exposed new prototypes *_destSize()
* tests: fuzzer: Add test for LZ4_compressHC_destSizeremittor2017-03-081-2/+38
|
* fuzzer: tests more compression levelsPrzemyslaw Skibinski2016-12-281-17/+17
|
* LZ4HC_getSearchNumPrzemyslaw Skibinski2016-12-281-1/+1
|
* added FUZ_CLEVEL_DEFAULTPrzemyslaw Skibinski2016-12-281-7/+8
|
* util.h and platform.h based on zstdPrzemyslaw Skibinski2016-12-211-1/+2
|
* fixed gcc 4.4 supportPrzemyslaw Skibinski2016-12-211-4/+12
|