audk/ShellPkg
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
..
Application ShellPkg: Create a homefilesystem environment variable 2018-10-03 11:09:47 -07:00
DynamicCommand ShellPkg/TftpDynamicCommand: Correct comments to align with the input parameter. 2018-10-09 08:43:43 +08:00
Include ShellPkg/UefiShellLib: drop DeviceHandle param of ShellOpenFileByDevicePath() 2018-08-16 20:02:50 +02:00
Library ShellPkg/dmem: Only dump sizeof (EFI_SYSTEM_TABLE) bytes for gST 2018-10-24 12:18:22 +08:00
ShellPkg.dec ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
ShellPkg.dsc ShellPkg: Remove DxeSmmPerformanceLib 2018-08-06 13:58:54 +08:00