[packages/xfprint] - fix format string errors - rel 9

baggins baggins at pld-linux.org
Thu Nov 7 10:09:29 CET 2013


commit 3908838997a2315fb93b795b214c8797434bb5b5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Nov 7 10:09:17 2013 +0100

    - fix format string errors
    - rel 9

 format-security.patch | 31 +++++++++++++++++++++++++++++++
 xfprint.spec          |  4 +++-
 2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/xfprint.spec b/xfprint.spec
index 75d07a7..c8c7668 100644
--- a/xfprint.spec
+++ b/xfprint.spec
@@ -2,7 +2,7 @@ Summary:	Print dialog and printer manager for Xfce
 Summary(pl.UTF-8):	Okno dialogowe wydruku i zarządca drukarek dla Xfce
 Name:		xfprint
 Version:	4.6.1
-Release:	8
+Release:	9
 License:	GPL v2
 Group:		X11/Applications
 Source0:	http://www.xfce.org/archive/xfce-%{version}/src/%{name}-%{version}.tar.bz2
@@ -10,6 +10,7 @@ Source0:	http://www.xfce.org/archive/xfce-%{version}/src/%{name}-%{version}.tar.
 Patch0:		%{name}-bsdlpr.patch
 Patch1:		%{name}-desktop.patch
 Patch2:		%{name}-ui.patch
+Patch3:		format-security.patch
 URL:		http://www.xfce.org/projects/xfprint/
 BuildRequires:	a2ps-devel
 BuildRequires:	autoconf >= 2.50
@@ -106,6 +107,7 @@ Pliki nagłówkowe biblioteki xfprint.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__glib_gettextize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..59f73d7
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,31 @@
+--- xfprint-4.6.1/xfprint/xfprintsettings.c~	2009-02-24 22:34:15.000000000 +0100
++++ xfprint-4.6.1/xfprint/xfprintsettings.c	2013-11-07 10:07:14.949795649 +0100
+@@ -495,7 +495,7 @@
+ 	ctx = g_markup_parse_context_new(&markup_parser, 0, &parser, NULL);
+ 
+ 	if (!g_markup_parse_context_parse(ctx, contents, sb.st_size, &error)) {
+-		g_print(error->message);
++		g_print("%s", error->message);
+ 		goto finished3;
+ 	}
+ 	
+--- xfprint-4.6.1/printing-systems/cups/cups.c~	2013-11-07 10:06:16.000000000 +0100
++++ xfprint-4.6.1/printing-systems/cups/cups.c	2013-11-07 10:08:31.559795094 +0100
+@@ -462,7 +462,7 @@
+ remove_job (const gchar * printer, gint id)
+ {
+   if (cupsCancelJob (printer, id) == 0) {
+-    xfce_dialog_show_error (NULL, NULL, ippErrorString (cupsLastError ()));
++    xfce_dialog_show_error (NULL, NULL, "%s", ippErrorString (cupsLastError ()));
+     return FALSE;
+   }
+ 
+@@ -570,7 +570,7 @@
+     ret = TRUE;
+   }
+   else {
+-    xfce_dialog_show_error (NULL, NULL, ippErrorString (cupsLastError ()));
++    xfce_dialog_show_error (NULL, NULL, "%s", ippErrorString (cupsLastError ()));
+   }
+ 
+   cupsFreeDests (num_dests, dests);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xfprint.git/commitdiff/3908838997a2315fb93b795b214c8797434bb5b5



More information about the pld-cvs-commit mailing list