Repository navigation
chore(deps): update rust crate zstd to v0.14.5 - #635
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.14.4→0.14.5Release Notes
gyscos/zstd-rs (zstd)
v0.14.5: zstd 0.14.5Compare Source
zstd 0.14.5, zstd-safe 8.4.0, zstd-sys 2.2.0
This release bundles zstd 1.6.0, which fixes
CVE-2026-124851 and a
batch of memory-safety bugs (upstream release notes).
Updating is recommended. It also fixes three soundness issues in zstd-safe
(#401, #415, #416).
With
pkg-config, the system's zstd library is used instead of the bundledone: update it to 1.6.0 to get the upstream fixes.
Rust 1.64 remains supported.
zstd-sys 2.2.0+zstd.1.6.0
with zstd 1.6.0.
experimentalfeature:ZSTD_getFrameHeader,ZSTD_FrameHeader,ZSTD_FrameType_e,ZSTD_createDDict_byReference,ZSTD_CCtx_loadDictionary_advanced,ZSTD_DCtx_loadDictionary_advanced,ZSTD_dictContentType_eandZSTD_dictLoadMethod_e.experimental: zstd 1.6.0 removedZSTD_copyCCtxandZSTD_copyDCtx, andadded
ZSTD_isDeterministicBuild.legacyfeature keeps working as before (on by default).
zstd-safe 8.4.0
New API:
get_frame_header()returns a frame's header (FrameHeader, zstd's ownstruct), or how much of the frame it needs (
FrameHeaderStatus).get_frame_header_advanced()takes aFrameFormat(experimental).CCtx::load_dictionary_advanced()andDCtx::load_dictionary_advanced()take a
DictContentType.ref_dictionary()borrows the dictionary insteadof copying it.
DDict::create_by_reference()no longer needsexperimental.CCtx::set_cdict(),CCtx::set_prefix(),CCtx::compress_with_cdict(),CCtx::compress_with_prefix(),CDict::create_by_reference_owned()(experimental), andCCtx::frame_workers(), which tells how many workers a frame gets.Fixes:
CCtxin the middle of a multithreaded frame that reads aborrowed dictionary or prefix no longer lets the workers read it after the
borrow ends (#401, #411).
borrowed, or state zstd never set up (#415, #417).
NoOpno longer writes through a stale pointer when aWriteBuf'scapacity changes between calls (#416, #417).
compress2()when thedestination panics, with stale pledged sizes, and with clamped
NbWorkers(#407).WriteBufruns, so apanicking destination no longer leaves the context pointing at borrowed
buffers (#409).
Behaviour changes:
from
ref_prefix(), aCDictmade bycreate_by_reference(), a dictionaryfrom
ref_dictionary()) runs on the calling thread, andJobSize,OverlapSizeLogandRSyncablehave no effect on it.compress2()andthe owned variants above keep the workers.
NbWorkersis refused (parameter_unsupported) without thezstdmtfeature, even when the linked zstd library has threads.
zstdmtnowenables
alloc.compress_block()/decompress_block()run in block sessions of theirown: any other
&mut selfmethod ends the session, and a failed blockcall poisons the context until a reset.
WriteBuf's contract now says its capacity and pointer must not changewhile zstd-safe uses the buffer (they may between uses, as a
Vec'sdoes). Every implementation in this crate already did; check your own
unsafe impl WriteBuf.zstd 0.14.5
DecoderDictionary::new()andtry_new()no longer needexperimental.EncoderDictionaryisClone, andEncoderDictionary::from_cdict()wrapsany prepared dictionary. Encoders and compressors keep their own handle, so
with_prepared_dictionary()only needs the dictionary's bytes to outlivethem.
write::Encoder::with_prefix()takes a prefix the encoder owns, andbulk::Compressor::compress_with_prefix()borrows one for a single call:both keep the worker threads.
OutOfMemoryerror instead of panicking. The decoders reportOutOfMemory(they saidOther), and so does zstd's ownmemory_allocationerror, which no longer carries azstd::Error. Noneof these errors allocate (#414, thanks @gleocadie, and #418).
write::Encoderno longer writes a second, empty frame when flushed whilea finish is being retried. Behaviour change:
write()in that statereturns the "encoder is finished" error (#404).
AutoFinishEncoderandAutoFlushDecoderno longer abort the processwhen the writer or callback panics while another panic unwinds (#404).
Upgrading with the
experimentalfeaturezstd-safe up to 8.2 has
CCtx::try_clone()andDCtx::try_clone()behindexperimental, and they call the functions zstd 1.6.0 removed: withexperimental, those versions no longer build against zstd-sys 2.2.0.Update to zstd-safe 8.4.0 (zstd 0.14.5), or stay on the previous zstd-sys
with
cargo update -p zstd-sys --precise 2.1.3+zstd.1.5.7.The same applies to the 0.13 line: zstd 0.13 picks up zstd-sys 2.2.0 (and
zstd 1.6.0) on
cargo update, except withexperimental.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.