]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/EbcDxe: Mitigate memcpy intrinsics
authorMarvin H?user <mhaeuser@posteo.de>
Sun, 15 Aug 2021 20:11:56 +0000 (04:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 30 Aug 2021 01:58:31 +0000 (01:58 +0000)
commitb04453d36bd87735aadd29adbefce8d147f18a35
treea2b0b341f7da56ee2d2486a3bb8d33d2caae4a79
parent77d5fa80246e8784f89e109ff9dadfeb7089ff85
MdeModulePkg/EbcDxe: Mitigate memcpy intrinsics

Assignments of structure values cause the emission of memcpy()
intrinsics by the CLANG38 toolchain. Substitute the assignments with
calls to CopyMem() to mitigate the issue.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Signed-off-by: Marvin H?user <mhaeuser@posteo.de>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c
MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdBreakpoint.c
MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c