Skip to content
Permalink
Browse files

https://github.com//issues/104

  • Loading branch information...
Cristy
Cristy committed Jan 30, 2016
1 parent c4e63ad commit a2e1064f288a353bc5fef7f79ccb7683759e775c
Showing with 2 additions and 1 deletion.
  1. +2 −1 coders/xcf.c
@@ -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);

0 comments on commit a2e1064

Please sign in to comment.
You can’t perform that action at this time.