[packages/postfix] - fix format string warnings - rel 5

baggins baggins at pld-linux.org
Fri Dec 7 08:40:15 CET 2012


commit d0fc39c324a54423993a56b28235b35181a536e1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 7 08:40:02 2012 +0100

    - fix format string warnings
    - rel 5

 format-security.patch | 26 ++++++++++++++++++++++++++
 postfix.spec          |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/postfix.spec b/postfix.spec
index ec13de9..e580ed7 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -34,7 +34,7 @@ Summary(pt_BR.UTF-8):	Postfix - Um MTA (Mail Transport Agent) de alto desempenho
 Summary(sk.UTF-8):	Agent prenosu pošty Postfix
 Name:		postfix
 Version:	2.9.4
-Release:	4
+Release:	5
 Epoch:		2
 License:	distributable
 Group:		Networking/Daemons/SMTP
@@ -69,6 +69,7 @@ Patch8:		%{name}-dictname.patch
 Patch9:		%{name}-make-jN.patch
 Patch10:	%{name}-link.patch
 Patch11:	%{name}-scache_clnt.patch
+Patch12:	format-security.patch
 URL:		http://www.postfix.org/
 %{?with_sasl:BuildRequires:	cyrus-sasl-devel}
 BuildRequires:	db-devel
@@ -293,6 +294,7 @@ sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 
 %if %{with tcp}
 sed -i 's/ifdef SNAPSHOT/if 1/' src/util/dict_open.c
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..274ff1d
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,26 @@
+--- postfix-2.9.4/src/virtual/maildir.c.orig	2012-12-07 08:38:15.031182187 +0100
++++ postfix-2.9.4/src/virtual/maildir.c	2012-12-07 08:39:11.291180202 +0100
+@@ -972,19 +972,19 @@
+         if (*var_virt_maildir_limit_message_maps != 0 && (limit_message = mail_addr_find(virtual_maildir_limit_message_maps, state.msg_attr.user, (char **) NULL)) != 0) {
+             errno = errnored;
+             if (errno == EFBIG) {
+-                dsb_simple(why, "5.2.2", limit_message);
++                dsb_simple(why, "5.2.2", "%s", limit_message);
+             }
+             if (errno == EDQUOT) {
+-                dsb_simple(why, "4.2.2", limit_message);
++                dsb_simple(why, "4.2.2", "%s", limit_message);
+             }
+         }
+         else {
+             errno = errnored;
+             if (errno == EFBIG) {
+-                dsb_simple(why, "5.2.2", var_virt_maildir_limit_message);
++                dsb_simple(why, "5.2.2", "%s", var_virt_maildir_limit_message);
+             }
+             if (errno == EDQUOT) {
+-                dsb_simple(why, "4.2.2", var_virt_maildir_limit_message);
++                dsb_simple(why, "4.2.2", "%s", var_virt_maildir_limit_message);
+             }
+         }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postfix.git/commitdiff/d0fc39c324a54423993a56b28235b35181a536e1



More information about the pld-cvs-commit mailing list