From: Cristy Date: Tue, 23 Jan 2018 12:48:56 +0000 (-0500) Subject: Eliminate uninitialized value X-Git-Tag: 7.0.7-23~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=487f950075ae21b4634a04cb28c2f47f95d62963;p=imagemagick Eliminate uninitialized value Credit OSS Fuzz --- diff --git a/coders/pdb.c b/coders/pdb.c index 9404e0fa3..502735205 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -330,6 +330,7 @@ static Image *ReadPDBImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Determine if this a PDB image file. */ + (void) ResetMagickMemory(&pdb_info,0,sizeof(pdb_info)); count=ReadBlob(image,sizeof(pdb_info.name),(unsigned char *) pdb_info.name); if (count != sizeof(pdb_info.name)) ThrowReaderException(CorruptImageError,"ImproperImageHeader");