mirror of https://github.com/acidanthera/audk.git
c6c501654e
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> |
||
---|---|---|
.. | ||
Dependency.c | ||
Dispatcher.c | ||
Handle.c | ||
HeapGuard.c | ||
HeapGuard.h | ||
InstallConfigurationTable.c | ||
Locate.c | ||
MemoryAttributesTable.c | ||
Notify.c | ||
Page.c | ||
PiSmmCore.c | ||
PiSmmCore.h | ||
PiSmmCore.inf | ||
PiSmmCore.uni | ||
PiSmmCoreExtra.uni | ||
PiSmmCorePrivateData.h | ||
PiSmmIpl.c | ||
PiSmmIpl.inf | ||
PiSmmIpl.uni | ||
PiSmmIplExtra.uni | ||
Pool.c | ||
Smi.c | ||
SmiHandlerProfile.c | ||
SmramProfileRecord.c |