From: Cristy Date: Tue, 21 Feb 2017 20:26:00 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.5-1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f3f88e52f84f7dcca902a8a56b3f3e841c86e68;p=imagemagick ... --- diff --git a/coders/mpc.c b/coders/mpc.c index 83ca2016e..3a85d5597 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -850,7 +850,9 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Create image colormap. */ - if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) + image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors+1, + sizeof(*image->colormap)); + if (image->colormap == (PixelInfo *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); if (image->colors != 0) {