[packages/gettext] - fix format string warnings - rel 10
baggins
baggins at pld-linux.org
Wed Dec 12 13:21:45 CET 2012
commit 0955ae46f898596b727e1404d00af0e0f393bca4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 12 13:21:32 2012 +0100
- fix format string warnings
- rel 10
format-security.patch | 31 +++++++++++++++++++++++++++++++
gettext.spec | 4 +++-
2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/gettext.spec b/gettext.spec
index 6f868a4..e708ea4 100644
--- a/gettext.spec
+++ b/gettext.spec
@@ -38,7 +38,7 @@ Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
Summary(uk.UTF-8): Бібліотеки та утиліти для підтримки національних мов
Name: gettext
Version: 0.18.1.1
-Release: 9
+Release: 10
License: LGPL v2+ (libintl), GPL v3+ (tools)
Group: Development/Tools
Source0: http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
@@ -48,6 +48,7 @@ Patch1: %{name}-killkillkill.patch
Patch2: %{name}-pl.po-fixes.patch
Patch3: %{name}-libintl_by_gcj.patch
Patch4: stdio-gets.patch
+Patch5: format-security.patch
URL: http://www.gnu.org/software/gettext/
BuildRequires: acl-devel
BuildRequires: autoconf >= 2.62
@@ -333,6 +334,7 @@ GNU gettext dla C#.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..27d7205
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,31 @@
+--- gettext-0.18.1.1/gettext-tools/libgrep/m-regex.c~ 2010-06-06 14:49:57.000000000 +0200
++++ gettext-0.18.1.1/gettext-tools/libgrep/m-regex.c 2012-12-12 13:19:17.540818961 +0100
+@@ -106,7 +106,7 @@
+
+ if ((err = re_compile_pattern (motif, len,
+ &cregex->patterns[cregex->pcount].regexbuf)) != NULL)
+- error (exit_failure, 0, err);
++ error (exit_failure, 0, "%s", err);
+ cregex->pcount++;
+
+ motif = sep;
+--- gettext-0.18.1.1/gettext-tools/libgrep/m-fgrep.c~ 2010-06-06 14:49:57.000000000 +0200
++++ gettext-0.18.1.1/gettext-tools/libgrep/m-fgrep.c 2012-12-12 13:19:46.297484613 +0100
+@@ -106,7 +106,7 @@
+ for (lim = beg; lim < pattern + pattern_size && *lim != '\n'; ++lim)
+ ;
+ if ((err = kwsincr (ckwset->kwset, beg, lim - beg)) != NULL)
+- error (exit_failure, 0, err);
++ error (exit_failure, 0, "%s", err);
+ if (lim < pattern + pattern_size)
+ ++lim;
+ beg = lim;
+@@ -114,7 +114,7 @@
+ while (beg < pattern + pattern_size);
+
+ if ((err = kwsprep (ckwset->kwset)) != NULL)
+- error (exit_failure, 0, err);
++ error (exit_failure, 0, "%s", err);
+ return ckwset;
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gettext.git/commitdiff/0955ae46f898596b727e1404d00af0e0f393bca4
More information about the pld-cvs-commit
mailing list