Skip to content

Commit

Permalink
make chains with retn 0x10 portable
Browse files Browse the repository at this point in the history
  • Loading branch information
astewart-bah committed May 5, 2024
1 parent d0b6a0a commit da90c2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions angrop/rop_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def _concretize_chain_values(self, constraints=None, timeout=None, preserve_next
"""
concretize chain values with a timeout
"""
if self.next_pc_idx() is not None:
return (self + self._rop.chain_builder.shift(self._p.arch.bytes))._concretize_chain_values(constraints=constraints, timeout=timeout, preserve_next_pc=preserve_next_pc)
if timeout is None:
timeout = self._timeout
values = rop_utils.timeout(timeout)(self.__concretize_chain_values)(constraints=constraints)
Expand Down

0 comments on commit da90c2e

Please sign in to comment.