Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a...@intel.com> Reviewed-by: Jeff Fan <jeff....@intel.com> --- .../Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c b/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c index 17e728d..8c3ee5c 100644 --- a/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c +++ b/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c @@ -3,7 +3,7 @@ configuration file and pass the information to the update driver so that the driver can perform updates accordingly. - Copyright (c) 2002 - 2010, Intel Corporation. All rights reserved.<BR> + Copyright (c) 2002 - 2015, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions @@ -678,7 +678,7 @@ UpdateStringToGuid ( if (Buffer == NULL) { return EFI_OUT_OF_RESOURCES; } - AsciiStrCpy ((CHAR8 *)Buffer, (CHAR8 *)Str); + AsciiStrCpyS ((CHAR8 *)Buffer, (StrLen + 1) / sizeof (UINT8), (CHAR8 *)Str); // // Data1 @@ -997,7 +997,7 @@ ParseUpdateDataFile ( // // Get the section name of each update // - AsciiStrCpy (Entry, "Update"); + AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update"); UpdateStrCatNumber ((UINT8 *) Entry, Index); Value = NULL; Status = UpdateGetProfileString ( -- 1.9.5.msysgit.0 ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel