Skip to content

Commit 66aead7

Browse files
committed
Fix error with the instructions which are missin disam field
1 parent d635f2d commit 66aead7

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
@@ -527,6 +527,9 @@ def get_method_bytecode(
527527

528528
if instruct_flow:
529529
for ins in instruct_flow:
530+
if "disasm" not in ins:
531+
continue
532+
530533
yield self._parse_smali(ins["disasm"])
531534

532535
def get_strings(self) -> Set[str]:
@@ -599,6 +602,10 @@ def convert_bytecode_to_list(bytecode):
599602

600603
if instruction_flow:
601604
for ins in instruction_flow:
605+
# Skip the instruction without disam field.
606+
if "disam" not in ins:
607+
continue
608+
602609
if ins["disasm"].startswith("invoke"):
603610
if ";" in ins["disasm"]:
604611
index = ins["disasm"].rindex(";")

0 commit comments

Comments
 (0)