mirror_edk2/MdeModulePkg/Core
Jian J Wang c6c501654e MdeModulePkg/Core: Fix potential array overflow
In the method DumpGuardedMemoryBitmap() and SetAllGuardPages(), the code
didn't check if the global mMapLevel is legal value or not, which leaves
a logic hole causing potential array overflow in code followed.

This patch adds sanity check before any array reference in those methods.

Cc: Wu Hao <hao.a.wu@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Wu Hao <hao.a.wu@intel.com>
2017-11-24 08:35:29 +08:00
..
Dxe MdeModulePkg/Core: Fix potential array overflow 2017-11-24 08:35:29 +08:00
DxeIplPeim MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
Pei MdeModulePkg: Update PeiCore consumes PCD to get the init value in temp stack 2017-11-03 17:45:47 +08:00
PiSmmCore MdeModulePkg/Core: Fix potential array overflow 2017-11-24 08:35:29 +08:00
RuntimeDxe MdeModulePkg: Update RuntimeDxe Crc32 to check the input parameter 2017-10-16 11:23:07 +08:00