From: Cristy Date: Sat, 17 Mar 2018 14:19:50 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6994 X-Git-Tag: 7.0.7-27~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1ef38e822706559ee8806cbb02d9b2db456c903;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6994 --- diff --git a/coders/pict.c b/coders/pict.c index 017866c7b..cf2f964a7 100644 --- a/coders/pict.c +++ b/coders/pict.c @@ -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. */