Fix hashLog3 size when copying cdict tables

This commit is contained in:
Nick Terrell
2018-01-31 11:12:17 -08:00
parent 0fa96a6b78
commit ab3346af07
3 changed files with 78 additions and 48 deletions
+1
View File
@@ -251,6 +251,7 @@ static U32 ZSTD_insertAndFindFirstIndexHash3 (ZSTD_matchState_t* ms, const BYTE*
U32 idx = ms->nextToUpdate3;
U32 const target = ms->nextToUpdate3 = (U32)(ip - base);
size_t const hash3 = ZSTD_hash3Ptr(ip, hashLog3);
assert(hashLog3 > 0);
while(idx < target) {
hashTable3[ZSTD_hash3Ptr(base+idx, hashLog3)] = idx;