Merge pull request #3103 from facebook/fix45586
fix minor bug in sequence_compression_api testerdev
commit
455c2c21e6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue