[packages/mutt] - fix format string warnings - rel 12

baggins baggins at pld-linux.org
Fri Dec 7 08:26:22 CET 2012


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

    - fix format string warnings
    - rel 12

 format-security.patch | 11 +++++++++++
 mutt.spec             |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/mutt.spec b/mutt.spec
index ba9164f..d535cef 100644
--- a/mutt.spec
+++ b/mutt.spec
@@ -29,7 +29,7 @@ Summary(tr.UTF-8):	Mutt elektronik posta programı
 Summary(uk.UTF-8):	Поштова клієнтська програма Mutt
 Name:		mutt
 Version:	1.5.21
-Release:	11
+Release:	12
 Epoch:		6
 License:	GPL v2+
 Group:		Applications/Mail
@@ -68,6 +68,7 @@ Patch23:	%{name}-db.patch
 # http://mutt.org.ua/download/
 Patch24:	%{name}-vvv.nntp.patch
 Patch25:	autoconf.patch
+Patch26:	format-security.patch
 URL:		http://www.mutt.org/
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake >= 1.6
@@ -178,6 +179,7 @@ Mutt - це невеликий, але потужний повноекранни
 %patch23 -p1
 %{?with_nntp:%patch24 -p1}
 %patch25 -p1
+%patch26 -p1
 
 # force regeneration (manual.sgml is modified by some patches)
 %{__rm} doc/{manual*.html,manual.txt}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..4a8d4d6
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- mutt-1.5.21/signature.c~	2012-12-07 08:23:16.427880553 +0100
++++ mutt-1.5.21/signature.c	2012-12-07 08:24:37.171211039 +0100
+@@ -292,7 +292,7 @@
+   char* searchBuf = menu->menu >= 0 && menu->menu < MENU_MAX ?
+                     SearchBuffers[menu->menu] : NULL;
+ 
+-  snprintf (buf, sizeof(buf), searchBuf ? searchBuf : "");
++  snprintf (buf, sizeof(buf), "%s", searchBuf ? searchBuf : "");
+   if (mutt_get_field (_("Search for: "), buf,
+ 		      sizeof (buf), M_CLEAR) != 0 || !buf[0])
+     return (NULL);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mutt.git/commitdiff/deee428e7207f95c6f27a9bd9b885e18ae5162d9



More information about the pld-cvs-commit mailing list