On 2026/11/24 05:43, Bjorn Ketelaars wrote:
> Diff below updates archivers/zstd to 1.6.0.
> 
> This release addresses multiple memory-safety issues and includes a fix
> for CVE-2026-124851. Full changelog:
> https://github.com/facebook/zstd/releases/tag/v1.6.0
> 
> Notable changes:
> - Fix CVE-2026-124851 along with several out-of-bounds read/write,
>   use-after-free, and uninitialized memory issues.
> - Promote several frame header and dictionary functions to the stable
>   API.
> 
> SHARED_LIBS major bump is required because the deprecated experimental
> functions ZSTD_copyCCtx() and ZSTD_copyDCtx() were removed (#4960).

They were already marked deprecated with a warning; this doesn't show up
in ports build logs.

> Bringing this update to -stable is not doable because of the major
> SHARED_LIBS bump. I will look into backporting #5023 to -stable
> separately.
> 
> Passes 'make test' and lightly run-tested on amd64. Given that >100
> ports depend on zstd, is anyone willing to take this along in a bulk
> build?

I don't think there's likely to be an issue, and we can fix if we run
into it.

OK


> 
> diff --git Makefile Makefile
> index 3fbde626300..ca996742a68 100644
> --- Makefile
> +++ Makefile
> @@ -1,10 +1,9 @@
>  COMMENT =            zstandard fast real-time compression algorithm
>  
> -V =                  1.5.7
> -REVISION =           0
> +V =                  1.6.0
>  DISTNAME =           zstd-${V}
>  
> -SHARED_LIBS =                zstd    7.0     # 1.5.7
> +SHARED_LIBS =                zstd    8.0     # 1.6.0
>  
>  CATEGORIES =         archivers
>  
> diff --git distinfo distinfo
> index a9325949fbf..96b33bbd26b 100644
> --- distinfo
> +++ distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (zstd-1.5.7.tar.gz) = 6zPlH0mhXgI5UM14Jcp0pKK0Pbg1SCWsJPwbfuCeb6M=
> -SIZE (zstd-1.5.7.tar.gz) = 2434947
> +SHA256 (zstd-1.6.0.tar.gz) = K6WZrioleXYnjn5x6ZhDOjh7/Riqe3hngin9XYT16bg=
> +SIZE (zstd-1.6.0.tar.gz) = 2564432
> diff --git patches/patch-lib_libzstd_mk patches/patch-lib_libzstd_mk
> index d853a6303ce..4f220b1330d 100644
> --- patches/patch-lib_libzstd_mk
> +++ patches/patch-lib_libzstd_mk
> @@ -3,7 +3,7 @@ Some compilers don't have -Wvla.
>  Index: lib/libzstd.mk
>  --- lib/libzstd.mk.orig
>  +++ lib/libzstd.mk
> -@@ -113,7 +113,7 @@ endif
> +@@ -109,7 +109,7 @@ endif
>   DEBUGFLAGS= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
>               -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement 
> \
>               -Wstrict-prototypes -Wundef -Wpointer-arith \
> 

Reply via email to