audk/MdeModulePkg
Zeng, Star bf14e1077a Check InternalAllocPoolByIndex status before refer buffer.
Original code refers FreePoolHdr without check Status. It is obvious wrong and has risk.

Aslo, if InternalAllocPoolByIndex() returns an error, then *FreePoolHdr is assigned to an uninitialized value. So we init Hdr be NULL.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Zeng, Star" <star.zeng@intel.com>
Reviewed-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Fan, Jeff" <jeff.fan@intel.com>
Reviewed-by: "Kinney, Michael D" <michael.d.kinney@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18932 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-25 02:33:06 +00:00
..
Application MdeModulePkg:Refine the UiApp 2015-11-23 09:37:24 +00:00
Bus MdeModulePkg: Fix a PciBusDxe hot plug bug 2015-11-03 02:34:21 +00:00
Core Check InternalAllocPoolByIndex status before refer buffer. 2015-11-25 02:33:06 +00:00
Include MdeModulePkg FileExplorerDxe: Create file explorer Protocol. 2015-11-23 05:42:21 +00:00
Library MdeModulePkg/UefiBootManagerLib: Always create MemoryTypeInfo variable 2015-11-24 06:56:05 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg/BdsDxe: Fix EBC build failure 2015-11-24 06:57:47 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg:Create Boot Manager Library 2015-11-23 09:32:08 +00:00
MdeModulePkg.dsc MdeModulePkg:Refine the UiApp 2015-11-23 09:37:24 +00:00
MdeModulePkg.uni MdeModulePkg PiDxeS3BootScriptLib: Remove a hidden assumption. 2015-09-15 07:49:12 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00