summaryrefslogtreecommitdiff
path: root/PerformancePkg/License.txt
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2014-09-01 13:17:23 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-01 13:17:23 +0000
commit4477336d058015b2e05e890aad2d79bac636789c (patch)
tree38bd003a4b9df812ebacc627da96f5fd9e811376 /PerformancePkg/License.txt
parent5ce5ea60a96d01daaac4665ca1e27798c37759bb (diff)
downloadedk2-platforms-4477336d058015b2e05e890aad2d79bac636789c.tar.xz
ArmPlatformPkg/Bds: Correct copy of an unaligned Unicode string
When a Unicode string is not stored in a 2-byte aligned memory area, the StrnCpy() or StrCpy() functions can not be used to copy the string. The string is now copied using CopyMem(). In the same function, a copy with "AsciiStrnCpy()" has also be replaced with a copy using "CopyMem()" as the size of the string to copy is in normal cases known. Another copy using "AsciiStrnCpy()" has been corrected in order not to run off the array the string is copied into and to ensure that the copied string has a final zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16009 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PerformancePkg/License.txt')
0 files changed, 0 insertions, 0 deletions