Add 8 bytes to FSE workspace

This commit is contained in:
senhuang42
2021-09-01 15:56:33 -04:00
parent 6715096611
commit 414e24becf
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ size_t FSE_buildCTable_wksp(FSE_CTable* ct,
/* Case for no low prob count symbols. Lay down 8 bytes at a time
* to reduce branch misses since we are operating on a small block
*/
BYTE* const spread = tableSymbol + tableSize; /* size = tableSize */
BYTE* const spread = tableSymbol + tableSize; /* size = tableSize + 8 (may write beyond tableSize) */
{ U64 const add = 0x0101010101010101ull;
size_t pos = 0;
U64 sv = 0;