[packages/libgksu] - fix format string errors
baggins
baggins at pld-linux.org
Sun Jul 27 23:40:23 CEST 2014
commit 93df275b300396a790ab262b69f521b03f902140
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jul 27 23:40:50 2014 +0200
- fix format string errors
format-security.patch | 29 +++++++++++++++++++++++++++++
libgksu.spec | 2 ++
2 files changed, 31 insertions(+)
---
diff --git a/libgksu.spec b/libgksu.spec
index 76e9d77..5f979a5 100644
--- a/libgksu.spec
+++ b/libgksu.spec
@@ -11,6 +11,7 @@ Patch0: %{name}-configure.patch
Patch1: %{name}-helper.patch
Patch2: am.patch
Patch3: automake-1.11.patch
+Patch4: format-security.patch
URL: http://www.nongnu.org/gksu/
BuildRequires: GConf2-devel
BuildRequires: autoconf >= 2.57
@@ -94,6 +95,7 @@ blokuje urządzenia wejściowe.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__gtkdocize} --docdir docs/
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..d41b854
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,29 @@
+--- libgksu-2.0.12/libgksu/libgksu.c~ 2014-07-27 23:38:27.000000000 +0200
++++ libgksu-2.0.12/libgksu/libgksu.c 2014-07-27 23:39:30.044571788 +0200
+@@ -1276,7 +1276,7 @@
+ context->dir = g_strdup (mkdtemp(template));
+ if (!context->dir)
+ {
+- fprintf (stderr, strerror(errno));
++ fprintf (stderr, "%s", strerror(errno));
+ return FALSE;
+ }
+
+@@ -2245,7 +2245,7 @@
+ " %s"), converted_str, "gksu: waiting");
+ g_free (converted_str);
+
+- g_set_error (error, gksu_quark, GKSU_ERROR_HELPER, emsg);
++ g_set_error (error, gksu_quark, GKSU_ERROR_HELPER, "%s", emsg);
+ g_free (emsg);
+
+ if (context->debug)
+@@ -2881,7 +2881,7 @@
+ }
+ }
+
+- fprintf(stderr, child_stderr);
++ fprintf(stderr, "%s", child_stderr);
+ g_free(child_stderr);
+
+ /* if error is set we have found an error condition */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgksu.git/commitdiff/93df275b300396a790ab262b69f521b03f902140
More information about the pld-cvs-commit
mailing list