audk/ShellPkg/Library
Giri Mudusuru 0b37723186 ShellPkg/UefiShellDebug1CommandsLib: Replace hardcoded SMBIOS strings.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3805

Replace hardcoded SMBIOS Anchor string and size with defines.

Fix buffer overflow as described below.

Smbios64BitPrintEPSInfo () is coded like:
UINT8  Anchor[5];

MemToString (Anchor, SmbiosTable->AnchorString, 5);

But the definition of MemToString()
  Copy Length of Src buffer to Dest buffer,
  add a NULL termination to Dest buffer.

So Anchor needs to be +1 the size of the SMBIOS Anchor string `_SM3_`.

Changes from v1 to v2:
 - Replace doxygen style inline comments

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Andrew Fish <afish@apple.com>
Signed-off-by: Giri Mudusuru <girim@apple.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-05-12 05:09:14 +00:00
..
UefiHandleParsingLib ShellPkg/Library: Fix 32-bit truncation of pointer values 2023-03-13 22:11:55 +00:00
UefiShellAcpiViewCommandLib
UefiShellBcfgCommandLib
UefiShellCEntryLib
UefiShellCommandLib ShellPkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
UefiShellDebug1CommandsLib ShellPkg/UefiShellDebug1CommandsLib: Replace hardcoded SMBIOS strings. 2023-05-12 05:09:14 +00:00
UefiShellDriver1CommandsLib ShellPkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
UefiShellInstall1CommandsLib
UefiShellLevel1CommandsLib
UefiShellLevel2CommandsLib ShellPkg/Library: Fix 32-bit truncation of pointer values 2023-03-13 22:11:55 +00:00
UefiShellLevel3CommandsLib
UefiShellLib
UefiShellNetwork1CommandsLib
UefiShellNetwork2CommandsLib