Skip to content

Commit

Permalink
fix(r2): skip ill instruction in disassembler
Browse files Browse the repository at this point in the history
in addition to 'invalid' instruction
  • Loading branch information
chinggg committed Sep 4, 2022
1 parent 023c3a3 commit cb7ca60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiling/extensions/r2/r2.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def disassembler(self, ql: 'Qiling', addr: int, size: int, filt: Pattern[str]=No
anibbles = ql.arch.bits // 4
progress = 0
for inst in self.dis_nbytes(addr, size):
if inst.type.lower() == 'invalid':
if inst.type.lower() in ('invalid', 'ill'):
break # stop disasm
name, offset = self.at(inst.offset, parse=True)
if filt is None or filt.search(name):
Expand Down

0 comments on commit cb7ca60

Please sign in to comment.