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:
@@ -665,7 +665,7 @@ SmbiosUpdateString (
|
|||||||
//
|
//
|
||||||
TargetStrLen = AsciiStrLen(StrStart);
|
TargetStrLen = AsciiStrLen(StrStart);
|
||||||
if (InputStrLen == TargetStrLen) {
|
if (InputStrLen == TargetStrLen) {
|
||||||
AsciiStrCpy(StrStart, String);
|
AsciiStrCpyS(StrStart, TargetStrLen + 1, String);
|
||||||
//
|
//
|
||||||
// Some UEFI drivers (such as network) need some information in SMBIOS table.
|
// Some UEFI drivers (such as network) need some information in SMBIOS table.
|
||||||
// Here we create SMBIOS table and publish it in
|
// Here we create SMBIOS table and publish it in
|
||||||
|
Reference in New Issue
Block a user