From d1ef38e822706559ee8806cbb02d9b2db456c903 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 17 Mar 2018 10:19:50 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6994 --- coders/pict.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.40.0