]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7035
authorCristy <urban-warrior@imagemagick.org>
Tue, 20 Mar 2018 23:34:26 +0000 (19:34 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 20 Mar 2018 23:34:26 +0000 (19:34 -0400)
coders/pict.c

index c965cbe33ddfc8c6d634247e5765eed4d38d81a6..62c7d57acd7f9ddc8afeddc08c60907a216a8e70 100644 (file)
@@ -982,6 +982,9 @@ static Image *ReadPICTImage(const ImageInfo *image_info,
             image->columns=1UL*(frame.right-frame.left);
             image->rows=1UL*(frame.bottom-frame.top);
             status=SetImageExtent(image,image->columns,image->rows,exception);
+            if (status == MagickFalse)
+              return(DestroyImageList(image));
+            status=ResetImagePixels(image,exception);
             if (status == MagickFalse)
               return(DestroyImageList(image));
             break;