pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libffi
Module Name: pkgsrc
Committed By: wiz
Date: Sun Nov 15 19:43:20 UTC 2026
Modified Files:
pkgsrc/devel/libffi: Makefile distinfo
Log Message:
libffi: update to 3.8.1.
Security fixes
Each issue is local and high-complexity, and is limited to the target noted
in bold. See the linked advisory for full details and CVSS.
AArch64 — ffi_call placed the pointer to a by-value composite larger
than 16 bytes at the wrong stack offset, and homogeneous-aggregate
(HFA/HVA) detection did not match AAPCS64, so a callee or closure could use
the wrong pointer. (GHSA-h52h-3759-xqm4, GHSA-vg77-j273-647r)
macOS on Apple Silicon (Darwin arm64) — heap use-after-free in the
trampoline-table closure allocator once a process used more than one
trampoline table (over 1024 live closures). (GHSA-23hx-9rxv-9qfp)
Linux and Cygwin (static trampolines) — the /proc/self/maps path was
truncated at the first space and the reopened file was never verified, so a
file at a truncated or replaced path could be mapped as trampoline code.
(GHSA-fq46-69xf-x5gf)
s390x — closures mishandled 128-bit integer arguments, passing an
uninitialized pointer to the callback; they are now passed by reference like
complex types. (GHSA-wf8m-qr3x-cch4)
x86-64 (System V) — vector types whose calling convention is undefined
(sub-8-byte vectors and <1 x double>, where GCC and Clang disagree) were
misclassified; libffi now rejects them with FFI_BAD_TYPEDEF.
(GHSA-5pc3-hr6f-q3mm)
Raw API with static trampolines (notably i386) — raw-API closures passed
the wrong pointer as the handler's data (and the i386 native path corrupted
the closure), causing a wild indirect call. (GHSA-w6j9-w53f-2857)
Bug fixes and ABI conformance
Broader ABI-conformance work and test coverage for complex-number calls,
closures, and small aggregates across ARM, x86, PowerPC, MIPS, RISC-V,
LoongArch, and SPARC.
AArch64 / ARM big-endian — fixed closures receiving garbage sub-word
integer and float arguments, and sub-word and float return values
(#1012, closes #1011, #675).
x86-64 — return a single-long double struct in %st0 like a bare
long double (#1058); copy the upper half of 16-byte vector arguments in
reusable call plans.
powerpc64 — fixed _Complex long double when the ABI's long double is
64 bits (e.g. -mlong-double-64 or musl).
RISC-V — ignore the caller's return buffer for void calls.
MIPS — emit CFI in the N32/N64 assembly so unwinding works through
libffi frames (#1063).
wasm — correct heap accesses at or above 2 GiB (#1062), make closures
work with stack switching, and declare the stack-helper dependencies in
EM_JS_DEPS for newer Emscripten (#1019).
Closures / trampolines (all targets) — fail allocation gracefully when
the page-size lookup fails (#1015) and bound the executable-mmap retry loop
(#1055).
Build and packaging
Keep the bundled dlmalloc symbols static so they cannot clash with an
application's allocator, and emit subsections_via_symbols on Apple
platforms for linker dead-stripping (#1017).
Honor an explicit --enable-docs, respect every --libdir spelling, and
keep CCASFLAGS in sync with CFLAGS (#1060).
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 pkgsrc/devel/libffi/Makefile
cvs rdiff -u -r1.73 -r1.74 pkgsrc/devel/libffi/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libffi/Makefile
diff -u pkgsrc/devel/libffi/Makefile:1.62 pkgsrc/devel/libffi/Makefile:1.63
--- pkgsrc/devel/libffi/Makefile:1.62 Sun Aug 9 05:50:31 2026
+++ pkgsrc/devel/libffi/Makefile Sun Nov 15 19:43:20 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.62 2026/08/09 05:50:31 adam Exp $
+# $NetBSD: Makefile,v 1.63 2026/11/15 19:43:20 wiz Exp $
-DISTNAME= libffi-3.8.0
+DISTNAME= libffi-3.8.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=libffi/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
Index: pkgsrc/devel/libffi/distinfo
diff -u pkgsrc/devel/libffi/distinfo:1.73 pkgsrc/devel/libffi/distinfo:1.74
--- pkgsrc/devel/libffi/distinfo:1.73 Sun Aug 9 05:50:31 2026
+++ pkgsrc/devel/libffi/distinfo Sun Nov 15 19:43:20 2026
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.73 2026/08/09 05:50:31 adam Exp $
+$NetBSD: distinfo,v 1.74 2026/11/15 19:43:20 wiz Exp $
-BLAKE2s (libffi-3.8.0.tar.gz) = aa4e12d61448f32b0d0a33006f2a1319fa1d1bf3898a5b2ba623e53d9e29136f
-SHA512 (libffi-3.8.0.tar.gz) = a259d50f40b5dcde9cb6227bd105761e667290f107553b204a5a6cfdfbf2e6b022ed04be2ea4596da42961d11396125425def3cb67e2844a9eba90b6750c8c39
-Size (libffi-3.8.0.tar.gz) = 1581626 bytes
+BLAKE2s (libffi-3.8.1.tar.gz) = fb8f9ef061eaaccc5a1fb03b042d3c94840d3b77b799e154a6c481a0cdfe70d0
+SHA512 (libffi-3.8.1.tar.gz) = 44370f8779765ac83161d927025c8178919ae30feffaad6cdd2b9f95fd8314ca96d2c75d23d102f4af06e55787ec25ebf3cf35cec6ea6881c16e526b27bec0dc
+Size (libffi-3.8.1.tar.gz) = 1650946 bytes
SHA1 (patch-configure) = d332b665f4f3241da9ce98196dde9d99a9cb632b
SHA1 (patch-configure_host) = a4c99cd0fbbbe0f2c806d662b85a6e2c56b31168
SHA1 (patch-src_aarch64_ffi.c) = e46083e6e6892524868b88dfbcd292f11db036d9
Home |
Main Index |
Thread Index |
Old Index