mirror of
https://github.com/facebook/zstd.git
synced 2025-11-09 00:11:14 -05:00
Merge pull request #980 from conor42/dev
Fix break condition in decompression noise test
This commit is contained in:
commit
55cdbdb465
@ -1412,7 +1412,7 @@ static int fuzzerTests(U32 seed, U32 nbTests, unsigned startTest, U32 const maxD
|
||||
size_t const skipLength = FUZ_rand(&lseed) & mask;
|
||||
pos += skipLength;
|
||||
}
|
||||
if (pos <= cSize) break;
|
||||
if (pos >= cSize) break;
|
||||
/* add noise */
|
||||
{ U32 const nbBitsCodes = FUZ_rand(&lseed) % maxNbBits;
|
||||
U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user