summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-10-29 00:39:47 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-10-29 00:39:47 (GMT)
commit5a5a15969ea853d461b4f7f631c10b999de43c9c (patch)
tree476f5a441d30b4a859a2207dff805b10e12fe9ce /programs
parenteaccf78cfb7f9f5a8d79609b488b1d4222de8477 (diff)
downloadlz4-5a5a15969ea853d461b4f7f631c10b999de43c9c.zip
lz4-5a5a15969ea853d461b4f7f631c10b999de43c9c.tar.gz
lz4-5a5a15969ea853d461b4f7f631c10b999de43c9c.tar.bz2
minor fuzzer test correction
Diffstat (limited to 'programs')
-rw-r--r--programs/fuzzer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/fuzzer.c b/programs/fuzzer.c
index b7721c8..63c3ab9 100644
--- a/programs/fuzzer.c
+++ b/programs/fuzzer.c
@@ -600,6 +600,7 @@ static int FUZ_test(U32 seed, const U32 nbCycles, const U32 startCycle, const do
FUZ_DISPLAYTEST;
dict -= (FUZ_rand(&randState) & 7); // even bigger separation
if (dict < (char*)CNBuffer) dict = (char*)CNBuffer;
+ LZ4_resetStreamHC (&LZ4dictHC, FUZ_rand(&randState) & 0x7);
LZ4_loadDictHC(&LZ4dictHC, dict, dictSize);
blockContinueCompressedSize = LZ4_compressHC_continue(&LZ4dictHC, block, compressedBuffer, blockSize);
FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compressHC_continue failed");