Skip to content

Commit cb7ca60

Browse files
committed
fix(r2): skip ill instruction in disassembler
in addition to 'invalid' instruction
1 parent 023c3a3 commit cb7ca60

File tree

1 file changed

+1
-1
lines changed
  • qiling/extensions/r2

1 file changed

+1
-1
lines changed

qiling/extensions/r2/r2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def disassembler(self, ql: 'Qiling', addr: int, size: int, filt: Pattern[str]=No
314314
anibbles = ql.arch.bits // 4
315315
progress = 0
316316
for inst in self.dis_nbytes(addr, size):
317-
if inst.type.lower() == 'invalid':
317+
if inst.type.lower() in ('invalid', 'ill'):
318318
break # stop disasm
319319
name, offset = self.at(inst.offset, parse=True)
320320
if filt is None or filt.search(name):

0 commit comments

Comments
 (0)