Create image colormap.
*/
packet_size=(size_t) (3UL*image->depth/8UL);
- if ((packet_size*image->colors) > GetBlobSize(image))
+ if ((packet_size*colors) > GetBlobSize(image))
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
status=AcquireImageColormap(image,colors != 0 ? colors : 256,exception);
if (status == MagickFalse)
Create image colormap.
*/
packet_size=(size_t) (3UL*depth/8UL);
- if ((packet_size*image->colors) > GetBlobSize(image))
+ if ((packet_size*colors) > GetBlobSize(image))
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors+1,
sizeof(*image->colormap));