sigsegv.cpp: Add addr32 decode

With this fix I can compile with ./configure --enable-addressing=direct,0x100000
and then I don't need to change vm.mmap_min_addr and hence without root
privileges
This commit is contained in:
Vladimir Serbinenko 2019-03-21 15:13:53 +01:00
parent 143b0827dd
commit 6267af0315
1 changed files with 8 additions and 0 deletions

View File

@ -1018,6 +1018,14 @@ static bool ix86_skip_instruction(SIGSEGV_REGISTER_TYPE * regs)
transfer_size = SIZE_WORD;
}
#if defined(__x86_64__) || defined(_M_X64)
// addr32
if (*eip == 0x67) {
eip++;
len++;
}
#endif
// REX prefix
#if defined(__x86_64__) || defined(_M_X64)
struct rex_t {