[PATCH] Fix CopyMem() not handling overlaps
Brought to you by:
noxorc
Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/BaseMemoryLib.h
"(CopyMem) must handle the case where SourceBuffer overlaps DestinationBuffer".
Having the gnu-efi version of CopyMem differ from the EDK2 version can lead to
extremely hard to troubleshoot issues as well as very unexpected results. So
make sure our version follows the same guidelines.
commit 41e4d11d118973969f494c8a4ae9ccbff2684d4a
Author: Pete Batard pete@akeo.ie
Date: Mon Mar 1 11:41:25 2021 +0000