mjo 14/10/04 17:58:35 Added: rbldnsd-0.997a-format-security-compile-fix.patch Log: Revbump to fix bug #520602. (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!)
Revision Changes Path 1.1 net-dns/rbldnsd/files/rbldnsd-0.997a-format-security-compile-fix.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/rbldnsd/files/rbldnsd-0.997a-format-security-compile-fix.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/rbldnsd/files/rbldnsd-0.997a-format-security-compile-fix.patch?rev=1.1&content-type=text/plain Index: rbldnsd-0.997a-format-security-compile-fix.patch =================================================================== >From 5d3455065f84fe1ef4673552a27d2e6e8f02c97a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky <mich...@orlitzky.com> Date: Mon, 22 Sep 2014 10:09:27 -0400 Subject: [PATCH 1/1] Fix compilation with -Werror=format-security. The dslog() function takes an optional format string, analogous to e.g. printf(), and a list of arguments to be substituted into the format string. A call to dslog() in do_reload() omitted the format string causing GCC to throw a format-security warning. To silence the warning, a trivial format string of "%s" was provided. --- rbldnsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbldnsd.c b/rbldnsd.c index abf1d01..e791231 100644 --- a/rbldnsd.c +++ b/rbldnsd.c @@ -959,7 +959,7 @@ static int do_reload(int do_fork) { # undef kb } #endif /* NO_MEMINFO */ - dslog(LOG_INFO, 0, ibuf); + dslog(LOG_INFO, 0, "%s", ibuf); check_expires(); -- 1.8.5.5