Skip to content

Commit

Permalink
Add check if function was decompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Feb 28, 2024
1 parent 1cc4c24 commit fae76b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion decompiler/frontend/binaryninja/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def _get_binninja_function(self, function_identifier: object) -> binaryninja.fun
if function is None:
raise RuntimeError(f"BNinja frontend could not resolve function with identifier '{function_identifier}'")

# TODO: Check if function is analyzed, potentially retrying, etc...
if function.analysis_skipped:
raise RuntimeError(f"BNinja skipped function analysis for function '{function.name}' with reason '{function.analysis_skip_reason.name}'")

return function

Expand Down

0 comments on commit fae76b4

Please sign in to comment.