public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-SDL2_image] rawhide: Backport fix for CVE-2026-117557
Date: Fri, 13 Nov 2026 14:58:46 GMT [thread overview]
Message-ID: <179458192694.1.14958889656756730320.rpms-mingw-SDL2_image-9d8090708e16@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mingw-SDL2_image
Branch : rawhide
Commit : 9d8090708e161f0047da1c1633b2e7f3e1b91b1e
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-11-13T15:58:33+01:00
Stats : +22/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-SDL2_image/c/9d8090708e161f0047da1c1633b2e7f3e1b91b1e?branch=rawhide
Log:
Backport fix for CVE-2026-117557
---
diff --git a/5cfbe85f3a783417eec4d5aa0660b40c2cff5292.patch b/5cfbe85f3a783417eec4d5aa0660b40c2cff5292.patch
new file mode 100644
index 0000000..e478d61
--- /dev/null
+++ b/5cfbe85f3a783417eec4d5aa0660b40c2cff5292.patch
@@ -0,0 +1,16 @@
+diff -rupN --no-dereference SDL2_image-2.8.12/src/IMG_lbm.c SDL2_image-2.8.12-new/src/IMG_lbm.c
+--- SDL2_image-2.8.12/src/IMG_lbm.c 2026-04-06 20:42:20.000000000 +0200
++++ SDL2_image-2.8.12-new/src/IMG_lbm.c 2026-11-13 15:58:19.664410729 +0100
+@@ -233,8 +233,10 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *
+ nbplanes = bmhd.planes;
+
+ /* Sanity check: nbplanes must not exceed 8 for paletted images.
+- Higher values cause 1<<nbplanes to exceed the 256-entry palette. */
+- if ( !pbm && nbplanes > 8 && nbplanes != 24 && flagHAM == 0 ) {
++ Higher values cause 1<<nbplanes to exceed the 256-entry palette.
++ For HAM, only 6 (HAM6) and 8 (HAM8) are valid. */
++ const bool validHAM = (flagHAM && (nbplanes == 6 || nbplanes == 8));
++ if ( !pbm && nbplanes > 8 && nbplanes != 24 && !validHAM ) {
+ SDL_SetError("LBM: invalid number of bitplanes (%u)", nbplanes);
+ goto done;
+ }
diff --git a/mingw-SDL2_image.spec b/mingw-SDL2_image.spec
index 33e01ff..dd5b651 100644
--- a/mingw-SDL2_image.spec
+++ b/mingw-SDL2_image.spec
@@ -2,12 +2,14 @@
Name: mingw-SDL2_image
Version: 2.8.12
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows port of the Image loading library for SDL2
License: LGPL-2.0-or-later
URL: https://github.com/libsdl-org/SDL_image
Source0: https://github.com/libsdl-org/SDL_image/releases/download/release-%{version}/SDL2_image-%{version}.tar.gz
+# Backport fix for CVE-2026-117557
+Patch0: https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292.patch
BuildArch: noarch
@@ -106,6 +108,9 @@ find %{buildroot} -name "*.la" -delete
%changelog
+* Fri Nov 13 2026 Sandro Mani <manisandro@gmail.com> - 2.8.12-3
+- Backport fix for CVE-2026-117557
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-11-13 14:58 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=179458192694.1.14958889656756730320.rpms-mingw-SDL2_image-9d8090708e16@fedoraproject.org \
--to=manisandro@gmail.com \
--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