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

Fuzzer details

Fuzzer: /src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: png_custom_mutator_fuzzer_example

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: png_transforms_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: png_proto_fuzzer_example_custom_mutator

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: png_proto_fuzzer_example

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
PngProto::CopyFrom(PngProtoconst&) /src/genfiles/png_fuzz_proto.pb.cc 2 ['N/A', 'N/A'] 12 0 32 6 3 132 0 261 229
LLVMFuzzerCustomCrossOver /src/./fuzzer-test-suite/libpng-1.2.56/png_mutator.h 7 ['N/A', 'size_t', 'N/A', 'size_t', 'N/A', 'size_t', 'int'] 5 0 188 27 20 34 0 192 186
PngChunk::CopyFrom(PngChunkconst&) /src/genfiles/png_fuzz_proto.pb.cc 2 ['N/A', 'N/A'] 8 0 32 6 3 144 0 277 106
png_handle_iCCP /src/libpng/pngrutil.c 3 ['N/A', 'N/A', 'int'] 9 0 547 79 28 41 0 262 93
png_handle_iTXt /src/libpng/pngrutil.c 3 ['N/A', 'N/A', 'int'] 8 0 499 83 29 36 0 239 85
OSS_FUZZ_png_set_sCAL /src/libpng/pngset.c 5 ['N/A', 'N/A', 'int', 'double', 'double'] 5 0 67 9 4 18 0 124 81
PngProto::ByteSizeLong()const /src/genfiles/png_fuzz_proto.pb.cc 1 ['N/A'] 10 0 123 10 4 98 0 126 80
OSS_FUZZ_png_set_quantize /src/libpng/pngrtran.c 6 ['N/A', 'N/A', 'int', 'int', 'N/A', 'int'] 6 0 1626 190 58 14 0 113 58
PngProto::IsInitializedImpl(google::protobuf::MessageLiteconst&) /src/genfiles/png_fuzz_proto.pb.cc 1 ['N/A'] 6 0 78 13 6 62 0 86 58
png_handle_pCAL /src/libpng/pngrutil.c 3 ['N/A', 'N/A', 'int'] 8 0 498 64 23 27 0 159 43

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
57.9%
436 / 748
Cyclomatic complexity statically reachable by fuzzers
71.0%
3332 / 4675

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth 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

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/genfiles/png_fuzz_proto.pb.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/png_proto_mutator.cc [] []
/src/LPM/external.protobuf/include/google/protobuf/arenastring.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/pngrio.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/message.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/./fuzzer-test-suite/libpng-1.2.56/png_mutator.h [] []
/src/png_proto_fuzzer_example.cc ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/./libprotobuf-mutator/src/libfuzzer/libfuzzer_macro.h [] []
/src/libpng/pngmem.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng_transforms_fuzzer.cc ['png_transforms_fuzzer'] []
/src/LPM/external.protobuf/include/google/protobuf/arena.h [] []
/src/libpng/pngrtran.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/pngerror.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/unknown_field_set.h [] []
/usr/local/bin/../include/c++/v1/sstream [] []
/src/LPM/external.protobuf/include/google/protobuf/arena_align.h [] []
/src/libpng/pngget.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/port.h [] []
/src/LPM/external.protobuf/include/google/protobuf/repeated_ptr_field.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/pngrutil.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/internal_visibility.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/genfiles/png_fuzz_proto.pb.cc ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/absl/log/internal/nullstream.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/generated_message_util.h [] []
/src/libpng/pngread.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/pngset.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/wire_format_lite.h [] []
/src/LPM/external.protobuf/include/google/protobuf/message_lite.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/pngtrans.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/absl/numeric/bits.h [] []
/src/LPM/external.protobuf/include/google/protobuf/metadata_lite.h ['png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/libpng/png.c ['/src/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc', 'png_custom_mutator_fuzzer_example', 'png_transforms_fuzzer', 'png_proto_fuzzer_example_custom_mutator', 'png_proto_fuzzer_example'] []
/src/LPM/external.protobuf/include/google/protobuf/io/coded_stream.h [] []

Directories in report

Directory
/src/libpng/
/usr/local/bin/../include/c++/v1/__exception/
/src/LPM/external.protobuf/include/google/protobuf/io/
/src/./libprotobuf-mutator/src/libfuzzer/
/src/genfiles/
/src/libpng/contrib/oss-fuzz/
/src/LPM/external.protobuf/include/absl/numeric/
/usr/local/bin/../include/c++/v1/
/src/LPM/external.protobuf/include/absl/log/internal/
/src/./fuzzer-test-suite/libpng-1.2.56/
/src/LPM/external.protobuf/include/google/protobuf/
/src/