]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7304
authorCristy <urban-warrior@imagemagick.org>
Mon, 2 Apr 2018 23:35:27 +0000 (19:35 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 2 Apr 2018 23:35:27 +0000 (19:35 -0400)
coders/wpg.c

index 7d01b2f871683bf68ebb1619ad3219b684e1ba5e..bcc1534d2026f23acb3b17fd06488ed42bccfc3d 100644 (file)
@@ -1446,8 +1446,9 @@ static Image *ReadWPGImage(const ImageInfo *image_info,
                   }
                 case 1:    /*RLE for WPG2 */
                   {
-                    if( UnpackWPG2Raster(image,bpp,exception) < 0)
-                      goto DecompressionFailed;
+                    if(!image_info->ping)
+                      if( UnpackWPG2Raster(image,bpp,exception) < 0)
+                        goto DecompressionFailed;
                     break;
                   }
                 }