Revision: 17781 http://sourceforge.net/p/edk2/code/17781 Author: shenshushi Date: 2015-07-01 08:19:56 +0000 (Wed, 01 Jul 2015) Log Message: ----------- MdeModulePkg/Library/SmmCorePerformanceLib: 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/SmmCorePerformanceLib/SmmCorePerformanceLib.c Modified: trunk/edk2/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c =================================================================== --- trunk/edk2/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c 2015-07-01 08:15:27 UTC (rev 17780) +++ trunk/edk2/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c 2015-07-01 08:19:56 UTC (rev 17781) @@ -203,10 +203,10 @@ GaugeEntryExArray[Index].Handle = (EFI_PHYSICAL_ADDRESS) (UINTN) Handle; if (Token != NULL) { - AsciiStrnCpy (GaugeEntryExArray[Index].Token, Token, SMM_PERFORMANCE_STRING_LENGTH); + AsciiStrCpyS (GaugeEntryExArray[Index].Token, SMM_PERFORMANCE_STRING_SIZE, Token); } if (Module != NULL) { - AsciiStrnCpy (GaugeEntryExArray[Index].Module, Module, SMM_PERFORMANCE_STRING_LENGTH); + AsciiStrCpyS (GaugeEntryExArray[Index].Module, SMM_PERFORMANCE_STRING_SIZE, Module); } GaugeEntryExArray[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