Skip to content
Permalink
Browse files

https://github.com//issues/99

  • Loading branch information...
Cristy
Cristy committed Jan 24, 2016
1 parent bee5e46 commit ca0c886abd6d3ef335eb74150cd23b89ebd17135
Showing with 2 additions and 2 deletions.
  1. +2 −2 coders/viff.c
@@ -506,8 +506,8 @@ static Image *ReadVIFFImage(const ImageInfo *image_info,
max_packets=((image->columns+7UL) >> 3UL)*image->rows;
else
max_packets=(size_t) (number_pixels*viff_info.number_data_bands);
pixels=(unsigned char *) AcquireQuantumMemory(max_packets,
bytes_per_pixel*sizeof(*pixels));
pixels=(unsigned char *) AcquireQuantumMemory(MagickMax(number_pixels,
max_packets),bytes_per_pixel*sizeof(*pixels));
if (pixels == (unsigned char *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
(void) ReadBlob(image,bytes_per_pixel*max_packets,pixels);

0 comments on commit ca0c886

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