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: zstd_fuzzer

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 544 93.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 39 6.68%
All colors 583 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
245 337 CCtx::set_parameter call site: 00337 Reader::read_to_end
106 0 EP call site: 00000 Reader::read_to_end
55 175 DCtx::create call site: 00175 CCtx::compress_using_dict
35 269 DCtx::finish_one_shot call site: 00269 DCtx::reset_after_one_shot
28 145 zstd_safe::CCtx::default call site: 00145 std::io::Cursor::as_mut_ptr
28 305 Poison::record call site: 00305 CCtx::set_parameter
11 254 CCtx::finish_one_shot call site: 00254 DCtx::decompress_using_dict
10 123 fs::File::create call site: 00123 CCtx::try_create
10 134 ptr_void call site: 00134
7 234 parse_code call site: 00234 CCtx::finish_one_shot
3 242 CCtx::finish_one_shot call site: 00242 CCtx::guard_workers
2 107 fs::File::create call site: 00107

Runtime coverage analysis

Covered functions
630
Functions that are reachable but not covered
19
Reachable functions
25
Percentage of reachable functions covered
24.0%
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
zstd-safe/fuzz/fuzz_targets/zstd_fuzzer.rs 25
zstd-safe/zstd-sys/examples/it_work.rs 12
zstd-safe/src/lib.rs 78
src/stream/write/mod.rs 5
src/lib.rs 13
tests/issue_251.rs 12
src/stream/zio/writer.rs 5
tests/issue_382.rs 12
src/stream/functions.rs 14
src/stream/zio/reader.rs 11
src/stream/raw.rs 9
src/dict.rs 5
zstd-safe/src/rust_allocator.rs 1
src/stream/read/mod.rs 5
src/bulk/compressor.rs 2

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/zstd-rs/tests/issue_182.rs [] []
/src/zstd-rs/zstd-safe/tests/support/rust_allocator.rs [] []
/src/zstd-rs/zstd-safe/tests/with_rust_allocator_dictionaries.rs [] []
/src/zstd-rs/tests/issue_381.rs [] []
/src/zstd-rs/zstd-safe/zstd-sys/tests/opaque_handle_traits.rs [] []
/src/zstd-rs/zstd-safe/tests/with_rust_allocator_one_shot.rs [] []
/src/zstd-rs/zstd-safe/zstd-sys/build.rs [] []
/src/zstd-rs/src/bulk/compressor.rs ['zstd_fuzzer'] ['zstd_fuzzer']
/src/zstd-rs/src/stream/functions.rs ['zstd_fuzzer'] []
/src/zstd-rs/bench/benches/zstd.rs [] []
/src/zstd-rs/src/stream/tests.rs [] []
/src/zstd-rs/src/dict.rs ['zstd_fuzzer'] []
/src/zstd-rs/tests/with_rust_allocator.rs [] []
/src/zstd-rs/src/stream/zio/reader.rs ['zstd_fuzzer'] []
/src/zstd-rs/zstd-safe/zstd-sys/examples/it_work.rs ['zstd_fuzzer'] []
/src/zstd-rs/src/bulk/decompressor.rs [] []
/src/zstd-rs/src/stream/zio/writer.rs ['zstd_fuzzer'] []
/src/zstd-rs/src/stream/write/tests.rs [] []
/src/zstd-rs/zstd-safe/src/lib.rs ['zstd_fuzzer'] ['zstd_fuzzer']
/src/zstd-rs/src/stream/raw.rs ['zstd_fuzzer'] ['zstd_fuzzer']
/src/zstd-rs/src/stream/write/mod.rs ['zstd_fuzzer'] ['zstd_fuzzer']
/src/zstd-rs/src/stream/mod.rs [] []
/src/zstd-rs/zstd-safe/zstd-sys/src/wasm_shim.rs [] []
/src/zstd-rs/src/bulk/mod.rs [] []
/src/zstd-rs/tests/invalid_dictionary.rs [] []
/src/zstd-rs/examples/throughput.rs [] []
/src/zstd-rs/src/stream/read/tests.rs [] []
/src/zstd-rs/zstd-safe/fuzz/fuzz_targets/zstd_fuzzer.rs ['zstd_fuzzer'] []
/src/zstd-rs/src/stream/read/mod.rs ['zstd_fuzzer'] []
/src/zstd-rs/examples/zstdcat.rs [] []
/src/zstd-rs/zstd-safe/src/rust_allocator.rs ['zstd_fuzzer'] []
/src/zstd-rs/src/lib.rs ['zstd_fuzzer'] []
/src/zstd-rs/zstd-safe/tests/with_rust_allocator.rs [] []
/src/zstd-rs/examples/zstd.rs [] []
/src/zstd-rs/zstd-safe/src/tests.rs [] []
/src/zstd-rs/src/bulk/tests.rs [] []
/src/zstd-rs/examples/basic.rs [] []
/src/zstd-rs/zstd-safe/src/seekable.rs [] []
/src/zstd-rs/tests/issue_382.rs ['zstd_fuzzer'] ['zstd_fuzzer']
/src/zstd-rs/tests/with_rust_allocator_stream.rs [] []
/src/zstd-rs/tests/issue_251.rs ['zstd_fuzzer'] ['zstd_fuzzer']

Directories in report

Directory
/src/zstd-rs/zstd-safe/zstd-sys/tests/
/src/zstd-rs/zstd-safe/tests/support/
/src/zstd-rs/zstd-safe/zstd-sys/
/src/zstd-rs/zstd-safe/src/
/src/zstd-rs/zstd-safe/fuzz/fuzz_targets/
/src/zstd-rs/src/stream/read/
/src/zstd-rs/src/stream/zio/
/src/zstd-rs/src/
/src/zstd-rs/src/stream/
/src/zstd-rs/zstd-safe/zstd-sys/src/
/src/zstd-rs/src/bulk/
/src/zstd-rs/zstd-safe/tests/
/src/zstd-rs/bench/benches/
/src/zstd-rs/tests/
/src/zstd-rs/src/stream/write/
/src/zstd-rs/zstd-safe/zstd-sys/examples/
/src/zstd-rs/examples/