Home
last modified time | relevance | path

Searched refs:old_bytes (Results 1 – 1 of 1) sorted by relevance

/external/compiler-rt/lib/interception/
Dinterception_win.cc146 char *old_bytes = (char *)old_func; in OverrideFunction() local
153 head = RoundUpToInstrBoundary(head, old_bytes); in OverrideFunction()
161 _memcpy(trampoline, old_bytes, head); in OverrideFunction()
162 WriteJumpInstruction(trampoline + head, old_bytes + head); in OverrideFunction()
171 if (!VirtualProtect((void *)old_bytes, head, PAGE_EXECUTE_READWRITE, in OverrideFunction()
175 WriteJumpInstruction(old_bytes, (char *)new_func); in OverrideFunction()
176 _memset(old_bytes + 5, 0xCC /* int 3 */, head - 5); in OverrideFunction()
179 if (!VirtualProtect((void *)old_bytes, head, old_prot, &unused_prot)) in OverrideFunction()