Skip to content

Commit 3846925

Browse files
committed
fix: skip user defined functions
1 parent 85a4473 commit 3846925

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

reai_toolkit/utils/core/sync.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def _match_functions(
7676
if new_name is None:
7777
continue
7878

79+
# Check if function has a user-defined symbol, skip if it does
80+
if func.symbol and func.symbol.auto == False:
81+
log_info(f"RevEng.AI | Skipping user-defined function at 0x{start_ea:x}: {func.name}")
82+
local_function_vaddrs_matched.add(start_ea)
83+
continue
84+
7985
# Rename local function
8086
new_symbol = Symbol(SymbolType.FunctionSymbol, start_ea, new_name)
8187
bv.define_user_symbol(new_symbol)

0 commit comments

Comments
 (0)