From: Cristy Date: Sun, 18 Feb 2018 13:06:41 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5707 X-Git-Tag: 7.0.7-23~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21e1ac88739dbf99be45782de0dc299b162fcdf5;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5707 --- diff --git a/coders/wbmp.c b/coders/wbmp.c index abbb5f4d7..66232acdf 100644 --- a/coders/wbmp.c +++ b/coders/wbmp.c @@ -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)