diff options
author | Star Zeng <star.zeng@intel.com> | 2014-11-27 02:51:04 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2014-11-27 02:51:04 +0000 |
commit | 80fbf5863264e7330eea3dc5ed6153eab57ed3ff (patch) | |
tree | 48dd385cd356ad0f1fda864b63fb53650e03e2d1 /MdeModulePkg/Core | |
parent | a71c80b66884511760f4c829375f069f6fa22c4f (diff) | |
download | edk2-platforms-80fbf5863264e7330eea3dc5ed6153eab57ed3ff.tar.xz |
MdeModulePkg DxeCore: Check pointer AllocInfoData before dereferencing.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16453 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c index dca0008f75..60971ba9f9 100644 --- a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c +++ b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c @@ -838,6 +838,7 @@ CoreUpdateProfileAllocate ( if (EFI_ERROR (Status)) {
return FALSE;
}
+ ASSERT (AllocInfoData != NULL);
AllocInfo = &AllocInfoData->AllocInfo;
AllocInfoData->Signature = MEMORY_PROFILE_ALLOC_INFO_SIGNATURE;
AllocInfo->Header.Signature = MEMORY_PROFILE_ALLOC_INFO_SIGNATURE;
|