fixed risk of segfault on very large files (multiple GB)

This commit is contained in:
Yann Collet 2016-07-02 21:39:47 +02:00
parent ed7fb8413c
commit 0d5bf8f06f

View File

@ -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);
}