diff options
author | Yann Collet <cyan@fb.com> | 2019-05-29 19:06:13 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-05-29 19:06:13 (GMT) |
commit | b17f578a919b7e6b078cede2d52be29dd48c8e8c (patch) | |
tree | bf33d6c582a9e58d16abebed2c890a8c55c3fa56 /tests | |
parent | 4fc6b485500ac85cd6abca04bf0fdd687ade8213 (diff) | |
download | lz4-b17f578a919b7e6b078cede2d52be29dd48c8e8c.zip lz4-b17f578a919b7e6b078cede2d52be29dd48c8e8c.tar.gz lz4-b17f578a919b7e6b078cede2d52be29dd48c8e8c.tar.bz2 |
added comments and macros for in-place (de)compression
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fuzzer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 26e25eb..e04caa5 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1017,8 +1017,7 @@ static void FUZ_unitTests(int compressionLevel) DISPLAYLEVEL(3, "in-place compression using LZ4_compress_default() :"); { size_t const sampleSize = 65 KB; size_t const maxCSize = LZ4_COMPRESSBOUND(sampleSize); - size_t const margin = 64 KB; - size_t const outSize = maxCSize + margin; + size_t const outSize = LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCSize); size_t const startIndex = outSize - sampleSize; char* const startInput = testCompressed + startIndex; XXH32_hash_t const crcOrig = XXH32(testInput, sampleSize, 0); |