summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'print/teTeX-bin/patches/patch-ah')
-rw-r--r--print/teTeX-bin/patches/patch-ah15
1 files changed, 15 insertions, 0 deletions
diff --git a/print/teTeX-bin/patches/patch-ah b/print/teTeX-bin/patches/patch-ah
new file mode 100644
index 00000000000..0fb3b54e858
--- /dev/null
+++ b/print/teTeX-bin/patches/patch-ah
@@ -0,0 +1,15 @@
+$NetBSD: patch-ah,v 1.3 2005/01/16 08:35:08 kei Exp $
+
+--- libs/xpdf/xpdf/Gfx.cc.orig 2005-01-04 16:23:02.000000000 +0900
++++ libs/xpdf/xpdf/Gfx.cc 2005-01-04 16:27:39.000000000 +0900
+@@ -2381,7 +2381,9 @@
+ haveMask = gFalse;
+ dict->lookup("Mask", &maskObj);
+ if (maskObj.isArray()) {
+- for (i = 0; i < maskObj.arrayGetLength(); ++i) {
++ for (i = 0;
++ i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps;
++ ++i) {
+ maskObj.arrayGet(i, &obj1);
+ maskColors[i] = obj1.getInt();
+ obj1.free();