You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
diff -up GraphicsMagick-1.3.20/coders/psd.c.CVE-2014-1947 GraphicsMagick-1.3.20/coders/psd.c
|
|
|
|
--- GraphicsMagick-1.3.20/coders/psd.c.CVE-2014-1947 2014-08-16 15:33:23.000000000 -0500
|
|
|
|
+++ GraphicsMagick-1.3.20/coders/psd.c 2014-08-20 07:30:08.767862041 -0500
|
|
|
|
@@ -1719,8 +1719,7 @@ static unsigned int WritePSDImage(const
|
|
|
|
i;
|
|
|
|
|
|
|
|
unsigned char
|
|
|
|
- *pixels,
|
|
|
|
- layer_name[4];
|
|
|
|
+ *pixels;
|
|
|
|
|
|
|
|
unsigned int
|
|
|
|
packet_size,
|
|
|
|
@@ -1944,8 +1943,9 @@ static unsigned int WritePSDImage(const
|
|
|
|
(void) WriteBlob(image, 3, &layer_name[1]);
|
|
|
|
*/
|
|
|
|
} else {
|
|
|
|
- (void) sprintf((char *) layer_name, "L%02d", layer_count++ );
|
|
|
|
- WritePascalString( image, (char*)layer_name, 4 );
|
|
|
|
+ char layer_name[MaxTextExtent];
|
|
|
|
+ (void) sprintf(layer_name, "L%06ld", layer_count++ );
|
|
|
|
+ WritePascalString( image, layer_name, 4 );
|
|
|
|
}
|
|
|
|
tmp_image = tmp_image->next;
|
|
|
|
};
|