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_msgpack_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 858 83.7%
gold [1:9] 5 0.48%
yellow [10:29] 2 0.19%
greenyellow [30:49] 9 0.87%
lawngreen 50+ 150 14.6%
All colors 1024 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
162 745 ucl_msgpack_release_tree call site: 00745 ucl_include_file_single
96 295 ucl_parser_account_node call site: 00295 ucl_parse_key
83 448 ucl_parser_add_object_element call site: 00448 ucl_parse_macro_arguments
75 219 ucl_object_new_full call site: 00219 ucl_save_comment
73 588 ucl_parser_set_filevars call site: 00588 ucl_parser_add_chunk_full
50 397 ucl_parser_add_object_element call site: 00397 ucl_parser_replace_elt
47 924 ucl_parser_new call site: 00924 ucl_object_insert_key
42 533 ucl_parser_new call site: 00533 ucl_include_common
29 67 utstring_printf_va call site: 00067 ucl_set_include_path
27 189 ucl_create_err call site: 00189 ucl_include_url
20 165 ucl_object_free_internal call site: 00165 ucl_object_insert_key_common
18 36 ucl_parser_new call site: 00036 ucl_include_common

Runtime coverage analysis

Covered functions
79
Functions that are reachable but not covered
163
Reachable functions
234
Percentage of reachable functions covered
30.34%
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_msgpack_fuzzer.c 1
ucl_parser.c 50
../include/ucl.h 1
./mum.h 11
ucl_util.c 70
ucl_hash.c 25
./ucl_internal.h 6
ucl_emitter_utils.c 5
../uthash/utstring.h 2
./ucl_chartable.h 1
../klib/khash.h 1
ucl_msgpack.c 9
ucl_cbor.c 16
ucl_sexp.c 1

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 488 47.4%
gold [1:9] 12 1.16%
yellow [10:29] 8 0.77%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 521 50.6%
All colors 1029 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
208 661 ucl_include_file_single call site: 00661 ucl_parse_cbor
22 417 ucl_object_lookup_len call site: 00417 ucl_object_ref
18 623 ucl_include_file_single call site: 00623 ucl_hash_replace
15 397 ucl_parser_add_object_element call site: 00397 ucl_hash_replace
14 69 utstring_printf_va call site: 00069 ucl_utstring_append_double
11 54 ucl_object_tostring_safe call site: 00054 ucl_object_emit_single_json
11 318 ucl_parse_key call site: 00318 ucl_skip_macro_as_comment
10 165 ucl_object_free_internal call site: 00165 ucl_object_insert_key_common
9 197 ucl_include_url call site: 00197 ucl_parser_add_chunk_full
7 956 ucl_load_handler call site: 00956 ucl_object_fromint
6 121 ucl_hash_seed call site: 00121 mum_hash_finish
6 142 ucl_hash_insert call site: 00142 kh_resize_ucl_hash_node

Runtime coverage analysis

Covered functions
144
Functions that are reachable but not covered
94
Reachable functions
238
Percentage of reachable functions covered
60.5%
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 53
../include/ucl.h 1
./mum.h 11
ucl_util.c 71
ucl_hash.c 25
./ucl_internal.h 6
ucl_emitter_utils.c 5
../uthash/utstring.h 2
./ucl_chartable.h 1
../klib/khash.h 1
ucl_msgpack.c 9
ucl_cbor.c 16
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 47 0 242 134
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 418 72 28 65 1 441 75
ucl_emit_msgpack_elt /src/libucl/src/ucl_emitter.c 4 ['N/A', 'N/A', 'bool', 'bool'] 2 0 253 35 7 21 1 90 55
ucl_emit_cbor_elt /src/libucl/src/ucl_emitter.c 4 ['N/A', 'N/A', 'bool', 'bool'] 5 0 253 35 7 24 1 86 51
ucl_object_compare /src/libucl/src/ucl_util.c 2 ['N/A', 'N/A'] 10 0 491 78 23 39 2 178 48

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

Functions statically reachable by fuzzers
69.0%
253 / 365
Cyclomatic complexity statically reachable by fuzzers
84.0%
2475 / 2930

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_parser.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer']
[] []
/src/libucl/src/ucl_msgpack.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] ['ucl_msgpack_fuzzer']
/src/libucl/src/ucl_util.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer']
/src/libucl/src/../klib/khash.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/../include/ucl.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/../uthash/utstring.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/tests/fuzzers/ucl_msgpack_fuzzer.c ['ucl_msgpack_fuzzer'] ['ucl_msgpack_fuzzer']
/src/libucl/src/./mum.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_emitter_utils.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_hash.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer']
/src/libucl/src/./ucl_internal.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_sexp.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/./ucl_chartable.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_cbor.c ['ucl_msgpack_fuzzer', '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_emitter.c [] []

Directories in report

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