audk/ShellPkg/Library/UefiShellDebug1CommandsLib
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
..
Edit ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HexEdit ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmbiosView ShellPkg/UefiShellDebug1CommandsLib: Replace hardcoded SMBIOS strings. 2023-05-12 05:09:14 +00:00
Comp.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Compress.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Compress.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dblk.c ShellPkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
Dmem.c ShellPkg: UefiShellDebug1CommandsLib: Uefi Config Tables in Dmem.c 2023-04-13 05:52:32 +00:00
DmpStore.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditInputBar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditInputBar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditMenuBar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditMenuBar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditStatusBar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditStatusBar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditTitleBar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EditTitleBar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EfiCompress.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EfiDecompress.c ShellPkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
LoadPciRom.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemMap.c ShellPkg: Update shell command memmap to show unaccepted memory 2022-11-01 10:08:10 +00:00
Mm.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Mode.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Pci.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Pci.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SerMode.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetSize.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetVar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellDebug1CommandsLib.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellDebug1CommandsLib.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellDebug1CommandsLib.inf ShellPkg: UefiShellDebug1CommandsLib: Uefi Config Tables in Dmem.c 2023-04-13 05:52:32 +00:00
UefiShellDebug1CommandsLib.uni ShellPkg: UefiShellDebug1CommandsLib: Uefi Config Tables in Dmem.c 2023-04-13 05:52:32 +00:00