- Fixed job cleanup after daemon restart (Issue #1315)
- Fixed unreachable block in IPP backend (Issue #1351)
- Fixed memory leak in _cupsConvertOptions (Issue #1354)
+- Fixed missing write check in `cupsFileOpen/Fd` (Issue #1360)
- Removed hash support for SHA2-512-224 and SHA2-512-256.
- Removed `mantohtml` script for generating html pages (use
`https://www.msweet.org/mantohtml/`)
header[8] = 0;
header[9] = 0x03;
- cups_write(fp, (char *)header, 10);
+ if (cups_write(fp, (char *)header, 10) < 10)
+ {
+ free(fp);
+ return (NULL);
+ }
// Initialize the compressor...
if (deflateInit2(&(fp->stream), mode[1] - '0', Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY) < Z_OK)
{
- close(fd);
free(fp);
return (NULL);
}