aboutsummaryrefslogtreecommitdiff
path: root/ports/zstd/fix-c4703-error.patch
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-08-26 12:08:51 +0800
committerGitHub <noreply@github.com>2021-08-25 21:08:51 -0700
commitdd3d6df5001d49f954bc39b73a4c49ae3c9e8d15 (patch)
tree78d59cab2178b2e5e6a2e453a667c59ecbd7de81 /ports/zstd/fix-c4703-error.patch
parentc13c2185225227d4d0434647150cd6cf31b81cb8 (diff)
downloadvcpkg-dd3d6df5001d49f954bc39b73a4c49ae3c9e8d15.tar.gz
vcpkg-dd3d6df5001d49f954bc39b73a4c49ae3c9e8d15.zip
[zstd] update to 1.5.0 (#18915)
Diffstat (limited to 'ports/zstd/fix-c4703-error.patch')
-rw-r--r--ports/zstd/fix-c4703-error.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/zstd/fix-c4703-error.patch b/ports/zstd/fix-c4703-error.patch
new file mode 100644
index 000000000..9af18d741
--- /dev/null
+++ b/ports/zstd/fix-c4703-error.patch
@@ -0,0 +1,15 @@
+diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c
+index 3d523e8..3dd1426 100644
+--- a/lib/compress/zstd_lazy.c
++++ b/lib/compress/zstd_lazy.c
+@@ -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;