Menu

#77 [PATCH] Fix CopyMem() not handling overlaps

Unstable_(example)
closed
None
5
2021-03-08
2021-03-01
Pete Batard
No

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.

1 Attachments

Discussion

  • Nigel Croxon

    Nigel Croxon - 2021-03-08
    • status: open --> closed
    • assigned_to: Nigel Croxon
     
  • Nigel Croxon

    Nigel Croxon - 2021-03-08

    commit 41e4d11d118973969f494c8a4ae9ccbff2684d4a
    Author: Pete Batard pete@akeo.ie
    Date: Mon Mar 1 11:41:25 2021 +0000

    Fix CopyMem() not handling overlaps
    
     

Log in to post a comment.

MongoDB Logo MongoDB