[packages/usplash] - fix format string errors - rel 7

baggins baggins at pld-linux.org
Sun Jul 14 19:52:29 CEST 2013


commit b8a4d2504f8e08c14ea2542209d761b6dd122301
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jul 14 19:52:20 2013 +0200

    - fix format string errors
    - rel 7

 format-security.patch | 20 ++++++++++++++++++++
 usplash.spec          |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/usplash.spec b/usplash.spec
index cc7776f..39d68fd 100644
--- a/usplash.spec
+++ b/usplash.spec
@@ -3,12 +3,13 @@ Summary(de.UTF-8):	Eine Boosplashes Utility die auf der Benutzerebene arbeitet
 Summary(pl.UTF-8):	Narzędzie do bootsplasha w przestrzeni użytkownika
 Name:		usplash
 Version:	0.5.19
-Release:	6
+Release:	7
 License:	GPL
 Group:		Applications
 Source0:	http://ftp.debian.org/debian/pool/main/u/usplash/%{name}_%{version}.orig.tar.gz
 # Source0-md5:	ede767c140267db65b956d04276d4a23
 Patch0:		%{name}-includes.patch
+Patch1:		format-security.patch
 URL:		https://wiki.ubuntu.com/USplash
 BuildRequires:	dpkg
 BuildRequires:	gd-devel >= 2.0.0
@@ -57,6 +58,7 @@ Pliki nagłówkowe usplasha.
 %prep
 %setup -q -n %{name}
 %patch0 -p0
+%patch1 -p1
 
 %build
 %{__make} -C bogl \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..deb97f2
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,20 @@
+--- usplash/bogl/reduce-font.c.orig	2013-07-14 19:51:19.125683835 +0200
++++ usplash/bogl/reduce-font.c	2013-07-14 19:51:32.319146874 +0200
+@@ -146,7 +146,7 @@
+                     else if (strncmp (buf, "STARTCHAR ", 10) == 0)
+                         header = 0;
+                     else
+-                        fprintf (stdout, buf);
++                        fprintf (stdout, "%s", buf);
+                 }
+                 
+                 if (!header)
+@@ -159,7 +159,7 @@
+                     }
+ 
+                     if (docopy)
+-                        fprintf (stdout, buf);
++                        fprintf (stdout, "%s", buf);
+                 }
+             }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/usplash.git/commitdiff/b8a4d2504f8e08c14ea2542209d761b6dd122301



More information about the pld-cvs-commit mailing list