Files @ b9bcd802a9f9
Branch filter:

Location: ohnobinki_overlay/app-text/tetex/files/tetex-3.0_p1-xpdf-CVE-2007-3387.patch

binki
removed www-apps/mediawiki
--- tetex-src-3.0/libs/xpdf/xpdf/Stream.cc	Tue Feb 27 14:05:52 2007
+++ tetex-src-3.0/libs/xpdf/xpdf/Stream.cc	Thu Jul 12 15:55:49 2007
@@ -421,7 +421,12 @@
   }
   pixBytes = (nComps * nBits + 7) >> 3;
   rowBytes = ((totalBits + 7) >> 3) + pixBytes;
-  if (rowBytes < 0) {
+  if (width <= 0 || nComps <= 0 || nBits <= 0 ||
+     nComps > gfxColorMaxComps ||
+     nBits > 16 ||
+     nVals <= 0 ||
+     nVals * nBits + 7 <= 0 ||
+     rowBytes <= 0) {
     return;
   }
   predLine = (Guchar *)gmalloc(rowBytes);