fixed risk of segfault on very large files (multiple GB)
This commit is contained in:
parent
ed7fb8413c
commit
0d5bf8f06f
@ -404,6 +404,8 @@ static void ZSTD_reduceIndex (ZSTD_CCtx* zc, const U32 reducerValue)
|
||||
|
||||
{ const U32 h3Size = (zc->hashLog3) ? 1 << zc->hashLog3 : 0;
|
||||
ZSTD_reduceTable(zc->hashTable3, h3Size, reducerValue); }
|
||||
|
||||
ZSTD_reduceTable(zc->rep, ZSTD_REP_NUM, reducerValue);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user