mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
fix minor bug in sequence_compression_api tester
margin was merely slightly too short for extra splitting.
This commit is contained in:
@ -153,7 +153,7 @@ static size_t generateRandomSequences(FUZZ_dataProducer_t* producer,
|
|||||||
matchLengthMax = MIN(matchLengthMax, blockSizeMax/2);
|
matchLengthMax = MIN(matchLengthMax, blockSizeMax/2);
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( nbSeqGenerated < ZSTD_FUZZ_MAX_NBSEQ-2 /* extra room for explicit delimiters */
|
while ( nbSeqGenerated < ZSTD_FUZZ_MAX_NBSEQ - 3 /* extra room for explicit delimiters */
|
||||||
&& bytesGenerated < ZSTD_FUZZ_GENERATED_SRC_MAXSIZE
|
&& bytesGenerated < ZSTD_FUZZ_GENERATED_SRC_MAXSIZE
|
||||||
&& !FUZZ_dataProducer_empty(producer)) {
|
&& !FUZZ_dataProducer_empty(producer)) {
|
||||||
uint32_t matchLength;
|
uint32_t matchLength;
|
||||||
|
Reference in New Issue
Block a user