diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-11-12 23:28:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 14:28:59 -0800 |
| commit | b518035a33941380c044b00a1b4f8abff764cbdc (patch) | |
| tree | c9629a0adac4806672f162461ea5c8de7850a55e /ports/zstd/fix_assert.patch | |
| parent | f50c0eae60fb1391d610451289e877784228eb18 (diff) | |
| download | vcpkg-b518035a33941380c044b00a1b4f8abff764cbdc.tar.gz vcpkg-b518035a33941380c044b00a1b4f8abff764cbdc.zip | |
[ZSTD] Update to 1.4.5 (#14395)
* [ZSTD] Update to 1.4.5
* [zstd] fix wrong assert to fix uwp regressions
* always install *.pc file. Correct -l flag in pc file
* fix orc regression
* fix arrow regressions
* fix orc zstd linkage
* fix find_package(ZSTD)
* install zstd dlls.
* fix the patch due to a replacement error
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/zstd/fix_assert.patch')
| -rw-r--r-- | ports/zstd/fix_assert.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/zstd/fix_assert.patch b/ports/zstd/fix_assert.patch new file mode 100644 index 000000000..b7fa3dc8d --- /dev/null +++ b/ports/zstd/fix_assert.patch @@ -0,0 +1,13 @@ +diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c +index be5c7cfc3..539190998 100644 +--- a/lib/decompress/zstd_decompress.c ++++ b/lib/decompress/zstd_decompress.c +@@ -721,7 +721,7 @@ static size_t ZSTD_decompressMultiFrame(ZSTD_DCtx* dctx, + decodedSize = ZSTD_decompressLegacy(dst, dstCapacity, src, frameSize, dict, dictSize); + if (ZSTD_isError(decodedSize)) return decodedSize; + +- assert(decodedSize <=- dstCapacity); ++ assert(decodedSize <= dstCapacity); + dst = (BYTE*)dst + decodedSize; + dstCapacity -= decodedSize; + |
