summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fuzzer: added tests to detect LZ4_decompress_fast() out of bound readYann Collet2019-04-171-19/+27
|
* Fix AIX errors/warningsNorm Green2019-04-171-0/+4
|
* Merge branch 'dev' into fixframeYann Collet2019-04-151-1/+1
|\
| * added a fake initialization to please an analyzerYann Collet2019-04-151-1/+1
| | | | | | | | | | which is unable to understand that the variable is necessarily initialized in spite of an assert just before.
* | fix fuzzer tests on dirty contextYann Collet2019-04-151-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().
* added more margin for canary in frametestYann Collet2019-04-151-5/+4
|
* frametest: removed uninitialized warningYann Collet2019-04-151-17/+26
| | | | was a false positive, but better remove it anyway
* assert() the failed testYann Collet2019-04-151-0/+1
| | | | ensure canary remains within buffer limits
* fixed frametestYann Collet2019-04-151-10/+14
| | | | | | One test could write a canary value out of bound in exceptional conditions involving multiple flushes triggered by -s3421 -t462948.
* and even more visual conversion warningsYann Collet2019-04-131-9/+11
|
* fixed minor Visual conversion warningsYann Collet2019-04-131-1/+1
|
* added tests for -d -m -cYann Collet2019-04-121-10/+24
| | | | seems to work properly
* fixed lz4 -m -cYann Collet2019-04-121-3/+12
| | | | can compress multiple files into stdout
* added command -BI for "Independent Blocks"Yann Collet2019-04-121-1/+1
| | | | | | | | This is the reverse of `-BD`, and the current default. This command can be useful to reverse a previous `-BD` command. It may in the future be more important if `lz4` switches to generating dependent blocks by default.
* made LZ4F_getHeaderSize() publicYann Collet2019-04-101-3/+8
|
* fixed loadDictHCYann Collet2019-04-091-4/+4
| | | | | by making a full initialization instead of a fast reset.
* modified LZ4_initStreamHC() to look like LZ4_initStream()Yann Collet2019-04-092-20/+21
| | | | | it is now a pure initializer, for statically allocated states. It can initialize any memory area, and because of this, requires size.
* checkFrame: removed %zuYann Collet2019-04-081-7/+12
| | | | not liked by mingw
* fullbench: assert lz4_stream_t initializationYann Collet2019-04-081-2/+4
|
* fixed cleaning tmp directoryYann Collet2019-04-081-3/+3
|
* slightly faster huge file testYann Collet2019-04-081-1/+1
| | | | | level down 5->4 size down 6G->5G
* added make list target to testsYann Collet2019-04-081-0/+6
|
* created LZ4_initStream()Yann Collet2019-04-052-5/+5
| | | | | | | | | | - 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*.
* fixed _GNU_SOURCE duplicateYann Collet2019-04-051-0/+1
|
* fuzzer: fixed strict c99 with mmap+MAP_ANONYMOUSYann Collet2019-04-052-8/+5
|
* created LZ4_initStreamHC()Yann Collet2019-04-052-27/+30
| | | | | | | | - 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-042-2/+3
| | | | updated modification
* Fix pass-through modeTim Zakian2019-01-101-3/+6
|
* fixed strict C++ compilationYann Collet2019-01-092-1/+2
|
* fixed long sequence overflow testYann Collet2019-01-091-1/+3
|
* minor explicit cast warningYann Collet2019-01-091-1/+1
|
* Merge pull request #634 from lz4/longSeqTestYann Collet2019-01-091-40/+76
|\ | | | | add a test to check long sequences (#631)
| * 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.
* | Fix C90 compatibility issueTim Zakian2019-01-091-1/+2
| |
* | Make LZ4F_getBlockSize public and publis in experimental sectionTim Zakian2019-01-091-0/+22
|/
* Add test to cover issue #596Ruben O. Chiavone2019-01-091-0/+5
|
* clang: Fix -WcommaLzu Tao2018-12-021-1/+1
|
* clang: Fix -Wcast-qualLzu Tao2018-12-021-2/+3
|
* Fix clang warnings: -Wformat-pedantic and -Werror=overflowLzu Tao2018-12-021-4/+5
|
* [amalgamation] lz4frame.cBing Xu2018-11-261-0/+1
|
* [amalgamation] add testBing Xu2018-11-161-1/+7
|
* Adding information about dirty context for _HC_ family of functionsOleg Khabinov2018-10-101-8/+24
|
* Merge pull request #592 from lz4/compressEndYann Collet2018-10-091-2/+12
|\ | | | | fix LZ4F_compressEnd()
| * added a test for LZ4F_compressEnd()Yann Collet2018-10-091-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #588 from khabinov/stream-dirty-followupsYann Collet2018-10-091-5/+5
|\ \ | |/ |/| Some followups and renamings
| * Some followups and renamingsOleg Khabinov2018-10-011-5/+5
| |
* | support custom block sizes: fix memory leak to make CI builds happyBlaise Sanouillet2018-10-021-21/+55
| |
* | support custom block sizes: remove unneeded fudging, fix leaked filehandles, ↵Blaise Sanouillet2018-10-012-98/+101
| | | | | | | | other nits
* | Merge branch 'dev' into custom_block_sizesBlaise Sanouillet2018-10-011-3/+8
|\ \ | |/
| * Rename initCheck to dirtyContext and use it in LZ4_resetStream_fast() to ↵Oleg Khabinov2018-09-281-3/+8
| | | | | | | | check if full reset is needed.