mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Universal/SmbiosDxe: Use safe string functions to refine code.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17788 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3860b1a232
commit
5e4b8bfe43
|
@ -665,7 +665,7 @@ SmbiosUpdateString (
|
|||
//
|
||||
TargetStrLen = AsciiStrLen(StrStart);
|
||||
if (InputStrLen == TargetStrLen) {
|
||||
AsciiStrCpy(StrStart, String);
|
||||
AsciiStrCpyS(StrStart, TargetStrLen + 1, String);
|
||||
//
|
||||
// Some UEFI drivers (such as network) need some information in SMBIOS table.
|
||||
// Here we create SMBIOS table and publish it in
|
||||
|
|
Loading…
Reference in New Issue