public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eray Aslan" <eras@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailutils/, net-mail/mailutils/files/
Date: Fri, 25 Apr 2025 06:50:35 +0000 (UTC)	[thread overview]
Message-ID: <1745563755.53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467.eras@gentoo> (raw)

commit:     53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467
Author:     Eray Aslan <eras <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 25 06:49:15 2025 +0000
Commit:     Eray Aslan <eras <AT> gentoo <DOT> org>
CommitDate: Fri Apr 25 06:49:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b9b6ab

net-mail/mailutils: fix -Wformat-security

Closes: https://bugs.gentoo.org/953393
Signed-off-by: Eray Aslan <eras <AT> gentoo.org>

 .../files/mailutils-3.19-format-security.patch     | 36 ++++++++++++++++++++++
 net-mail/mailutils/mailutils-3.19.ebuild           |  1 +
 2 files changed, 37 insertions(+)

diff --git a/net-mail/mailutils/files/mailutils-3.19-format-security.patch b/net-mail/mailutils/files/mailutils-3.19-format-security.patch
new file mode 100644
index 000000000000..2c49817a3b11
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-3.19-format-security.patch
@@ -0,0 +1,36 @@
+From 9379ec9e25ae6bdbd3d6f5ef9930ac2176d2efe7 Mon Sep 17 00:00:00 2001
+From: Jordi Mallach <jordi@mallach.net>
+Date: Wed, 5 Mar 2025 12:13:06 +0100
+Subject: Fix missing format arguments for builds with -Wformat-security
+
+libmailutils/diag/debug.c (mu_debug_format_spec): Add missing "%s" to
+printf to avoid triggering -Wformat-security.
+---
+ libmailutils/diag/debug.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libmailutils/diag/debug.c b/libmailutils/diag/debug.c
+index 2a1b52e..84c921a 100644
+--- a/libmailutils/diag/debug.c
++++ b/libmailutils/diag/debug.c
+@@ -511,7 +511,7 @@ mu_debug_format_spec (mu_stream_t str, const char *names, int flags)
+ 	{
+ 	  if (delim)
+ 	    {
+-	      rc = mu_stream_printf (str, delim);
++	      rc = mu_stream_printf (str, "%s", delim);
+ 	      if (rc)
+ 		break;
+ 	    }
+@@ -564,7 +564,7 @@ mu_debug_format_spec (mu_stream_t str, const char *names, int flags)
+ 	{
+ 	  if (delim)
+ 	    {
+-	      rc = mu_stream_printf (str, delim);
++	      rc = mu_stream_printf (str, "%s", delim);
+ 	      if (rc)
+ 		break;
+ 	    }
+-- 
+cgit v1.1
+

diff --git a/net-mail/mailutils/mailutils-3.19.ebuild b/net-mail/mailutils/mailutils-3.19.ebuild
index 2e1a21f4002f..e00a959d2338 100644
--- a/net-mail/mailutils/mailutils-3.19.ebuild
+++ b/net-mail/mailutils/mailutils-3.19.ebuild
@@ -63,6 +63,7 @@ REQUIRED_USE="
 DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO )
 PATCHES=(
 	"${FILESDIR}"/${PN}-3.5-add-include.patch
+	"${FILESDIR}"/${PN}-3.19-format-security.patch
 )
 
 pkg_setup() {


             reply	other threads:[~2025-04-25  6:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-25  6:50 Eray Aslan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-11 20:24 [gentoo-commits] repo/gentoo:master commit in: net-mail/mailutils/, net-mail/mailutils/files/ Eray Aslan
2025-01-07 13:58 Eray Aslan
2022-05-19 16:35 Eray Aslan
2021-05-31 21:00 Michał Górny
2020-08-28  5:43 Eray Aslan
2020-05-13  6:51 Eray Aslan
2020-02-23 14:09 David Seifert
2019-11-08  9:22 Eray Aslan
2019-02-26 14:54 Eray Aslan
2019-02-26 14:37 Eray Aslan
2017-10-19  8:02 Eray Aslan
2017-04-07 14:10 Anthony G. Basile
2015-12-24  7:44 Eray Aslan

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=1745563755.53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467.eras@gentoo \
    --to=eras@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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