Skip to content

Commit

Permalink
[JVM] Fix entry method discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan committed Dec 23, 2024
1 parent 5216c4f commit eea5241
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/fuzz_introspector/code_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ def load_go_coverage(target_dir: str,
cp.covmap[name].append(
(line_no, coverage.get(line_no, 0)))

print(cp.covmap)
return cp


Expand Down
7 changes: 6 additions & 1 deletion src/fuzz_introspector/datatypes/fuzzer_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ def entrypoint_function(self):
elif self.target_lang == "jvm":
cname = self.fuzzer_source_file
mname = self.entrypoint_method
return f"[{cname}].{mname}"
if '].' in mname:
# For new tree-sitter frontend
return mname
else:
# Backward compatible for old Soot frontend
return f"[{cname}].{mname}"
elif self.target_lang == "rust":
# For rust, there is no entry function
# Instead, it is wrapped by the fuzz_target
Expand Down

0 comments on commit eea5241

Please # to comment.