if (WPG_Palette.StartIndex > WPG_Palette.NumOfEntries)
ThrowReaderException(CorruptImageError,"InvalidColormapIndex");
image->colors=WPG_Palette.NumOfEntries;
- if (!AcquireImageColormap(image,image->colors,exception))
+ if (AcquireImageColormap(image,image->colors,exception) == MagickFalse)
goto NoMemory;
for (i=WPG_Palette.StartIndex;
i < (int)WPG_Palette.NumOfEntries; i++)
{
if (bpp < 24)
if ( (image->colors < (one << bpp)) && (bpp != 24) )
- image->colormap=(PixelInfo *) ResizeQuantumMemory(
- image->colormap,(size_t) (one << bpp),
- sizeof(*image->colormap));
+ if (AcquireImageColormap(image,one << bpp,exception) == MagickFalse)
+ goto NoMemory;
}
if ((bpp == 1) && (image->colors > 1))
MAGICK_VERSION=7.0.8-28
-MAGICK_GIT_REVISION=15314:4bffda6:20190209
+MAGICK_GIT_REVISION=15319:51dd231d7:20190209
# Substitute library versioning