Skip to content

Commit

Permalink
Disabling memory bit test when pagesize is not 4K
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Nov 5, 2024
1 parent a51f684 commit 6158a0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libtools/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,8 @@ printf_log(LOG_NONE, DumpCPURegs(emu, R_RIP, emu->segs[_CS]==0x23));

void check_exec(x64emu_t* emu, uintptr_t addr)
{
if(box64_pagesize!=4096)
return; //disabling the test, 4K pagesize simlation isn't good enough for this
while((getProtection(addr)&(PROT_EXEC|PROT_READ))!=(PROT_EXEC|PROT_READ)) {
R_RIP = addr; // incase there is a slight difference
emit_signal(emu, SIGSEGV, (void*)addr, 0xecec);
Expand Down

0 comments on commit 6158a0a

Please sign in to comment.