]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Added code to clear "Buffer" before using it. This is supposed to fix the odd issue...
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 Sep 2006 02:09:07 +0000 (02:09 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 Sep 2006 02:09:07 +0000 (02:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1648 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/TianoTools/GenDepex/GenDepex.c

index 3adde2c1fcf35c47c70de4d0c096e317f7860b57..3818649330555051e951ae5883c11833d6b76d13 100644 (file)
@@ -374,6 +374,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
+  memset (Buffer, 0, FileSize + BUFFER_SIZE);\r
   fread (Buffer, FileSize, 1, InFile);\r
 \r
   Ptrx    = Buffer;\r