Skip to content

Commit

Permalink
VEXIRSBConverter: Fix cond jump in blocks with more than one cond jum…
Browse files Browse the repository at this point in the history
…ps. (#257)
  • Loading branch information
ltfish authored Nov 9, 2024
1 parent aaf8c39 commit 6173abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ailment/converter_vex.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,9 +801,9 @@ def convert(irsb, manager): # pylint:disable=arguments-differ
)
)
elif irsb.jumpkind == "Ijk_Boring":
if len(conditional_jumps) == 1:
if conditional_jumps:
# fill in the false target
cond_jump = conditional_jumps[0]
cond_jump = conditional_jumps[-1]
cond_jump.false_target = VEXExprConverter.convert(irsb.next, manager)

else:
Expand Down

0 comments on commit 6173abf

Please sign in to comment.