Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 05/11] zstd: upgrade 1.5.7 -> 1.6.0
Date: Tue, 24 Nov 2026 18:18:01 +0100	[thread overview]
Message-ID: <20261124171807.74394-6-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20261124171807.74394-1-jaipaul.cheernam@est.tech>

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%)

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"

  parent reply	other threads:[~2026-11-24 17:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:17 [PATCH 00/11] Upgrades on 24th November Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 01/11] fastfloat: upgrade 8.3.2 -> 8.4.0 Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 02/11] libconfig: upgrade 1.8.2 -> 1.8.3 Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 03/11] gtk4: upgrade 4.24.1 -> 4.24.2 Jaipaul Cheernam
2026-11-25 19:34   ` [OE-core] " Mathieu Dubois-Briand
2026-11-27 10:51   ` [PATCH v2] " Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 04/11] btrfs-tools: upgrade 7.1 -> 7.3 Jaipaul Cheernam
2026-11-24 17:18 ` Jaipaul Cheernam [this message]
2026-11-24 17:38   ` Patchtest results for [PATCH 05/11] zstd: upgrade 1.5.7 -> 1.6.0 patchtest
2026-11-25  6:40   ` [OE-core] " Mathieu Dubois-Briand
2026-11-25  9:58   ` [PATCH v2] " Jaipaul Cheernam
2026-11-25 10:13     ` Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 06/11] ovmf: upgrade edk2-stable202605 -> edk2-stable202611 Jaipaul Cheernam
2026-11-26 11:34   ` Jaipaul Cheernam
2026-11-26 12:37     ` [OE-core] " Mathieu Dubois-Briand
2026-11-26 13:16       ` Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 07/11] devtool: fix misleading error when srcrev is on no branch Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 08/11] blueprint-compiler: upgrade 0.20.4 -> 0.22.2 Jaipaul Cheernam
2026-11-27  9:16   ` [OE-core] " Ross Burton
2026-11-24 17:18 ` [PATCH 09/11] man-db: Upgrade 2.13.1 -> 2.13.3 Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 10/11] rxvt-unicode: upgrade 9.31 -> 9.32 Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 11/11] nfs-utils: upgrade 3.1.1 -> 3.2.1 Jaipaul Cheernam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124171807.74394-6-jaipaul.cheernam@est.tech \
    --to=jaipaul.cheernam@est.tech \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox