From e28ba16cc0fb06d417af1f165e9e125bf68d7b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 2 Aug 2021 15:49:00 +0200 Subject: [PATCH] tools: Do not overwrite function names with nullsub_ and sub_ --- tools/rename_functions_in_ida.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rename_functions_in_ida.py b/tools/rename_functions_in_ida.py index f2259796..9b3c127e 100644 --- a/tools/rename_functions_in_ida.py +++ b/tools/rename_functions_in_ida.py @@ -14,5 +14,5 @@ with open(csv_path, "r") as f: for fn in reader: addr = int(fn[0], 16) name = fn[3] - if name and fn[1] != "L": + if name and not name.startswith("nullsub_") and not name.startswith("sub_"): idc.set_name(addr, name)