MdePkg BaseLib: Fix a corner case of Source and Destination overlap.
authorStar Zeng <star.zeng@intel.com>
Mon, 21 Jul 2014 03:05:20 +0000 (03:05 +0000)
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 21 Jul 2014 03:05:20 +0000 (03:05 +0000)
commitd52b9d864efb0ba4b812538c45aef0b617bace39
tree872fc62ab692a4eebc9444040dd84ec0ff9bb285
parentdfa51bb619b455315a0476d0f2335da41268a2a2
MdePkg BaseLib: Fix a corner case of Source and Destination overlap.

The overlap may happen when the address of Destination in
UnicodeStrToAsciiStr() or Source in AsciiStrToUnicodeStr()
is not two bytes aligned.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15665 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/BaseLib/String.c