Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: tar

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 1312 82.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 3 0.18%
lawngreen 50+ 275 17.2%
All colors 1590 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
232 1274 Header::entry_type call site: 01274 Header::fill_from
176 452 prepare_header_path call site: 00452 run_test_for_revdep
66 784 E::n::t::r::y::F::i::e::l::d::s::::::::u::n::p::a::c::k::open call site: 00784 append_file
66 1523 Header::path_bytes call site: 01523 nul_bytes_in_path
56 1216 Header::as_old_mut call site: 01216 Header::set_metadata
50 36 num_field_wrapper_into call site: 00036 clone_at_rev
47 995 prepare_header_sparse call site: 00995 Header::set_metadata
45 275 Vec::truncate call site: 00275 Builder::append_writer
39 1109 Header::fill_from call site: 01109 Header::fill_from
38 1177 Builder::_append_link call site: 01177 append_dir
33 0 EP call site: 00000 FuzzInput::arbitrary
26 96 Header::as_ustar_mut call site: 00096 Header::set_path_absolute

Runtime coverage analysis

Covered functions
297
Functions that are reachable but not covered
61
Reachable functions
135
Percentage of reachable functions covered
54.81%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzz/fuzz_targets/tar.rs 49
tests/all.rs 77
src/header.rs 89
xtask/src/revdep_test.rs 43
src/builder.rs 87
tests/header/mod.rs 11
src/archive.rs 34
src/lib.rs 1
src/entry.rs 6
src/pax.rs 13
tests/entry.rs 23

Fuzzer: archive

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 616 76.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 192 23.7%
All colors 808 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
176 465 prepare_header_path call site: 00465 run_test_for_revdep
91 266 copy_path_into_inner call site: 00266 Builder::append_writer
75 732 append_fs call site: 00732 nul_bytes_in_path
52 43 num_field_wrapper_into call site: 00043 clone_at_rev
37 0 EP call site: 00000 nul_bytes_in_path
26 109 Header::as_ustar_mut call site: 00109 Header::set_path_absolute
24 155 other call site: 00155 run
21 708 Header::set_metadata_in_mode call site: 00708 Header::set_link_name
17 213 Builder::get_mut call site: 00213 Builder::append_writer
13 196 copy_into call site: 00196 Builder::append_writer
13 687 Header::as_gnu_mut call site: 00687 Header::set_device_major
9 411 Header::set_mode call site: 00411 clone_at_rev

Runtime coverage analysis

Covered functions
334
Functions that are reachable but not covered
34
Reachable functions
87
Percentage of reachable functions covered
60.92%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzz/fuzz_targets/archive.rs 28
tests/all.rs 43
fuzz/fuzz_targets/tar.rs 5
src/builder.rs 50
src/header.rs 85
xtask/src/revdep_test.rs 43
tests/header/mod.rs 5
src/archive.rs 4
src/lib.rs 1

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
/src/tar-rs/src/archive.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/src/entry_type.rs [] []
/src/tar-rs/xtask/src/main.rs [] []
/src/tar-rs/src/header.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/fuzz/fuzz_targets/tar.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/xtask/src/revdep_test.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/src/error.rs [] []
/src/tar-rs/src/pax.rs ['tar'] ['tar']
/src/tar-rs/fuzz/fuzz_targets/archive.rs ['archive'] []
/src/tar-rs/tests/header/mod.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/tests/entry.rs ['tar'] []
/src/tar-rs/src/entry.rs ['tar'] ['tar']
/src/tar-rs/src/builder.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/src/lib.rs ['tar', 'archive'] ['tar', 'archive']
/src/tar-rs/tests/all.rs ['tar', 'archive'] ['tar', 'archive']

Directories in report

Directory
/src/tar-rs/xtask/src/
/src/tar-rs/src/
/src/tar-rs/fuzz/fuzz_targets/
/src/tar-rs/tests/header/
/src/tar-rs/tests/