Skip to content

Commit 80c8f47

Browse files
committed
Fix rastertoepson allocation bug in unused driver code (Issue #1537)
1 parent 6d7fc51 commit 80c8f47

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ v2.5b1 - YYYY-MM-DD
165165
- Fixed missing write check in `cupsFileOpen/Fd` (Issue #1360)
166166
- Fixed error recovery when scanning for PPDs in `cups-driverd` (Issue #1416)
167167
- Fixed allowed values for directive `FilterNice`
168+
- Fixed an allocation bug in the `rastertoepson` filter (Issue #1537)
168169
- Removed hash support for SHA2-512-224 and SHA2-512-256.
169170
- Removed `mantohtml` script for generating html pages (use
170171
`https://www.msweet.org/mantohtml/`)

filter/rastertoepson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ StartPage(
298298

299299
if (header->cupsCompression || DotBytes)
300300
{
301-
if ((CompBuffer = calloc(2, header->cupsWidth + 1)) == NULL)
301+
if ((CompBuffer = calloc(2, header->cupsBytesPerLine + 1)) == NULL)
302302
{
303303
fputs("ERROR: Unable to allocate memory\n", stderr);
304304
exit(1);

0 commit comments

Comments
 (0)