diff options
author | mnag <mnag@FreeBSD.org> | 2006-12-14 22:30:30 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2006-12-14 22:30:30 +0800 |
commit | dfaaa6df6fa8afc33a967337f4d379b12006ae0f (patch) | |
tree | 1621de3f0e7a84109a426f92a83abc468c7f4a7a /graphics | |
parent | 069de11d1584272478cd295df75bec4c35e39219 (diff) | |
download | freebsd-ports-gnome-dfaaa6df6fa8afc33a967337f4d379b12006ae0f.tar.gz freebsd-ports-gnome-dfaaa6df6fa8afc33a967337f4d379b12006ae0f.tar.zst freebsd-ports-gnome-dfaaa6df6fa8afc33a967337f4d379b12006ae0f.zip |
- Apply patch to CVE-2006-5864. Obtained from evince CVS.
- Bump PORTREVISION
Approved by: gnome (ahze)
Security: CVE-2006-5864, http://secunia.com/advisories/23111/
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/evince/Makefile | 1 | ||||
-rw-r--r-- | graphics/evince/files/patch-CVE-2006-5864 | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile index e128489f834c..04800b48a94c 100644 --- a/graphics/evince/Makefile +++ b/graphics/evince/Makefile @@ -8,6 +8,7 @@ PORTNAME= evince PORTVERSION= 0.6.1 +PORTREVISION= 1 CATEGORIES= graphics print gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/graphics/evince/files/patch-CVE-2006-5864 b/graphics/evince/files/patch-CVE-2006-5864 new file mode 100644 index 000000000000..2e3931054b4d --- /dev/null +++ b/graphics/evince/files/patch-CVE-2006-5864 @@ -0,0 +1,22 @@ +--- ps/ps.c.orig Fri Jan 6 21:03:44 2006 ++++ ps/ps.c Thu Dec 14 10:11:35 2006 +@@ -1231,7 +1231,8 @@ + int level = 0; + quoted = 1; + line++; +- while(*line && !(*line == ')' && level == 0)) { ++ while(*line && !(*line == ')' && level == 0) ++ && (cp - text) < PSLINELENGTH - 1) { + if(*line == '\\') { + if(*(line + 1) == 'n') { + *cp++ = '\n'; +@@ -1302,7 +1303,8 @@ + } + } + else { +- while(*line && !(*line == ' ' || *line == '\t' || *line == '\n')) ++ while(*line && !(*line == ' ' || *line == '\t' || *line == '\n') ++ && (cp - text) < PSLINELENGTH - 1) + *cp++ = *line++; + } + *cp = '\0'; |