Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29710
  • Loading branch information
Cristy committed May 17, 2016
1 parent d4906a1 commit 13db820
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coders/rle.c
Expand Up @@ -316,10 +316,11 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception)
number_planes_filled))
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
pixel_info=AcquireVirtualMemory(image->columns,image->rows*
number_planes_filled*sizeof(*pixels));
MagickMax(number_planes_filled,4)*sizeof(*pixels));
if (pixel_info == (MemoryInfo *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
pixel_info_length=image->columns*image->rows*number_planes_filled;
pixel_info_length=image->columns*image->rows*
MagickMax(number_planes_filled,4);
pixels=(unsigned char *) GetVirtualMemoryBlob(pixel_info);
if ((flags & 0x01) && !(flags & 0x02))
{
Expand Down

0 comments on commit 13db820

Please sign in to comment.