Skip to content

Commit 778d9d7

Browse files
committed
Fix error with the instructions which are missin disam field
1 parent c9f6e5b commit 778d9d7

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

540540
if instruct_flow:
541541
for ins in instruct_flow:
542+
if "disasm" not in ins:
543+
continue
544+
542545
yield self._parse_smali(ins["disasm"])
543546

544547
def get_strings(self) -> Set[str]:
@@ -611,6 +614,10 @@ def convert_bytecode_to_list(bytecode):
611614

612615
if instruction_flow:
613616
for ins in instruction_flow:
617+
# Skip the instruction without disam field.
618+
if "disam" not in ins:
619+
continue
620+
614621
if ins["disasm"].startswith("invoke"):
615622
if ";" in ins["disasm"]:
616623
index = ins["disasm"].rindex(";")

0 commit comments

Comments
 (0)