]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7219
authorCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 00:48:15 +0000 (20:48 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 00:48:15 +0000 (20:48 -0400)
coders/wpg.c

index d453f6f6af4e37c7626ed7d18af84d5f2424ab12..967e48ea0fa373a6b2596a8f3f75f278aee3f23e 100644 (file)
@@ -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;
                   }
                 }