1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

fix bound check for ZSTD_copySequencesToSeqStoreNoBlockDelim()

This commit is contained in:
Danielle Rozenblit
2023-01-24 06:40:40 -08:00
parent 0a91b31b17
commit 7d600c628a
3 changed files with 36 additions and 3 deletions

View File

@ -41,8 +41,6 @@ static ZSTD_DDict* ddict = NULL;
#define ZSTD_FUZZ_MATCHLENGTH_MAXSIZE (1 << 18) /* Allow up to 256KB matches */
#define ZSTD_FUZZ_GENERATED_DICT_MAXSIZE (1 << ZSTD_WINDOWLOG_MAX_32) /* Allow up to 1 << ZSTD_WINDOWLOG_MAX_32 dictionary */
#define ZSTD_FUZZ_MAX_NBSEQ (1 << 17) /* Maximum of 128K sequences */
#define ZSTD_FUZZ_DICT_FILE "sequence_fuzz_dictionary"
/* Deterministic random number generator */
#define FUZZ_RDG_rotl32(x,r) ((x << r) | (x >> (32 - r)))