diff options
author | Star Zeng <star.zeng@intel.com> | 2016-03-18 09:52:44 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-03-22 11:00:40 +0800 |
commit | c2a07a10b1a781fe18942f54d6cf282aa855f72c (patch) | |
tree | 05a90fed000ef48201ef44afb789dbe75160040f /MdeModulePkg/Application | |
parent | f0459afe9172587bfdcef55ebe4beddb6fc8d286 (diff) | |
download | edk2-platforms-c2a07a10b1a781fe18942f54d6cf282aa855f72c.tar.xz |
MdeModulePkg DxeCore: Address boundary check for Type AllocateAddress
Check for Type AllocateAddress,
if NumberOfPages is 0 or
if (NumberOfPages << EFI_PAGE_SHIFT) is above MAX_ADDRESS or
if (Start + NumberOfBytes) rolls over 0 or
if Start is above MAX_ADDRESS or
if End is above MAX_ADDRESS,
return EFI_NOT_FOUND.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Application')
0 files changed, 0 insertions, 0 deletions