Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 196673 | Differences between
and this patch

Collapse All | Expand All

(-)tetex-src-2.0.2/libs/xpdf/xpdf/Stream.cc (-1 / +6 lines)
Lines 424-430 StreamPredictor::StreamPredictor(Stream Link Here
424
  }
424
  }
425
  pixBytes = (nComps * nBits + 7) >> 3;
425
  pixBytes = (nComps * nBits + 7) >> 3;
426
  rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
426
  rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
427
  if (rowBytes < 0) {
427
  if (width <= 0 || nComps <= 0 || nBits <= 0 ||
428
     nComps > gfxColorMaxComps ||
429
     nBits > 16 ||
430
     nVals <= 0 ||
431
     nVals * nBits + 7 <= 0 ||
432
     rowBytes <= 0) {
428
    return;
433
    return;
429
  }
434
  }
430
  predLine = (Guchar *)gmalloc(rowBytes);
435
  predLine = (Guchar *)gmalloc(rowBytes);

Return to bug 196673