- Fixed setting job state reasons for successful jobs (Issue #832)
- Added additional check on socket if `revents` from `poll()` returns POLLHUP
together with POLLIN or POLLOUT in `httpAddrConnect2()` (Issue #839)
+- Fixed crash in `ppdEmitString()` if `size` is NULL (Issue #850)
- Fixed IPP backend to support the "print-scaling" option with IPP printers
(Issue #862)
strlcpy(bufptr, "%%BeginFeature: *CustomPageSize True\n", (size_t)(bufend - bufptr + 1));
bufptr += 37;
- size = ppdPageSize(ppd, "Custom");
+ if ((size = ppdPageSize(ppd, "Custom")) == NULL)
+ {
+ free(buffer);
+ free(choices);
+ return (NULL);
+ }
memset(values, 0, sizeof(values));