Closed astewart-bah closed 7 months ago
should be fixed by https://github.com/angr/angrop/pull/82 notice that this PR also adds two more APIs:
rop.shift
rop.retsled
this CI testcase chains two different function calls into one chain and works: https://github.com/angr/angrop/pull/82/files#diff-add18372f722092ba56ec70ef9cd474a14e028d17b2ee6b84e01e86fb3971783R60
this issue is fixed. let me know if the issue persists
sorry for closing the issue early before the PR was merged. But now the PR is merged. It is able to generate clean function invocation chain on ARM
Description
Take the following chain for example:
This chain calls realloc(0xcafebabe, 0xa) Note how 0 is popped into LR. When the program begins executing realloc(), it will push the contents of LR onto the stack. When the program finishes execututing realloc(), the 0 value from LR is popped into PC and this will SEGFAULT.
Steps to reproduce the bug
Attached is a zip file. Unzip and run start.sh to reproduce the problem chain. angrop_RL_issue.zip
Environment
No response
Additional context
No response