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_iolog_legacy

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 26 28.5%
gold [1:9] 7 7.69%
yellow [10:29] 4 4.39%
greenyellow [30:49] 4 4.39%
lawngreen 50+ 50 54.9%
All colors 91 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
8 28 warning call site: 00028 sudo_getprogname
5 3 initprogname2 call site: 00003 sudo_setprogname
3 59 iolog_parse_loginfo_legacy call site: 00059 sudo_warnx_nodebug_v1
2 66 iolog_parse_loginfo_legacy call site: 00066 sudo_warnx_nodebug_v1
2 72 iolog_parse_loginfo_legacy call site: 00072 sudo_warnx_nodebug_v1
2 76 iolog_parse_loginfo_legacy call site: 00076 sudo_warnx_nodebug_v1
2 79 iolog_parse_loginfo_legacy call site: 00079 sudo_warnx_nodebug_v1
1 1 LLVMFuzzerTestOneInput call site: 00001 initprogname2
1 49 sudo_strtonumx call site: 00049 __errno_location

Runtime coverage analysis

Covered functions
16
Functions that are reachable but not covered
24
Reachable functions
40
Percentage of reachable functions covered
40.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
lib/iolog/./regress/fuzz/fuzz_iolog_legacy.c 3
lib/util/./progname.c 4
lib/util/./basename.c 1
lib/util/./fatal.c 5
lib/iolog/./iolog_legacy.c 1
lib/util/./strtonum.c 2
lib/util/./sudo_debug.c 1
lib/eventlog/./eventlog_free.c 2

Fuzzer: fuzz_iolog_timing

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 79 45.1%
gold [1:9] 2 1.14%
yellow [10:29] 1 0.57%
greenyellow [30:49] 1 0.57%
lawngreen 50+ 92 52.5%
All colors 175 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
23 43 iolog_openat call site: 00043 sudo_lock_file_v1
9 95 warning call site: 00095 vasprintf
7 76 iolog_read_timing_record call site: 00076 __errno_location
7 159 LLVMFuzzerTestOneInput call site: 00159 gzflush
5 3 initprogname2 call site: 00003 sudo_setprogname
4 70 iolog_open call site: 00070 __errno_location
3 14 mktemp_internal call site: 00014 __errno_location
3 39 iolog_openat call site: 00039 fstatat
3 167 iolog_close call site: 00167 __errno_location
2 18 mktemp_internal call site: 00018 openat
2 115 sudo_strtonumx call site: 00115 __ctype_b_loc
2 119 sudo_strtonumx call site: 00119 __errno_location

Runtime coverage analysis

Covered functions
28
Functions that are reachable but not covered
54
Reachable functions
82
Percentage of reachable functions covered
34.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
lib/iolog/./regress/fuzz/fuzz_iolog_timing.c 3
lib/util/./progname.c 4
lib/util/./basename.c 1
lib/util/./fatal.c 4
lib/util/./mktemp.c 2
lib/iolog/./iolog_open.c 1
lib/iolog/./iolog_conf.c 5
lib/util/./sudo_debug.c 1
lib/iolog/./iolog_util.c 1
lib/iolog/./iolog_openat.c 1
lib/util/./locking.c 2
lib/iolog/./iolog_timing.c 3
lib/iolog/./iolog_gets.c 1
lib/iolog/./iolog_eof.c 1
lib/util/./strtonum.c 2
lib/util/./str2sig.c 1
lib/iolog/./iolog_close.c 1

Fuzzer: fuzz_sudo_conf

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 53 44.5%
gold [1:9] 8 6.72%
yellow [10:29] 2 1.68%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 56 47.0%
All colors 119 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
10 101 LLVMFuzzerTestOneInput call site: 00101 sudo_warnx_nodebug_v1
8 39 warning call site: 00039 sudo_getprogname
5 5 initprogname2 call site: 00005 sudo_setprogname
4 31 sudo_conf_read_v1 call site: 00031 sudo_warn_nodebug_v1
4 114 sudo_conf_debug_files_v1 call site: 00114 sudo_warnx_nodebug_v1
3 16 mktemp_internal call site: 00016 __errno_location
2 22 mktemp_internal call site: 00022 mkdirat
2 54 sudo_conf_read_v1 call site: 00054 sudo_warn_nodebug_v1
2 57 sudo_conf_read_v1 call site: 00057 sudo_warn_nodebug_v1
2 60 sudo_conf_read_v1 call site: 00060 sudo_warn_nodebug_v1
2 70 sudo_parseln_v2 call site: 00070 __errno_location
2 79 sudo_conf_read_v1 call site: 00079 close

Runtime coverage analysis

Covered functions
42
Functions that are reachable but not covered
33
Reachable functions
62
Percentage of reachable functions covered
46.77%
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
lib/util/./regress/fuzz/fuzz_sudo_conf.c 2
lib/util/./sudo_conf.c 15
lib/util/./progname.c 4
lib/util/./basename.c 1
lib/util/./fatal.c 5
lib/util/./mktemp.c 2
lib/util/./parseln.c 1
lib/util/./roundup.c 1
lib/util/./sudo_debug.c 1

Fuzzer: fuzz_iolog_json

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 23 16.0%
gold [1:9] 24 16.7%
yellow [10:29] 14 9.79%
greenyellow [30:49] 3 2.09%
lawngreen 50+ 79 55.2%
All colors 143 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
8 28 warning call site: 00028 sudo_getprogname
5 3 initprogname2 call site: 00003 sudo_setprogname
3 42 json_stack_push call site: 00042 sudo_warnx_nodebug_v1
2 59 json_parse_string call site: 00059 sudo_warnx_nodebug_v1
2 126 eventlog_json_parse call site: 00126 sudo_warnx_nodebug_v1
1 1 LLVMFuzzerTestOneInput call site: 00001 initprogname2
1 105 sudo_strtonumx call site: 00105 __errno_location
1 122 free_json_items call site: 00122 sudo_warnx_nodebug_v1

Runtime coverage analysis

Covered functions
59
Functions that are reachable but not covered
21
Reachable functions
49
Percentage of reachable functions covered
57.14%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
lib/iolog/./regress/fuzz/fuzz_iolog_json.c 3
lib/util/./progname.c 4
lib/util/./basename.c 1
lib/util/./fatal.c 4
lib/iolog/./iolog_json.c 1
lib/eventlog/./parse_json.c 11
lib/util/./hexchar.c 1
lib/util/./strtonum.c 2
lib/util/./sudo_debug.c 1
lib/eventlog/./eventlog_free.c 2

Fuzzer: fuzz_logsrvd_conf

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 193 41.9%
gold [1:9] 53 11.5%
yellow [10:29] 10 2.17%
greenyellow [30:49] 5 1.08%
lawngreen 50+ 199 43.2%
All colors 460 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
40 283 init_tls_context call site: 00283 verify_cert_chain
11 393 logsrvd_conf_apply call site: 00393 logsrvd_conv_stderr
11 405 logsrvd_conf_apply call site: 00405 logsrvd_conv_logfile
9 360 set_dhparams_bio call site: 00360 sudo_warnx_nodebug_v1
8 37 warning call site: 00037 sudo_getprogname
8 124 logsrvd_conf_read call site: 00124 sudo_open_conf_path_v1
7 263 init_tls_context call site: 00263 sudo_warnx_nodebug_v1
6 243 init_tls_context call site: 00243 sudo_warnx_nodebug_v1
6 250 init_tls_context call site: 00250 sudo_warnx_nodebug_v1
6 333 init_tls_ciphersuites call site: 00333 sudo_warnx_nodebug_v1
6 349 init_tls_ciphersuites call site: 00349 sudo_warnx_nodebug_v1
5 3 initprogname2 call site: 00003 sudo_setprogname

Runtime coverage analysis

Covered functions
119
Functions that are reachable but not covered
86
Reachable functions
172
Percentage of reachable functions covered
50.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
logsrvd/./regress/fuzz/fuzz_logsrvd_conf.c 5
lib/util/./progname.c 4
lib/util/./basename.c 1
lib/util/./fatal.c 6
lib/util/./mktemp.c 2
logsrvd/./logsrvd_conf.c 40
lib/util/./logfac.c 1
lib/util/./logpri.c 1
lib/util/./rcstr.c 4
lib/iolog/./iolog_filter.c 4
lib/util/./secure_path.c 1
lib/util/./strsplit.c 1
lib/util/./parseln.c 1
lib/util/./roundup.c 1
lib/util/./sudo_debug.c 1
lib/iolog/./host_port.c 1
lib/util/./strtonum.c 2
logsrvd/./tls_init.c 5
lib/iolog/./iolog_conf.c 6
lib/eventlog/./eventlog_conf.c 10

Fuzzer: fuzz_sudoers_ldif

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 97 24.4%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.25%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 298 75.2%
All colors 396 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
15 308 append_default call site: 00308 sudo_warnx_nodebug_v1
9 348 sudo_ldap_role_to_priv call site: 00348 free_cmndspecs
9 359 role_to_sudoers call site: 00359 free_userspec
9 382 LLVMFuzzerTestOneInput call site: 00382 free_userspecs
8 31 warning call site: 00031 sudo_getprogname
5 5 initprogname2 call site: 00005 sudo_setprogname
4 20 free_defs_val call site: 00020 sudo_warn_gettext_v1
4 75 init_passprompt_regex call site: 00075 sudo_warnx_nodebug_v1
3 134 ldif_parse_attribute call site: 00134 sudo_warnx_nodebug_v1
3 223 array_to_member_list call site: 00223 free_members
3 254 sudo_ldap_role_to_priv call site: 00254 sudo_warnx_nodebug_v1
3 331 sudo_ldap_extract_digest call site: 00331 sudo_warnx_nodebug_v1

Runtime coverage analysis

Covered functions
79
Functions that are reachable but not covered
47
Reachable functions
126
Percentage of reachable functions covered
62.7%
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
plugins/sudoers/./regress/fuzz/fuzz_sudoers_ldif.c 4
lib/util/./progname.c 4
lib/util/./basename.c 1
plugins/sudoers/./sudoers_debug.c 2
lib/util/./sudo_debug.c 4
lib/util/./fatal.c 4
plugins/sudoers/./defaults.c 8
lib/util/./logfac.c 1
lib/util/./logpri.c 1
plugins/sudoers/./locale.c 1
plugins/sudoers/./regress/fuzz/fuzz_stubs.c 1
plugins/sudoers/gram.y 11
plugins/sudoers/./parse_ldif.c 15
plugins/sudoers/./redblack.c 6
plugins/sudoers/./ldap_util.c 9
plugins/sudoers/./strlist.c 4
lib/util/./b64_decode.c 1
plugins/sudoers/./gentime.c 2
lib/util/./rcstr.c 3
plugins/sudoers/./timeout.c 1
plugins/sudoers/./fmtsudoers.c 1
plugins/sudoers/./digestname.c 1
plugins/sudoers/./alias.c 2

Fuzzer: fuzz_policy

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 77 39.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 116 60.1%
All colors 193 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
22 117 warning call site: 00117 parser_leak_free
21 75 sudoers_cleanup call site: 00075 init_parser
13 99 rbdestroy_int call site: 00099 parser_leak_init
6 140 sudo_warn_gettext_v1 call site: 00140 sudo_warnx_nodebug_v1
3 7 sudo_basename_v1 call site: 00007 sudo_setprogname
3 176 env_free call site: 00176 sudo_warnx_nodebug_v1
2 12 LLVMFuzzerTestOneInput call site: 00012 sudo_debug_register_v2
2 167 sudo_freegrcache call site: 00167 rbdestroy
1 3 LLVMFuzzerTestOneInput call site: 00003 initprogname2
1 5 initprogname2 call site: 00005 sudo_basename_v1
1 73 LLVMFuzzerTestOneInput call site: 00073 sudoers_cleanup
1 181 sudoers_cleanup call site: 00181 sudo_warnx_nodebug_v1

Runtime coverage analysis

Covered functions
274
Functions that are reachable but not covered
40
Reachable functions
87
Percentage of reachable functions covered
54.02%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
plugins/sudoers/./regress/fuzz/fuzz_policy.c 9
lib/util/./progname.c 4
lib/util/./basename.c 1
plugins/sudoers/./sudoers_debug.c 2
lib/util/./sudo_debug.c 3
lib/util/./fatal.c 4
plugins/sudoers/./sudoers.c 1
plugins/sudoers/gram.y 14
lib/util/./rcstr.c 3
plugins/sudoers/./alias.c 2
plugins/sudoers/./redblack.c 2
plugins/sudoers/toke.l 1
lib/util/./lbuf.c 1
plugins/sudoers/toke.c 2
plugins/sudoers/./sudoers_ctx_free.c 1
plugins/sudoers/./pwutil.c 9
plugins/sudoers/./canon_path.c 3
plugins/sudoers/./env.c 1
plugins/sudoers/./gc.c 2

Fuzzer: fuzz_sudoers

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 828 48.6%
gold [1:9] 18 1.05%
yellow [10:29] 16 0.94%
greenyellow [30:49] 5 0.29%
lawngreen 50+ 834 49.0%
All colors 1701 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
180 498 sudo_secure_fd_v1 call site: 00498 push_includedir
63 796 alias_get call site: 00796 alias_error
46 439 yy_get_next_buffer call site: 00439 push_include
38 744 parse_timeout call site: 00744 sudoerserror
32 393 fill_cmnd call site: 00393 fill
28 685 parser_vwarnx call site: 00685 sudoerserror
23 361 sudo_digest_getlen_v2 call site: 00361 fill
21 223 alias_free call site: 00223 parser_leak_init
19 197 LLVMFuzzerTestOneInput call site: 00197 free_parse_tree
19 1271 sudoers_lookup call site: 01271 sudo_getpwuid
16 278 sudoerslex call site: 00278 fill
16 324 fill_args call site: 00324 fill_args

Runtime coverage analysis

Covered functions
285
Functions that are reachable but not covered
109
Reachable functions
385
Percentage of reachable functions covered
71.69%
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
plugins/sudoers/./regress/fuzz/fuzz_sudoers.c 9
lib/util/./progname.c 4
lib/util/./basename.c 1
plugins/sudoers/./sudoers_debug.c 2
lib/util/./sudo_debug.c 5
lib/util/./fatal.c 6
plugins/sudoers/./locale.c 3
plugins/sudoers/./pwutil.c 25
plugins/sudoers/./redblack.c 11
plugins/sudoers/./regress/fuzz/fuzz_stubs.c 6
plugins/sudoers/gram.y 32
plugins/sudoers/./defaults.c 30
lib/util/./logfac.c 1
lib/util/./logpri.c 1
lib/util/./rcstr.c 4
plugins/sudoers/./alias.c 15
plugins/sudoers/toke.l 11
lib/util/./lbuf.c 8
plugins/sudoers/toke.c 16
plugins/sudoers/gram.c 2
plugins/sudoers/./toke_util.c 6
lib/util/./hexchar.c 1
lib/util/./regex.c 3
lib/util/./digest_openssl.c 6
lib/util/./strsplit.c 1
lib/util/./secure_path.c 3
plugins/sudoers/./parser_warnx.c 2
plugins/sudoers/./gentime.c 2
plugins/sudoers/./timeout.c 1
plugins/sudoers/./match.c 19
lib/util/./gethostname.c 1
lib/util/./strtoid.c 3
lib/util/./strtonum.c 2
plugins/sudoers/./match_addr.c 3
plugins/sudoers/./match_command.c 12
plugins/sudoers/./match_digest.c 1
plugins/sudoers/./filedigest.c 1
lib/util/./b64_decode.c 1
plugins/sudoers/./digestname.c 1
lib/util/./dotdot.c 1
lib/util/./strtomode.c 1
plugins/sudoers/./lookup.c 5
plugins/sudoers/./display.c 10
lib/util/./term.c 1
lib/util/./roundup.c 1
plugins/sudoers/./fmtsudoers.c 6
plugins/sudoers/./exptilde.c 1
plugins/sudoers/./check_aliases.c 4
plugins/sudoers/./sudoers_ctx_free.c 1
plugins/sudoers/./canon_path.c 2

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
sudoers_policy_check /src/sudo/plugins/sudoers/./policy.c 7 ['int', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 13 0 136 21 7 293 0 1968 776
sudoers_policy_open /src/sudo/plugins/sudoers/./policy.c 8 ['int', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 12 0 206 37 12 275 0 1667 336
free_cmndspec /src/sudo/plugins/sudoers/gram.y 2 ['N/A', 'N/A'] 2 0 578 117 41 2 0 52 41
sudo_lbuf_append_esc_v1 /src/sudo/lib/util/./lbuf.c 3 ['N/A', 'int', 'N/A'] 2 0 526 77 28 8 0 61 40

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

Functions statically reachable by fuzzers
67.0%
549 / 819
Cyclomatic complexity statically reachable by fuzzers
83.0%
5075 / 6101

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

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

lib/iolog/./regress/fuzz/fuzz_iolog_legacy.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['warning', 'initprogname2', 'iolog_parse_loginfo_legacy', 'LLVMFuzzerTestOneInput', 'sudo_strtonumx']

lib/iolog/./regress/fuzz/fuzz_iolog_timing.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['iolog_openat', 'warning', 'iolog_read_timing_record', 'LLVMFuzzerTestOneInput', 'initprogname2', 'iolog_open', 'mktemp_internal', 'iolog_close']

lib/util/./regress/fuzz/fuzz_sudo_conf.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LLVMFuzzerTestOneInput', 'warning', 'initprogname2', 'sudo_conf_read_v1', 'sudo_conf_debug_files_v1', 'mktemp_internal']

lib/iolog/./regress/fuzz/fuzz_iolog_json.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['warning', 'initprogname2', 'json_stack_push', 'json_parse_string', 'eventlog_json_parse', 'LLVMFuzzerTestOneInput', 'sudo_strtonumx', 'free_json_items']

logsrvd/./regress/fuzz/fuzz_logsrvd_conf.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['init_tls_context', 'logsrvd_conf_apply', 'set_dhparams_bio', 'warning', 'logsrvd_conf_read', 'init_tls_ciphersuites']

plugins/sudoers/./regress/fuzz/fuzz_sudoers_ldif.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['append_default', 'sudo_ldap_role_to_priv', 'role_to_sudoers', 'LLVMFuzzerTestOneInput', 'warning', 'initprogname2', 'free_defs_val', 'init_passprompt_regex', 'ldif_parse_attribute', 'array_to_member_list']

plugins/sudoers/./regress/fuzz/fuzz_policy.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['warning', 'sudoers_cleanup', 'rbdestroy_int', 'sudo_warn_gettext_v1', 'sudo_basename_v1', 'env_free', 'LLVMFuzzerTestOneInput', 'sudo_freegrcache', 'initprogname2']

plugins/sudoers/./regress/fuzz/fuzz_sudoers.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['sudo_secure_fd_v1', 'alias_get', 'yy_get_next_buffer', 'parse_timeout', 'fill_cmnd', 'parser_vwarnx', 'sudo_digest_getlen_v2', 'alias_free', 'LLVMFuzzerTestOneInput', 'sudoers_lookup']

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/sudo/lib/util/./uuid.c [] []
/src/sudo/lib/util/./sudo_debug.c ['fuzz_iolog_legacy', 'fuzz_iolog_timing', 'fuzz_sudo_conf', 'fuzz_iolog_json', 'fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./editor.c [] []
/src/sudo/plugins/sudoers/./sudoers_debug.c ['fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./pwutil.c ['fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./strlist.c ['fuzz_sudoers_ldif'] []
/src/sudo/plugins/sudoers/./exptilde.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./regress/fuzz/fuzz_iolog_json.c ['fuzz_iolog_json'] []
/src/sudo/lib/iolog/./iolog_eof.c ['fuzz_iolog_timing'] []
/src/sudo/lib/util/./secure_path.c ['fuzz_logsrvd_conf', 'fuzz_sudoers'] []
/src/sudo/lib/util/./str2sig.c ['fuzz_iolog_timing'] []
/src/sudo/plugins/sudoers/./env_pattern.c [] []
/src/sudo/plugins/sudoers/./gc.c ['fuzz_policy'] []
/src/sudo/plugins/sudoers/./alias.c ['fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/lib/iolog/./iolog_legacy.c ['fuzz_iolog_legacy'] []
/src/sudo/plugins/sudoers/./regress/fuzz/fuzz_stubs.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./dotdot.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./fmtsudoers.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./digestname.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./canon_path.c ['fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/logsrvd/./logsrvd_conf.c ['fuzz_logsrvd_conf'] []
/src/sudo/plugins/sudoers/./sudoers_ctx_free.c ['fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./lookup.c ['fuzz_sudoers'] []
/src/sudo/lib/util/./progname.c ['fuzz_iolog_legacy', 'fuzz_iolog_timing', 'fuzz_sudo_conf', 'fuzz_iolog_json', 'fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/lib/util/./logpri.c ['fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./roundup.c ['fuzz_sudo_conf', 'fuzz_logsrvd_conf', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./sudoers.c ['fuzz_policy'] []
/src/sudo/lib/util/./hexchar.c ['fuzz_iolog_json', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./ldap_util.c ['fuzz_sudoers_ldif'] []
/src/sudo/lib/util/./getgrouplist.c [] []
/src/sudo/lib/iolog/./iolog_json.c ['fuzz_iolog_json'] []
/src/sudo/lib/util/./regress/fuzz/fuzz_sudo_conf.c ['fuzz_sudo_conf'] []
/src/sudo/lib/util/./strtonum.c ['fuzz_iolog_legacy', 'fuzz_iolog_timing', 'fuzz_iolog_json', 'fuzz_logsrvd_conf', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./pwutil_impl.c [] []
/src/sudo/lib/util/./mktemp.c ['fuzz_iolog_timing', 'fuzz_sudo_conf', 'fuzz_logsrvd_conf'] []
/src/sudo/plugins/sudoers/./toke_util.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./check_aliases.c ['fuzz_sudoers'] []
/src/sudo/lib/util/./key_val.c [] []
/src/sudo/lib/util/./gettime.c [] []
/src/sudo/plugins/sudoers/./display.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./iolog_open.c ['fuzz_iolog_timing'] []
/src/sudo/lib/util/./strtobool.c [] []
/src/sudo/plugins/sudoers/./redblack.c ['fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/lib/eventlog/./eventlog_conf.c ['fuzz_logsrvd_conf'] []
/src/sudo/plugins/sudoers/./defaults.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./fatal.c ['fuzz_iolog_legacy', 'fuzz_iolog_timing', 'fuzz_sudo_conf', 'fuzz_iolog_json', 'fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./parse_ldif.c ['fuzz_sudoers_ldif'] []
/src/sudo/plugins/sudoers/./locale.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/toke.l ['fuzz_policy', 'fuzz_sudoers'] ['fuzz_policy', 'fuzz_sudoers']
/src/sudo/plugins/sudoers/./rationalize.c [] []
/src/sudo/lib/util/./basename.c ['fuzz_iolog_legacy', 'fuzz_iolog_timing', 'fuzz_sudo_conf', 'fuzz_iolog_json', 'fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./filedigest.c ['fuzz_sudoers'] []
/src/sudo/lib/util/./gethostname.c ['fuzz_sudoers'] []
/src/sudo/lib/util/./strtoid.c ['fuzz_sudoers'] []
/src/sudo/lib/util/./gidlist.c [] []
/src/sudo/plugins/sudoers/gram.c ['fuzz_sudoers'] ['fuzz_sudoers']
/src/sudo/lib/iolog/./iolog_timing.c ['fuzz_iolog_timing'] []
/src/sudo/lib/util/./digest_openssl.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./sethost.c [] []
/src/sudo/lib/util/./lbuf.c ['fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./regress/fuzz/fuzz_sudoers.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/gram.y ['fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] ['fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers']
/src/sudo/lib/iolog/./host_port.c ['fuzz_logsrvd_conf'] []
/src/sudo/lib/util/./parseln.c ['fuzz_sudo_conf', 'fuzz_logsrvd_conf'] []
/src/sudo/lib/iolog/./iolog_openat.c ['fuzz_iolog_timing'] []
/src/sudo/plugins/sudoers/./match_addr.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./strvec_join.c [] []
/src/sudo/lib/util/./strsplit.c ['fuzz_logsrvd_conf', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/toke.c ['fuzz_policy', 'fuzz_sudoers'] ['fuzz_sudoers']
/src/sudo/plugins/sudoers/./sudoers_hooks.c [] []
/src/sudo/plugins/sudoers/./env.c ['fuzz_policy'] []
/src/sudo/lib/util/./logfac.c ['fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./strtomode.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./iolog_util.c ['fuzz_iolog_timing'] []
/src/sudo/lib/iolog/./iolog_close.c ['fuzz_iolog_timing'] []
/src/sudo/logsrvd/./regress/fuzz/fuzz_logsrvd_conf.c ['fuzz_logsrvd_conf'] []
/src/sudo/plugins/sudoers/./regress/fuzz/fuzz_policy.c ['fuzz_policy'] []
/src/sudo/plugins/sudoers/./parser_warnx.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./match.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./iolog_conf.c ['fuzz_iolog_timing', 'fuzz_logsrvd_conf'] []
/src/sudo/plugins/sudoers/./serialize_list.c [] []
/src/sudo/lib/util/./b64_decode.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./regex.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./regress/fuzz/fuzz_iolog_timing.c ['fuzz_iolog_timing'] []
/src/sudo/plugins/sudoers/./policy.c [] []
/src/sudo/plugins/sudoers/./regress/fuzz/fuzz_sudoers_ldif.c ['fuzz_sudoers_ldif'] []
/src/sudo/lib/eventlog/./eventlog_free.c ['fuzz_iolog_legacy', 'fuzz_iolog_json'] []
/src/sudo/plugins/sudoers/./timeout.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./locking.c ['fuzz_iolog_timing'] []
/src/sudo/plugins/sudoers/./match_digest.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./gentime.c ['fuzz_sudoers_ldif', 'fuzz_sudoers'] []
/src/sudo/lib/util/./rcstr.c ['fuzz_logsrvd_conf', 'fuzz_sudoers_ldif', 'fuzz_policy', 'fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./match_command.c ['fuzz_sudoers'] []
/src/sudo/lib/iolog/./iolog_filter.c ['fuzz_logsrvd_conf'] []
/src/sudo/logsrvd/./tls_init.c ['fuzz_logsrvd_conf'] []
/src/sudo/lib/iolog/./iolog_gets.c ['fuzz_iolog_timing'] []
/src/sudo/lib/util/./term.c ['fuzz_sudoers'] []
/src/sudo/plugins/sudoers/./strlcpy_unesc.c [] []
/src/sudo/lib/iolog/./regress/fuzz/fuzz_iolog_legacy.c ['fuzz_iolog_legacy'] []
/src/sudo/lib/util/./login_max.c [] []
/src/sudo/lib/util/./sudo_conf.c ['fuzz_sudo_conf'] []
/src/sudo/plugins/sudoers/./sudoers_cb.c [] []
/src/sudo/lib/eventlog/./parse_json.c ['fuzz_iolog_json'] []

Directories in report

Directory
/src/sudo/lib/util/./
/src/sudo/plugins/sudoers/./regress/fuzz/
/src/sudo/logsrvd/./
/src/sudo/lib/iolog/./regress/fuzz/
/src/sudo/logsrvd/./regress/fuzz/
/src/sudo/lib/util/./regress/fuzz/
/src/sudo/lib/eventlog/./
/src/sudo/plugins/sudoers/./
/src/sudo/plugins/sudoers/
/src/sudo/lib/iolog/./