From: Cristy Date: Sat, 28 Apr 2018 17:27:07 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fb56bf7b8638a17e60423d541a7056db9d10fcb;p=imagemagick ... --- diff --git a/coders/wpg.c b/coders/wpg.c index 1ce559401..a058285ab 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1408,9 +1408,10 @@ static Image *ReadWPGImage(const ImageInfo *image_info, if (image_info->ping != MagickFalse) return(image); status=SetImageExtent(image,image->columns,image->rows,exception); + if (status != MagickFalse) + status=ResetImagePixels(image,exception); if (status == MagickFalse) break; - (void) ResetImagePixels(image,exception); if ((image->colors == 0) && (bpp != 24)) { image->colors=one << bpp;