Skip to content

Commit

Permalink
analysis: adjust how debug informtion lines are read (#1389)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski authored Jan 25, 2024
1 parent 061130b commit e8fae08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fuzz_introspector/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ def dump_debug_files(self):
location = line.split(" from ")[-1]
source_file = location.split(":")[0].strip()
try:
source_line = line.split(":")[-1]
source_line = line.split(":")[-1].strip()
if len(source_line.split(" ")) > 0:
source_line = source_line.split(" ")[0]
except IndexError:
source_line = "-1"
current_function['source'] = {
Expand Down

0 comments on commit e8fae08

Please sign in to comment.