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); |