From: Cristy Date: Sat, 31 Mar 2018 00:48:15 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7219 X-Git-Tag: 7.0.7-29~264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a346487a669c84e7898672870135c236a044f36b;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7219 --- diff --git a/coders/wpg.c b/coders/wpg.c index d453f6f6a..967e48ea0 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1435,9 +1435,8 @@ static Image *ReadWPGImage(const ImageInfo *image_info, } case 1: /*RLE for WPG2 */ { - if (!image->ping) - if( UnpackWPG2Raster(image,bpp,exception) < 0) - goto DecompressionFailed; + if( UnpackWPG2Raster(image,bpp,exception) < 0) + goto DecompressionFailed; break; } }