You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
In the rastertopwg filter, a malformed raster file can cause the filter to allocate a line buffer that's smaller than cupsBytesPerLine. As a result, cupsRasterReadPixels will write beyond the end of this buffer. A sample file is attached.
This can be remotely triggered on a print server that shares a printer that uses the rastertopwg filter.
Activity
michaelrsweet commentedon Mar 25, 2015
CUPS.org User: mike
Fixed in Subversion repository.
michaelrsweet commentedon Mar 25, 2015
"str4598.patch":
Index: filter/rastertopwg.c
--- filter/rastertopwg.c (revision 12567)
+++ filter/rastertopwg.c (working copy)
@@ -3,7 +3,7 @@
*
CUPS raster to PWG raster format filter for CUPS.
*
*
These coded instructions, statements, and computer programs are the
property of Apple Inc. and are protected by Federal copyright law.
@@ -401,6 +401,9 @@
*/
if (linesize < inheader.cupsBytesPerLine)
line = malloc(linesize);
memset(line, white, linesize);