x86-64: There can be valid addresses which is greater than 0xc0000000.
This commit is contained in:
parent
de3f0a46fe
commit
b879ffa193
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue