From 4e772b6736243d05ef1513b450cbd1981cdcf8c4 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 18 Jul 2017 12:45:37 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/578 https://github.com/ImageMagick/ImageMagick/issues/568 --- coders/pwp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coders/pwp.c b/coders/pwp.c index 3150313e9..c7827f0c6 100644 --- a/coders/pwp.c +++ b/coders/pwp.c @@ -170,6 +170,7 @@ static Image *ReadPWPImage(const ImageInfo *image_info,ExceptionInfo *exception) status=OpenBlob(image_info,pwp_image,ReadBinaryBlobMode,exception); if (status == MagickFalse) return((Image *) NULL); + ResetMagickMemory(magick,0,sizeof(magick)); count=ReadBlob(pwp_image,5,magick); if ((count != 5) || (LocaleNCompare((char *) magick,"SFW95",5) != 0)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); -- 2.40.0