From 83ae74de2068c2c0b33812673b22a45f816e00d8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 23 Nov 2017 09:08:31 -0500 Subject: [PATCH] ... --- coders/wpg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)) -- 2.40.0