]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiDpLib/Dp.c
ShellPkg: Add NULL check to pointer returned from 'AllocateZeroPool'.
authorQiu Shumin <shumin.qiu@intel.com>
Thu, 26 Nov 2015 01:51:52 +0000 (01:51 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 26 Nov 2015 01:51:52 +0000 (01:51 +0000)
commit9d41c48fe4173eaf6eaf45c3b565bd13c3a9d560
tree117ea712267fce20118d37d3c30761518acb0b6e
parentc4ace582532a1c112cdb86c20157072fae058870
ShellPkg: Add NULL check to pointer returned from 'AllocateZeroPool'.

When CustomCumulativeToken is not NULL, the CustomCumulativeData is expected non-NULL.
Add 'ASSERT' statement to ensure this.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18956 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiDpLib/Dp.c