summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/xpdf/patches/patch-ba25
1 files changed, 0 insertions, 25 deletions
diff --git a/print/xpdf/patches/patch-ba b/print/xpdf/patches/patch-ba
deleted file mode 100644
index ae4bf485ca7..00000000000
--- a/print/xpdf/patches/patch-ba
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-ba,v 1.1 2007/08/02 14:54:34 drochner Exp $
-
---- xpdf/Stream.cc.orig 2007-02-27 23:05:52.000000000 +0100
-+++ xpdf/Stream.cc
-@@ -410,15 +410,13 @@ StreamPredictor::StreamPredictor(Stream
- ok = gFalse;
-
- nVals = width * nComps;
-- if (width <= 0 || nComps <= 0 || nBits <= 0 ||
-- nComps >= INT_MAX / nBits ||
-- width >= INT_MAX / nComps / nBits ||
-- nVals * nBits + 7 < 0) {
-- return;
-- }
- pixBytes = (nComps * nBits + 7) >> 3;
- rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
-- if (rowBytes <= 0) {
-+ if (width <= 0 || nComps <= 0 || nBits <= 0 ||
-+ nComps > gfxColorMaxComps ||
-+ nBits > 16 ||
-+ width >= INT_MAX / nComps || // check for overflow in nVals
-+ nVals >= (INT_MAX - 7) / nBits) { // check for overflow in rowBytes
- return;
- }
- predLine = (Guchar *)gmalloc(rowBytes);