]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5707
authorCristy <urban-warrior@imagemagick.org>
Sun, 18 Feb 2018 13:06:41 +0000 (08:06 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 18 Feb 2018 13:06:41 +0000 (08:06 -0500)
coders/wbmp.c

index abbb5f4d7a2f7685a2a507d420ff724bca4c7f30..66232acdf69a168665acb14a184fad078012cabd 100644 (file)
@@ -159,6 +159,7 @@ static Image *ReadWBMPImage(const ImageInfo *image_info,
       image=DestroyImageList(image);
       return((Image *) NULL);
     }
+  header=0;
   if (ReadBlob(image,2,(unsigned char *) &header) == 0)
     ThrowReaderException(CorruptImageError,"ImproperImageHeader");
   if (header != 0)