summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-10-26 16:18:23 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-10-26 16:18:23 +0000
commit40150539e826b20dcf59bab7e7a330ba7f07d606 (patch)
treec8dd8d23c88418c5f97c6d3ff5f50091835f636b /filter
parent1b6c727889d279654bd5a3f05788cd0447b3274f (diff)
Make sure that raster buffer can hold enough data for all planes
(<rdar://problem/23133998>) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12930 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'filter')
-rw-r--r--filter/rastertoepson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c
index b503795ae..38d6d5bfc 100644
--- a/filter/rastertoepson.c
+++ b/filter/rastertoepson.c
@@ -263,7 +263,7 @@ StartPage(
* Allocate memory for a line/row of graphics...
*/
- if ((Planes[0] = malloc(header->cupsBytesPerLine)) == NULL)
+ if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL)
{
fputs("ERROR: Unable to allocate memory\n", stderr);
exit(1);