From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51A331584AD for ; Fri, 25 Apr 2025 06:50:38 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 36CAA342FE0 for ; Fri, 25 Apr 2025 06:50:38 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 17BDA1104B7; Fri, 25 Apr 2025 06:50:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 0BFF31104B7 for ; Fri, 25 Apr 2025 06:50:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A2A5F33BF29 for ; Fri, 25 Apr 2025 06:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A658133B for ; Fri, 25 Apr 2025 06:50:35 +0000 (UTC) From: "Eray Aslan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eray Aslan" Message-ID: <1745563755.53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467.eras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailutils/, net-mail/mailutils/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/mailutils/files/mailutils-3.19-format-security.patch net-mail/mailutils/mailutils-3.19.ebuild X-VCS-Directories: net-mail/mailutils/files/ net-mail/mailutils/ X-VCS-Committer: eras X-VCS-Committer-Name: Eray Aslan X-VCS-Revision: 53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467 X-VCS-Branch: master Date: Fri, 25 Apr 2025 06:50:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c3e28dac-a7df-49a1-88fb-6eb41cc0eed2 X-Archives-Hash: 27d288ee1079f001ae512cc90f97d77a commit: 53b9b6aba4e2d55a9dce10eded7f23cc2ff5b467 Author: Eray Aslan gentoo org> AuthorDate: Fri Apr 25 06:49:15 2025 +0000 Commit: Eray Aslan gentoo 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 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 +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() {