diff options
Diffstat (limited to 'print/xpdf/patches/patch-ar')
-rw-r--r-- | print/xpdf/patches/patch-ar | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/print/xpdf/patches/patch-ar b/print/xpdf/patches/patch-ar deleted file mode 100644 index 0f1fcca2a8d..00000000000 --- a/print/xpdf/patches/patch-ar +++ /dev/null @@ -1,32 +0,0 @@ -$NetBSD: patch-ar,v 1.2 2005/09/07 15:19:08 adam Exp $ - ---- fofi/FoFiTrueType.cc.orig 2005-08-17 05:34:30.000000000 +0000 -+++ fofi/FoFiTrueType.cc -@@ -1652,6 +1652,27 @@ void FoFiTrueType::parse() { - return; - } - -+ // make sure the loca table is sane (correct length and entries are -+ // in bounds) -+ i = seekTable("loca"); -+ if (tables[i].len < (nGlyphs + 1) * (locaFmt ? 4 : 2)) { -+ parsedOk = gFalse; -+ return; -+ } -+ for (j = 0; j <= nGlyphs; ++j) { -+ if (locaFmt) { -+ pos = (int)getU32BE(tables[i].offset + j*4, &parsedOk); -+ } else { -+ pos = getU16BE(tables[i].offset + j*2, &parsedOk); -+ } -+ if (pos < 0 || pos > len) { -+ parsedOk = gFalse; -+ } -+ } -+ if (!parsedOk) { -+ return; -+ } -+ - // read the post table - readPostTable(); - } |