Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle committed Apr 30, 2024
1 parent 5655d00 commit da09c6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions angrop/rop_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def next_pc_idx(self):
in these case, the value will be presented as symbolic "next_pc" in _values.
it will be concretized when adding new gadgets or doing chain concatenation
"""
for idx in range(len(self._values)):
x = self._values[idx]
for idx, x in enumerate(self._values):
if x.symbolic and any(y.startswith("next_pc_") for y in x.ast.variables):
return idx
return None
Expand Down

0 comments on commit da09c6b

Please sign in to comment.