Skip to content

Commit 0e88f6e

Browse files
authored
Fix break condition in decompression noise test
The bug prevents noise being added
1 parent 0699577 commit 0e88f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ static int fuzzerTests(U32 seed, U32 nbTests, unsigned startTest, U32 const maxD
14121412
size_t const skipLength = FUZ_rand(&lseed) & mask;
14131413
pos += skipLength;
14141414
}
1415-
if (pos <= cSize) break;
1415+
if (pos >= cSize) break;
14161416
/* add noise */
14171417
{ U32 const nbBitsCodes = FUZ_rand(&lseed) % maxNbBits;
14181418
U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0;

0 commit comments

Comments
 (0)