[x64] Fill unwind reservation info bytes with 0xCC as well

This commit is contained in:
Dr. Chat 2018-11-17 11:04:25 -06:00
parent c949ce3d9c
commit 69af4a21ac
1 changed files with 3 additions and 2 deletions

View File

@ -188,8 +188,9 @@ void* X64CodeCache::PlaceGuestCode(uint32_t guest_address, void* machine_code,
std::memcpy(code_address, machine_code, code_size);
// Fill unused slots with 0xCC
std::memset(code_address + code_size, 0xCC,
xe::round_up(code_size, 16) - code_size);
std::memset(
code_address + code_size, 0xCC,
xe::round_up(code_size + unwind_reservation.data_size, 16) - code_size);
// Notify subclasses of placed code.
PlaceCode(guest_address, machine_code, code_size, stack_size, code_address,