diff options
author | Hao Wu <hao.a.wu@intel.com> | 2015-07-13 01:24:24 +0000 |
---|---|---|
committer | hwu1225 <hwu1225@Edk2> | 2015-07-13 01:24:24 +0000 |
commit | c1fd37cd6bcb98143bd4a44f427735a748058ad8 (patch) | |
tree | 217efa36dc1ea2ed983c186c6439f6e08b7aa2fc /BaseTools/Source/C | |
parent | 2673ffb3561be2bc31bbf0a81801c0b88c5b7fbd (diff) | |
download | edk2-platforms-c1fd37cd6bcb98143bd4a44f427735a748058ad8.tar.xz |
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
Diffstat (limited to 'BaseTools/Source/C')
0 files changed, 0 insertions, 0 deletions