public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/libinstpatch] rawhide: Update to 1.1.8 (close RHBZ#2554735)
Date: Mon, 19 Oct 2026 05:50:18 GMT	[thread overview]
Message-ID: <179238901857.1.7216897839461446487.rpms-libinstpatch-a59b521107bf@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/libinstpatch
            Branch : rawhide
            Commit : a59b521107bf6daf83c1cd25dad093ad007e166b
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-10-19T06:49:33+01:00
            Stats  : +44/-41 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/libinstpatch/c/a59b521107bf6daf83c1cd25dad093ad007e166b?branch=rawhide

            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 2a7f52d..230cd76 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
-
 BuildSystem:    cmake
 BuildOption(conf): -DGTKDOC_ENABLED:BOOL=ON
 BuildOption(conf): -DINTROSPECTION_ENABLED:BOOL=%{with introspection}
@@ -63,6 +63,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
@@ -125,6 +132,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
+
 
 %files
 %license COPYING

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

                 reply	other threads:[~2026-10-19  5:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179238901857.1.7216897839461446487.rpms-libinstpatch-a59b521107bf@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox