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 74 31.4%
gold [1:9] 6 2.55%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 155 65.9%
All colors 235 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
227 227 1 :

['vstream_fflush_delayed']

227 454 vstream_fflush call site: 00092 /src/postfix/postfix/src/util/vstream.c:1455
227 227 1 :

['msg_panic']

227 227 msg_vstream_print call site: 00087 /src/postfix/postfix/src/util/msg_vstream.c:63
227 227 1 :

['msg_panic']

227 227 mymalloc call site: 00009 /src/postfix/postfix/src/util/mymalloc.c:160
227 227 1 :

['msg_fatal']

227 227 mymalloc call site: 00010 /src/postfix/postfix/src/util/mymalloc.c:165
227 227 1 :

['msg_fatal']

227 227 myrealloc call site: 00085 /src/postfix/postfix/src/util/mymalloc.c:196
227 227 1 :

['msg_panic']

227 227 vstream_fflush_some call site: 00101 /src/postfix/postfix/src/util/vstream.c:778
227 227 1 :

['msg_panic']

227 227 vstring_alloc call site: 00001 /src/postfix/postfix/src/util/vstring.c:376
227 227 1 :

['msg_panic']

227 227 vstring_buf_space call site: 00000 /src/postfix/postfix/src/util/vstring.c:359
0 227 1 :

['myrealloc']

0 227 msg_output call site: 00008 /src/postfix/postfix/src/util/msg_output.c:133
0 227 1 :

['mymalloc']

0 227 myrealloc call site: 00081 /src/postfix/postfix/src/util/mymalloc.c:181
0 0 None 7729 8235 vbuf_print call site: 00019 /src/postfix/postfix/src/util/vbuf_print.c:173
0 0 None 7729 8235 vbuf_print call site: 00024 /src/postfix/postfix/src/util/vbuf_print.c:197

Runtime coverage analysis

Covered functions
47
Functions that are reachable but not covered
23
Reachable functions
66
Percentage of reachable functions covered
65.15%
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 4
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 242 88.0%
gold [1:9] 4 1.45%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 29 10.5%
All colors 275 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
1029 1029 4 :

['vstring_strcat', 'mime_state_content_encoding', 'mime_state_content_type', 'header_opts_find']

1775 1825 mime_state_update call site: 00121 /src/postfix/postfix/src/global/mime_state.c:795
227 227 1 :

['msg_panic']

227 227 mymalloc call site: 00015 /src/postfix/postfix/src/util/mymalloc.c:160
227 227 1 :

['msg_fatal']

227 227 mymalloc call site: 00016 /src/postfix/postfix/src/util/mymalloc.c:165
227 227 1 :

['msg_fatal']

227 227 myrealloc call site: 00109 /src/postfix/postfix/src/util/mymalloc.c:196
227 227 1 :

['msg_panic']

227 227 vstring_alloc call site: 00003 /src/postfix/postfix/src/util/vstring.c:376
6 6 2 :

['mime_state_enc_name', 'strlen']

734 734 mime_state_update call site: 00121 /src/postfix/postfix/src/global/mime_state.c:940
0 649 1 :

['mime_state_update']

2002 2701 mime_state_update call site: 00120 /src/postfix/postfix/src/global/mime_state.c:773
0 227 1 :

['myrealloc']

0 227 msg_output call site: 00003 /src/postfix/postfix/src/util/msg_output.c:133
0 227 1 :

['mymalloc']

0 227 myrealloc call site: 00105 /src/postfix/postfix/src/util/mymalloc.c:181
0 0 None 740 740 mime_state_update call site: 00121 /src/postfix/postfix/src/global/mime_state.c:927
0 0 None 501 501 mime_state_update call site: 00121 /src/postfix/postfix/src/global/mime_state.c:967
0 0 None 501 501 mime_state_update call site: 00121 /src/postfix/postfix/src/global/mime_state.c:968

Runtime coverage analysis

Covered functions
20
Functions that are reachable but not covered
81
Reachable functions
99
Percentage of reachable functions covered
18.18%
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/msg_output.c 2
postfix/postfixutil/vstring.c 8
postfix/postfixutil/msg.c 8
postfix/postfixutil/vstream.c 4
postfix/postfixutil/vbuf_print.c 1
postfix/postfixutil/mymalloc.c 5
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 355 61 22 111 0 695 407
dict_tcp_lookup /src/postfix/postfix/src/util/dict_tcp.c 2 ['N/A', 'N/A'] 14 0 363 65 23 109 0 686 303
dict_sockmap_lookup /src/postfix/postfix/src/util/dict_sockmap.c 2 ['N/A', 'N/A'] 15 0 288 52 21 89 0 506 173
mynetworks_core /src/postfix/postfix/src/global/mynetworks.c 1 ['N/A'] 15 0 444 79 20 117 2 582 155
get_mail_conf_time_table /src/postfix/postfix/src/global/mail_conf_time.c 1 ['N/A'] 16 0 46 9 4 87 2 489 143
mkmap_btree_open /src/postfix/postfix/src/util/mkmap_db.c 1 ['N/A'] 18 0 13 3 2 74 0 390 106
dict_cidr_open /src/postfix/postfix/src/util/dict_cidr.c 3 ['N/A', 'int', 'int'] 21 0 310 50 17 108 0 649 87
dict_pipe_open /src/postfix/postfix/src/util/dict_pipe.c 3 ['N/A', 'int', 'int'] 20 0 294 54 21 88 0 444 67
dict_load_file_xt /src/postfix/postfix/src/util/dict.c 2 ['N/A', 'N/A'] 14 0 98 21 7 81 2 463 64
dict_inline_open /src/postfix/postfix/src/util/dict_inline.c 3 ['N/A', 'int', 'int'] 19 0 309 55 23 88 0 495 58

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

Functions statically reachable by fuzzers
48.0%
281 / 586
Cyclomatic complexity statically reachable by fuzzers
60.0%
2366 / 3926

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

Directories in report

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