]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix another potential buffer overflow (STR #4600)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 25 Mar 2015 20:04:18 +0000 (20:04 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 25 Mar 2015 20:04:18 +0000 (20:04 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12572 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.0.txt
filter/rastertoepson.c

index 73a7b9406aa95b2fc80e76d4526ea226a4314ba0..56b28b5f574e51c41109a466441a1ee04b8bb48a 100644 (file)
@@ -6,7 +6,7 @@ CHANGES IN CUPS V2.0.3
        - Restored missing generic printer icon file (STR #4587)
        - Fixed logging of configuration errors to show up as errors (STR #4582)
        - Fixed potential buffer overflows in raster code and filters
-         (STR #4598, STR #4599)
+         (STR #4598, STR #4599, STR #4600)
        - Added Russian translation (STR #4577)
 
 
index 87243a96629bd3a3712470fa7132fd77775bf57f..7edd2097f297b0e92052b430c8ab67696dc21baa 100644 (file)
@@ -274,7 +274,7 @@ StartPage(
 
   if (header->cupsCompression || DotBytes)
   {
-    if ((CompBuffer = calloc(2, header->cupsWidth)) == NULL)
+    if ((CompBuffer = calloc(2, header->cupsWidth + 1)) == NULL)
     {
       fputs("ERROR: Unable to allocate memory\n", stderr);
       exit(1);