Skip to content

Commit

Permalink
core: fix calltree bitmap naming
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Jan 16, 2025
1 parent 94a35b1 commit aacf545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fuzz_introspector/datatypes/fuzzer_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def entrypoint_function(self):
def identifier(self):
"""Fuzzer identifier"""
if self._target_lang == "c-cpp":
if self.binary_executable != "":
if self.binary_executable != "" and not os.path.basename(
self.binary_executable) != '':
return os.path.basename(self.binary_executable)

elif self._target_lang == "python":
Expand Down
2 changes: 2 additions & 0 deletions src/fuzz_introspector/html_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ def create_fuzzer_detailed_section(
colormap_file_prefix = profile.identifier
if "/" in colormap_file_prefix:
colormap_file_prefix = colormap_file_prefix.replace("/", "_")
if not colormap_file_prefix:
colormap_file_prefix = str(random.randint(0, 99999))
image_name = f"{colormap_file_prefix}_colormap.png"

color_list = html_helpers.create_horisontal_calltree_image(
Expand Down

0 comments on commit aacf545

Please sign in to comment.