fix issue 5921623844651008

ossfuzz managed to create a scenario which triggers an `assert`.
This fixes it, by giving +1 more space for the backward search pass.
This commit is contained in:
Yann Collet committed 2024-02-06 13:01:14 -08:00
1 parent 06b5b37b8d
commit 22574d848d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ typedef struct {
typedef enum { zop_dynamic=0, zop_predef } ZSTD_OptPrice_e;
#define ZSTD_OPT_SIZE (ZSTD_OPT_NUM+2)
#define ZSTD_OPT_SIZE (ZSTD_OPT_NUM+3)
typedef struct {
/* All tables are allocated inside cctx->workspace by ZSTD_resetCCtx_internal() */
unsigned* litFreq; /* table of literals statistics, of size 256 */