[packages/bakefile] - fix format string warning - rel 2

baggins baggins at pld-linux.org
Wed Dec 12 12:32:32 CET 2012


commit 60ffde7f86439f16bce4c0988983a8b18054bb8a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Dec 12 12:32:13 2012 +0100

    - fix format string warning
    - rel 2

 bakefile.spec         |  4 +++-
 format-security.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/bakefile.spec b/bakefile.spec
index ba1ded0..ab0a3f0 100644
--- a/bakefile.spec
+++ b/bakefile.spec
@@ -2,12 +2,13 @@ Summary:	Native makefiles generator
 Summary(pl.UTF-8):	Generator natywnych plików typu Makefile
 Name:		bakefile
 Version:	0.2.9
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Building
 Source0:	http://downloads.sourceforge.net/bakefile/%{name}-%{version}.tar.gz
 # Source0-md5:	b53813d155df1a45371abc8f781e6d88
 Patch0:		%{name}-empy.patch
+Patch1:		format-security.patch
 URL:		http://bakefile.sourceforge.net/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake >= 1.6
@@ -34,6 +35,7 @@ dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.).
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..9060d77
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- bakefile-0.2.9/src/bkl_c_wrap.c~	2011-02-02 16:21:57.000000000 +0100
++++ bakefile-0.2.9/src/bkl_c_wrap.c	2012-12-12 12:30:12.717316507 +0100
+@@ -850,7 +850,7 @@
+     Py_DECREF(old_str);
+     Py_DECREF(value);
+   } else {
+-    PyErr_Format(PyExc_RuntimeError, mesg);
++    PyErr_Format(PyExc_RuntimeError, "%s", mesg);
+   }
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bakefile.git/commitdiff/60ffde7f86439f16bce4c0988983a8b18054bb8a



More information about the pld-cvs-commit mailing list