You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (r->header.cupsBitsPerColor!=1&&r->header.cupsBitsPerColor!=2&&r->header.cupsBitsPerColor!=4&&r->header.cupsBitsPerColor!=8&&r->header.cupsBitsPerColor!=16)
1675
+
{
1676
+
_cupsRasterAddError("Invalid bits per color %u.", r->header.cupsBitsPerColor);
1677
+
ret= false;
1678
+
}
1679
+
1680
+
if ((r->header.cupsColorOrder!=CUPS_ORDER_CHUNKED&&r->header.cupsBitsPerPixel!=r->header.cupsBitsPerColor) || (r->header.cupsColorOrder==CUPS_ORDER_CHUNKED&&r->header.cupsBitsPerPixel!= (r->header.cupsBitsPerColor*r->header.cupsNumColors)))
1681
+
{
1682
+
_cupsRasterAddError("Invalid bits per pixel %u.", r->header.cupsBitsPerPixel);
1683
+
ret= false;
1684
+
}
1685
+
1672
1686
if (r->header.cupsBytesPerLine==0)
1673
1687
{
1674
1688
_cupsRasterAddError("Invalid raster line length 0.");
_cupsRasterAddError("Invalid bits per pixel %u.", r->header.cupsBitsPerPixel);
1703
+
_cupsRasterAddError("Raster line length %u does not match width (%u) and bits per pixel (%u).", r->header.cupsBytesPerLine, r->header.cupsWidth, r->header.cupsBitsPerPixel);
1697
1704
ret= false;
1698
1705
}
1699
1706
1700
-
if (r->header.cupsWidth==0)
1707
+
if (r->header.cupsWidth==0||r->header.cupsWidth>_CUPS_MAX_WIDTH)
0 commit comments