git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12909
a1ca3aef-8c08-0410-bb20-
df032aa958be
CHANGES IN CUPS V2.1.1
- - Security hardening fixes (<rdar://problem/23131948>)
+ - Security hardening fixes (<rdar://problem/23131948>,
+ <rdar://problem/23132108>)
- The cupsGetPPD* functions did not work with IPP printers (STR #4725)
- Some older HP LaserJet printers need a delayed close when printing
using the libusb-based USB backend (STR #4549)
linesize = (page_width * inheader.cupsBitsPerPixel + 7) / 8;
lineoffset = page_left * inheader.cupsBitsPerPixel / 8; /* Round down */
+ if (page_left > page_width || page_top > page_height || page_bottom > page_height)
+ {
+ _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported raster data."));
+ fprintf(stderr, "DEBUG: Bad bottom/left/top margin on page %d.\n", page);
+ return (1);
+ }
+
switch (inheader.cupsColorSpace)
{
case CUPS_CSPACE_W :