audk/ShellPkg/Library/UefiShellDebug1CommandsLib
Ruiyu Ni f1a7d73a68 ShellPkg/dmem: Only dump sizeof (EFI_SYSTEM_TABLE) bytes for gST
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1236

When "dmem" runs without additional arguments, it dumps the memory
content of EFI_SYSTEM_TABLE. But today's implementation dumps 512
bytes. It's not correct because sizeof (EFI_SYSTEM_TABLE) is less
than 512, the 512-read causes page fault exception in a heap-guard
enabled environment.

The patch changes the implementation to only dump
sizeof (EFI_SYSTEM_TABLE) bytes for gST.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Jim Dailey <jim_dailey@.com>
2018-10-24 12:18:22 +08:00
..
Edit
HexEdit
SmbiosView
Comp.c
Compress.c
Compress.h
Dblk.c
Dmem.c
DmpStore.c
EditInputBar.c
EditInputBar.h
EditMenuBar.c
EditMenuBar.h
EditStatusBar.c
EditStatusBar.h
EditTitleBar.c
EditTitleBar.h
EfiCompress.c
EfiDecompress.c
LoadPciRom.c
MemMap.c
Mm.c
Mode.c
Pci.c
Pci.h
SerMode.c
SetSize.c
SetVar.c
UefiShellDebug1CommandsLib.c
UefiShellDebug1CommandsLib.h
UefiShellDebug1CommandsLib.inf
UefiShellDebug1CommandsLib.uni