1
0
mirror of https://github.com/facebook/zstd.git synced 2025-11-30 11:21:33 +03:00

Merge pull request #2654 from wolfpld/dev

Initialize "potentially uninitialized" pointers.
This commit is contained in:
Felix Handte
2021-06-07 13:04:19 -04:00
committed by GitHub

View File

@@ -1296,8 +1296,8 @@ size_t ZSTD_RowFindBestMatch_generic (
size_t ddsIdx; size_t ddsIdx;
U32 ddsExtraAttempts; /* cctx hash tables are limited in searches, but allow extra searches into DDS */ U32 ddsExtraAttempts; /* cctx hash tables are limited in searches, but allow extra searches into DDS */
U32 dmsTag; U32 dmsTag;
U32* dmsRow; U32* dmsRow = NULL;
BYTE* dmsTagRow; BYTE* dmsTagRow = NULL;
if (dictMode == ZSTD_dedicatedDictSearch) { if (dictMode == ZSTD_dedicatedDictSearch) {
const U32 ddsHashLog = dms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG; const U32 ddsHashLog = dms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG;