Revision: 17780 http://sourceforge.net/p/edk2/code/17780 Author: shenshushi Date: 2015-07-01 08:15:27 +0000 (Wed, 01 Jul 2015) Log Message: ----------- MdeModulePkg/Library/PeiPerformanceLib: Use safe string functions to refine code.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin....@intel.com> Reviewed-by: Star Zeng <star.z...@intel.com> Modified Paths: -------------- trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c Modified: trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c =================================================================== --- trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c 2015-07-01 08:14:36 UTC (rev 17779) +++ trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c 2015-07-01 08:15:27 UTC (rev 17780) @@ -6,7 +6,7 @@ performance data to the GUIDed HOB. Due to the limitation of temporary RAM, the maximum number of performance logging entry is specified by PcdMaxPeiPerformanceLogEntries. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -190,10 +190,10 @@ LogEntryArray[Index].Handle = (EFI_PHYSICAL_ADDRESS) (UINTN) Handle; if (Token != NULL) { - AsciiStrnCpy (LogEntryArray[Index].Token, Token, PEI_PERFORMANCE_STRING_LENGTH); + AsciiStrCpyS (LogEntryArray[Index].Token, PEI_PERFORMANCE_STRING_SIZE, Token); } if (Module != NULL) { - AsciiStrnCpy (LogEntryArray[Index].Module, Module, PEI_PERFORMANCE_STRING_LENGTH); + AsciiStrCpyS (LogEntryArray[Index].Module, PEI_PERFORMANCE_STRING_SIZE, Module); } LogEntryArray[Index].EndTimeStamp = 0; ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits