[packages/libgxim] - fix format string error

baggins baggins at pld-linux.org
Sun Jul 14 14:04:23 CEST 2013


commit f859bcc64849e43f396f4366564e8bfb315a74c2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jul 14 14:03:59 2013 +0200

    - fix format string error

 format-security.patch | 11 +++++++++++
 libgxim.spec          |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libgxim.spec b/libgxim.spec
index 2997469..1cdb063 100644
--- a/libgxim.spec
+++ b/libgxim.spec
@@ -13,6 +13,7 @@ Group:		Libraries
 #Source0Download: http://code.google.com/p/libgxim/downloads/list
 Source0:	http://libgxim.googlecode.com/files/%{name}-%{version}.tar.bz2
 # Source0-md5:	bbe8ee379e68955a6f9ff2ac46b05024
+Patch0:		format-security.patch
 URL:		http://code.google.com/p/libgxim/
 BuildRequires:	dbus-devel >= 0.23
 BuildRequires:	dbus-glib-devel >= 0.74
@@ -85,6 +86,7 @@ Dokumentacja API biblioteki libgxim.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..36281be
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- libgxim-0.4.0/libgxim/gximprotocol10.c~	2012-11-22 15:34:45.000000000 +0100
++++ libgxim-0.4.0/libgxim/gximprotocol10.c	2013-07-14 14:02:57.655038656 +0200
+@@ -2072,7 +2072,7 @@
+ 	msg = g_strdup_printf("Unable to parse the protocol %s properly",
+ 			      g_xim_protocol_name(major_opcode));
+ 
+-	g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, msg);
++	g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, "%s", msg);
+ 	switch (major_opcode) {
+ 	    case G_XIM_CONNECT:
+ 	    case G_XIM_AUTH_REQUIRED:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgxim.git/commitdiff/7d23d937b00dbb5c9acc2d70c3e0fa10d5fa69ac



More information about the pld-cvs-commit mailing list