summaryrefslogtreecommitdiff
path: root/print/gv
diff options
context:
space:
mode:
authortron <tron>2006-11-21 13:58:10 +0000
committertron <tron>2006-11-21 13:58:10 +0000
commit56388f44c8b9f6fd6b6ac5ea24e2dfa814867f51 (patch)
treeb2f46c0d3948e864620c9a854980e380104cc417 /print/gv
parent049ec75b2bb40612699514493b312a94805147b0 (diff)
downloadpkgsrc-56388f44c8b9f6fd6b6ac5ea24e2dfa814867f51.tar.gz
Add security fix for CVE-2006-5864 based on patch taken from Debian Sarge.
Bump package revision because of this fix.
Diffstat (limited to 'print/gv')
-rw-r--r--print/gv/Makefile3
-rw-r--r--print/gv/distinfo3
-rw-r--r--print/gv/patches/patch-ac26
3 files changed, 30 insertions, 2 deletions
diff --git a/print/gv/Makefile b/print/gv/Makefile
index 5cafe1ae9f3..b3e5156c5d9 100644
--- a/print/gv/Makefile
+++ b/print/gv/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.61 2006/10/23 12:29:56 tron Exp $
+# $NetBSD: Makefile,v 1.62 2006/11/21 13:58:10 tron Exp $
DISTNAME= gv-3.6.2
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU:=gv/}
diff --git a/print/gv/distinfo b/print/gv/distinfo
index 5c7cee16272..7fefa6d1456 100644
--- a/print/gv/distinfo
+++ b/print/gv/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.14 2006/10/23 12:29:56 tron Exp $
+$NetBSD: distinfo,v 1.15 2006/11/21 13:58:10 tron Exp $
SHA1 (gv-3.6.2.tar.gz) = 9753904c7c7c3c89b98c8e949a1579bfbd3b6af5
RMD160 (gv-3.6.2.tar.gz) = 6479102493e3ebf5b2602a577c02a8b573a73cab
Size (gv-3.6.2.tar.gz) = 446040 bytes
SHA1 (patch-aa) = 4a13819735017694fad8a44e3b50a90b763c4a46
SHA1 (patch-ab) = 63d103a821074ab36a6cf946bbf1252d4d356987
+SHA1 (patch-ac) = 9855bff1b2bf6f43a0749035585abd38a1d87866
SHA1 (patch-ad) = b2f3060594d1ca1c53e74b3247ab7dba6e4a3326
SHA1 (patch-ae) = 2d1057004a1bd1b29af491c3163d83dd31bba7c2
SHA1 (patch-af) = 618164139ea6dcc81996dff659d01ede6245ff43
diff --git a/print/gv/patches/patch-ac b/print/gv/patches/patch-ac
new file mode 100644
index 00000000000..105748fcf1e
--- /dev/null
+++ b/print/gv/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.9 2006/11/21 13:58:10 tron Exp $
+
+--- src/ps.c.orig 2006-07-07 16:35:49.000000000 +0100
++++ src/ps.c 2006-11-21 13:49:17.000000000 +0000
+@@ -1396,6 +1396,8 @@
+ quoted=1;
+ line++;
+ while (*line && !(*line == ')' && level == 0 )) {
++ if (cp - text >= PSLINELENGTH - 1)
++ break;
+ if (*line == '\\') {
+ if (*(line+1) == 'n') {
+ *cp++ = '\n';
+@@ -1450,8 +1452,11 @@
+ }
+ }
+ } else {
+- while (*line && !(*line == ' ' || *line == '\t' || *line == '\n'))
++ while (*line && !(*line == ' ' || *line == '\t' || *line == '\n')) {
++ if (cp - text >= PSLINELENGTH - 2)
++ break;
+ *cp++ = *line++;
++ }
+ }
+ *cp = '\0';
+ if (next_char) *next_char = line;