summaryrefslogtreecommitdiff
path: root/print/gv/patches
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/patches
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/patches')
-rw-r--r--print/gv/patches/patch-ac26
1 files changed, 26 insertions, 0 deletions
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;