From fe3fdbdda5a5f5051f43c4743aa576997b666636 Mon Sep 17 00:00:00 2001 From: JillianTo Date: Sat, 8 Mar 2025 13:00:48 -0500 Subject: [PATCH] fixed typo --- parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parser.py b/parser.py index 907b3bc..8577788 100644 --- a/parser.py +++ b/parser.py @@ -89,12 +89,11 @@ with open(ida_html, 'r') as file: curr_addr = line[colon_idx+1:colon_idx+9] # Check if this is the start of a function - if re.search('^\.text:'+curr_addr+' sub_'+curr_addr, line): + if re.search('^\.text:'+curr_addr+' sub_'+curr_addr, line): # Check if this is a new function and not part of a switch if num_functs > 0: # If the referencing function is not the last added function, then it is not part of a switch - equal_xref = compare_xref_addr(line, functs[num_functs-1][0]) - if equal_xref: + if not compare_xref_addr(line, functs[num_functs-1][0]): # Add this address as a new function functs.append([curr_addr, 0]) num_functs = num_functs+1