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_mdb

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 221 42.4%
gold [1:9] 14 2.68%
yellow [10:29] 4 0.76%
greenyellow [30:49] 9 1.72%
lawngreen 50+ 273 52.3%
All colors 521 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
71 254 mdb_read_next_dpg call site: 00254 mdb_index_find_next
46 467 mdb_kkd_to_props call site: 00467 mdb_read_props
14 160 load_options call site: 00160 mdb_buffer_dump
10 368 mdb_col_to_string call site: 00368 mdb_test_string
8 26 mdb_init_backends call site: 00026 g_strconcat
8 400 mdb_read_row call site: 00400 mdb_test_sarg_node
6 36 mdb_init_backends call site: 00036 g_strconcat
5 90 mdb_close call site: 00090 mdb_free_props
4 47 mdb_init_backends call site: 00047 g_utf8_strdown
3 7 mdb_set_default_backend call site: 00007 mdb_remove_backends
3 53 mdb_init_backends call site: 00053 g_strconcat
3 153 mdb_free_tabledef call site: 00153 mdb_free_tabledef

Runtime coverage analysis

Covered functions
94
Functions that are reachable but not covered
78
Reachable functions
172
Percentage of reachable functions covered
54.65%
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/mdbtools/src/fuzz/fuzz_mdb.c 1
file.c 13
backend.c 12
fakeglib.c 18
data.c 26
rc4.c 3
catalog.c 2
props.c 8
iconv.c 6
table.c 11
index.c 14
options.c 3
dump.c 1
map.c 3
sargs.c 8
like.c 2
money.c 5
write.c 3

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
mdb_print_schema /src/mdbtools/src/libmdb/backend.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 13 0 210 34 12 170 0 907 169
mdb_insert_row /src/mdbtools/src/libmdb/write.c 3 ['N/A', 'int', 'N/A'] 8 0 155 19 8 61 0 261 120
mdb_print_col /src/mdbtools/src/libmdb/backend.c 8 ['N/A', 'N/A', 'int', 'int', 'int', 'N/A', 'N/A', 'int'] 1 0 736 159 64 5 0 74 66
g_option_context_parse /src/mdbtools/src/libmdb/fakeglib.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 482 60 20 17 0 67 42

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

Functions statically reachable by fuzzers
75.0%
181 / 241
Cyclomatic complexity statically reachable by fuzzers
80.0%
1157 / 1447

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/mdbtools/src/libmdb/index.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/map.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/like.c ['fuzz_mdb'] []
/src/mdbtools/src/fuzz/fuzz_mdb.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/data.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/fakeglib.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/rc4.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/file.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/catalog.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/write.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/sargs.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/table.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/money.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/dump.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/props.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/options.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/backend.c ['fuzz_mdb'] ['fuzz_mdb']
/src/mdbtools/src/libmdb/iconv.c ['fuzz_mdb'] ['fuzz_mdb']

Directories in report

Directory
/src/mdbtools/src/fuzz/
/src/mdbtools/src/libmdb/