public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libinstpatch] epel10.2: Update to 1.1.8 (close RHBZ#2554735)
@ 2026-10-19 10:10 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-19 10:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libinstpatch
Branch : epel10.2
Commit : 016dc3144fc43fca7967f764bc83b3a1df2b72ad
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-19T07:59:28+01:00
Stats : +44/-41 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/libinstpatch/c/016dc3144fc43fca7967f764bc83b3a1df2b72ad?branch=epel10.2
Log:
Update to 1.1.8 (close RHBZ#2554735)
- Build and run the new test app as a smoke test
---
diff --git a/87.patch b/87.patch
deleted file mode 100644
index 3cdd3b1..0000000
--- a/87.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From b8a6ff845d3d8a6b947567118d8ea4201759a964 Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Sat, 17 Oct 2026 08:48:04 +0100
-Subject: [PATCH] Fix for CVE-2026-111136
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Based on the “short term” fix proposed by @Haind03 (HaiND) in
-https://hackmd.io/@haind-pwn/cve-2026-111136-libinstpatch-sf2-generator-id-oob-write#Fix.
----
- libinstpatch/IpatchSF2Gen.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/libinstpatch/IpatchSF2Gen.c b/libinstpatch/IpatchSF2Gen.c
-index 1a4246ff..677a6731 100644
---- a/libinstpatch/IpatchSF2Gen.c
-+++ b/libinstpatch/IpatchSF2Gen.c
-@@ -191,7 +191,11 @@ _ipatch_sf2_gen_deinit (void)
- gboolean
- ipatch_sf2_gen_is_valid(guint genid, IpatchSF2GenPropsType propstype)
- {
-- if(genid == IPATCH_SF2_GEN_SAMPLE_MODES
-+ if(genid >= IPATCH_SF2_GEN_COUNT)
-+ {
-+ return (FALSE);
-+ }
-+ else if(genid == IPATCH_SF2_GEN_SAMPLE_MODES
- && propstype == IPATCH_SF2_GEN_PROPS_INST_GLOBAL)
- {
- return (FALSE);
diff --git a/libinstpatch.spec b/libinstpatch.spec
index 0cc13ff..4c3f0aa 100644
--- a/libinstpatch.spec
+++ b/libinstpatch.spec
@@ -3,8 +3,16 @@
# Since this has never worked, we do not have %%files entries for the result.
%bcond introspection 0
+%bcond ctest 1
+# List copied from gcc.spec
+# Current as of 16.0.1 (line 83)
+# Note that asan is available on all Fedora primary architectures.
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
+%global arch_has_asan 1
+%endif
+
Name: libinstpatch
-Version: 1.1.7
+Version: 1.1.8
%global api_version 1.0
%global so_version 2
Release: %autorelease
@@ -38,14 +46,6 @@ SourceLicense: %{license} AND GPL-2.0-only
%global forgeurl https://github.com/swami/libinstpatch
Source: %{forgeurl}/archive/v%{version}/libinstpatch-%{version}.tar.gz
-# Fix for CVE-2026-111136
-# https://github.com/swami/libinstpatch/pull/87
-# https://github.com/swami/libinstpatch/issues/86
-# https://www.cve.org/CVERecord?id=CVE-2026-111136
-# https://bugzilla.redhat.com/show_bug.cgi?id=2554067
-# https://bugzilla.redhat.com/show_bug.cgi?id=2554068
-Patch: %{forgeurl}/pull/87.patch
-
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: ninja-build
@@ -60,6 +60,13 @@ BuildRequires: pkgconfig(gtk-doc)
# INTROSPECTION_ENABLED
BuildRequires: pkgconfig(gobject-introspection-1.0)
%endif
+%if %{with ctest}
+# Test app loads hard-coded path /usr/share/soundfonts/FluidR3_GM.sf2
+BuildRequires: fluid-soundfont-gm
+%if 0%{?arch_has_asan}
+BuildRequires: libasan
+%endif
+%endif
# This is a forked copy:
# Changed so as no longer to depend on Colin Plumb's `usual.h' header
@@ -124,6 +131,33 @@ libinstpatch.
# Remove example for nonexistent Python bindings
find examples -type f -name '*.py' -print -delete
+# -Werror and similar make sense for upstream CI, but are too strict for
+# downstream packaging with various compiler and dependency versions
+sed --regexp-extended --in-place \
+ 's/([" ])-Wfatal-errors([" ])/\1\2/' CMakeLists.txt
+
+
+%if %{with ctest}
+%build -a
+# There are no tests that can be run with ctest, but we can build a sample
+# application that loads a soundfont from a hard-coded path. There is a
+# test-app/Makefile, but the details are rigid and don’t fit well with our
+# build process; it’s easier to do this manually.
+mkdir --parents %{_vpath_builddir}/test-app
+${CC} -c test-app/src/main.c -o %{_vpath_builddir}/test-app/main.o \
+ ${CFLAGS} %{?arch_has_asan:-fsanitize=address} -I%{_vpath_builddir} -I. \
+ $(pkg-config --cflags glib-2.0 gobject-2.0)
+${CC} -o %{_vpath_builddir}/test-app/test_instpa_a \
+ %{_vpath_builddir}/test-app/main.o %{?arch_has_asan:-fsanitize=address} \
+ ${LDFLAGS} -L%{_vpath_builddir}/libinstpatch \
+ -linstpatch-%{api_version} $(pkg-config --libs glib-2.0 gobject-2.0)
+
+
+%check
+LD_LIBRARY_PATH=%{_vpath_builddir}/libinstpatch \
+ %{_vpath_builddir}/test-app/test_instpa_a
+%endif
+
%conf
%cmake \
diff --git a/sources b/sources
index d290d53..89a2fec 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libinstpatch-1.1.7.tar.gz) = 56ed170ac010a1db4e38117d5ac4d88a299332a42eb9c439cb31b58d8ca061e24e31e0682e453f8227f97b715f082d64f8c2534f8adde0500f39a2403a2c4173
+SHA512 (libinstpatch-1.1.8.tar.gz) = 34b6b651fc6f37a1749722438820c8a988438bb5acdcbae59d2379617dde79f76221a02b3c888619941af69baa42125b7e57a0feec97af91d5d75e60b958cb03
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 10:10 [rpms/libinstpatch] epel10.2: Update to 1.1.8 (close RHBZ#2554735) Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox