pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xmessage Update to xmessage-1.0.2: detabify messag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4317dc4d3ce5
branches:  trunk
changeset: 532312:4317dc4d3ce5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 15 21:57:08 2007 +0000

description:
Update to xmessage-1.0.2: detabify messages before printing.

Fix an integer overflow in the newly added functions, just because
we can.

diffstat:

 x11/xmessage/Makefile         |   4 ++--
 x11/xmessage/distinfo         |   8 ++++----
 x11/xmessage/patches/patch-aa |  16 ++++++++++++++++
 3 files changed, 22 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 336624c4ffd2 -r 4317dc4d3ce5 x11/xmessage/Makefile
--- a/x11/xmessage/Makefile     Wed Aug 15 21:45:51 2007 +0000
+++ b/x11/xmessage/Makefile     Wed Aug 15 21:57:08 2007 +0000
@@ -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 -r 336624c4ffd2 -r 4317dc4d3ce5 x11/xmessage/distinfo
--- a/x11/xmessage/distinfo     Wed Aug 15 21:45:51 2007 +0000
+++ b/x11/xmessage/distinfo     Wed Aug 15 21:57:08 2007 +0000
@@ -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 -r 336624c4ffd2 -r 4317dc4d3ce5 x11/xmessage/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xmessage/patches/patch-aa     Wed Aug 15 21:57:08 2007 +0000
@@ -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);
+ 



Home | Main Index | Thread Index | Old Index