Skip to content

Commit 0a99217

Browse files
committed
Fix type and comments
Signed-off-by: Arthur Chan <[email protected]>
1 parent 8ab7ecc commit 0a99217

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/fuzz_introspector/datatypes/fuzzer_profile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ def reaches_func_combined(
303303
function in runtime
304304
305305
:param func_name: function to check for
306+
:param all_functions: the full FunctionsProfile list of the project
306307
:type func_name: str
308+
:type all_functions: list[FunctionProfile]
307309
308310
:rtype: bool
309311
:returns: `True` if the fuzzer reaches the function statically or in

src/fuzz_introspector/datatypes/project_profile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ def __init__(self, profiles: List[fuzzer_profile.FuzzerProfile],
9393
fd.reached_by_fuzzers.append(profile2.identifier)
9494

9595
# Dynamically reached functions
96-
if profile2.reaches_func_runtime(
97-
fd.function_name, self.all_functions + self.all_constructors):
96+
temp_list = list(self.all_functions.values() + self.all_constructors.values())
97+
if profile2.reaches_func_runtime(fd.function_name, temp_list)
9898
fd.hitcount_runtime += 1
9999
fd.reached_by_fuzzers_runtime.append(profile2.identifier)
100100

101101
# Statically or dynamically reached functions
102-
if profile2.reaches_func_combined(
103-
fd.function_name, self.all_functions + self.all_constructors):
102+
temp_list = list(self.all_functions.values() + self.all_constructors.values())
103+
if profile2.reaches_func_combined(fd.function_name, temp_list)
104104
fd.hitcount_combined += 1
105105
fd.reached_by_fuzzers_combined.append(profile2.identifier)
106106

0 commit comments

Comments
 (0)