(Issue #751)
- Updated `httpAddrConnect2()` to handle `POLLHUP` together with `POLLIN` or
`POLLOUT` (Issue #839)
+- Updated `cupsRasterReadPixels` and `cupsRasterWritePixels` to not try reading
+ or writing if the number of bytes passed is 0 (Issue #914)
- Fixed use-after-free in `cupsdAcceptClient()` when we log warning during error
handling (fixes CVE-2023-34241)
- Fixed hanging of `lpstat` on Solaris (Issue #156)
DEBUG_printf("_cupsRasterReadPixels(r=%p, p=%p, len=%u)", (void *)r, (void *)p, len);
if (r == NULL || r->mode != CUPS_RASTER_READ || r->remaining == 0 ||
- r->header.cupsBytesPerLine == 0)
+ r->header.cupsBytesPerLine == 0 || len == 0)
{
DEBUG_puts("1_cupsRasterReadPixels: Returning 0.");
return (0);