]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6994
authorCristy <urban-warrior@imagemagick.org>
Sat, 17 Mar 2018 14:19:50 +0000 (10:19 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 17 Mar 2018 14:20:21 +0000 (10:20 -0400)
coders/pict.c

index 017866c7b9d573f849d7d3112ed261b677e5e0cd..cf2f964a7c9165f6040a5d524799110ec12b422e 100644 (file)
@@ -930,6 +930,9 @@ static Image *ReadPICTImage(const ImageInfo *image_info,
   if (status == MagickFalse)
     return(DestroyImageList(image));
   image->alpha_trait=BlendPixelTrait;
+  status=ResetImagePixels(image,exception);
+  if (status == MagickFalse)
+    return(DestroyImageList(image));
   /*
     Interpret PICT opcodes.
   */