diff options
author | Andrew Fish <afish@apple.com> | 2014-06-25 04:54:47 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-06-25 04:54:47 +0000 |
commit | 2f497dc147a1f05a13b8753a88b3e23e23a6b8a0 (patch) | |
tree | c35ed87d7bcce72f0efbc720e59872bf09068045 | |
parent | 84043adfe24d18d46ead4a3d743f61efdc0c9824 (diff) | |
download | edk2-2f497dc147a1f05a13b8753a88b3e23e23a6b8a0.tar.gz edk2-2f497dc147a1f05a13b8753a88b3e23e23a6b8a0.tar.bz2 edk2-2f497dc147a1f05a13b8753a88b3e23e23a6b8a0.zip |
MdeModulePkg/DxeMain: Zero ImageContext local variable before passing it down to PeCoffLoaderRelocateImageExtraAction()
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15587 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 015b766330..5a8814041c 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -296,8 +296,9 @@ DxeMain ( //
// Report DXE Core image information to the PE/COFF Extra Action Library
//
+ ZeroMem (&ImageContext, sizeof (ImageContext));
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)gDxeCoreLoadedImage->ImageBase;
- ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);
+ ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);
PeCoffLoaderRelocateImageExtraAction (&ImageContext);
//
|