[packages/xorg-lib-libXaw] - fix format string warning - rel 2

baggins baggins at pld-linux.org
Thu Dec 13 14:33:31 CET 2012


commit b1ac0874e3f6a96112f3801377eb1aeba3437b97
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 13 14:33:16 2012 +0100

    - fix format string warning
    - rel 2

 format-security.patch | 11 +++++++++++
 xorg-lib-libXaw.spec  |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/xorg-lib-libXaw.spec b/xorg-lib-libXaw.spec
index bf98225..10fd4df 100644
--- a/xorg-lib-libXaw.spec
+++ b/xorg-lib-libXaw.spec
@@ -6,11 +6,12 @@ Summary:	X Athena Widgets library
 Summary(pl.UTF-8):	Biblioteka X Athena Widgets
 Name:		xorg-lib-libXaw
 Version:	1.0.11
-Release:	1
+Release:	2
 License:	MIT
 Group:		X11/Libraries
 Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXaw-%{version}.tar.bz2
 # Source0-md5:	f39942f2cab379fc9b4c3731bf191b84
+Patch0:		format-security.patch
 URL:		http://xorg.freedesktop.org/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
@@ -77,6 +78,7 @@ Pakiet zawiera statyczną bibliotekę libXaw.
 
 %prep
 %setup -q -n libXaw-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..6546052
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- libXaw-1.0.11/src/DisplayList.c~	2012-06-02 05:31:37.000000000 +0200
++++ libXaw-1.0.11/src/DisplayList.c	2012-12-13 14:31:01.364529613 +0100
+@@ -290,7 +290,7 @@
+ 	}
+       if (fp)
+ 	{
+-	  snprintf(cname, fp - fname + 1, fname);
++	  snprintf(cname, fp - fname + 1, "%s", fname);
+ 	  memmove(fname, fp + 1, strlen(fp));
+ 	  lc = cname[0] ? XawGetDisplayListClass(cname) : xlibc;
+ 	  if (!lc)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-lib-libXaw.git/commitdiff/b1ac0874e3f6a96112f3801377eb1aeba3437b97



More information about the pld-cvs-commit mailing list