]> granicus.if.org Git - imagemagick/commitdiff
Eliminate unitialized value
authorCristy <urban-warrior@imagemagick.org>
Mon, 22 Jan 2018 12:51:34 +0000 (07:51 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 22 Jan 2018 12:51:34 +0000 (07:51 -0500)
Credit OSS Fuzz

coders/sct.c

index d6e0dabb745d51447073573eb4e6f3d0d15c05f3..8f1155366557cb7a4363b36be3c0430ded51eb06 100644 (file)
@@ -176,6 +176,8 @@ static Image *ReadSCTImage(const ImageInfo *image_info,ExceptionInfo *exception)
   /*
     Read control block.
   */
+  ResetMagickMemory(magick,0,sizeof(magick));
+  ResetMagickMemory(buffer,0,sizeof(buffer));
   count=ReadBlob(image,80,buffer);
   (void) count;
   count=ReadBlob(image,2,(unsigned char *) magick);