Skip to content

Commit

Permalink
post-process: use profile for links
Browse files Browse the repository at this point in the history
Fixes: #71
  • Loading branch information
DavidKorczynski committed Mar 10, 2022
1 parent afa6c4e commit b8dd962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions post-processing/fuzz_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_hit_count_color(hit_count):

# Get URL to coverage report for the node.
link = "#"
for fd_k, fd in project_profile.all_functions.items():
for fd_k, fd in profile.all_class_functions.items():
if fd.function_name == node.dst_function_name:
link = coverage_url + \
"%s.html#L%d" % (
Expand All @@ -124,7 +124,7 @@ def get_hit_count_color(hit_count):
callsite_link = "#"
if callstack_has_parent(node, callstack):
parent_fname = callstack_get_parent(node, callstack)
for fd_k, fd in project_profile.all_functions.items():
for fd_k, fd in profile.all_class_functions.items():
if fuzz_utils.demangle_cpp_func(fd.function_name) == parent_fname:
callsite_link = coverage_url + "%s.html#L%d" % (
fd.function_source_file, # parent source file
Expand Down

0 comments on commit b8dd962

Please sign in to comment.