]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/578
authorCristy <urban-warrior@imagemagick.org>
Tue, 18 Jul 2017 16:45:37 +0000 (12:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 18 Jul 2017 16:45:37 +0000 (12:45 -0400)
https://github.com/ImageMagick/ImageMagick/issues/568

coders/pwp.c

index 3150313e9f8460107c78100d84350c674bb17426..c7827f0c677358c642774e4ea948cc9ca2a855be 100644 (file)
@@ -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");