summaryrefslogtreecommitdiffstats
path: root/tests/frametest.c
Commit message (Collapse)AuthorAgeFilesLines
* address a few minor Visual warningsYann Collet2019-04-181-3/+4
| | | | and created target cxx17build
* fix several minor static analyzer warningsYann Collet2019-04-181-6/+8
|
* 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.
* 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.
* made LZ4F_getHeaderSize() publicYann Collet2019-04-101-3/+8
|
* fuzzer: fixed strict c99 with mmap+MAP_ANONYMOUSYann Collet2019-04-051-5/+4
|
* Fix C90 compatibility issueTim Zakian2019-01-091-1/+2
|
* Make LZ4F_getBlockSize public and publis in experimental sectionTim Zakian2019-01-091-0/+22
|
* clang: Fix -WcommaLzu Tao2018-12-021-1/+1
|
* 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.
* tried to clean another bunch of cppcheck warningsYann Collet2018-09-191-5/+6
| | | | | | | | | | | | so "funny" thing with cppcheck is that no 2 versions give the same list of warnings. On Mac, I'm using v1.81, which had all warnings fixed. On Travis CI, it's v1.61, and it complains about a dozen more/different things. On Linux, it's v1.72, and it finds a completely different list of a half dozen warnings. Some of these seems to be bugs/limitations in cppcheck itself. The TravisCI version v1.61 seems unable to understand %zu correctly, and seems to assume it means %u.
* added cppcheckYann Collet2018-09-181-2/+2
| | | | | | as Makefile target and Travis CI test. Fixed last cppcheck warnings in tests and examples
* small extDict : fixed side-effectYann Collet2018-05-061-0/+1
| | | | | | don't fix dictionaries of size 0. setting dictEnd == source triggers prefix mode, thus removing possibility to use CDict.
* fixed frametest errorYann Collet2018-05-061-2/+6
| | | | | | | | | | | | | | | | | | | | The error can be reproduced using following command : ./frametest -v -i100000000 -s1659 -t31096808 It's actually a bug in the stream LZ4 API, when starting a new stream and providing a first chunk to complete with size < MINMATCH. In which case, the chunk becomes a dictionary. No hash was generated and stored, but the chunk is accessible as default position 0 points to dictStart, and position 0 is still within MAX_DISTANCE. Then, next attempt to read 32-bits from position 0 fails. The issue would have been mitigated by starting from index 64 KB, effectively eliminating position 0 as too far away. The proper fix is to eliminate such "dictionary" as too small. Which is what this patch does.
* Multiply-Include Header to Check Guard Macro CorrectnessW. Felix Handte2018-04-241-0/+3
|
* Change Over Includes in the ProjectW. Felix Handte2018-04-241-1/+2
|
* Make LZ4F_compressFrame_usingCDict Take a Compression ContextW. Felix Handte2018-03-121-8/+11
|
* Add Bounds Check to locateBuffDiffW. Felix Handte2018-03-121-3/+5
|
* restored block checksum capability at lz4frame API levelYann Collet2017-08-121-2/+26
|
* implemented lz4frame decompression APIYann Collet2017-08-101-3/+64
|
* support dictionary compression with independent blocksYann Collet2017-08-101-0/+30
|
* dictionary compression correctly uses compression levelYann Collet2017-08-101-0/+24
| | | | Not obvious : copying the state was copying cdict's compression level
* implemented dictionary compression in lz4frameYann Collet2017-08-091-1/+27
| | | | | note : only compression API is implemented and tested still to do : decompression API
* added dictID inside LZ4F_frameInfo_tYann Collet2017-08-091-85/+76
| | | | | Compressor can set dictID on LZ4F_compressBegin() Decompressor can retrieve it using LZ4F_getFrameInfo()
* fix (minor) g++ compatibility for frametestYann Collet2017-05-111-1/+1
|
* added test for LZ4F_resetDecompressionContext()Yann Collet2017-05-101-16/+29
|
* fixed c_standards testsYann Collet2017-05-101-1/+2
| | | | and added entry "make list"
* lz4frame : Added negative compression levelsYann Collet2017-04-091-1/+11
|
* added LZ4F_resetDecompressionContext()Yann Collet2017-03-291-22/+22
|
* Safer LZ4_getFrameInfo()Yann Collet2017-03-291-9/+17
| | | | | LZ4_getFrameInfo() is now guaranteed to keep dctx state clean, even in case of failure.
* Merge pull request #292 from inikep/devYann Collet2016-12-221-22/+4
|\ | | | | improved POSIX
| * util.h and platform.h based on zstdPrzemyslaw Skibinski2016-12-211-1/+1
| |
| * improved MinGW supportPrzemyslaw Skibinski2016-12-211-3/+3
| |
| * executables use basic types from util.hPrzemyslaw Skibinski2016-12-211-20/+2
| |
* | LZ4F_compressBound(0) provides upper bound for LZ4F_flush() and ↵Yann Collet2016-12-211-0/+7
|/ | | | LZ4F_compressEnd() [#290, suggested by @vtermanis]
* fixed conversion warningsYann Collet2016-11-141-14/+12
|
* updated frametestYann Collet2016-11-111-136/+161
|
* updated links to LZ4 repositoryPrzemyslaw Skibinski2016-11-031-1/+1
|
* test programs moved to tests/Przemyslaw Skibinski2016-11-031-0/+866