]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure that raster buffer can hold enough data for all planes
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 26 Oct 2015 16:18:23 +0000 (16:18 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 26 Oct 2015 16:18:23 +0000 (16:18 +0000)
(<rdar://problem/23133998>)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12930 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.1.txt
filter/rastertoepson.c

index 6c9863fd34ecff73dcd8dc73072fc4634ad21045..3ebbc6db1587cdd9a471968c6a99adcf385746c9 100644 (file)
@@ -7,7 +7,7 @@ CHANGES IN CUPS V2.1.1
          <rdar://problem/23132108>, <rdar://problem/23132353>,
          <rdar://problem/23132803>, <rdar://problem/23133230>,
          <rdar://problem/23133393>, <rdar://problem/23133466>,
-         <rdar://problem/23133833>)
+         <rdar://problem/23133833>, <rdar://problem/23133998>)
        - The cupsGetPPD* functions did not work with IPP printers (STR #4725)
        - Some older HP LaserJet printers need a delayed close when printing
          using the libusb-based USB backend (STR #4549)
index b503795aef6cd09bfc170542e7d97bc07be9e3f0..38d6d5bfcedafea75f076442465d8ecf85650d38 100644 (file)
@@ -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);