MdeModulePkg:Modify the incorrect DestStr length in safe string functions
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17847 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1182,7 +1182,7 @@ InsertFontPackage (
|
||||
}
|
||||
FontInfo->FontStyle = FontPkgHdr->FontStyle;
|
||||
FontInfo->FontSize = FontPkgHdr->Cell.Height;
|
||||
StrCpyS (FontInfo->FontName, sizeof (FontInfo->FontName) / sizeof (CHAR16), FontPkgHdr->FontFamily);
|
||||
StrCpyS (FontInfo->FontName, (FontInfoSize - OFFSET_OF(EFI_FONT_INFO,FontName)) / sizeof (CHAR16), FontPkgHdr->FontFamily);
|
||||
|
||||
if (IsFontInfoExisted (Private, FontInfo, NULL, NULL, NULL)) {
|
||||
Status = EFI_UNSUPPORTED;
|
||||
|
Reference in New Issue
Block a user