1 |
mjo 14/10/04 17:58:35 |
2 |
|
3 |
Added: rbldnsd-0.997a-format-security-compile-fix.patch |
4 |
Log: |
5 |
Revbump to fix bug #520602. |
6 |
|
7 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-dns/rbldnsd/files/rbldnsd-0.997a-format-security-compile-fix.patch |
11 |
|
12 |
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 |
13 |
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 |
14 |
|
15 |
Index: rbldnsd-0.997a-format-security-compile-fix.patch |
16 |
=================================================================== |
17 |
From 5d3455065f84fe1ef4673552a27d2e6e8f02c97a Mon Sep 17 00:00:00 2001 |
18 |
From: Michael Orlitzky <michael@××××××××.com> |
19 |
Date: Mon, 22 Sep 2014 10:09:27 -0400 |
20 |
Subject: [PATCH 1/1] Fix compilation with -Werror=format-security. |
21 |
|
22 |
The dslog() function takes an optional format string, analogous to |
23 |
e.g. printf(), and a list of arguments to be substituted into the |
24 |
format string. A call to dslog() in do_reload() omitted the format |
25 |
string causing GCC to throw a format-security warning. To silence the |
26 |
warning, a trivial format string of "%s" was provided. |
27 |
--- |
28 |
rbldnsd.c | 2 +- |
29 |
1 file changed, 1 insertion(+), 1 deletion(-) |
30 |
|
31 |
diff --git a/rbldnsd.c b/rbldnsd.c |
32 |
index abf1d01..e791231 100644 |
33 |
--- a/rbldnsd.c |
34 |
+++ b/rbldnsd.c |
35 |
@@ -959,7 +959,7 @@ static int do_reload(int do_fork) { |
36 |
# undef kb |
37 |
} |
38 |
#endif /* NO_MEMINFO */ |
39 |
- dslog(LOG_INFO, 0, ibuf); |
40 |
+ dslog(LOG_INFO, 0, "%s", ibuf); |
41 |
|
42 |
check_expires(); |
43 |
|
44 |
-- |
45 |
1.8.5.5 |