File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//
22// HTTP routines for CUPS.
33//
4- // Copyright © 2021-2025 by OpenPrinting.
4+ // Copyright © 2021-2026 by OpenPrinting.
55// Copyright © 2007-2021 by Apple Inc.
66// Copyright © 1997-2007 by Easy Software Products, all rights reserved.
77//
@@ -1662,7 +1662,6 @@ httpPeek(http_t *http, // I - HTTP connection
16621662 {
16631663 DEBUG_puts ("2httpPeek: Unable to copy decompressor stream." );
16641664 http -> error = ENOMEM ;
1665- inflateEnd (& stream );
16661665 return (-1 );
16671666 }
16681667
Original file line number Diff line number Diff line change @@ -1098,6 +1098,9 @@ cupsRasterWriteHeader(
10981098
10991099 if (r -> mode == CUPS_RASTER_WRITE_APPLE )
11001100 {
1101+ if (r -> header .HWResolution [0 ] == 0 || r -> header .HWResolution [1 ] == 0 )
1102+ return (0 );
1103+
11011104 r -> rowheight = r -> header .HWResolution [0 ] / r -> header .HWResolution [1 ];
11021105
11031106 if (r -> header .HWResolution [0 ] != (r -> rowheight * r -> header .HWResolution [1 ]))
You can’t perform that action at this time.
0 commit comments