summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-15 21:57:08 +0000
committerjoerg <joerg>2007-08-15 21:57:08 +0000
commitfb9796b3f8d1221951982376e2a50d2282566190 (patch)
treec0b7aa39097d9d29e070bef7717b1903de07a9e2 /x11
parentf8fe408d674a3e1220c63b7c43b8d34d94397224 (diff)
downloadpkgsrc-fb9796b3f8d1221951982376e2a50d2282566190.tar.gz
Update to xmessage-1.0.2: detabify messages before printing.
Fix an integer overflow in the newly added functions, just because we can.
Diffstat (limited to 'x11')
-rw-r--r--x11/xmessage/Makefile4
-rw-r--r--x11/xmessage/distinfo8
-rw-r--r--x11/xmessage/patches/patch-aa16
3 files changed, 22 insertions, 6 deletions
diff --git a/x11/xmessage/Makefile b/x11/xmessage/Makefile
index 405b118280a..8948d03979a 100644
--- a/x11/xmessage/Makefile
+++ b/x11/xmessage/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2007/06/19 09:39:13 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2007/08/15 21:57:08 joerg Exp $
#
-DISTNAME= xmessage-1.0.1
+DISTNAME= xmessage-1.0.2
CATEGORIES= x11
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/app/
EXTRACT_SUFX= .tar.bz2
diff --git a/x11/xmessage/distinfo b/x11/xmessage/distinfo
index 23989b7abb5..8ff4c9a56ca 100644
--- a/x11/xmessage/distinfo
+++ b/x11/xmessage/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/01/16 21:25:57 joerg Exp $
+$NetBSD: distinfo,v 1.2 2007/08/15 21:57:08 joerg Exp $
-SHA1 (xmessage-1.0.1.tar.bz2) = 3afc3c89472afdb5d4336d3c332b481be5e8b7ff
-RMD160 (xmessage-1.0.1.tar.bz2) = 43a6ab1b7284f7bf902d3bf9992c336830489e56
-Size (xmessage-1.0.1.tar.bz2) = 83465 bytes
+SHA1 (xmessage-1.0.2.tar.bz2) = 866dea3f01e2c9a3657bb1e56396b6ae1af4be3f
+RMD160 (xmessage-1.0.2.tar.bz2) = 610815e2c5a04f441fb41c6f63f2b33aaa2fa254
+Size (xmessage-1.0.2.tar.bz2) = 94805 bytes
diff --git a/x11/xmessage/patches/patch-aa b/x11/xmessage/patches/patch-aa
new file mode 100644
index 00000000000..41e7ad95777
--- /dev/null
+++ b/x11/xmessage/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2007/08/15 21:57:09 joerg Exp $
+
+--- xmessage.c.orig 2007-08-15 23:47:23.000000000 +0200
++++ xmessage.c
+@@ -170,6 +170,11 @@ detab (char **messagep, int *lengthp)
+ n++;
+
+ /* length increases by at most seven extra spaces for each tab */
++ if (n >= (INT_MAX - *lengthp - 1) / 7) {
++ fprintf (stderr, "%s: integer overflow, terminating\n", ProgramName);
++ exit (1);
++ }
++
+ psize = *lengthp + n*7 + 1;
+ p = XtMalloc (psize);
+