public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-SDL2_image] rawhide: Backport fix for CVE-2026-117557
@ 2026-11-13 14:58 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-11-13 14:58 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 14:58 [rpms/mingw-SDL2_image] rawhide: Backport fix for CVE-2026-117557 Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox