|
|
@ -17,8 +17,8 @@ diff -up GraphicsMagick-1.3.20/coders/psd.c.CVE-2014-1947 GraphicsMagick-1.3.20/
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
- (void) sprintf((char *) layer_name, "L%02d", layer_count++ );
|
|
|
|
- (void) sprintf((char *) layer_name, "L%02d", layer_count++ );
|
|
|
|
- WritePascalString( image, (char*)layer_name, 4 );
|
|
|
|
- WritePascalString( image, (char*)layer_name, 4 );
|
|
|
|
+ char layer_name[4];
|
|
|
|
+ char layer_name[MaxTextExtent];
|
|
|
|
+ (void) sprintf(layer_name, "L%02d", layer_count++ );
|
|
|
|
+ (void) sprintf(layer_name, "L%06ld", layer_count++ );
|
|
|
|
+ WritePascalString( image, layer_name, 4 );
|
|
|
|
+ WritePascalString( image, layer_name, 4 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tmp_image = tmp_image->next;
|
|
|
|
tmp_image = tmp_image->next;
|
|
|
|