audk/ShellPkg/Library
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
..
UefiHandleParsingLib ShellPkg/UefiHandleParsingLib: Remove an unused PCD 2018-09-30 09:16:03 +08:00
UefiShellAcpiViewCommandLib ShellPkg/acpi: Fix XCODE5 X64 build failure 2018-08-07 15:24:56 +08:00
UefiShellBcfgCommandLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellCEntryLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellCommandLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellDebug1CommandsLib ShellPkg/dmem: Only dump sizeof (EFI_SYSTEM_TABLE) bytes for gST 2018-10-24 12:18:22 +08:00
UefiShellDriver1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellInstall1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLevel1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLevel2CommandsLib ShellPkg-Cd: Ensure all valid cd targets are handled properly 2018-10-12 13:45:34 +08:00
UefiShellLevel3CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLib ShellPkg/UefiShellLib: rebase ShellOpenFileByDevicePath() to UefiLib API 2018-08-16 20:02:51 +02:00
UefiShellNetwork1CommandsLib ShellPkg: Remove trailing white space 2018-09-10 08:39:34 +08:00
UefiShellNetwork2CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00