Skip to content

Commit

Permalink
Fix support for Binary Ninja 3.5 by not requiring SymbolicFunctionSym…
Browse files Browse the repository at this point in the history
…bol (#412)
  • Loading branch information
blattm authored May 16, 2024
1 parent e6ceba5 commit ba2a67a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion decompiler/frontend/binaryninja/handlers/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ def __init__(self, lifter: ObserverLifter):
SymbolType.ImportedDataSymbol: Symbol,
SymbolType.ExternalSymbol: ImportedFunctionSymbol,
SymbolType.LibraryFunctionSymbol: Symbol,
SymbolType.SymbolicFunctionSymbol: FunctionSymbol,
}
# SymbolicFunctionSymbol is not available for Binary Ninja < 4
try:
self.SYMBOL_MAP[SymbolType.SymbolicFunctionSymbol] = FunctionSymbol
except AttributeError:
pass

def register(self):
"""Register the handler at the parent lifter."""
Expand Down

0 comments on commit ba2a67a

Please sign in to comment.