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_entry

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 117 75.9%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 37 24.0%
All colors 154 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
76 64 LLVMFuzzerTestOneInput call site: 00064 tdefl_compress_buffer
14 38 LLVMFuzzerTestOneInput call site: 00038 zip_entry_decrypt_and_read
8 145 LLVMFuzzerTestOneInput call site: 00145 mz_zip_writer_finalize_archive
6 15 mz_zip_reader_init_mem call site: 00015 mz_zip_reader_init_mem
4 22 mz_zip_reader_end call site: 00022 mz_zip_writer_init_heap_v2
3 1 LLVMFuzzerTestOneInput call site: 00001 zip_stream_openwitherror
3 54 tinfl_decompress call site: 00054 mz_zip_reader_extract_to_heap
3 141 zip_entry_close call site: 00141 mz_zip_array_ensure_capacity

Runtime coverage analysis

Covered functions
38
Functions that are reachable but not covered
45
Reachable functions
74
Percentage of reachable functions covered
39.19%
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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/zip/fuzz/fuzz_entry.c 1
zip.c 17
miniz.h 44

Fuzzer: fuzz_stream

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 80 41.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 114 58.7%
All colors 194 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
13 138 zip_entry_close call site: 00138 zip_pkware_keys_init_password
7 55 _zip_entry_open call site: 00055 zip_pkware_keys_init_password
7 173 LLVMFuzzerTestOneInput call site: 00173 zip_entry_decrypt_and_read
4 35 mz_zip_locate_file_binary_search call site: 00035 strlen
4 70 _zip_entry_open call site: 00070 zip_pkware_encrypt_byte
4 128 tdefl_flush_block call site: 00128 __assert_fail
3 1 LLVMFuzzerTestOneInput call site: 00001 zip_stream_openwitherror
3 14 mz_zip_reader_read_central_dir call site: 00014 mz_zip_reader_init_mem
3 48 zip_strrpl call site: 00048 mz_zip_writer_write_zeros
3 163 zip_archive_finalize call site: 00163 fileno
3 182 tinfl_decompress call site: 00182 mz_zip_reader_extract_to_heap
2 18 zip_stream_openwitherror call site: 00018 mz_zip_reader_end_internal

Runtime coverage analysis

Covered functions
82
Functions that are reachable but not covered
25
Reachable functions
90
Percentage of reachable functions covered
72.22%
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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/zip/fuzz/fuzz_stream.c 1
zip.c 22
miniz.h 53

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
zip_extract /src/zip/src/zip.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 58 11 5 48 0 714 205
mz_zip_writer_add_from_zip_reader /src/zip/src/miniz.h 3 ['N/A', 'N/A', 'int'] 3 0 3709 371 136 11 0 251 172
mz_zip_add_mem_to_archive_file_in_place /src/zip/src/miniz.h 7 ['N/A', 'N/A', 'N/A', 'size_t', 'N/A', 'short', 'int'] 10 0 33 3 2 56 0 869 150
zip_entries_delete /src/zip/src/zip.c 3 ['N/A', 'N/A', 'size_t'] 10 0 162 33 12 59 0 658 138
mz_zip_writer_add_file /src/zip/src/miniz.h 6 ['N/A', 'N/A', 'N/A', 'N/A', 'short', 'int'] 9 0 115 14 6 40 0 542 129
mz_zip_validate_mem_archive /src/zip/src/miniz.h 4 ['N/A', 'size_t', 'int', 'N/A'] 7 0 141 29 11 29 0 696 110
zip_create /src/zip/src/zip.c 3 ['N/A', 'N/A', 'size_t'] 9 0 131 24 10 86 0 1069 57
mz_uncompress /src/zip/src/miniz.h 4 ['N/A', 'N/A', 'N/A', 'size_t'] 4 0 23 3 2 8 0 233 55
mz_compress /src/zip/src/miniz.h 4 ['N/A', 'N/A', 'N/A', 'size_t'] 8 0 24 3 2 22 0 362 46

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

Functions statically reachable by fuzzers
59.0%
141 / 239
Cyclomatic complexity statically reachable by fuzzers
81.0%
2317 / 2857

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