Merge pull request #4079 from elasota/truncated-huff-state-error

Throw error if Huffman weight initial states are truncated
This commit is contained in:
Yann Collet
2024-06-30 16:17:03 -07:00
committed by GitHub
4 changed files with 26 additions and 0 deletions
+2
View File
@@ -190,6 +190,8 @@ FORCE_INLINE_TEMPLATE size_t FSE_decompress_usingDTable_generic(
FSE_initDState(&state1, &bitD, dt);
FSE_initDState(&state2, &bitD, dt);
RETURN_ERROR_IF(BIT_reloadDStream(&bitD)==BIT_DStream_overflow, corruption_detected, "");
#define FSE_GETSYMBOL(statePtr) fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD)
/* 4 symbols per loop */