mirror of
https://github.com/frida/tinycc
synced 2025-01-01 17:44:26 +03:00
x86-64: There can be valid addresses which is greater than 0xc0000000.
This commit is contained in:
parent
de3f0a46fe
commit
b879ffa193
2
tcc.c
2
tcc.c
@ -10193,7 +10193,7 @@ static int rt_get_caller_pc(unsigned long *paddr,
|
||||
fp = uc->uc_mcontext.gregs[REG_RBP];
|
||||
for(i=1;i<level;i++) {
|
||||
/* XXX: check address validity with program info */
|
||||
if (fp <= 0x1000 || fp >= 0xc0000000)
|
||||
if (fp <= 0x1000)
|
||||
return -1;
|
||||
fp = ((unsigned long *)fp)[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user