Skip to content

Commit 4866bab

Browse files
committed
Fix error with the instructions which are missin disam field
1 parent f0aff1b commit 4866bab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

quark/core/rzapkinfo.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ def get_method_bytecode(
492492

493493
if instruct_flow:
494494
for ins in instruct_flow:
495+
if "disasm" not in ins:
496+
continue
497+
495498
yield self._parse_smali(ins["disasm"])
496499

497500
def get_strings(self) -> Set[str]:
@@ -564,6 +567,10 @@ def convert_bytecode_to_list(bytecode):
564567

565568
if instruction_flow:
566569
for ins in instruction_flow:
570+
# Skip the instruction without disam field.
571+
if "disam" not in ins:
572+
continue
573+
567574
if ins["disasm"].startswith("invoke"):
568575
if ";" in ins["disasm"]:
569576
index = ins["disasm"].rindex(";")

0 commit comments

Comments
 (0)