[packages/XmHTML] - fix format string error - rel 14

baggins baggins at pld-linux.org
Wed Nov 6 22:15:27 CET 2013


commit 91263e5da04641e2b65e1f7ee4ae5036325f1919
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Nov 6 22:15:14 2013 +0100

    - fix format string error
    - rel 14

 XmHTML.spec           |  4 +++-
 format-security.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/XmHTML.spec b/XmHTML.spec
index 27a213a..3e9c2d5 100644
--- a/XmHTML.spec
+++ b/XmHTML.spec
@@ -2,7 +2,7 @@ Summary:	Motif HTML widget
 Summary(pl.UTF-8):	Widget do HTML-a oparty o Motif
 Name:		XmHTML
 Version:	1.1.7
-Release:	13
+Release:	14
 License:	LGPL
 Group:		X11/Libraries
 Source0:	http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz
 Patch0:		%{name}-am.patch
 Patch1:		%{name}-macro.patch
 Patch2:		%{name}-libpng.patch
+Patch3:		format-security.patch
 URL:		http://www.xs4all.nl/~ripley/XmHTML/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -61,6 +62,7 @@ Statyczna wersja biblioteki XmHTML.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 # Argh! automake stuff outdated, imake stuff outdated even more,
 # makefiles not outdated but don't support shared libraries :/
 # Use automake with some patches/workarounds/etc
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..ea269df
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- XmHTML-1.1.7/lib/common/parse.c.orig	1999-01-20 06:13:08.000000000 +0100
++++ XmHTML-1.1.7/lib/common/parse.c	2013-11-06 22:11:19.395801941 +0100
+@@ -1935,7 +1935,7 @@
+ 			sprintf(msg, XMHTML_MSG_128, html_tokens[id], html_tokens[current]);
+ 			break;
+ 		case HTML_INTERNAL:
+-			sprintf(msg, XMHTML_MSG_129);
++			sprintf(msg, "%s", XMHTML_MSG_129);
+ 			break;
+ 		case HTML_NOTIFY:	/* not reached */
+ 			return;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/XmHTML.git/commitdiff/91263e5da04641e2b65e1f7ee4ae5036325f1919



More information about the pld-cvs-commit mailing list