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

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 672 42.5%
gold [1:9] 28 1.77%
yellow [10:29] 12 0.75%
greenyellow [30:49] 54 3.41%
lawngreen 50+ 813 51.4%
All colors 1579 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
148 344 Decoder::read_info call site: 00344 StreamingDecoder::update
115 493 ScaledFloat::from_scaled call site: 00493 tests::expect_error_on_wrong_image_len
70 51 StreamingDecoder::update call site: 00051 tests::expect_error_on_wrong_image_len
53 210 Reader::output_buffer_size call site: 00210 StreamingDecoder::update
43 1448 self::transform::create_transform_fn call site: 01448 tests::expect_error_on_wrong_image_len
28 1494 Adam7Iterator::next call site: 01494 tests::expect_error_on_wrong_image_len
26 125 PassConstants::count_samples call site: 00125 tests::expect_error_on_wrong_image_len
16 706 StreamingDecoder::parse_u32 call site: 00706
16 1533 create_transform_fn call site: 01533 encode_iso_8859_1_into
12 185 Decoder::read_info call site: 00185 Encoder::with_info
11 1143 StreamingDecoder::split_keyword call site: 01143 encode_iso_8859_1_into
11 1218 StreamingDecoder::parse_itxt call site: 01218 encode_iso_8859_1_into

Runtime coverage analysis

Covered functions
235
Functions that are reachable but not covered
41
Reachable functions
105
Percentage of reachable functions covered
60.95%
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/decode.rs 2
png-afl/src/main.rs 10
src/decoder/mod.rs 72
src/adam7.rs 38
src/decoder/read_decoder.rs 23
src/encoder.rs 92
src/text_metadata.rs 30
src/decoder/stream.rs 123
src/common.rs 11
src/test_utils.rs 15
src/decoder/unfiltering_buffer.rs 16
src/decoder/interlace_info.rs 3
src/filter.rs 7
src/srgb.rs 1
src/decoder/zlib.rs 15
src/decoder/transform.rs 15
src/decoder/transform/palette.rs 17

Fuzzer: 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 786 47.2%
gold [1:9] 28 1.68%
yellow [10:29] 9 0.54%
greenyellow [30:49] 48 2.88%
lawngreen 50+ 791 47.5%
All colors 1662 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
324 1337 Decoder::read_info call site: 01337 StreamingDecoder::update
76 22 PassConstants::count_samples call site: 00022 tests::expect_error_on_wrong_image_len
54 704 StreamingDecoder::split_keyword call site: 00704 StreamingDecoder::update
44 1039 self::transform::create_transform_fn call site: 01039 tests::expect_error_on_wrong_image_len
28 1086 Adam7Iterator::next call site: 01086 tests::expect_error_on_wrong_image_len
21 102 PassConstants::count_samples call site: 00102 tests::expect_error_on_wrong_image_len
16 274 StreamingDecoder::parse_u32 call site: 00274
16 1125 create_transform_fn call site: 01125 encode_iso_8859_1_into
13 1014 UnfilteringBuffer::unfilter_curr_row call site: 01014 RowFilter::from_method
12 880 Reader::read_until_image_data call site: 00880 Encoder::with_info
11 211 ZlibStream::finish_compressed_chunks call site: 00211 tests::expect_error_on_wrong_image_len
11 759 StreamingDecoder::split_keyword call site: 00759 encode_iso_8859_1_into

Runtime coverage analysis

Covered functions
309
Functions that are reachable but not covered
91
Reachable functions
161
Percentage of reachable functions covered
43.48%
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/roundtrip.rs 26
src/filter.rs 7
src/encoder.rs 91
src/adam7.rs 38
src/text_metadata.rs 30
src/common.rs 10
src/test_utils.rs 15
src/decoder/stream.rs 123
src/decoder/mod.rs 70
src/decoder/read_decoder.rs 23
src/decoder/zlib.rs 15
fuzz/fuzz_targets/decode.rs 3
src/decoder/unfiltering_buffer.rs 16
src/decoder/transform.rs 15
src/decoder/transform/palette.rs 17
src/decoder/interlace_info.rs 3
src/srgb.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/image-png/src/srgb.rs ['decode', 'roundtrip'] []
/src/image-png/examples/pngcheck.rs [] []
/src/image-png/src/decoder/interlace_info.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/decoder/stream.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/encoder.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/common.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/decoder/read_decoder.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/benchable_apis.rs [] []
/src/image-png/src/decoder/transform/palette.rs ['decode', 'roundtrip'] []
/src/image-png/src/decoder/transform.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/tests/bugfixes.rs [] []
/src/image-png/src/filter.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/decoder/zlib.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/benches/decoder.rs [] []
/src/image-png/tests/check_testimages.rs [] []
/src/image-png/benches/adam7.rs [] []
/src/image-png/fuzz/fuzz_targets/roundtrip.rs ['roundtrip'] ['roundtrip']
/src/image-png/examples/corpus-bench.rs [] []
/src/image-png/src/adam7.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/decoder/mod.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/benches/expand_paletted.rs [] []
/src/image-png/src/text_metadata.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/benches/unfilter.rs [] []
/src/image-png/fuzz/fuzz_targets/decode.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/chunk.rs [] []
/src/image-png/src/decoder/unfiltering_buffer.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/test_utils.rs ['decode', 'roundtrip'] []
/src/image-png/src/traits.rs [] []
/src/image-png/fuzz/fuzz_targets/buf_independent.rs [] []

Directories in report

Directory
/src/image-png/src/decoder/transform/
/src/image-png/src/decoder/
/src/image-png/examples/
/src/image-png/fuzz/fuzz_targets/
/src/image-png/src/
/src/image-png/benches/
/src/image-png/tests/