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)
1686
+
{
1687
+
_cupsRasterAddError("Invalid bits per color %u.", r->header.cupsBitsPerColor);
1688
+
ret=0;
1689
+
}
1690
+
1691
+
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)))
1692
+
{
1693
+
_cupsRasterAddError("Invalid bits per pixel %u.", r->header.cupsBitsPerPixel);
1694
+
ret=0;
1695
+
}
1696
+
1697
+
if (r->header.cupsBytesPerLine==0)
1698
+
{
1699
+
_cupsRasterAddError("Invalid raster line length 0.");
_cupsRasterAddError("Raster line length %u does not match width (%u) and bits per pixel (%u).", r->header.cupsBytesPerLine, r->header.cupsWidth, r->header.cupsBitsPerPixel);
1715
+
ret=0;
1716
+
}
1717
+
1718
+
if (r->header.cupsWidth==0||r->header.cupsWidth>_CUPS_MAX_WIDTH)
0 commit comments