audk/MdeModulePkg/Core/PiSmmCore
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
..
Dependency.c
Dispatcher.c MdeModulePkg: Update PiSmmCore to set correct ImageAddress into LoadedImage 2017-04-25 09:48:22 +08:00
Handle.c MdeModulePkg: Enhance the debug message for InstallProtocolInterface 2017-06-23 14:46:41 +08:00
HeapGuard.c MdeModulePkg/Core: Fix potential array overflow 2017-11-24 08:35:29 +08:00
HeapGuard.h MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
InstallConfigurationTable.c MdeModulePkg: Fix use-after-free error in InstallConfigurationTable() 2017-06-20 16:55:10 +08:00
Locate.c MdeModulePkg: Return invalid param in LocateProtocol for Protocol==NULL 2017-06-21 21:37:34 +08:00
MemoryAttributesTable.c
Notify.c
Page.c MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
PiSmmCore.c MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
PiSmmCore.h MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
PiSmmCore.inf MdeModulePkg/Core: Add missing header files into inf 2017-11-24 08:35:29 +08:00
PiSmmCore.uni
PiSmmCoreExtra.uni
PiSmmCorePrivateData.h
PiSmmIpl.c
PiSmmIpl.inf
PiSmmIpl.uni
PiSmmIplExtra.uni
Pool.c MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
Smi.c
SmiHandlerProfile.c MdeModulePkg SmiHandlerProfile: Use fixed data type in data structure 2017-05-24 15:27:34 +08:00
SmramProfileRecord.c