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 277 36.7%
gold [1:9] 8 1.06%
yellow [10:29] 7 0.92%
greenyellow [30:49] 3 0.39%
lawngreen 50+ 459 60.8%
All colors 754 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
92 505 ucl_include_file_single call site: 00505 ucl_parse_msgpack
17 147 ucl_object_dtor_unref call site: 00147 ucl_object_insert_key_common
12 62 utstring_printf_va call site: 00062 ucl_utstring_append_double
10 48 ucl_object_tostring_safe call site: 00048 ucl_object_emit_single_json
6 108 ucl_hash_seed call site: 00108 mum_hash_finish
6 681 ucl_load_handler call site: 00681 ucl_object_fromint
5 132 ucl_hash_destroy call site: 00132 ucl_hash_replace
5 182 ucl_include_url call site: 00182 ucl_parser_add_chunk_full
5 319 ucl_parser_process_object_element call site: 00319 ucl_hash_replace
5 394 ucl_parse_after_value call site: 00394 ucl_skip_macro_as_comment
5 428 ucl_fetch_file call site: 00428 ucl_create_err
5 736 ucl_state_machine call site: 00736 ucl_attach_comment

Runtime coverage analysis

Covered functions
126
Functions that are reachable but not covered
63
Reachable functions
189
Percentage of reachable functions covered
66.67%
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 210 109
ucl_hash_sort /src/libucl/src/ucl_hash.c 2 ['N/A', 'int'] 3 0 575 106 34 6 2 83 79
ucl_object_merge /src/libucl/src/ucl_util.c 3 ['N/A', 'N/A', 'bool'] 15 0 333 53 20 58 1 394 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 / 298
Cyclomatic complexity statically reachable by fuzzers
81.0%
1933 / 2380

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

Directories in report

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