summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-10-19 14:25:35 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-10-19 14:25:35 (GMT)
commitf91d5aae792f4505199227d6b0d487ea83f667a7 (patch)
treed9d646e7dc2ef1e801fea709c60b64fbd17ec108
parent6b89dca1a94ed47a9bd25b1da65f9a7c787da69d (diff)
downloadlz4-f91d5aae792f4505199227d6b0d487ea83f667a7.zip
lz4-f91d5aae792f4505199227d6b0d487ea83f667a7.tar.gz
lz4-f91d5aae792f4505199227d6b0d487ea83f667a7.tar.bz2
fuzzer : fixed test 21
-rw-r--r--programs/fuzzer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/programs/fuzzer.c b/programs/fuzzer.c
index eb5a3ff..4960e76 100644
--- a/programs/fuzzer.c
+++ b/programs/fuzzer.c
@@ -280,8 +280,6 @@ static void FUZ_displayUpdate(int testNb)
}
-#define FUZ_MAX(a,b) (a>b?a:b)
-
static int FUZ_test(U32 seed, int nbCycles, int startCycle, double compressibility)
{
unsigned long long bytes = 0;
@@ -499,10 +497,10 @@ static int FUZ_test(U32 seed, int nbCycles, int startCycle, double compressibili
// Test HC compression with just one missing byte into output buffer => must fail
FUZ_DISPLAYTEST;
- compressedBuffer[compressedSize-1] = 0;
+ compressedBuffer[HCcompressedSize-1] = 0;
ret = LZ4_compressHC_limitedOutput(block, compressedBuffer, blockSize, HCcompressedSize-1);
FUZ_CHECKTEST(ret, "LZ4_compressHC_limitedOutput should have failed (output buffer too small by 1 byte)");
- FUZ_CHECKTEST(compressedBuffer[compressedSize-1], "LZ4_compressHC_limitedOutput overran output buffer")
+ FUZ_CHECKTEST(compressedBuffer[HCcompressedSize-1], "LZ4_compressHC_limitedOutput overran output buffer")
/* Dictionary tests */