summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/SecurityPkg.dsc
diff options
context:
space:
mode:
authorGao, Zhichao <zhichao.gao@intel.com>2019-06-25 11:22:49 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-06-26 16:08:48 +0800
commit846b1652d99a60d91805648d7e395f084e097465 (patch)
tree59447b0d892f5c1d2be68251909bede913631483 /SecurityPkg/SecurityPkg.dsc
parentc1227348e3722be4862fea03e01ed9ee8a01d081 (diff)
downloadedk2-846b1652d99a60d91805648d7e395f084e097465.tar.gz
edk2-846b1652d99a60d91805648d7e395f084e097465.tar.bz2
edk2-846b1652d99a60d91805648d7e395f084e097465.zip
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>
Diffstat (limited to 'SecurityPkg/SecurityPkg.dsc')
0 files changed, 0 insertions, 0 deletions