From 21e1ac88739dbf99be45782de0dc299b162fcdf5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 18 Feb 2018 08:06:41 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5707 --- coders/wbmp.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.40.0