[med-svn] [Git][med-team/garli][master] 3 commits: Fix NULL-destination sprintf() in ErrorException's formatting Closes: #1133482
Andreas Tille (@tille)
gitlab at salsa.debian.org
Tue Aug 11 07:24:43 BST 2026
Andreas Tille pushed to branch master at Debian Med / garli
Commits:
a27a90e6 by Andreas Tille at 2026-08-11T07:57:55+02:00
Fix NULL-destination sprintf() in ErrorException's formatting Closes: #1133482
- - - - -
9ef52764 by Andreas Tille at 2026-08-11T08:08:49+02:00
d/rules: stick to -std=gnu++14 (also needed for bug #1133482)
- - - - -
9b51dbcf by Andreas Tille at 2026-08-11T08:24:11+02:00
Upload to unstable
- - - - -
4 changed files:
- debian/changelog
- + debian/patches/gcc16.patch
- + debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-garli (2.1-10) UNRELEASED; urgency=medium
+garli (2.1-10) unstable; urgency=medium
* d/watch: version=5
* Standards-Version: 4.7.4 (routine-update)
@@ -6,8 +6,11 @@ garli (2.1-10) UNRELEASED; urgency=medium
* Remove Priority field (cme)
* Drop 'Rules-Requires-Root: no' from d/control (routine-update)
* Set upstream metadata fields: Repository, Repository-Browse.
+ * Fix NULL-destination sprintf() in ErrorException's formatting
+ Closes: #1133482
+ * d/rules: stick to -std=gnu++14 (also needed for bug #1133482)
- -- Andreas Tille <tille at debian.org> Mon, 08 Jun 2026 21:52:37 +0200
+ -- Andreas Tille <tille at debian.org> Tue, 11 Aug 2026 08:09:10 +0200
garli (2.1-9) unstable; urgency=medium
=====================================
debian/patches/gcc16.patch
=====================================
@@ -0,0 +1,18 @@
+Description: Fix NULL-destination sprintf() in ErrorException's formatting
+Author: Andreas Tille <tille at debian.org>
+Bug-Debian: https://bugs.debian.org/1133482
+Last-Update: 2026-08-11
+
+--- a/src/errorexception.h
++++ b/src/errorexception.h
+@@ -94,7 +94,9 @@ class ErrorException{
+ va_end(vl);
+ #else
+ //otherwise negative means a formatting error
+- sprintf(message, "(problem formatting some program output...)");
++ const char *errmsg = "(problem formatting some program output...)";
++ message = new char[strlen(errmsg) + 1];
++ strcpy(message, errmsg);
+ return;
+ #endif
+ }
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+gcc16.patch
=====================================
debian/rules
=====================================
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CXXFLAGS_MAINT_APPEND = -std=gnu++14
include /usr/share/dpkg/default.mk
View it on GitLab: https://salsa.debian.org/med-team/garli/-/compare/dbe0a5015900ad01ee686271439c0e5645f4e6b5...9b51dbcff42cf58eda8a6dc39e9295018cf0fce0
--
View it on GitLab: https://salsa.debian.org/med-team/garli/-/compare/dbe0a5015900ad01ee686271439c0e5645f4e6b5...9b51dbcff42cf58eda8a6dc39e9295018cf0fce0
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260811/e5213228/attachment-0001.htm>
More information about the debian-med-commit
mailing list