From: jwang36 Date: Sat, 30 Sep 2006 02:09:07 +0000 (+0000) Subject: Added code to clear "Buffer" before using it. This is supposed to fix the odd issue... X-Git-Tag: edk2-stable201903~24226 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=a7aa21c958525fd57c113d49c89b93f4993fac43;hp=ac242ae4a16964489ab9107f119ef1a4fcfdc1f6 Added code to clear "Buffer" before using it. This is supposed to fix the odd issue happened in sscanf. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1648 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/TianoTools/GenDepex/GenDepex.c b/Tools/Source/TianoTools/GenDepex/GenDepex.c index 3adde2c1fc..3818649330 100644 --- a/Tools/Source/TianoTools/GenDepex/GenDepex.c +++ b/Tools/Source/TianoTools/GenDepex/GenDepex.c @@ -374,6 +374,7 @@ Returns: return EFI_ABORTED; } + memset (Buffer, 0, FileSize + BUFFER_SIZE); fread (Buffer, FileSize, 1, InFile); Ptrx = Buffer;