summaryrefslogtreecommitdiff
path: root/print/evince/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-02-19 14:42:21 +0000
committerdrochner <drochner@pkgsrc.org>2011-02-19 14:42:21 +0000
commit851f07d9dff7fd456c2d269ef5e7ec0eefd82766 (patch)
treed1e1743d0ccd79a082fc70eebb53d9a6b31c438f /print/evince/patches
parentad403c35bb67fbd078f2c303fe4fabf79018d14e (diff)
downloadpkgsrc-851f07d9dff7fd456c2d269ef5e7ec0eefd82766.tar.gz
add another patch from upstream
(https://bugzilla.gnome.org/show_bug.cgi?id=640923) to fix a possible buffer overflow in the dvi backend The dvi backend is only built with the (non-default) "dvi" option. bump PKGREV
Diffstat (limited to 'print/evince/patches')
-rw-r--r--print/evince/patches/patch-ba11
1 files changed, 10 insertions, 1 deletions
diff --git a/print/evince/patches/patch-ba b/print/evince/patches/patch-ba
index ceee9d0b784..33f1c5b12ca 100644
--- a/print/evince/patches/patch-ba
+++ b/print/evince/patches/patch-ba
@@ -1,4 +1,4 @@
-$NetBSD: patch-ba,v 1.1 2011/01/10 20:16:56 drochner Exp $
+$NetBSD: patch-ba,v 1.2 2011/02/19 14:42:21 drochner Exp $
--- backend/dvi/mdvi-lib/afmparse.c.orig 2009-04-24 07:24:16.000000000 +0000
+++ backend/dvi/mdvi-lib/afmparse.c
@@ -11,3 +11,12 @@ $NetBSD: patch-ba,v 1.1 2011/01/10 20:16:56 drochner Exp $
{
ident[idx++] = ch;
ch = fgetc(stream);
+@@ -190,7 +190,7 @@ static char *linetoken(FILE *stream)
+ while ((ch = fgetc(stream)) == ' ' || ch == '\t' );
+
+ idx = 0;
+- while (ch != EOF && ch != lineterm)
++ while (ch != EOF && ch != lineterm && idx < MAX_NAME)
+ {
+ ident[idx++] = ch;
+ ch = fgetc(stream);