Skip to content

Commit

Permalink
Merge pull request #104 from angr/wip/ropvalue
Browse files Browse the repository at this point in the history
comply the changes in ROPValue change in angrop
  • Loading branch information
Kyle-Kyle authored Jan 30, 2024
2 parents 3658278 + d029ee6 commit 6943bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rex/exploit/technique.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _ip_overwrite_with_chain(self, chain, state=None, assert_next_ip_controlled=
# if we can directly pivot to the symbolic region, do it
# the assumption is the first value in the chain is a code address
# it sounds like a reasonable assumption to me. But I can be wrong.
chain_constraints = [state.regs.sp == addr, state.regs.pc == chain._values[0][0]]
chain_constraints = [state.regs.sp == addr, state.regs.pc == chain._values[0].data]
if state.solver.satisfiable(extra_constraints=chain_constraints):
chain_addr = addr
chain_cp = chain.copy()
Expand Down

0 comments on commit 6943bd7

Please sign in to comment.