Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erroneous links in calltree to coverage files #71

Closed
DavidKorczynski opened this issue Mar 10, 2022 · 1 comment
Closed

erroneous links in calltree to coverage files #71

DavidKorczynski opened this issue Mar 10, 2022 · 1 comment

Comments

@DavidKorczynski
Copy link
Contributor

Several of the callsite links in the Tarantool calltree link to wrong files

@DavidKorczynski
Copy link
Contributor Author

This is because we extract links by way of the project profile rather than the fuzzer profile:

for fd_k, fd in project_profile.all_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
node.src_linenumber) # callsite line number

This means links in functions with same name but different implementation (e.g. LLVMFuzzerTestOneInput) will have wrong links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant