summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-09-10 23:48:41 (GMT)
committerYann Collet <cyan@fb.com>2018-09-10 23:48:41 (GMT)
commitb87a8e9e623d6e2404ae9f948a4e0ee8f1415bee (patch)
treea1cc777953cd04d8c46a410aee88b2bb208828c2 /tests
parent63fc6fbf7ee9e6a587598af085f22742cd9e6798 (diff)
downloadlz4-b87a8e9e623d6e2404ae9f948a4e0ee8f1415bee.zip
lz4-b87a8e9e623d6e2404ae9f948a4e0ee8f1415bee.tar.gz
lz4-b87a8e9e623d6e2404ae9f948a4e0ee8f1415bee.tar.bz2
fixed minor warning in fuzzer.c
added a few more comments and assert()
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzzer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c
index d6a5f51..b29e82e 100644
--- a/tests/fuzzer.c
+++ b/tests/fuzzer.c
@@ -583,7 +583,6 @@ static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c
{ size_t const missingBytes = FUZ_rand(&randState) % blockSize;
int const targetSize = (int)(blockSize - missingBytes);
char const sentinel = decodedBuffer[targetSize] = block[targetSize] ^ 0x5A;
- assert(decodedBuffer[targetSize] == sentinel);
int const decResult = LZ4_decompress_safe_partial(compressedBuffer, decodedBuffer, compressedSize, targetSize, blockSize);
FUZ_CHECKTEST(decResult<0, "LZ4_decompress_safe_partial failed despite valid input data (error:%i)", decResult);
FUZ_CHECKTEST(decResult != targetSize, "LZ4_decompress_safe_partial did not regenerated required amount of data (%i < %i <= %i)", decResult, targetSize, blockSize);