pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/xpdf/patches Swith to vender supplied patch file...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3f316a7277b7
branches:  trunk
changeset: 540129:3f316a7277b7
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Mar 29 04:03:41 2008 +0000

description:
Swith to vender supplied patch file xpdf-3.02pl1.patch.

diffstat:

 print/xpdf/patches/patch-ba |  25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diffs (29 lines):

diff -r 9705d50ef67f -r 3f316a7277b7 print/xpdf/patches/patch-ba
--- a/print/xpdf/patches/patch-ba       Sat Mar 29 03:01:15 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index