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_tok822

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 87 35.0%
gold [1:9] 10 4.03%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 151 60.8%
All colors 248 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
31 60 vbuf_print call site: 00060 msg_panic
15 110 msg_vstream_print call site: 00110 vstream_fflush_delayed
5 34 printable_except call site: 00034 mystrdup
5 96 msg_output_push call site: 00096 myrealloc
4 11 mystrdup call site: 00011 msg_panic
4 43 vbuf_print call site: 00043 msg_warn
3 1 LLVMFuzzerTestOneInput call site: 00001 msg_panic
2 40 vbuf_print call site: 00040 msg_panic
2 53 vbuf_print call site: 00053 msg_panic
2 105 msg_vstream_init call site: 00105 msg_panic
2 126 vstream_fflush call site: 00126 sleep
1 7 msg_vstream_init call site: 00007 msg_panic

Runtime coverage analysis

Covered functions
49
Functions that are reachable but not covered
22
Reachable functions
67
Percentage of reachable functions covered
67.16%
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
fuzz_tok822.c 1
postfix/postfixutil/vstring.c 7
postfix/postfixutil/msg.c 8
postfix/postfixutil/msg_output.c 2
postfix/postfixutil/msg_vstream.c 2
postfix/postfixutil/mymalloc.c 4
postfix/postfixutil/vbuf_print.c 1
postfix/postfixutil/vbuf.c 1
postfix/postfixutil/printable.c 1
postfix/postfixutil/./parse_utf8_char.h 1
postfix/postfixutil/mystrerror.c 1
postfix/postfixutil/vstream.c 5
postfix/postfixglobal/tok822_parse.c 10
postfix/postfixglobal/tok822_node.c 2
postfix/postfixglobal/tok822_tree.c 6
postfix/postfixglobal/quote_822_local.c 3

Fuzzer: fuzz_mime

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 258 87.1%
gold [1:9] 2 0.67%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 36 12.1%
All colors 296 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
118 141 vstring_strncat call site: 00141 header_opts_find
52 43 mystrdup call site: 00043 msg_panic
24 264 mime_state_update call site: 00264 mime_state_pop
23 105 msg_vstream_init call site: 00105 msg_panic
17 23 vstring_alloc call site: 00023 msg_warn
8 14 vstring_alloc call site: 00014 msg_panic
5 2 msg_vstream_init call site: 00002 msg_panic
5 96 msg_output_push call site: 00096 myrealloc
2 138 LLVMFuzzerTestOneInput call site: 00138 mime_state_update
1 12 msg_output_push call site: 00012 msg_panic
1 41 mystrdup call site: 00041 msg_panic
1 103 myrealloc call site: 00103 msg_fatal

Runtime coverage analysis

Covered functions
22
Functions that are reachable but not covered
80
Reachable functions
100
Percentage of reachable functions covered
20.0%
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
fuzz_mime.c 6
postfix/postfixutil/msg_vstream.c 2
postfix/postfixutil/mymalloc.c 5
postfix/postfixutil/msg.c 8
postfix/postfixutil/msg_output.c 2
postfix/postfixutil/vstream.c 5
postfix/postfixutil/vstring.c 8
postfix/postfixutil/vbuf_print.c 1
postfix/postfixutil/vbuf.c 1
postfix/postfixutil/printable.c 1
postfix/postfixutil/./parse_utf8_char.h 1
postfix/postfixutil/mystrerror.c 1
postfix/postfixglobal/mime_state.c 9
postfix/postfixglobal/header_opts.c 3
postfix/postfixutil/htable.c 6
postfix/postfixutil/hash_fnv.c 2
postfix/postfixutil/ldseed.c 1
postfix/postfixutil/non_blocking.c 1
postfix/postfixutil/argv_split.c 1
postfix/postfixutil/argv.c 5
postfix/postfixutil/mystrtok.c 2
postfix/postfixutil/lowercase.c 1
postfix/postfixutil/trimblanks.c 1
postfix/postfixglobal/header_token.c 1
postfix/postfixglobal/is_header.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
dict_regexp_open /src/postfix/postfix/src/util/dict_regexp.c 3 ['N/A', 'int', 'int'] 18 0 305 61 22 114 0 743 416
dict_tcp_lookup /src/postfix/postfix/src/util/dict_tcp.c 2 ['N/A', 'N/A'] 14 0 351 65 23 112 0 727 302
nbdb_dict_btree_open /src/postfix/postfix/src/global/nbdb_redirect.c 3 ['N/A', 'int', 'int'] 17 0 12 3 2 110 0 713 243
dict_sockmap_lookup /src/postfix/postfix/src/util/dict_sockmap.c 2 ['N/A', 'N/A'] 15 0 304 59 24 91 0 552 169
get_mail_conf_time_table /src/postfix/postfix/src/global/mail_conf_time.c 1 ['N/A'] 16 0 43 9 4 90 2 548 158
mynetworks_core /src/postfix/postfix/src/global/mynetworks.c 1 ['N/A'] 15 0 385 79 20 120 2 625 155
mkmap_btree_open /src/postfix/postfix/src/util/mkmap_db.c 1 ['N/A'] 17 0 12 3 2 72 0 421 105
dict_cidr_open /src/postfix/postfix/src/util/dict_cidr.c 3 ['N/A', 'int', 'int'] 21 0 261 50 17 111 0 700 93
nbdb_util_init /src/postfix/postfix/src/global/nbdb_util.c 1 ['N/A'] 11 0 103 25 9 82 2 467 84
dict_thash_open /src/postfix/postfix/src/util/dict_thash.c 3 ['N/A', 'int', 'int'] 19 0 520 110 39 85 0 530 58

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

Functions statically reachable by fuzzers
48.0%
307 / 634
Cyclomatic complexity statically reachable by fuzzers
62.0%
2625 / 4264

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/postfix/postfix/src/util/timed_write.c [] []
/src/postfix/postfix/src/util/dict_thash.c [] []
/src/postfix/postfix/src/util/sane_connect.c [] []
/src/postfix/postfix/src/util/vstring.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/util/mkmap_db.c [] []
/src/postfix/postfix/src/util/mkmap_fail.c [] []
/src/postfix/postfix/src/util/close_on_exec.c [] []
/src/postfix/postfix/src/util/msg_vstream.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/global/nbdb_redirect.c [] []
/src/postfix/postfix/src/util/myaddrinfo.c [] []
/src/postfix/postfix/src/util/allascii.c [] []
/src/postfix/postfix/src/util/dict_regexp.c [] []
/src/postfix/postfix/src/util/warn_stat.c [] []
/src/postfix/postfix/src/global/been_here.c [] []
/src/postfix/postfix/src/util/readlline.c [] []
/src/postfix/postfix/src/util/host_port.c [] []
/src/postfix/postfix/src/util/concatenate.c [] []
/src/postfix/postfix/src/util/mystrtok.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/balpar.c [] []
/src/postfix/postfix/src/global/mynetworks.c [] []
/src/postfix/postfix/src/util/myrand.c [] []
/src/postfix/postfix/src/util/dict.c [] []
/src/postfix/postfix/src/util/non_blocking.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/inet_windowsize.c [] []
/src/postfix/postfix/src/util/inet_addr_host.c [] []
/src/postfix/postfix/src/util/dict_env.c [] []
/src/postfix/postfix/src/util/dict_tcp.c [] []
/src/postfix/postfix/src/util/dict_random.c [] []
/src/postfix/postfix/src/util/attr_print0.c [] []
/src/postfix/postfix/src/util/timed_read.c [] []
/src/postfix/postfix/src/util/casefold.c [] []
/src/postfix/postfix/src/global/mail_conf_int.c [] []
/src/postfix/postfix/src/util/dict_ht.c [] []
/src/postfix/postfix/src/util/inet_addr_local.c [] []
/src/postfix/postfix/src/util/normalize_ws.c [] []
/src/postfix/postfix/src/util/split_qnameval.c [] []
/src/postfix/postfix/src/util/dict_pipe.c [] []
/src/postfix/postfix/src/util/mac_parse.c [] []
/src/postfix/postfix/src/global/conv_time.c [] []
/src/postfix/postfix/src/util/alldig.c [] []
/src/postfix/postfix/src/util/wrap_netdb.c [] []
/src/postfix/postfix/src/util/num_from_string.c [] []
/src/postfix/postfix/src/util/mystrerror.c ['fuzz_tok822', 'fuzz_mime'] []
/src/postfix/postfix/src/util/valid_utf8_string.c [] []
/src/postfix/postfix/src/global/mail_conf_nbool.c [] []
/src/postfix/postfix/src/util/auto_clnt.c [] []
/src/postfix/postfix/src/util/dict_static.c [] []
/src/postfix/postfix/src/util/ring.c [] []
/src/postfix/postfix/src/util/vstream.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/util/sock_addr.c [] []
/src/postfix/postfix/src/util/poll_fd.c [] []
/src/postfix/postfix/src/util/timed_connect.c [] []
/src/postfix/postfix/src/util/dict_unix.c [] []
/src/postfix/postfix/src/global/verp_sender.c [] []
/src/postfix/postfix/src/util/mymalloc.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/global/mail_conf.c [] []
/src/postfix/postfix/src/util/argv.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/dict_file.c [] []
/src/postfix/postfix/src/util/printable.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822']
/src/postfix/postfix/src/util/inet_addr_list.c [] []
/src/postfix/postfix/src/util/vstring_vstream.c [] []
/src/fuzz_mime.c ['fuzz_mime'] ['fuzz_mime']
/src/postfix/postfix/src/util/get_hostname.c [] []
/src/postfix/postfix/src/util/split_nameval.c [] []
/src/postfix/postfix/src/util/dict_sockmap.c [] []
/src/postfix/postfix/src/util/dict_db.c [] []
/src/postfix/postfix/src/util/mask_addr.c [] []
/src/postfix/postfix/src/util/lowercase.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/msg_output.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/global/tok822_parse.c ['fuzz_tok822'] ['fuzz_tok822']
/src/postfix/postfix/src/global/config_known_tcp_ports.c [] []
/src/postfix/postfix/src/util/unix_connect.c [] []
/src/postfix/postfix/src/util/msg_syslog.c [] []
/src/postfix/postfix/src/global/mail_conf_bool.c [] []
/src/postfix/postfix/src/util/dict_inline.c [] []
/src/postfix/postfix/src/global/nbdb_util.c [] []
/src/postfix/postfix/src/util/argv_split_at.c [] []
/src/postfix/postfix/src/util/mac_midna.c [] []
/src/postfix/postfix/src/global/mime_state.c ['fuzz_mime'] ['fuzz_mime']
/src/postfix/postfix/src/global/mail_conf_str.c [] []
/src/postfix/postfix/src/util/name_mask.c [] []
/src/postfix/postfix/src/global/header_opts.c ['fuzz_mime'] []
/src/postfix/postfix/src/global/mail_params.c [] []
/src/postfix/postfix/src/util/split_at.c [] []
/src/postfix/postfix/src/util/valid_hostname.c [] []
/src/postfix/postfix/src/util/htable.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/vbuf_print.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822']
/src/postfix/postfix/src/global/tok822_node.c ['fuzz_tok822'] ['fuzz_tok822']
/src/postfix/postfix/src/util/sane_basename.c [] []
/src/postfix/postfix/src/util/base64_code.c [] []
/src/postfix/postfix/src/global/mail_conf_time.c [] []
/src/postfix/postfix/src/util/inet_proto.c [] []
/src/postfix/postfix/src/util/dict_surrogate.c [] []
/src/postfix/postfix/src/util/vbuf.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822', 'fuzz_mime']
/src/postfix/postfix/src/util/dict_utf8.c [] []
/src/postfix/postfix/src/util/myflock.c [] []
/src/postfix/postfix/src/util/dict_cidr.c [] []
/src/postfix/postfix/src/util/strcasecmp_utf8.c [] []
/src/postfix/postfix/src/global/own_inet_addr.c [] []
/src/postfix/postfix/src/util/argv_split.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/msg.c ['fuzz_tok822', 'fuzz_mime'] ['fuzz_tok822']
/src/postfix/postfix/src/util/inet_connect.c [] []
/src/postfix/postfix/src/util/mvect.c [] []
/src/postfix/postfix/src/util/safe_open.c [] []
/src/postfix/postfix/src/util/dict_debug.c [] []
/src/postfix/postfix/src/util/trimblanks.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/attr_scan0.c [] []
/src/postfix/postfix/src/util/hash_fnv.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/argv_splitq.c [] []
/src/postfix/postfix/src/util/valid_utf8_hostname.c [] []
/src/postfix/postfix/src/global/compat_level.c [] []
/src/postfix/postfix/src/global/header_token.c ['fuzz_mime'] []
/src/fuzz_tok822.c ['fuzz_tok822'] ['fuzz_tok822']
/src/postfix/postfix/src/global/nbdb_clnt.c [] []
/src/postfix/postfix/src/util/cidr_match.c [] []
/src/postfix/postfix/src/global/mail_conf_long.c [] []
/src/postfix/postfix/src/util/safe_getenv.c [] []
/src/postfix/postfix/src/util/ldseed.c ['fuzz_mime'] []
/src/postfix/postfix/src/util/doze.c [] []
/src/postfix/postfix/src/global/is_header.c ['fuzz_mime'] ['fuzz_mime']
/src/postfix/postfix/src/util/dict_open.c [] []
/src/postfix/postfix/src/util/known_tcp_ports.c [] []
/src/postfix/postfix/src/util/dict_stream.c [] []
/src/postfix/postfix/src/global/tok822_tree.c ['fuzz_tok822'] ['fuzz_tok822']
/src/postfix/postfix/src/util/sane_strtol.c [] []
/src/postfix/postfix/src/util/open_limit.c [] []
/src/postfix/postfix/src/util/./parse_utf8_char.h ['fuzz_tok822', 'fuzz_mime'] []
/src/postfix/postfix/src/util/logwriter.c [] []
/src/postfix/postfix/src/util/dict_alloc.c [] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h [] []
/src/postfix/postfix/src/util/wrap_fcntl.c [] []
/src/postfix/postfix/src/util/extpar.c [] []
/src/postfix/postfix/src/util/unsafe.c [] []
/src/postfix/postfix/src/util/dict_fail.c [] []
/src/postfix/postfix/src/util/name_code.c [] []
/src/postfix/postfix/src/util/mac_expand.c [] []
/src/postfix/postfix/src/util/hex_quote.c [] []
/src/postfix/postfix/src/global/quote_822_local.c ['fuzz_tok822'] ['fuzz_tok822']
/src/postfix/postfix/src/util/dict_union.c [] []
/src/postfix/postfix/src/util/events.c [] []
/src/postfix/postfix/src/util/netstring.c [] []

Directories in report

Directory
/src/postfix/postfix/src/util/./
/usr/include/x86_64-linux-gnu/bits/
/src/postfix/postfix/src/util/
/src/postfix/postfix/src/global/
/src/