Revision: 16709
          http://sourceforge.net/p/edk2/code/16709
Author:   vanjeff
Date:     2015-02-03 08:13:43 +0000 (Tue, 03 Feb 2015)
Log Message:
-----------
MdeModulePkg DxeCore: Check pointer AllocInfoData before dereferencing.

(Sync patch r16453 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.z...@intel.com>
Reviewed-by: Eric Dong <eric.d...@intel.com>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/16453

Modified Paths:
--------------
    branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c

Modified: branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c        
2015-02-03 08:12:46 UTC (rev 16708)
+++ branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c        
2015-02-03 08:13:43 UTC (rev 16709)
@@ -838,6 +838,7 @@
   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;


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to