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: ucl_add_string_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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 338 44.2%
gold [1:9] 38 4.98%
yellow [10:29] 17 2.22%
greenyellow [30:49] 9 1.17%
lawngreen 50+ 361 47.3%
All colors 763 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
98 506 ucl_include_file_single call site: 00506 ucl_parse_msgpack
20 147 ucl_object_dtor_unref call site: 00147 ucl_object_insert_key_common
15 320 ucl_parser_process_object_element call site: 00320 ucl_parser_append_elt
15 476 ucl_include_file_single call site: 00476 ucl_hash_replace
12 62 utstring_printf_va call site: 00062 ucl_utstring_append_double
11 132 ucl_hash_destroy call site: 00132 ucl_hash_replace
10 48 ucl_object_tostring_safe call site: 00048 ucl_object_emit_single_json
9 709 ucl_inherit_handler call site: 00709 ucl_object_copy
7 498 ucl_include_file_single call site: 00498 ucl_object_unref
6 108 ucl_hash_seed call site: 00108 mum_hash_finish
6 181 ucl_create_err call site: 00181 ucl_parser_add_chunk_full
6 614 ucl_include_file call site: 00614 ucl_include_file_single

Runtime coverage analysis

Covered functions
118
Functions that are reachable but not covered
71
Reachable functions
189
Percentage of reachable functions covered
62.43%
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/libucl/tests/fuzzers/ucl_add_string_fuzzer.c 1
ucl_parser.c 40
../include/ucl.h 1
./mum.h 9
ucl_util.c 60
ucl_hash.c 24
ucl_emitter_utils.c 4
../uthash/utstring.h 2
./ucl_chartable.h 1
./ucl_internal.h 4
ucl_msgpack.c 7
ucl_sexp.c 1

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
ucl_emit_yaml_start_array /src/libucl/src/ucl_emitter.c 4 ['N/A', 'N/A', 'bool', 'bool'] 11 0 28 3 2 44 0 219 118
ucl_hash_sort /src/libucl/src/ucl_hash.c 2 ['N/A', 'int'] 3 0 582 108 35 6 2 85 81
ucl_object_merge /src/libucl/src/ucl_util.c 3 ['N/A', 'N/A', 'bool'] 15 0 333 53 20 58 1 393 55
ucl_emit_msgpack_elt /src/libucl/src/ucl_emitter.c 4 ['N/A', 'N/A', 'bool', 'bool'] 2 0 256 35 7 20 1 87 55
ucl_object_compare /src/libucl/src/ucl_util.c 2 ['N/A', 'N/A'] 10 0 387 72 21 46 2 204 44

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

Functions statically reachable by fuzzers
63.0%
188 / 300
Cyclomatic complexity statically reachable by fuzzers
81.0%
1961 / 2420

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

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/libucl/src/./ucl_chartable.h ['ucl_add_string_fuzzer'] []
/src/libucl/src/../uthash/utstring.h ['ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_hash.c ['ucl_add_string_fuzzer'] ['ucl_add_string_fuzzer']
/src/libucl/src/ucl_parser.c ['ucl_add_string_fuzzer'] ['ucl_add_string_fuzzer']
/src/libucl/src/../include/ucl.h ['ucl_add_string_fuzzer'] []
/src/libucl/src/./mum.h ['ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_sexp.c ['ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_util.c ['ucl_add_string_fuzzer'] ['ucl_add_string_fuzzer']
/src/libucl/src/ucl_emitter_utils.c ['ucl_add_string_fuzzer'] []
/src/libucl/tests/fuzzers/ucl_add_string_fuzzer.c ['ucl_add_string_fuzzer'] ['ucl_add_string_fuzzer']
/src/libucl/src/ucl_msgpack.c ['ucl_add_string_fuzzer'] []
/src/libucl/src/./ucl_internal.h ['ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_emitter.c [] []

Directories in report

Directory
/src/libucl/src/../include/
/src/libucl/src/
/src/libucl/src/../uthash/
/src/libucl/src/./
/src/libucl/tests/fuzzers/