Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/104
  • Loading branch information
Cristy committed Jan 30, 2016
1 parent c4e63ad commit a2e1064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/xcf.c
Expand Up @@ -347,7 +347,8 @@ static MagickBooleanType load_tile(Image *image,Image *tile_image,
*xcfdata,
*xcfodata;

xcfdata=(XCFPixelInfo *) AcquireQuantumMemory(data_length,sizeof(*xcfdata));
xcfdata=(XCFPixelInfo *) AcquireQuantumMemory(MagickMax(data_length,
tile_image->columns*tile_image->rows),sizeof(*xcfdata));
if (xcfdata == (XCFPixelInfo *) NULL)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
Expand Down

0 comments on commit a2e1064

Please sign in to comment.