]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Initialize "potentially uninitialized" pointers. 2654/head
authorBartosz Taudul <wolf@nereid.pl>
Fri, 14 May 2021 22:40:49 +0000 (00:40 +0200)
committerBartosz Taudul <wolf@nereid.pl>
Fri, 14 May 2021 22:40:49 +0000 (00:40 +0200)
lib/compress/zstd_lazy.c

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