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 789 42.2%
gold [1:9] 70 3.75%
yellow [10:29] 89 4.76%
greenyellow [30:49] 25 1.33%
lawngreen 50+ 893 47.8%
All colors 1866 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
244 165 PrevRow::as_slice call site: 00165 StreamingDecoder::update
96 410 ScaledFloat::from_scaled call site: 00410 Writer::write_image_data
74 54 StreamingDecoder::update call site: 00054 Writer::write_image_data
43 1735 self::transform::create_transform_fn call site: 01735 Writer::write_image_data
28 1781 Adam7Iterator::next call site: 01781 Writer::write_image_data
26 1460 Reader::read_until_image_data call site: 01460 t::e::s::t::s::::::::r::e::g::r::e::s::s::i::o::n::_::o::v::e::r::f::l::o::w::_::a::d::a::m::7::_::b::i::t::f::i::l::l::multibyte_expand_pass_test_helper
19 1536 expand_pass call site: 01536 Encoder::write_header
16 132 PassConstants::count_samples call site: 00132 tests::expect_error_on_wrong_image_len
16 1233 StreamingDecoder::parse_u32 call site: 01233
16 1820 create_transform_fn call site: 01820 encode_iso_8859_1_into
12 1360 Decoder::read_info call site: 01360 Encoder::with_info
11 1045 StreamingDecoder::split_keyword call site: 01045 encode_iso_8859_1_into

Runtime coverage analysis

Covered functions
239
Functions that are reachable but not covered
44
Reachable functions
111
Percentage of reachable functions covered
60.36%
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 74
src/adam7.rs 57
src/encoder.rs 117
src/common.rs 13
src/decoder/read_decoder.rs 25
src/text_metadata.rs 30
src/decoder/stream.rs 122
src/test_utils.rs 15
src/decoder/unfiltering_buffer.rs 29
src/srgb.rs 1
src/decoder/zlib.rs 5
src/decoder/interlace_info.rs 3
src/benchable_apis.rs 4
src/filter/paeth.rs 2
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 1464 76.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 461 23.9%
All colors 1925 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
388 342 StreamingDecoder::parse_chunk call site: 00342 tests::expect_error_on_wrong_image_len
117 731 PartialInfo::raw_row_length_from_width call site: 00731 encode_png
98 1771 Writer::write_chunk call site: 01771 Writer::write_image_data
89 1670 Writer::write_zlib_encoded_idat call site: 01670 StreamingDecoder::update
75 1293 self::transform::create_transform_fn call site: 01293 Writer::write_image_data
73 1025 Writer::validate_new_image call site: 01025 tests::expect_error_on_wrong_image_len
60 1423 decode_png call site: 01423 Writer::write_image_data
54 1496 StreamingDecoder::parse_u32 call site: 01496 StreamingDecoder::update
22 38 Encoder::write_header call site: 00038 Writer::encode_header
20 1145 Reader::next_frame call site: 01145 Reader::next_interlaced_row
18 1101 Encoder::write_header call site: 01101 FrameState::from_level
17 264 StreamingDecoder::parse_chunk call site: 00264 Writer::write_image_data

Runtime coverage analysis

Covered functions
324
Functions that are reachable but not covered
90
Reachable functions
169
Percentage of reachable functions covered
46.75%
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/common.rs 12
src/encoder.rs 116
src/adam7.rs 57
src/text_metadata.rs 30
src/test_utils.rs 15
src/decoder/unfiltering_buffer.rs 29
src/decoder/stream.rs 122
src/decoder/read_decoder.rs 25
fuzz/fuzz_targets/decode.rs 3
src/decoder/mod.rs 72
src/decoder/interlace_info.rs 3
src/benchable_apis.rs 4
src/filter/paeth.rs 2
src/decoder/transform.rs 15
src/decoder/transform/palette.rs 17
src/decoder/zlib.rs 5
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/adam7.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/filter/paeth.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/fuzz/fuzz_targets/buf_independent.rs [] []
/src/image-png/src/text_metadata.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/examples/pngcheck.rs [] []
/src/image-png/benches/unfilter.rs [] []
/src/image-png/src/decoder/zlib.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/benches/decoder.rs [] []
/src/image-png/src/decoder/read_decoder.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/benchable_apis.rs ['decode', 'roundtrip'] []
/src/image-png/src/chunk.rs [] []
/src/image-png/src/decoder/transform.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/test_utils.rs ['decode', 'roundtrip'] ['roundtrip']
/src/image-png/tests/check_testimages.rs [] []
/src/image-png/src/decoder/unfiltering_buffer.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/examples/corpus-bench.rs [] []
/src/image-png/benches/adam7.rs [] []
/src/image-png/src/decoder/interlace_info.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/benches/expand_paletted.rs [] []
/src/image-png/src/decoder/stream.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/fuzz/fuzz_targets/decode.rs ['decode', 'roundtrip'] ['decode']
/src/image-png/src/filter/simd.rs [] []
/src/image-png/src/common.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/src/filter/mod.rs [] []
/src/image-png/src/decoder/mod.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/tests/partial_decode.rs [] []
/src/image-png/src/traits.rs [] []
/src/image-png/src/srgb.rs ['decode', 'roundtrip'] []
/src/image-png/src/decoder/transform/palette.rs ['decode', 'roundtrip'] []
/src/image-png/src/encoder.rs ['decode', 'roundtrip'] ['decode', 'roundtrip']
/src/image-png/fuzz/fuzz_targets/roundtrip.rs ['roundtrip'] ['roundtrip']
/src/image-png/tests/bugfixes.rs [] []

Directories in report

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