diff options
author | Yann Collet <cyan@fb.com> | 2017-03-16 22:41:30 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-03-16 22:41:30 (GMT) |
commit | aae447fffd3c5afd95a94c56ea70c349edad1ebd (patch) | |
tree | b59a6659ecf298cbe3e5c73728ce3aabce3f8866 /tests/fuzzer.c | |
parent | cd35f0d98c54e3ba0573ce5473482fadd6ec0a59 (diff) | |
download | lz4-aae447fffd3c5afd95a94c56ea70c349edad1ebd.zip lz4-aae447fffd3c5afd95a94c56ea70c349edad1ebd.tar.gz lz4-aae447fffd3c5afd95a94c56ea70c349edad1ebd.tar.bz2 |
LZ4_compress_HC_continue_destSize() works as intended up to level 10
It's incompatible with btopt though,
so cLevel >= 11 feature much reduced performance (degraded mode)
Diffstat (limited to 'tests/fuzzer.c')
-rw-r--r-- | tests/fuzzer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 28d2be2..a36d20b 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -664,10 +664,10 @@ static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c LZ4_resetStreamHC (&LZ4dictHC, compressionLevel); LZ4_loadDictHC(&LZ4dictHC, dict, dictSize); blockContinueCompressedSize = LZ4_compress_HC_continue_destSize(&LZ4dictHC, block, compressedBuffer, &consumedSize, availableSpace); + DISPLAYLEVEL(3, " LZ4_compress_HC_continue_destSize : compressed %6i/%6i into %6i/%6i at cLevel=%i\n", consumedSize, blockSize, blockContinueCompressedSize, availableSpace, compressionLevel); FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_HC_continue_destSize failed"); FUZ_CHECKTEST(blockContinueCompressedSize > availableSpace, "LZ4_compress_HC_continue_destSize write overflow"); FUZ_CHECKTEST(consumedSize > blockSize, "LZ4_compress_HC_continue_destSize read overflow"); - DISPLAYLEVEL(5, " LZ4_compress_HC_continue_destSize : compressed %6i/%6i into %6i/%6i \n", consumedSize, blockSize, blockContinueCompressedSize, availableSpace); FUZ_DISPLAYTEST; decodedBuffer[consumedSize] = 0; |