pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/archivers/zstd



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Nov 24 09:23:24 UTC 2026

Modified Files:
        pkgsrc/archivers/zstd: Makefile Makefile.common distinfo
        pkgsrc/archivers/zstd/patches: patch-Makefile patch-lib_Makefile
            patch-lib_decompress_huf__decompress__amd64.S
Removed Files:
        pkgsrc/archivers/zstd/patches: patch-programs_fileio.c

Log Message:
zstd: update to 1.6.0.

v1.6.0 (Nov 2026)
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` for a corrupted dictionary, instead of `ZSTD_error_memory_allocation` (#4925)
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()` (#4937)
api: new experimental `ZSTD_isDeterministicBuild()` (#4331)
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` (#4350)
cli: `-B#` renamed `--jobsize=#`, and benchmark `--blocksize=#` renamed `--split=#`; old names remain supported (#4329)
cli: `--filelist=` supports process substitution (#4349)
cli: size arguments accept `G`, `GB` and `GiB` suffixes (#4609), by @Integral-Tech
cli: `--memory=` also limits `.xz` and `.lzma` decompression (#4903)
cli: benchmark mode uses 1 thread by default (#4475)
cli: warn when multiple threads are requested for decompression (#4335)
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, #5009)
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 (#4833)
cli: fix `--memlimit-decompress=` parsing (#4916), `--adapt` bounds (#4982), `--patch-from` with an empty file (#4896), `--check` with `--format=lz4` (#5011)
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 (#4967)
zdict: fix out-of-bounds reads with small training sets (#4690, #4710, #4922), and COVER results no longer depend on memory addresses (#4765)
contrib: seekable_format: fix out-of-bounds reads, infinite loops and error recovery on malformed seek tables (#4712, #4717, #4902, #4941, #4942, #4958)
contrib: zlibWrapper: no longer writes an empty gzip member after `Z_FINISH` (#4818)
build: `ZSTD_LEGACY_SUPPORT` defaults to `0` in all build systems (#4554, #4781)
build: root `CMakeLists.txt` wrapper (#4491)
build: cmake: C++ only required for tests (#4357), ASM only enabled when needed (#4504), separate export groups (#4494), static API visibility applied to the shared library (#4789), Android build 
(#4447)
build: fix cmake with clang-cl (#4810, #4972),
build: fix meson on Windows (#4322), duplicate `LC_RPATH` on macOS 15.4+ (#4371), Swift module map (#4531), musl (#4336), OpenBSD and NetBSD (#4463)
build: meson calls `meson.override_dependency()` (#4472), by @bgilbert
build: Windows release binaries support lz4 (#4327), and new Windows ARM64 binaries (#4465)
portability: RISC-V 64-bit detection (#4525)
doc: clarified `Block_Maximum_Size` in the format specification


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 pkgsrc/archivers/zstd/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/archivers/zstd/Makefile.common
cvs rdiff -u -r1.39 -r1.40 pkgsrc/archivers/zstd/distinfo
cvs rdiff -u -r1.13 -r1.14 pkgsrc/archivers/zstd/patches/patch-Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/archivers/zstd/patches/patch-lib_Makefile
cvs rdiff -u -r1.4 -r1.5 \
    pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S
cvs rdiff -u -r1.1 -r0 pkgsrc/archivers/zstd/patches/patch-programs_fileio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/zstd/Makefile
diff -u pkgsrc/archivers/zstd/Makefile:1.54 pkgsrc/archivers/zstd/Makefile:1.55
--- pkgsrc/archivers/zstd/Makefile:1.54 Sun Nov  1 13:07:16 2026
+++ pkgsrc/archivers/zstd/Makefile      Tue Nov 24 09:23:23 2026
@@ -1,6 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2026/11/01 13:07:16 wiz Exp $
-
-PKGREVISION=   1
+# $NetBSD: Makefile,v 1.55 2026/11/24 09:23:23 wiz Exp $
 
 .include "Makefile.common"
 

Index: pkgsrc/archivers/zstd/Makefile.common
diff -u pkgsrc/archivers/zstd/Makefile.common:1.2 pkgsrc/archivers/zstd/Makefile.common:1.3
--- pkgsrc/archivers/zstd/Makefile.common:1.2   Sun Nov  1 13:08:12 2026
+++ pkgsrc/archivers/zstd/Makefile.common       Tue Nov 24 09:23:23 2026
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile.common,v 1.2 2026/11/01 13:08:12 wiz Exp $
+# $NetBSD: Makefile.common,v 1.3 2026/11/24 09:23:23 wiz Exp $
 # used by archivers/zstdgrep/Makefile
 
-DISTNAME=      zstd-1.5.7
+DISTNAME=      zstd-1.6.0
 CATEGORIES=    archivers
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=facebook/}
 GITHUB_PROJECT=        zstd

Index: pkgsrc/archivers/zstd/distinfo
diff -u pkgsrc/archivers/zstd/distinfo:1.39 pkgsrc/archivers/zstd/distinfo:1.40
--- pkgsrc/archivers/zstd/distinfo:1.39 Mon Nov  9 15:54:56 2026
+++ pkgsrc/archivers/zstd/distinfo      Tue Nov 24 09:23:23 2026
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.39 2026/11/09 15:54:56 wiz Exp $
+$NetBSD: distinfo,v 1.40 2026/11/24 09:23:23 wiz Exp $
 
-BLAKE2s (zstd-1.5.7.tar.gz) = eb293ab7578d2ce89a6b7de7c0aa57146d8005091e6e6f39c5eacb3a8d080431
-SHA512 (zstd-1.5.7.tar.gz) = 26e441267305f6e58080460f96ab98645219a90d290a533410b1b0b1d2f870721c95f8384e342ee647c5e968385a5b7e30c2d04340c37f59b3e6d86762c3260c
-Size (zstd-1.5.7.tar.gz) = 2451884 bytes
-SHA1 (patch-Makefile) = 191425fc04c43161710c3bb03f34047e2827b327
-SHA1 (patch-lib_Makefile) = 22ce3c9d44e230777075de29cc9f6d2cf110e027
-SHA1 (patch-lib_decompress_huf__decompress__amd64.S) = c611ff04f2123118a4381867e4d6bf570f4b5a28
-SHA1 (patch-programs_fileio.c) = 6c6aac2a2d223069eeaedec3ab2f803c022edf88
+BLAKE2s (zstd-1.6.0.tar.gz) = 5eb6b34eed5a90fb53490d1e23838667ec13020a5f7782d6d36a40e8ba08d70f
+SHA512 (zstd-1.6.0.tar.gz) = da2c039eae103c6c4d1be89601af5a097b46d1598d4b749fe10903b78c5eb797c820869eaa2ef4f4694e70d5f01a44621cd2a0a12050ef69b3e0e4b7e3fcc309
+Size (zstd-1.6.0.tar.gz) = 2583537 bytes
+SHA1 (patch-Makefile) = 88ea121bc21bf5148dcbd992cfb67c09557822fc
+SHA1 (patch-lib_Makefile) = de0fd818eeec3ef641311f95042dc70f9d852594
+SHA1 (patch-lib_decompress_huf__decompress__amd64.S) = dada970ea7c9242bff9ef583636d246d44090758
 SHA1 (patch-tests_Makefile) = b4aa7bd0bf1b3e7df231a32dadc6cce4ab78ac9e
 SHA1 (patch-zlibWrapper_examples_minigzip.c) = 4ed0cb648bdd6efa61b3f66ba6eb1ea74b7767ec

Index: pkgsrc/archivers/zstd/patches/patch-Makefile
diff -u pkgsrc/archivers/zstd/patches/patch-Makefile:1.13 pkgsrc/archivers/zstd/patches/patch-Makefile:1.14
--- pkgsrc/archivers/zstd/patches/patch-Makefile:1.13   Thu Feb 20 08:10:34 2025
+++ pkgsrc/archivers/zstd/patches/patch-Makefile        Tue Nov 24 09:23:23 2026
@@ -1,20 +1,20 @@
-$NetBSD: patch-Makefile,v 1.13 2025/02/20 08:10:34 adam Exp $
+$NetBSD: patch-Makefile,v 1.14 2026/11/24 09:23:23 wiz Exp $
 
 Enable the "install" target on all OS.
 
---- Makefile.orig      2025-02-19 00:04:24.000000000 +0000
+--- Makefile.orig      2026-11-24 09:17:15.296770133 +0000
 +++ Makefile
-@@ -147,7 +147,6 @@ clean:
+@@ -150,7 +150,6 @@ include $(LIBZSTD_MK_DIR)/install_oses.mk # UNAME, INS
  #------------------------------------------------------------------------------
  # make install is validated only for Linux, macOS, Hurd and some BSD targets
  #------------------------------------------------------------------------------
--ifneq (,$(filter Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT% CYGWIN_NT% Haiku AIX,$(shell sh -c 'MSYSTEM="MSYS" uname') ))
+-ifneq (,$(filter $(INSTALL_OS_LIST),$(UNAME)))
  
  HOST_OS = POSIX
  
-@@ -383,7 +382,6 @@ clang38install:
- lz4install:
-       [ -e lz4 ] || git clone https://github.com/lz4/lz4 && sudo $(MAKE) -C lz4 install
+@@ -385,7 +384,6 @@ clang38install:
+ clang38install:
+       APT_PACKAGES="clang-3.8" $(MAKE) apt-install
  
 -endif
  

Index: pkgsrc/archivers/zstd/patches/patch-lib_Makefile
diff -u pkgsrc/archivers/zstd/patches/patch-lib_Makefile:1.16 pkgsrc/archivers/zstd/patches/patch-lib_Makefile:1.17
--- pkgsrc/archivers/zstd/patches/patch-lib_Makefile:1.16       Thu Feb 20 08:10:34 2025
+++ pkgsrc/archivers/zstd/patches/patch-lib_Makefile    Tue Nov 24 09:23:23 2026
@@ -1,13 +1,13 @@
-$NetBSD: patch-lib_Makefile,v 1.16 2025/02/20 08:10:34 adam Exp $
+$NetBSD: patch-lib_Makefile,v 1.17 2026/11/24 09:23:23 wiz Exp $
 
 Detect and use third-party libraries (taken from programs/Makefile).
 -fvisibility=hidden makes error when linking.
 Enable the "install" target on all OS.
 Fix pkgconfig installation path.
 
---- lib/Makefile.orig  2025-02-19 00:04:24.000000000 +0000
+--- lib/Makefile.orig  2026-11-23 22:40:52.000000000 +0000
 +++ lib/Makefile
-@@ -71,6 +71,43 @@ decompress/zstd_decompress_block.o : CFL
+@@ -71,6 +71,43 @@ endif
  endif
  
  
@@ -55,11 +55,11 @@ Fix pkgconfig installation path.
  #-----------------------------------------------------------------------------
  # make install is validated only for below listed environments
  #-----------------------------------------------------------------------------
--ifneq (,$(filter Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku AIX MSYS_NT% CYGWIN_NT%,$(UNAME)))
+-ifneq (,$(filter $(INSTALL_OS_LIST),$(UNAME)))
  
  lib: libzstd.pc
  
-@@ -307,11 +343,7 @@ else
+@@ -307,11 +343,7 @@ endif
    PCLIB := $(LDFLAGS_DYNLIB)
  endif
  

Index: pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S
diff -u pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S:1.4 pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S:1.5
--- pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S:1.4     Mon Nov  9 15:54:56 2026
+++ pkgsrc/archivers/zstd/patches/patch-lib_decompress_huf__decompress__amd64.S Tue Nov 24 09:23:23 2026
@@ -1,9 +1,9 @@
-$NetBSD: patch-lib_decompress_huf__decompress__amd64.S,v 1.4 2026/11/09 15:54:56 wiz Exp $
+$NetBSD: patch-lib_decompress_huf__decompress__amd64.S,v 1.5 2026/11/24 09:23:23 wiz Exp $
 
 Move the stack marking stuff inside the ifdef, as it doesn't necessarily
 work on non-amd64.
 
---- lib/decompress/huf_decompress_amd64.S.orig 2025-02-19 00:04:24.000000000 +0000
+--- lib/decompress/huf_decompress_amd64.S.orig 2026-11-23 22:40:52.000000000 +0000
 +++ lib/decompress/huf_decompress_amd64.S
 @@ -10,6 +10,7 @@
  
@@ -13,9 +13,9 @@ work on non-amd64.
  #if defined(__ELF__) && defined(__GNUC__)
  /* Stack marking
   * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
-@@ -37,8 +38,6 @@
- #endif
- 
+@@ -47,8 +48,6 @@
+ #else
+ #define LOCAL_LABEL(label) .L_ ## label
  #endif
 -
 -#if ZSTD_ENABLE_ASM_X86_64_BMI2



Home | Main Index | Thread Index | Old Index