Skip to content

Commit

Permalink
Handle HLIL graphs with NORET
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
withzombies committed May 8, 2023
1 parent 3d03b7f commit 6c34afa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion __init__.py
Expand Up @@ -102,7 +102,11 @@ def graph_il_insn(g, head, il, label=None):
op_index = 0
ops = enumerate(il.operands)
for _, o in ops:
edge_label, ty = il.ILOperations[il.operation][op_index]
try:
edge_label, ty = il.ILOperations[il.operation][op_index]
except IndexError:
# Some operations don't have operations (like HLIL_NORET)
continue

# For var_ssa_dest_and_src, it has four operands while the ILOperations only records three
# >>> il
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Expand Up @@ -25,6 +25,6 @@
"Windows": "",
"Linux": ""
},
"version": "1.3.0",
"version": "1.4.2",
"minimumbinaryninjaversion": 2096
}

0 comments on commit 6c34afa

Please sign in to comment.