Skip to content

Commit

Permalink
Fix for a rare bug
Browse files Browse the repository at this point in the history
BUG: IDA might return that the start and end address of a basic block are 0 (zero).
  • Loading branch information
joxeankoret authored Dec 13, 2018
1 parent 73eac8d commit d11e116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sourcexp_ida.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ def do_export(self, f):
flow = FlowChart(func)
for block in flow:
block_ea = block.startEA
if block.endEA == 0 or block_ea == BADADDR:
continue

# ...and each instruction on each basic block
for ea in list(Heads(block.startEA, block.endEA)):
Expand Down

0 comments on commit d11e116

Please sign in to comment.