Skip to content

Commit

Permalink
fix cases where reached functions are not logged in all_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Navidem committed Feb 9, 2022
1 parent 9a94bce commit 65beb16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions post-processing/fuzz_data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def __init__(self, profiles: List[FuzzerProfile]):
incoming_references = list()

for reached_func_name in fp_obj.functions_reached:
if reached_func_name not in self.all_functions:
continue
reached_func_obj = self.all_functions[reached_func_name]
reached_func_obj.incoming_references.append(fp_obj.function_name)
total_cyclomatic_complexity += reached_func_obj.cyclomatic_complexity
Expand Down

0 comments on commit 65beb16

Please sign in to comment.