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 741 82.4%
gold [1:9] 5 0.55%
yellow [10:29] 3 0.33%
greenyellow [30:49] 3 0.33%
lawngreen 50+ 147 16.3%
All colors 899 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
163 615 ucl_msgpack_release_tree call site: 00615 ucl_include_file_single
79 359 ucl_parser_process_object_element call site: 00359 ucl_parse_macro_arguments
67 265 ucl_parser_account_node call site: 00265 ucl_parse_key
62 202 ucl_object_new_full call site: 00202 ucl_save_comment
43 792 ucl_parser_new call site: 00792 ucl_object_insert_key
40 440 ucl_parser_new call site: 00440 ucl_include_common
40 493 ucl_parser_set_filevars call site: 00493 ucl_parser_add_chunk_full
30 60 utstring_printf_va call site: 00060 ucl_set_include_path
29 30 ucl_parser_new call site: 00030 ucl_include_common
28 152 ucl_object_free_internal call site: 00152 ucl_include_url
23 871 ucl_parser_get_object call site: 00871 ucl_attach_comment
21 337 ucl_parser_process_object_element call site: 00337 ucl_parser_append_elt

Runtime coverage analysis

Covered functions
73
Functions that are reachable but not covered
147
Reachable functions
212
Percentage of reachable functions covered
30.66%
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 41
../include/ucl.h 1
./mum.h 9
ucl_util.c 64
ucl_hash.c 24
ucl_emitter_utils.c 4
../uthash/utstring.h 2
./ucl_chartable.h 1
./ucl_internal.h 4
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 405 44.8%
gold [1:9] 6 0.66%
yellow [10:29] 8 0.88%
greenyellow [30:49] 9 0.99%
lawngreen 50+ 476 52.6%
All colors 904 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
205 533 ucl_include_file_single call site: 00533 ucl_parse_cbor
15 152 ucl_object_free_internal call site: 00152 ucl_object_insert_key_common
12 62 utstring_printf_va call site: 00062 ucl_utstring_append_double
11 337 ucl_parser_process_object_element call site: 00337 ucl_hash_replace
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 184 ucl_create_err call site: 00184 ucl_parser_add_chunk_full
6 526 ucl_include_file_single call site: 00526 ucl_create_err
6 823 ucl_load_handler call site: 00823 ucl_object_fromint
5 132 ucl_hash_destroy call site: 00132 ucl_hash_replace
5 423 ucl_parse_after_value call site: 00423 ucl_skip_macro_as_comment
5 457 ucl_fetch_file call site: 00457 ucl_create_err

Runtime coverage analysis

Covered functions
132
Functions that are reachable but not covered
84
Reachable functions
216
Percentage of reachable functions covered
61.11%
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 44
../include/ucl.h 1
./mum.h 9
ucl_util.c 65
ucl_hash.c 24
ucl_emitter_utils.c 4
../uthash/utstring.h 2
./ucl_chartable.h 1
./ucl_internal.h 4
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 44 0 223 120
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 60 1 399 57
ucl_object_compare /src/libucl/src/ucl_util.c 2 ['N/A', 'N/A'] 10 0 389 72 21 48 2 215 55
ucl_emit_msgpack_elt /src/libucl/src/ucl_emitter.c 4 ['N/A', 'N/A', 'bool', 'bool'] 2 0 253 35 7 21 1 89 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 85 51

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

Functions statically reachable by fuzzers
67.0%
232 / 347
Cyclomatic complexity statically reachable by fuzzers
84.0%
2254 / 2694

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_chartable.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/../include/ucl.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_cbor.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_emitter.c [] []
/src/libucl/src/../uthash/utstring.h ['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_emitter_utils.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/tests/fuzzers/ucl_msgpack_fuzzer.c ['ucl_msgpack_fuzzer'] ['ucl_msgpack_fuzzer']
/src/libucl/src/./ucl_internal.h ['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/./mum.h ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] []
/src/libucl/src/ucl_sexp.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_util.c ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer'] ['ucl_msgpack_fuzzer', 'ucl_add_string_fuzzer']

Directories in report

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