]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
MdeModulePkg: Refine code to use Strn**S safe functions instead of Str**S ones in...
authorQiu Shumin <shumin.qiu@intel.com>
Wed, 8 Jul 2015 01:08:09 +0000 (01:08 +0000)
committershenshushi <shenshushi@Edk2>
Wed, 8 Jul 2015 01:08:09 +0000 (01:08 +0000)
commit8feb7452acedf5bbe0f6c3accac8562b7cc29b3d
tree8f13834f1cfebcc75adf88b4cd592fa1e11975e1
parent5ddccf34c4f57e6e7fca767c1628a0d98ce8bdaf
MdeModulePkg: Refine code to use Strn**S safe functions instead of Str**S ones in some cases.

Safe string functions may ASSERT when the source length is larger than the MaxDest. This patch use Strn**S to indicate the copy length.

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@17867 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c
MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c