Skip to content

Commit 6c34afa

Browse files
committed
Handle HLIL graphs with NORET
Fixes #15
1 parent 3d03b7f commit 6c34afa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ def graph_il_insn(g, head, il, label=None):
102102
op_index = 0
103103
ops = enumerate(il.operands)
104104
for _, o in ops:
105-
edge_label, ty = il.ILOperations[il.operation][op_index]
105+
try:
106+
edge_label, ty = il.ILOperations[il.operation][op_index]
107+
except IndexError:
108+
# Some operations don't have operations (like HLIL_NORET)
109+
continue
106110

107111
# For var_ssa_dest_and_src, it has four operands while the ILOperations only records three
108112
# >>> il

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"Windows": "",
2626
"Linux": ""
2727
},
28-
"version": "1.3.0",
28+
"version": "1.4.2",
2929
"minimumbinaryninjaversion": 2096
3030
}

0 commit comments

Comments
 (0)