Skip to content

Commit 3c33515

Browse files
authored
fix: auto-unstrip string
1 parent 14d05fe commit 3c33515

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

revengai/features/auto_unstrip/auto_unstrip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def _process_batch(self, function_ids: List[int], id_to_addr: Dict[int, int], bv
6969
for function in functions_by_score:
7070
if function['function_id'] == func_id:
7171
if function['box_plot']["average"] < 0.9:
72-
log_info(f"RevEng.AI | Function {function['function_id']} has a score of {function['box_plot']["average"]:.2f} for name {function['function_name']}, skipping")
72+
log_info(f"RevEng.AI | Function {function['function_id']} has a score of {function['box_plot']['average']:.2f} for name {function['function_name']}, skipping")
7373
break
7474
else:
75-
log_info(f"RevEng.AI | Function {function['function_id']} has a score of {function['box_plot']["average"]:.2f} for name {function['function_name']}, renaming")
75+
log_info(f"RevEng.AI | Function {function['function_id']} has a score of {function['box_plot']['average']:.2f} for name {function['function_name']}, renaming")
7676
if self._rename_function(bv, func_addr, new_name, new_name_mangled):
7777
renamed_count += 1
7878
break
@@ -146,4 +146,4 @@ def auto_unstrip(self, bv: BinaryView):
146146

147147
except Exception as e:
148148
log_error(f"RevEng.AI | Error: {str(e)}")
149-
return False, str(e)
149+
return False, str(e)

0 commit comments

Comments
 (0)