zstd v1.6.0
Permanent link:
cppdashboard.dev/r/2026/11/zstd-v1-6-0Zstandard - Fast real-time compression algorithm
Release notes
Zstandard doesn't escape the tidal wave of bug hunting currently sweeping the industry. This release comes mid-way through an effort that was initially meant to bring you the next version of Zstandard. Instead, it was refocused on answering the avalanche of reports received in the past few weeks. Thankfully, most of them are minor (or duplicates), but one of them is going to be published as a CVE, and that is why we are publishing this early release today. We'll continue working on the initially intended scope of Zstandard v1.6.x in the coming weeks. In the meantime, updating to v1.6.0 is highly recommended. _edit_: CVE published, this is [CVE-2026-124851](https://www.cve.org/CVERecord?id=CVE-2026-124851) ## Changelog - fix: streaming decompression of malformed data could expose uninitialized memory (#5023) - fix: multithreaded compression with `ZSTD_CCtx_refPrefix()` could rarely emit a valid frame encoding wrong data, depending on thread timing (#5012) - fix: out-of-bounds read and write in the DDict hash table when using `ZSTD_d_refMultipleDDicts` (#4731) - fix: use-after-free of a `ZSTD_DCtx_refPrefix()` prefix after `ZSTD_DCtx_reset()` following a malformed frame header (#4848) - fix: out-of-bounds read with `ZSTD_c_stableInBuffer` after an abandoned frame or a changed input buffer, reported by @IlyaGrebnov (#4943) - fix: multithreaded compression use-after-free when freeing or resetting a context during an abandoned frame (#4871) - fix: multithreaded streaming compression accepted a wrong pledged source size, producing corrupted frames (#4931) - fix: prepared dictionary decompression now rejects matches into formatted dictionary headers (#4991) - fix: on a static DCtx, `ZSTD_DCtx_loadDictionary()` and `ZSTD_DCtx_refPrefix()` return `ZSTD_error_memory_allocation` for nonempty dictionaries (#4914) - fix: wild reads when compressing with large dictionaries whose repcodes point into discarded content (#4915) - 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()` (#4981) - fix: high compression levels read uninitialized statistics with some dictionaries (#4978) - fix: 32-bit multithreaded compression with large windows (#4946, #4948) - fix: 32-bit builds rejected valid dictionary IDs above 4294967176 (#4976) - fix: excessive memory usage with long distance matching and small windows (#4626) - fix: CDict and DDict creation and size estimation reject dictionary sizes that overflow (#4912) - fix: crash when a custom allocator fails (#4613), data race when resizing a thread pool (#4601) - 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 (#4554) - 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 (#4929) - api: disabling experimental `ZSTD_d_refMultipleDDicts` releases every dictionary reference of its set (#4929) - api: removed the deprecated experimental functions `ZSTD_copyCCtx()` and `ZSTD_copyDCtx()` (#4960) - api: promoted `ZSTD_getFrameHeader()` and `ZSTD_FrameHeader` to the stable API (#2471) - 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 (#4975) - api: `ZSTD_DCtx_loadDictionary()` returns `ZSTD_error_dictionary_corrupted…
Share this resource