]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg S3Resume2Pei: Fix ASSERT in WriteToOsS3PerformanceData
authorHao Wu <hao.a.wu@intel.com>
Mon, 13 Jul 2015 01:24:24 +0000 (01:24 +0000)
committerhwu1225 <hwu1225@Edk2>
Mon, 13 Jul 2015 01:24:24 +0000 (01:24 +0000)
commitc1fd37cd6bcb98143bd4a44f427735a748058ad8
tree217efa36dc1ea2ed983c186c6439f6e08b7aa2fc
parent2673ffb3561be2bc31bbf0a81801c0b88c5b7fbd
UefiCpuPkg S3Resume2Pei: Fix ASSERT in WriteToOsS3PerformanceData

This commit will resolve the issue brought by r17744.

AsciiStrCpyS (PerfData->Token, PERF_TOKEN_SIZE, Token);

The above using of AsciiStrCpyS will cause ASSERT if Token is longer than
PerfData->Token. Therefore, AsciiStrnCatS is used here to resolve the
issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17934 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c