Skip to content

Commit

Permalink
fix ail blocks display to show conditionals (angr#566)
Browse files Browse the repository at this point in the history
* fix ail blocks display to show conditionals

* do a bounds check
  • Loading branch information
mahaloz authored Jan 20, 2022
1 parent 410a7ba commit 60bfb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angrmanagement/utils/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def categorize_edges(disassembly, edges):
edge_a, edge_b = items

if isinstance(disassembly, Clinic):
last_stmt = edge_a.src.statements
last_stmt = edge_a.src.statements[-1] if edge_a.src.statements else None
fallthrough = None
if isinstance(last_stmt, ConditionalJump):
fallthrough = last_stmt.false_target.value
Expand Down

0 comments on commit 60bfb37

Please sign in to comment.