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>
This commit is contained in:
committed by
mergify[bot]
parent
77d5fa8024
commit
b04453d36b
@@ -219,7 +219,11 @@ EdbCheckBreakpoint (
|
||||
//
|
||||
// If hit, record current breakpoint
|
||||
//
|
||||
DebuggerPrivate->DebuggerBreakpointContext[EFI_DEBUGGER_BREAKPOINT_MAX] = DebuggerPrivate->DebuggerBreakpointContext[Index];
|
||||
CopyMem (
|
||||
&DebuggerPrivate->DebuggerBreakpointContext[EFI_DEBUGGER_BREAKPOINT_MAX],
|
||||
&DebuggerPrivate->DebuggerBreakpointContext[Index],
|
||||
sizeof (DebuggerPrivate->DebuggerBreakpointContext[EFI_DEBUGGER_BREAKPOINT_MAX])
|
||||
);
|
||||
DebuggerPrivate->DebuggerBreakpointContext[EFI_DEBUGGER_BREAKPOINT_MAX].State = TRUE;
|
||||
//
|
||||
// Do not set Breakpoint flag. We record the address here just let it not patch breakpoint address when de-init.
|
||||
|
Reference in New Issue
Block a user