mirror of https://github.com/acidanthera/audk.git
0b37723186
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> |
||
---|---|---|
.. | ||
Edit | ||
HexEdit | ||
SmbiosView | ||
Comp.c | ||
Compress.c | ||
Compress.h | ||
Dblk.c | ||
Dmem.c | ||
DmpStore.c | ||
EditInputBar.c | ||
EditInputBar.h | ||
EditMenuBar.c | ||
EditMenuBar.h | ||
EditStatusBar.c | ||
EditStatusBar.h | ||
EditTitleBar.c | ||
EditTitleBar.h | ||
EfiCompress.c | ||
EfiDecompress.c | ||
LoadPciRom.c | ||
MemMap.c | ||
Mm.c | ||
Mode.c | ||
Pci.c | ||
Pci.h | ||
SerMode.c | ||
SetSize.c | ||
SetVar.c | ||
UefiShellDebug1CommandsLib.c | ||
UefiShellDebug1CommandsLib.h | ||
UefiShellDebug1CommandsLib.inf | ||
UefiShellDebug1CommandsLib.uni |