From: Cristy <urban-warrior@imagemagick.org> Date: Thu, 23 Nov 2017 14:08:31 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-12~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ae74de2068c2c0b33812673b22a45f816e00d8;p=imagemagick ... --- diff --git a/coders/wpg.c b/coders/wpg.c index e288e2617..8223229e5 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1116,12 +1116,10 @@ static Image *ReadWPGImage(const ImageInfo *image_info, bpp=BitmapHeader2.Depth; UnpackRaster: - if (bpp > 32) - ThrowReaderException(CorruptImageError,"ImproperImageHeader"); status=SetImageExtent(image,image->columns,image->rows,exception); if (status == MagickFalse) break; - if ((image->storage_class != PseudoClass) && (bpp != 24)) + if ((image->storage_class != PseudoClass) && (bpp < 24)) { image->colors=one << bpp; if (!AcquireImageColormap(image,image->colors,exception))