public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/ags] rawhide: update to 3.6.2.22 (resolves rhbz#2558938)
Date: Mon, 26 Oct 2026 22:13:59 GMT [thread overview]
Message-ID: <179305283978.1.15574145179542331646.rpms-ags-0fd073226f66@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ags
Branch : rawhide
Commit : 0fd073226f6691925cfb78020461b1d810a7c115
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2026-10-26T22:18:02+01:00
Stats : +79/-2 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/ags/c/0fd073226f6691925cfb78020461b1d810a7c115?branch=rawhide
Log:
update to 3.6.2.22 (resolves rhbz#2558938)
- backport patch for CVE-2026-95512 to bundled freetype (resolves rhbz#2544963)
- backport upstream formatting error fix
---
diff --git a/ags-format-error.patch b/ags-format-error.patch
new file mode 100644
index 0000000..dd8b4b2
--- /dev/null
+++ b/ags-format-error.patch
@@ -0,0 +1,24 @@
+diff -up ags-3.6.2.22/Compiler/preproc/preprocessor.cpp.cc_error ags-3.6.2.22/Compiler/preproc/preprocessor.cpp
+--- ags-3.6.2.22/Compiler/preproc/preprocessor.cpp.cc_error 2026-10-21 22:10:28.000000000 +0200
++++ ags-3.6.2.22/Compiler/preproc/preprocessor.cpp 2026-10-26 22:17:10.861509597 +0100
+@@ -152,7 +152,7 @@ namespace Preprocessor {
+ // 'currentline' and 'ccCurScriptName' are current
+ currentline = _lineNumber;
+ ccCurScriptName = _scriptName.GetCStr();
+- cc_error(msg.GetCStr());
++ cc_error("%s", msg.GetCStr());
+ }
+
+ void Preprocessor::ProcessConditionalDirective(String &directive, String &line)
+diff -up ags-3.6.2.22/Compiler/script/cs_parser.cpp.cc_error ags-3.6.2.22/Compiler/script/cs_parser.cpp
+--- ags-3.6.2.22/Compiler/script/cs_parser.cpp.cc_error 2026-10-21 22:10:28.000000000 +0200
++++ ags-3.6.2.22/Compiler/script/cs_parser.cpp 2026-10-26 22:16:31.344533508 +0100
+@@ -635,7 +635,7 @@ int accept_literal_or_constant_value(int
+ }
+ }
+ else {
+- cc_error((char*)errorMsg);
++ cc_error("%s", errorMsg);
+ return -1;
+ }
+ return 0;
diff --git a/ags-freetype-CVE-2026-95512.patch b/ags-freetype-CVE-2026-95512.patch
new file mode 100644
index 0000000..1f7ecdb
--- /dev/null
+++ b/ags-freetype-CVE-2026-95512.patch
@@ -0,0 +1,42 @@
+From 6df90bfa5cc6e0b4f768c18f890dcc049477d594 Mon Sep 17 00:00:00 2001
+From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
+Date: Mon, 26 Oct 2026 18:40:29 +0100
+Subject: [PATCH] freetype 2.1.3: Limit subroutine dictionary overlaps
+
+Cherry-Picked-From: f3ca71c9900fe860849b3163a6e2c1e765b291d9
+
+Fixes: CVE-2026-95512
+---
+ Common/libsrc/freetype-2.1.3/src/cid/cidload.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/Common/libsrc/freetype-2.1.3/src/cid/cidload.c b/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
+index 19cfab50f..ed21bc508 100644
+--- a/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
++++ b/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
+@@ -395,6 +395,7 @@
+ CID_Subrs subr;
+ FT_UInt max_offsets = 0;
+ FT_ULong* offsets = 0;
++ FT_ULong cum_len = 0;
+
+
+ if ( FT_NEW_ARRAY( face->subrs, cid->num_dicts ) )
+@@ -436,6 +437,14 @@
+ /* now, compute the size of subrs charstrings, */
+ /* allocate, and read them */
+ data_len = offsets[num_subrs] - offsets[0];
++ cum_len += data_len;
++
++ if ( cum_len / 4 > stream->size )
++ {
++ FT_ERROR(( "cid_read_subrs: excessive overlaps\n" ));
++ error = CID_Err_Invalid_File_Format;
++ goto Fail;
++ }
+
+ if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
+ FT_ALLOC( subr->code[0], data_len ) )
+--
+2.56.0
+
diff --git a/ags.spec b/ags.spec
index 62e3756..e3fbddb 100644
--- a/ags.spec
+++ b/ags.spec
@@ -6,12 +6,16 @@
Name: ags
Summary: Engine for creating and running videogames of adventure (quest) genre
-Version: 3.6.2.21
+Version: 3.6.2.22
URL: http://www.adventuregamestudio.co.uk/site/ags/
Release: 1%{?dist}
Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz
Patch0: ags-use-system-libraries.patch
Patch1: ags-build-tests-with-cxx17.patch
+# backport patch for CVE-2026-95512 to bundled freetype
+Patch2: ags-freetype-CVE-2026-95512.patch
+# fix compilation error from https://github.com/adventuregamestudio/ags/commit/713b8bb673fdf4383d0b7fa4f15e021df8e0affb
+Patch3: ags-format-error.patch
# Most code is under Artistic-2.0, except:
# Common/libsrc/aastr-0.1.1: LicenseRef-Fedora-UltraPermissive
# Common/libsrc/alfont-2.0.9: FTL
@@ -79,6 +83,8 @@ This package contains the AGS engine game development tools.
%setup -q
%patch 0 -p1 -b .orig
%patch 1 -p1 -b .cxx17
+%patch 2 -p1 -b .CVE-2026-95512
+%patch 3 -p1 -b .cc_error
# delete unused bundled stuff
pushd Common/libinclude
rm -r ogg
@@ -147,6 +153,11 @@ mv Changes.txt.utf-8 Changes.txt
%{_bindir}/trac
%changelog
+* Mon Oct 26 2026 Dominik Mierzejewski <dominik@greysector.net> - 3.6.2.22-1
+- update to 3.6.2.22 (resolves rhbz#2558938)
+- backport patch for CVE-2026-95512 to bundled freetype (resolves rhbz#2544963)
+- backport upstream formatting error fix
+
* Sun Aug 02 2026 Dominik Mierzejewski <dominik@greysector.net> - 3.6.2.21-1
- update to 3.6.2.20 (resolves rhbz#2510056)
diff --git a/sources b/sources
index 27a8f3a..30d255a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ags-v3.6.2.21.tar.gz) = 41df25155f0cca9d24d776250190046098b518dc2b95165af8e8027c2645fbca0690ee35cf6ab9f6cb013630f39bd5f1d3af4c2876e2a80e26fa31226aab6d6e
+SHA512 (ags-v3.6.2.22.tar.gz) = d306368a97bbe0cae5171e27bd983992f7a6c61d323cfc3acd23073861eb8beed482af06b2bdf904bdc523e11350652c1a561f943f9f1b27596cb8367c3d482b
reply other threads:[~2026-10-26 22:13 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=179305283978.1.15574145179542331646.rpms-ags-0fd073226f66@fedoraproject.org \
--to=dominik@greysector.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