Move lastCountSize into a returned struct, fix MSAN error

This commit is contained in:
Sen Huang
2021-03-25 09:11:15 -07:00
parent f8ac0ea7ef
commit 2a907bf4aa
2 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ typedef struct {
symbolEncodingType_e mlType;
BYTE fseTablesBuffer[ZSTD_MAX_FSE_HEADERS_SIZE];
size_t fseTablesSize;
size_t lastCountSize; /* This is to account for bug in 1.3.4. More detail in ZSTD_entropyCompressSequences_internal() */
size_t lastCountSize; /* This is to account for bug in 1.3.4. More detail in ZSTD_entropyCompressSeqStore_internal() */
} ZSTD_fseCTablesMetadata_t;
typedef struct {