diff mbox series

[05/11] zstd: upgrade 1.5.7 -> 1.6.0

Message ID 20261124171807.74394-6-jaipaul.cheernam@est.tech
State New
Headers show
Series Upgrades on 24th November | expand

Commit Message

Jaipaul Cheernam Nov. 24, 2026, 5:18 p.m. UTC
v1.6.0 (Nov 2026)
fix: streaming decompression of malformed data could expose uninitialized memory
fix: multithreaded compression with `ZSTD_CCtx_refPrefix()` could rarely emit a
valid frame encoding wrong data, depending on thread timing
fix: out-of-bounds read and write in the DDict hash table when using
`ZSTD_d_refMultipleDDicts`
fix: use-after-free of a `ZSTD_DCtx_refPrefix()` prefix after
`ZSTD_DCtx_reset()` following a malformed frame header
fix: out-of-bounds read with `ZSTD_c_stableInBuffer` after an abandoned frame or
a changed input buffer, reported by @IlyaGrebnov
fix: multithreaded compression use-after-free when freeing or resetting a
context during an abandoned frame
fix: multithreaded streaming compression accepted a wrong pledged source size,
producing corrupted frames
fix: prepared dictionary decompression now rejects matches into formatted
dictionary headers
fix: on a static DCtx, `ZSTD_DCtx_loadDictionary()` and `ZSTD_DCtx_refPrefix()`
return `ZSTD_error_memory_allocation` for nonempty dictionaries
fix: wild reads when compressing with large dictionaries whose repcodes point
into discarded content
fix: memory corruption in `ZSTD_compressSequences()` and
`ZSTD_compressSequencesAndLiterals()` with small `dst`, overflowing lengths, or
some invalid sequences (#4918, #4989, #5004)
fix: out-of-bounds write with `ZSTD_c_targetCBlockSize` and `ZSTD_compress2()`
into a `dst` smaller than `ZSTD_compressBound()`
fix: high compression levels read uninitialized statistics with some
dictionaries
fix: 32-bit multithreaded compression with large windows (#4946, #4948)
fix: 32-bit builds rejected valid dictionary IDs above 4294967176
fix: excessive memory usage with long distance matching and small windows
fix: CDict and DDict creation and size estimation reject dictionary sizes that
overflow
fix: crash when a custom allocator fails (#4613), data race when resizing a
thread pool
fix: legacy decoders: out-of-bounds reads, wrong streaming output, and offset
validation (#4555, #4815, #4816, #4817, #4913, #4955, #4957)
api: legacy format support is now disabled by default
api: experimental `ZSTD_d_refMultipleDDicts` requires an exact dictionary ID
match: a missing nonzero ID returns `ZSTD_error_dictionary_wrong` instead of
falling back to the current dictionary
api: disabling experimental `ZSTD_d_refMultipleDDicts` releases every dictionary
reference of its set
api: removed the deprecated experimental functions `ZSTD_copyCCtx()` and
`ZSTD_copyDCtx()`
api: promoted `ZSTD_getFrameHeader()` and `ZSTD_FrameHeader` to the stable API
api: promoted `ZSTD_createDDict_byReference()`,
`ZSTD_DCtx_loadDictionary_advanced()`, and `ZSTD_CCtx_loadDictionary_advanced()`
to the stable API, along with `ZSTD_dictContentType_e` and
`ZSTD_dictLoadMethod_e` (#4283, #3723)
api: `ZSTD_decompressDCtx()`, `ZSTD_decompress_usingDict()` and
`ZSTD_decompress_usingDDict()` reset an unfinished streaming session, as
documented
api: `ZSTD_DCtx_loadDictionary()` returns `ZSTD_error_dictionary_corrupted` for
a corrupted dictionary, instead of `ZSTD_error_memory_allocation`
api: `ZSTD_compressSequencesAndLiterals()` enforces its documented limits on
block size and `litBufCapacity` (#4741, #4782)
api: `ZSTD_decompressContinue()` returns `ZSTD_error_stage_wrong` when not
preceded by `ZSTD_decompressBegin()`
api: new experimental `ZSTD_isDeterministicBuild()`
perf: faster decompression on AArch64 (#4413, #4414, #4418, #4509), by
@arpadpanyik-arm
perf: faster compression on AArch64 with SVE2 (#4411), by @arpadpanyik-arm
perf: faster `ZSTD_compressSequencesAndLiterals()` on AArch64 with Neon and SVE2
(#4429, #4440), by @arpadpanyik-arm, and on RISC-V with RVV (#4399), by
@zijianli1234
perf: faster row match finder on RISC-V with RVV (#4481), by @w1m024
cli: new `--patch-apply` command, equivalent to `-d --patch-from`
cli: `-B#` renamed `--jobsize=#`, and benchmark `--blocksize=#` renamed
`--split=#`; old names remain supported
cli: `--filelist=` supports process substitution
cli: size arguments accept `G`, `GB` and `GiB` suffixes (#4609), by @Integral-
Tech
cli: `--memory=` also limits `.xz` and `.lzma` decompression
cli: benchmark mode uses 1 thread by default
cli: warn when multiple threads are requested for decompression
cli: safer file handling: no output through symbolic links (#4906), `-r` no
longer follows links and junctions on Windows (#4905), better same-file
detection on Windows (#4884), robust to concurrent renames (#4962, #4999, #5003,
cli: `--output-dir-flat` fails on output filename collisions before processing
(#4974), by @daniellerozenblit
cli: fix `zstd -l` infinite loop on a large skippable frame
cli: fix `--memlimit-decompress=` parsing (#4916), `--adapt` bounds (#4982),
`--patch-from` with an empty file (#4896), `--check` with `--format=lz4`
cli: fix `ZSTD_NBTHREADS=0` (#4334),
cli: fix decode-only benchmark of multiple files (#4714, #4945)
cli: `zstdgrep` exits 0 when any of several files matches
zdict: fix out-of-bounds

[Changelog truncated as it exceeds 5000 characters;
the full changelog can be found in an attachment to the AUH email]

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch | 4 ++--
 meta/recipes-extended/zstd/{zstd_1.5.7.bb => zstd_1.6.0.bb}   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-extended/zstd/{zstd_1.5.7.bb => zstd_1.6.0.bb} (98%)

Comments

patchtest@automation.yoctoproject.org Nov. 24, 2026, 5:38 p.m. UTC | #1
Thank you for your submission. Patchtest identified one
or more issues with the patch. Please see the log below for
more information:

---
Tests failed for the patch, but the results log could not be processed due to excessive result line length.
---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!
diff mbox series

Patch

diff --git a/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch b/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
index d7559f7269..6163201bf2 100644
--- a/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
+++ b/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
@@ -1,4 +1,4 @@ 
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From 5182d7671cb65346b55d3ff8eda6388f876a7431 Mon Sep 17 00:00:00 2001
 From: Pratik Farkase <pratik.farkase@est.tech>
 Date: Thu, 27 Aug 2026 12:00:00 +0000
 Subject: [PATCH] cli-tests: skip zstd --max level when memory is insufficient
@@ -15,7 +15,7 @@  Signed-off-by: Pratik Farkase <pratik.farkase@est.tech>
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/tests/cli-tests/compression/levels.sh b/tests/cli-tests/compression/levels.sh
-index b8230f2..7846d3e 100755
+index b8230f2a3..7846d3ec0 100755
 --- a/tests/cli-tests/compression/levels.sh
 +++ b/tests/cli-tests/compression/levels.sh
 @@ -16,8 +16,8 @@ zstd --fast=10 file -o file-f10.zst -q
diff --git a/meta/recipes-extended/zstd/zstd_1.5.7.bb b/meta/recipes-extended/zstd/zstd_1.6.0.bb
similarity index 98%
rename from meta/recipes-extended/zstd/zstd_1.5.7.bb
rename to meta/recipes-extended/zstd/zstd_1.6.0.bb
index 4c3b377c14..a4a6acc435 100644
--- a/meta/recipes-extended/zstd/zstd_1.5.7.bb
+++ b/meta/recipes-extended/zstd/zstd_1.6.0.bb
@@ -17,7 +17,7 @@  SRC_URI = "git://github.com/facebook/zstd.git;branch=release;protocol=https;tag=
            file://0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch \
            "
 
-SRCREV = "f8745da6ff1ad1e7bab384bd1f9d742439278e99"
+SRCREV = "916e8e70b33317d469a41ee837e47317807815c8"
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
 CVE_PRODUCT = "zstandard"