Add out-of-bounds checking when resolving xrefs

pull/2/head
Bernhard Mueller 7 years ago
parent 8828b21e9c
commit 0d96978c44
  1. 7
      disassembler/disassembly.py

@ -104,8 +104,11 @@ class Disassembly:
j = 0
while(self.blocks[j].end_addr < dest):
j += 1
try:
while(self.blocks[j].end_addr < dest):
j += 1
except IndexError:
continue
self.xrefs.append((block.id, self.blocks[j].id))

Loading…
Cancel
Save