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

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 186 77.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 53 22.1%
All colors 239 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
38 119 Writer::finish_inner call site: 00119 GzEncoder::try_finish
35 11 Compress::new call site: 00011 tests::decode_multi_writer
29 194 BufReader::consume call site: 00194 read_into
21 172 GzEncoder::try_finish call site: 00172
10 228 GzBuilder::into_header call site: 00228 GzDecoder::new
9 71 Compress::total_in call site: 00071 GzEncoder::try_finish
8 53 GzHeaderParser::new call site: 00053 BufReader::fill_buf
6 84 GzEncoder::write_header call site: 00084 read_into
6 107 Compress::compress_vec call site: 00107
5 3 GzBuilder::new call site: 00003 GzBuilder::write
3 63 BufReader::fill_buf call site: 00063
3 160 Writer::finish_inner call site: 00160

Runtime coverage analysis

Covered functions
271
Functions that are reachable but not covered
16
Reachable functions
37
Percentage of reachable functions covered
56.76%
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/fuzz_gz_roundtrip.rs 9
tests/zero-write.rs 14
src/lib.rs 1
tests/partial-write.rs 9
src/gz/read.rs 3
src/ffi/c.rs 7
src/gz/mod.rs 16
src/gz/write.rs 23
tests/gzip-read-errors.rs 11
src/bufreader.rs 3
src/crc.rs 3
src/zio.rs 18
tests/write-after-finish.rs 13
src/mem.rs 9

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/flate2-rs/tests/zlib-rs-uninit.rs [] []
/src/flate2-rs/examples/deflateencoder-read.rs [] []
/src/flate2-rs/tests/partial-write.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/examples/no_std/src/lib.rs [] []
/src/flate2-rs/src/gz/mod.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/tests/early-flush.rs [] []
/src/flate2-rs/src/crc.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/lib.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/deflate/read.rs [] []
/src/flate2-rs/src/gz/read.rs ['fuzz_gz_roundtrip'] []
/src/flate2-rs/src/zio.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/zlib/write.rs [] []
/src/flate2-rs/examples/zlibdecoder-bufread.rs [] []
/src/flate2-rs/examples/gzdecoder-write.rs [] []
/src/flate2-rs/tests/empty-read.rs [] []
/src/flate2-rs/fuzz/fuzz_targets/fuzz_gz_roundtrip.rs ['fuzz_gz_roundtrip'] []
/src/flate2-rs/src/deflate/bufread.rs [] []
/src/flate2-rs/tests/gzip-read-errors.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/tests/write-after-finish.rs ['fuzz_gz_roundtrip'] []
/src/flate2-rs/src/deflate/write.rs [] []
/src/flate2-rs/tests/capabilities.rs [] []
/src/flate2-rs/tests/gunzip.rs [] []
/src/flate2-rs/examples/gzencoder-read.rs [] []
/src/flate2-rs/tests/zero-write.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/mem.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/zlib/read.rs [] []
/src/flate2-rs/src/ffi/c.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/gz/write.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/examples/gzencoder-bufread.rs [] []
/src/flate2-rs/src/ffi/zlib_rs.rs [] []
/src/flate2-rs/src/ffi/mod.rs [] []
/src/flate2-rs/src/bufreader.rs ['fuzz_gz_roundtrip'] ['fuzz_gz_roundtrip']
/src/flate2-rs/src/zlib/bufread.rs [] []
/src/flate2-rs/src/ffi/miniz_oxide.rs [] []
/src/flate2-rs/src/gz/bufread.rs [] []
/src/flate2-rs/src/deflate/mod.rs [] []
/src/flate2-rs/src/zlib/mod.rs [] []
/src/flate2-rs/examples/gzbuilder.rs [] []

Directories in report

Directory
/src/flate2-rs/examples/no_std/src/
/src/flate2-rs/src/deflate/
/src/flate2-rs/examples/
/src/flate2-rs/fuzz/fuzz_targets/
/src/flate2-rs/src/gz/
/src/flate2-rs/src/zlib/
/src/flate2-rs/src/ffi/
/src/flate2-rs/src/
/src/flate2-rs/tests/