Skip to content

Commit fb98950

Browse files
committed
Sync up with some fixes from CUPS 2.5.x.
1 parent 5fb0b11 commit fb98950

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cups/http.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

cups/raster-stream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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]))

0 commit comments

Comments
 (0)