audk/MdeModulePkg
Gao, Zhichao 846b1652d9 MdeModulePkg/CapsulePei: Add memory pointer check
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1935

Before use the memory that is allocated through AllocateZeroPool,
we should check the memory pointer is valid to avoid using the
NULL pointer.
Add check for VariableArrayAddress that is returned from
GetScatterGatherHeadEntries. If it is NULL, directly return
the error status.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2019-06-26 16:08:48 +08:00
..
Application MdeModulePkg/CapsuleApp: Enhance Capsule-On-Disk related functions. 2019-06-26 15:08:18 +08:00
Bus MdeModulePkg/NvmExpressPei: Produce NVM Express PassThru PPI 2019-06-24 09:07:58 +08:00
Core MdeModulePkg/DxeIpl: Support Capsule On Disk. 2019-06-26 15:10:41 +08:00
Include MdeModulePkg: Add Capsule On Disk APIs into CapsuleLib. 2019-06-26 15:10:42 +08:00
Library MdeModulePkg: Add Capsule On Disk APIs into CapsuleLib. 2019-06-26 15:10:42 +08:00
Logo MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Universal MdeModulePkg/CapsulePei: Add memory pointer check 2019-06-26 16:08:48 +08:00
MdeModulePkg.dec MdeModulePkg: Add Capsule On Disk related definition. 2019-06-26 15:10:40 +08:00
MdeModulePkg.dsc MdeModulePkg: Add CapsuleOnDiskLoadPei PEIM. 2019-06-26 15:10:42 +08:00
MdeModulePkg.uni MdeModulePkg: Add Capsule On Disk related definition. 2019-06-26 15:10:40 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00