Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > f555d104201140aee309dab6e041f6d7 > files > 65

tetex-3.0-38.1mdv2008.0.src.rpm

--- xpdf-3.02/xpdf/Stream.cc.cve-2007-3387	2007-08-02 14:13:48.000000000 -0600
+++ xpdf-3.02/xpdf/Stream.cc	2007-08-02 14:27:47.000000000 -0600
@@ -411,9 +411,9 @@ StreamPredictor::StreamPredictor(Stream 
 
   nVals = width * nComps;
   if (width <= 0 || nComps <= 0 || nBits <= 0 ||
-      nComps >= INT_MAX / nBits ||
-      width >= INT_MAX / nComps / nBits ||
-      nVals * nBits + 7 < 0) {
+      nComps > gfxColorMaxComps || nBits > 16 ||
+      width >= INT_MAX / nComps ||
+      nVals >= (INT_MAX - 7) / nBits) {
     return;
   }
   pixBytes = (nComps * nBits + 7) >> 3;