From a346487a669c84e7898672870135c236a044f36b Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 30 Mar 2018 20:48:15 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7219 --- coders/wpg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } -- 2.40.0