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 ShellPkg/AcpiView: ERST Parser 2023-02-02 02:49:33 +00:00
UefiShellBcfgCommandLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellCEntryLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
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 ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellLevel1CommandsLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellLevel2CommandsLib ShellPkg/Library: Fix 32-bit truncation of pointer values 2023-03-13 22:11:55 +00:00
UefiShellLevel3CommandsLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellNetwork1CommandsLib ShellPkg: Improve "ping" output by adding equals sign after time 2023-03-06 02:41:00 +00:00
UefiShellNetwork2CommandsLib ShellPkg: Improve "ping" output by adding equals sign after time 2023-03-06 02:41:00 +00:00