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_crypto_ext

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 15 100.%
All colors 15 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
0 0 None 0 0 voidfuzz_hash_ext_multi (FuzzedDataProvider&,unsignedlong,void(*)(mhd_Md5CtxExt*),void(*)(mhd_Md5CtxExt*,unsignedlong,unsignedcharconst*),void(*)(mhd_Md5CtxExt*,unsignedchar*),void(*)(mhd_Md5CtxExt*),unsignedlong) call site: 00000 /src/fuzz_crypto_ext.cpp:134
0 0 None 0 0 voidfuzz_hash_ext_multi (FuzzedDataProvider&,unsignedlong,void(*)(mhd_Sha256CtxExt*),void(*)(mhd_Sha256CtxExt*,unsignedlong,unsignedcharconst*),void(*)(mhd_Sha256CtxExt*,unsignedchar*),void(*)(mhd_Sha256CtxExt*),unsignedlong) call site: 00000 /src/fuzz_crypto_ext.cpp:134

Runtime coverage analysis

Covered functions
11
Functions that are reachable but not covered
4
Reachable functions
17
Percentage of reachable functions covered
76.47%
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/fuzz_crypto_ext.cpp 3
/src/mhd2/src/mhd2/md5_ext.c 4
/src/mhd2/src/mhd2/sha256_ext.c 4

Fuzzer: fuzz_libinfo

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 7 16.6%
gold [1:9] 12 28.5%
yellow [10:29] 0 0.0%
greenyellow [30:49] 20 47.6%
lawngreen 50+ 3 7.14%
All colors 42 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
6 6 1 :

['clock_gettime']

10 10 mhd_mclock_init_once call site: 00013 /src/mhd2/src/mhd2/mhd_mono_clock.c:395
0 0 None 16 55 mhd_lib_init_global_if_needed call site: 00007 /src/mhd2/src/mhd2/mhd_lib_init.c:421
0 0 None 14 53 mhd_lib_init_global_if_needed call site: 00010 /src/mhd2/src/mhd2/mhd_lib_init.c:426
0 0 None 14 14 mhd_lib_init_global_if_needed call site: 00010 /src/mhd2/src/mhd2/mhd_lib_init.c:428
0 0 None 2 2 mhd_mclock_init_once call site: 00017 /src/mhd2/src/mhd2/mhd_mono_clock.c:549
0 0 None 0 30 MHD_lib_get_info_dynamic_sz call site: 00006 /src/mhd2/src/mhd2/lib_get_info.c:517
0 0 None 0 0 mhd_lib_global_lazy_init call site: 00009 /src/mhd2/src/mhd2/mhd_lib_init.c:196
0 0 None 0 0 iov_max_init_ call site: 00021 /src/mhd2/src/mhd2/mhd_send.c:156

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
13
Reachable functions
31
Percentage of reachable functions covered
58.06%
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/fuzz_libinfo.cpp 1
/src/mhd2/src/mhd2/lib_get_info.c 2
/src/mhd2/src/mhd2/mhd_lib_init.c 8
/src/mhd2/src/mhd2/mhd_panic.c 2
/src/mhd2/src/mhd2/mhd_mono_clock.c 1
/src/mhd2/src/mhd2/mhd_send.c 2
/src/mhd2/src/mhd2/tls_gnu_funcs.c 3

Fuzzer: fuzz_str

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 8 10.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 69 89.6%
All colors 77 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
0 0 None 0 4 mhd_str_pct_decode_strict_n call site: 00041 /src/mhd2/src/mhd2/mhd_str.c:1920
0 0 None 0 4 mhd_str_pct_decode_lenient_n call site: 00046 /src/mhd2/src/mhd2/mhd_str.c:2002
0 0 None 0 0 mhd_str_remove_token_caseless call site: 00012 /src/mhd2/src/mhd2/mhd_str.c:1114
0 0 None 0 0 mhd_strx_to_uint32 call site: 00034 /src/mhd2/src/mhd2/mhd_str.c:1490
0 0 None 0 0 mhd_strx_to_uint32_n call site: 00037 /src/mhd2/src/mhd2/mhd_str.c:1524
0 0 None 0 0 mhd_strx_to_uint64 call site: 00027 /src/mhd2/src/mhd2/mhd_str.c:1558
0 0 None 0 0 mhd_strx_to_uint64_n call site: 00030 /src/mhd2/src/mhd2/mhd_str.c:1592
0 0 None 0 0 mhd_str_quote call site: 00059 /src/mhd2/src/mhd2/mhd_str.c:2342
0 0 None 0 0 mhd_base64_to_bin_n call site: 00064 /src/mhd2/src/mhd2/mhd_str.c:2546
0 0 None 0 0 mhd_base64_to_bin_n call site: 00064 /src/mhd2/src/mhd2/mhd_str.c:2562
0 0 None 0 0 mhd_base64_to_bin_n call site: 00064 /src/mhd2/src/mhd2/mhd_str.c:2583
0 0 None 0 0 mhd_base64_to_bin_n call site: 00064 /src/mhd2/src/mhd2/mhd_str.c:2588

Runtime coverage analysis

Covered functions
33
Functions that are reachable but not covered
8
Reachable functions
48
Percentage of reachable functions covered
83.33%
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/fuzz_str.cpp 8
/src/mhd2/src/mhd2/mhd_str.c 30

Fuzzer: fuzz_connection

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 256 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 256 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
0 0 None 2 2 mhd_pool_create call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:309
0 0 None 0 0 mhd_pool_create call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:304
0 0 1 :

['malloc']

0 0 mhd_pool_create call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:342
0 0 1 :

['free']

0 0 mhd_pool_create call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:346
0 0 None 0 0 mhd_pool_destroy call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:365
0 0 None 0 0 mhd_pool_destroy call site: 00000 /src/mhd2/src/mhd2/mempool_funcs.c:373

Runtime coverage analysis

Covered functions
4
Functions that are reachable but not covered
110
Reachable functions
110
Percentage of reachable functions covered
0.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
/src/fuzz_connection.cpp 4
/src/mhd2/src/mhd2/mempool_funcs.c 7
/src/mhd2/src/mhd2/post_parser_funcs.c 22
/src/mhd2/src/mhd2/request_get_value.c 1
/src/mhd2/src/mhd2/mhd_str.c 9
/src/mhd2/src/mhd2/daemon_logger.c 1
/src/mhd2/src/mhd2/stream_funcs.c 9
/src/mhd2/src/mhd2/daemon_funcs.c 7
/src/mhd2/src/mhd2/mhd_panic.c 1
/src/mhd2/src/mhd2/stream_process_request.c 15
/src/mhd2/src/mhd2/response_destroy.c 2
/src/mhd2/src/mhd2/response_auth_digest.c 1
/src/mhd2/src/mhd2/response_add_header.c 1
/src/mhd2/src/mhd2/response_funcs.c 1
/src/mhd2/src/mhd2/response_from.c 2
/src/mhd2/src/mhd2/mhd_sockets_funcs.c 2
/src/mhd2/src/mhd2/tls_gnu_funcs.c 1
/src/mhd2/src/mhd2/mhd_mono_clock.c 1
/src/mhd2/src/mhd2/respond_with_error.c 1
/src/mhd2/src/mhd2/request_funcs.c 1

Fuzzer: fuzz_response

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 15 9.74%
gold [1:9] 6 3.89%
yellow [10:29] 2 1.29%
greenyellow [30:49] 3 1.94%
lawngreen 50+ 128 83.1%
All colors 154 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
14 14 2 :

['mhd_panic', 'pthread_mutex_unlock']

14 14 MHD_response_add_header call site: 00031 /src/mhd2/src/mhd2/response_add_header.c:150
12 12 1 :

['mhd_panic']

55 93 MHD_response_destroy call site: 00141 /src/mhd2/src/mhd2/response_destroy.c:109
2 2 1 :

['pthread_mutex_lock']

16 35 MHD_response_add_header call site: 00029 /src/mhd2/src/mhd2/response_add_header.c:136
0 5 1 :

['mhd_response_remove_auth_digest_headers']

0 5 response_add_auth_digest_challenge_int call site: 00120 /src/mhd2/src/mhd2/response_auth_digest.c:471
0 0 None 43 43 MHD_response_destroy call site: 00142 /src/mhd2/src/mhd2/response_destroy.c:112
0 0 None 28 36 MHD_response_set_options call site: 00057 /src/mhd2/src/mhd2/response_set_options.c:38
0 0 None 14 78 MHD_response_add_auth_digest_challenge call site: 00103 /src/mhd2/src/mhd2/response_auth_digest.c:511
0 0 None 14 41 MHD_response_add_auth_basic_challenge call site: 00090 /src/mhd2/src/mhd2/response_auth_basic.c:161
0 0 None 14 22 MHD_response_set_options call site: 00059 /src/mhd2/src/mhd2/response_set_options.c:59
0 0 None 14 14 MHD_response_add_auth_basic_challenge call site: 00090 /src/mhd2/src/mhd2/response_auth_basic.c:168
0 0 None 14 14 MHD_response_add_auth_basic_challenge call site: 00090 /src/mhd2/src/mhd2/response_auth_basic.c:170
0 0 None 14 14 MHD_response_add_auth_digest_challenge call site: 00103 /src/mhd2/src/mhd2/response_auth_digest.c:518

Runtime coverage analysis

Covered functions
41
Functions that are reachable but not covered
21
Reachable functions
77
Percentage of reachable functions covered
72.73%
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/fuzz_response.cpp 7
/src/mhd2/src/mhd2/response_from.c 8
/src/mhd2/src/mhd2/response_add_header.c 5
/src/mhd2/src/mhd2/mhd_panic.c 1
/src/mhd_helper.cpp 2
/src/mhd2/src/include/microhttpd2_generated_response_options.h 8
/src/mhd2/src/mhd2/response_set_options.c 1
/src/mhd2/src/mhd2/response_funcs.c 2
/src/mhd2/src/mhd2/response_auth_basic.c 2
/src/mhd2/src/mhd2/mhd_str.c 1
/src/mhd2/src/mhd2/response_auth_digest.c 4
/src/mhd2/src/mhd2/http_status_str.c 1
/src/mhd2/src/mhd2/response_destroy.c 3

Fuzzer: fuzz_mhd2

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 158 56.0%
gold [1:9] 11 3.90%
yellow [10:29] 1 0.35%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 112 39.7%
All colors 282 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
310 310 7 :

['daemon_deinit_net', 'daemon_deinit_tls', 'daemon_deinit_auth_digest', 'daemon_deinit_large_buf', 'daemon_deinit_threading_and_conn', 'daemon_stop_threads', 'daemon_close_connections']

310 338 MHD_daemon_destroy call site: 00190 /src/mhd2/src/mhd2/daemon_start.c:3472
12 12 1 :

['mhd_panic']

55 93 MHD_response_destroy call site: 00116 /src/mhd2/src/mhd2/response_destroy.c:109
6 6 1 :

['clock_gettime']

10 10 mhd_mclock_init_once call site: 00149 /src/mhd2/src/mhd2/mhd_mono_clock.c:395
5 5 1 :

['mhd_daemon_get_wait_max']

5 5 MHD_daemon_get_info_dynamic_sz call site: 00188 /src/mhd2/src/mhd2/daemon_get_info.c:227
2 2 1 :

['pthread_mutex_lock']

16 35 MHD_response_add_header call site: 00068 /src/mhd2/src/mhd2/response_add_header.c:136
2 2 1 :

['close']

2 2 fuzz_response_config(FuzzedDataProvider&,MHD_Response*) call site: 00000 /src/fuzz_mhd2.cpp:164
2 2 1 :

['close']

2 2 dsettings_release call site: 00191 /src/mhd2/src/mhd2/daemon_start.c:113
0 0 None 43 43 MHD_response_destroy call site: 00117 /src/mhd2/src/mhd2/response_destroy.c:112
0 0 None 14 53 mhd_lib_init_global_if_needed call site: 00146 /src/mhd2/src/mhd2/mhd_lib_init.c:426
0 0 None 14 22 MHD_response_set_options call site: 00096 /src/mhd2/src/mhd2/response_set_options.c:59
0 0 None 14 14 mhd_lib_init_global_if_needed call site: 00146 /src/mhd2/src/mhd2/mhd_lib_init.c:428
0 0 None 4 4 MHD_daemon_create call site: 00142 /src/mhd2/src/mhd2/daemon_create.c:57

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
108
Reachable functions
179
Percentage of reachable functions covered
39.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/fuzz_mhd2.cpp 8
/src/mhd2/src/mhd2/auth_digest.c 14
/src/mhd2/src/mhd2/md5_int.c 4
/src/mhd2/src/mhd2/sha256_int.c 4
/src/mhd2/src/mhd2/sha512_256_int.c 4
/src/mhd2/src/mhd2/./mhd_bithelpers.h 2
/src/mhd2/src/mhd2/mhd_str.c 3
/src/mhd2/src/mhd2/response_from.c 5
/src/mhd2/src/mhd2/response_add_header.c 5
/src/mhd2/src/mhd2/mhd_panic.c 2
/src/mhd2/src/include/microhttpd2_generated_response_options.h 4
/src/mhd2/src/mhd2/response_set_options.c 1
/src/mhd2/src/mhd2/response_funcs.c 2
/src/mhd2/src/mhd2/response_destroy.c 3
/src/mhd2/src/mhd2/response_auth_digest.c 1
/src/mhd2/src/mhd2/daemon_create.c 1
/src/mhd2/src/mhd2/mhd_lib_init.c 6
/src/mhd2/src/mhd2/mhd_mono_clock.c 1
/src/mhd2/src/mhd2/mhd_send.c 2
/src/mhd2/src/mhd2/tls_gnu_funcs.c 8
/src/mhd2/src/include/microhttpd2_generated_daemon_options.h 7
/src/mhd2/src/mhd2/daemon_set_options.c 1
/src/mhd2/src/mhd2/daemon_get_info.c 2
/src/mhd2/src/mhd2/events_process.c 2
/src/mhd2/src/mhd2/daemon_start.c 18
/src/mhd2/src/mhd2/daemon_funcs.c 4
/src/mhd2/src/mhd2/daemon_logger.c 1
/src/mhd2/src/mhd2/upgrade_proc.c 1
/src/mhd2/src/mhd2/stream_funcs.c 4
/src/mhd2/src/mhd2/mhd_sockets_funcs.c 2
/src/mhd2/src/mhd2/./conn_mark_ready.h 1
/src/mhd2/src/mhd2/stream_process_reply.c 1
/src/mhd2/src/mhd2/extr_events_funcs.c 1
/src/mhd2/src/mhd2/mempool_funcs.c 1
/src/mhd2/src/mhd2/daemon_add_conn.c 2

Fuzzer: fuzz_daemon

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 1347 93.6%
gold [1:9] 61 4.24%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 30 2.08%
All colors 1438 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
104 104 5 :

['daemon_deinit_large_buf', 'daemon_deinit_auth_digest', 'daemon_deinit_threading_and_conn', 'daemon_deinit_net', 'daemon_deinit_tls']

104 104 daemon_start_internal call site: 00685 /src/mhd2/src/mhd2/daemon_start.c:3417
59 59 3 :

['mhd_tls_is_backend_available', 'mhd_logger', 'mhd_tls_gnu_daemon_init3']

59 59 daemon_init_tls call site: 00620 /src/mhd2/src/mhd2/daemon_start.c:1768
16 16 3 :

['deinit_itc', 'deallocate_events', 'deinit_daemon_fds_monitoring']

16 16 init_individual_thread_data_events_conns call site: 00668 /src/mhd2/src/mhd2/daemon_start.c:2538
6 196 2 :

['create_bind_listen_stream_socket_inner', 'close']

6 196 create_bind_listen_stream_socket_inner call site: 00563 /src/mhd2/src/mhd2/daemon_start.c:1022
6 6 1 :

['clock_gettime']

10 10 mhd_mclock_init_once call site: 00010 /src/mhd2/src/mhd2/mhd_mono_clock.c:395
4 4 1 :

['ntohs']

93 758 create_bind_listen_stream_socket_inner call site: 00552 /src/mhd2/src/mhd2/daemon_start.c:405
4 4 1 :

['close']

4 4 daemon_init_net call site: 00603 /src/mhd2/src/mhd2/daemon_start.c:1575
3 3 1 :

['mhd_logger']

3 3 set_connections_total_limits call site: 00649 /src/mhd2/src/mhd2/daemon_start.c:2689
3 3 1 :

['mhd_logger']

3 3 init_daemon_fds_monitoring call site: 00666 /src/mhd2/src/mhd2/daemon_start.c:2314
2 2 1 :

['getsockopt']

54 529 create_bind_listen_stream_socket_inner call site: 00563 /src/mhd2/src/mhd2/daemon_start.c:770
2 2 1 :

['setsockopt']

29 409 create_bind_listen_stream_socket_inner call site: 00563 /src/mhd2/src/mhd2/daemon_start.c:923
2 2 1 :

['__errno_location']

8 198 create_bind_listen_stream_socket_inner call site: 00562 /src/mhd2/src/mhd2/daemon_start.c:703

Runtime coverage analysis

Covered functions
51
Functions that are reachable but not covered
484
Reachable functions
549
Percentage of reachable functions covered
11.84%
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/fuzz_daemon.cpp 2
/src/mhd2/src/mhd2/daemon_create.c 1
/src/mhd2/src/mhd2/mhd_lib_init.c 6
/src/mhd2/src/mhd2/mhd_panic.c 2
/src/mhd2/src/mhd2/mhd_mono_clock.c 2
/src/mhd2/src/mhd2/mhd_send.c 14
/src/mhd2/src/mhd2/tls_gnu_funcs.c 20
/src/mhd_helper.cpp 26
/src/mhd_helper.h 4
/src/mhd2/src/mhd2/action.c 5
/src/mhd2/src/mhd2/request_get_value.c 5
/src/mhd2/src/mhd2/response_from.c 4
/src/mhd2/src/mhd2/response_funcs.c 3
/src/mhd2/src/mhd2/response_destroy.c 4
/src/mhd2/src/mhd2/response_auth_digest.c 4
/src/mhd2/src/mhd2/response_add_header.c 4
/src/mhd2/src/mhd2/daemon_logger.c 1
/src/mhd2/src/mhd2/request_get_info.c 2
/src/mhd2/src/mhd2/auth_digest.c 45
/src/mhd2/src/mhd2/request_auth_get.c 1
/src/mhd2/src/mhd2/mhd_str.c 25
/src/mhd2/src/mhd2/stream_funcs.c 14
/src/mhd2/src/mhd2/mempool_funcs.c 9
/src/mhd2/src/mhd2/auth_basic.c 2
/src/mhd2/src/include/microhttpd2.h 2
/src/mhd2/src/mhd2/response_auth_basic.c 2
/src/mhd2/src/mhd2/daemon_funcs.c 9
/src/mhd2/src/mhd2/md5_int.c 4
/src/mhd2/src/mhd2/sha256_int.c 4
/src/mhd2/src/mhd2/sha512_256_int.c 4
/src/mhd2/src/mhd2/./mhd_bithelpers.h 4
/src/mhd2/src/mhd2/stream_process_request.c 31
/src/mhd2/src/include/microhttpd2_generated_daemon_options.h 3
/src/mhd2/src/mhd2/daemon_set_options.c 1
/src/mhd2/src/mhd2/daemon_start.c 44
/src/mhd2/src/mhd2/events_process.c 27
/src/mhd2/src/mhd2/upgrade_proc.c 3
/src/mhd2/src/mhd2/mhd_sockets_funcs.c 4
/src/mhd2/src/mhd2/./conn_mark_ready.h 5
/src/mhd2/src/mhd2/stream_process_reply.c 17
/src/mhd2/src/mhd2/extr_events_funcs.c 1
/src/mhd2/src/mhd2/daemon_add_conn.c 9
/src/mhd2/src/mhd2/mhd_tls_funcs.c 1
/src/mhd2/src/mhd2/mhd_threads.c 5
/src/mhd2/src/mhd2/conn_data_process.c 1
/src/mhd2/src/mhd2/stream_process_states.c 4
/src/mhd2/src/mhd2/mhd_socket_error_funcs.c 2
/src/mhd2/src/mhd2/respond_with_error.c 1
/src/mhd2/src/mhd2/request_funcs.c 2
/src/mhd2/src/mhd2/post_parser_funcs.c 28
/src/mhd2/src/mhd2/http_status_str.c 2
/src/mhd2/src/mhd2/mhd_read_file.c 1
/src/mhd2/src/mhd2/conn_tls_check.c 1
/src/mhd2/src/mhd2/conn_data_recv.c 1
/src/mhd2/src/mhd2/mhd_recv.c 3
/src/mhd2/src/mhd2/conn_data_send.c 2

Fuzzer: fuzz_crypto_int

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 27 100.%
All colors 27 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
0 0 None 0 4 mhd_SHA512_256_update call site: 00021 /src/mhd2/src/mhd2/sha512_256_int.c:468
0 0 None 0 4 mhd_SHA512_256_update call site: 00021 /src/mhd2/src/mhd2/sha512_256_int.c:472
0 0 None 0 0 voidfuzz_hash_int_multi (FuzzedDataProvider&,unsignedlong,void(*)(mhd_Md5CtxInt*),void(*)(mhd_Md5CtxInt*,unsignedlong,unsignedcharconst*),void(*)(mhd_Md5CtxInt*,unsignedchar*),unsignedlong) call site: 00000 /src/fuzz_crypto_int.cpp:133
0 0 None 0 0 voidfuzz_hash_int_multi (FuzzedDataProvider&,unsignedlong,void(*)(mhd_Sha256CtxInt*),void(*)(mhd_Sha256CtxInt*,unsignedlong,unsignedcharconst*),void(*)(mhd_Sha256CtxInt*,unsignedchar*),unsignedlong) call site: 00000 /src/fuzz_crypto_int.cpp:133
0 0 None 0 0 voidfuzz_hash_int_multi (FuzzedDataProvider&,unsignedlong,void(*)(mhd_Sha512_256CtxInt*),void(*)(mhd_Sha512_256CtxInt*,unsignedlong,unsignedcharconst*),void(*)(mhd_Sha512_256CtxInt*,unsignedchar*),unsignedlong) call site: 00000 /src/fuzz_crypto_int.cpp:133
0 0 None 0 0 mhd_MD5_finish call site: 00009 /src/mhd2/src/mhd2/md5_int.c:504
0 0 None 0 0 mhd_PUT_64BIT_LE_UNALIGN call site: 00008 /src/mhd2/src/mhd2/./mhd_bithelpers.h:140
0 0 None 0 0 mhd_PUT_64BIT_BE_UNALIGN call site: 00017 /src/mhd2/src/mhd2/./mhd_bithelpers.h:258
0 0 None 0 0 mhd_SHA256_finish call site: 00018 /src/mhd2/src/mhd2/sha256_int.c:505
0 0 None 0 0 mhd_SHA512_256_finish call site: 00026 /src/mhd2/src/mhd2/sha512_256_int.c:589

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
0
Reachable functions
21
Percentage of reachable functions covered
100.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
/src/fuzz_crypto_int.cpp 4
/src/mhd2/src/mhd2/md5_int.c 4
/src/mhd2/src/mhd2/./mhd_bithelpers.h 2
/src/mhd2/src/mhd2/sha256_int.c 4
/src/mhd2/src/mhd2/sha512_256_int.c 4

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.

/src/fuzz_crypto_ext.cpp

Dictionary

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


/src/fuzz_libinfo.cpp

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=['mhd_lib_init_global_if_needed', 'mhd_mclock_init_once']

/src/fuzz_str.cpp

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=['mhd_str_pct_decode_strict_n', 'mhd_str_pct_decode_lenient_n', 'fuzz_tokens(FuzzedDataProvider&)', 'fuzz_tokens(FuzzedDataProvider&)', 'fuzz_tokens(FuzzedDataProvider&)', 'fuzz_tokens(FuzzedDataProvider&)']

/src/fuzz_connection.cpp

Dictionary

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


/src/fuzz_response.cpp

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=['response_add_header_int', 'mhd_response_deinit_content_data', 'MHD_response_set_options', 'add_headers(FuzzedDataProvider&, MHD_Response*)', 'response_make_reusable', 'response_add_auth_digest_challenge_int', 'LLVMFuzzerTestOneInput']

/src/fuzz_mhd2.cpp

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=['MHD_daemon_destroy', 'fuzz_digest_auth_calc(FuzzedDataProvider&)', 'fuzz_digest_auth_calc(FuzzedDataProvider&)', 'response_add_header_int', 'fuzz_digest_auth_calc(FuzzedDataProvider&)', 'mhd_response_deinit_content_data', 'mhd_mclock_init_once', 'daemon_configuration(FuzzedDataProvider&, MHD_Daemon*)', 'MHD_response_set_options', 'fuzz_response_config(FuzzedDataProvider&, MHD_Response*)']

/src/fuzz_daemon.cpp

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=['daemon_start_internal', 'MHD_daemon_create', 'start_daemon_once()', 'start_daemon_once()', 'create_bind_listen_stream_socket_inner', 'init_individual_conns', 'create_bind_listen_stream_socket']

/src/fuzz_crypto_int.cpp

Dictionary

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


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/mhd2/src/mhd2/request_auth_get.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/conn_data_process.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/lib_get_info.c ['fuzz_libinfo'] ['fuzz_libinfo']
/src/mhd2/src/mhd2/mhd_send.c ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon']
/src/fuzz_crypto_ext.cpp ['fuzz_crypto_ext'] ['fuzz_crypto_ext']
/src/mhd2/src/mhd2/mhd_sockets_funcs.c ['fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/extr_events_funcs.c ['fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/response_from.c ['fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_response', 'fuzz_mhd2']
/src/mhd_helper.h ['fuzz_daemon'] []
/src/mhd2/src/mhd2/auth_basic.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/mhd_panic.c ['fuzz_libinfo', 'fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/mhd_threads.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/md5_int.c ['fuzz_mhd2', 'fuzz_daemon', 'fuzz_crypto_int'] ['fuzz_crypto_int']
/src/mhd_helper.cpp ['fuzz_response', 'fuzz_daemon'] ['fuzz_response', 'fuzz_daemon']
/src/mhd2/src/mhd2/md5_ext.c ['fuzz_crypto_ext'] ['fuzz_crypto_ext']
/src/mhd2/src/mhd2/request_get_info.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/response_auth_basic.c ['fuzz_response', 'fuzz_daemon'] ['fuzz_response']
/src/mhd2/src/mhd2/action.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/mhd_socket_error_funcs.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/mhd_lib_init.c ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/mempool_funcs.c ['fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_connection']
/src/mhd2/src/mhd2/events_process.c ['fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/upgrade_proc.c ['fuzz_mhd2', 'fuzz_daemon'] []
/src/fuzz_response.cpp ['fuzz_response'] ['fuzz_response']
/src/mhd2/src/mhd2/sha256_ext.c ['fuzz_crypto_ext'] ['fuzz_crypto_ext']
/src/mhd2/src/mhd2/mhd_str.c ['fuzz_str', 'fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_str', 'fuzz_response']
/src/mhd2/src/mhd2/sha512_256_int.c ['fuzz_mhd2', 'fuzz_daemon', 'fuzz_crypto_int'] ['fuzz_crypto_int']
/src/mhd2/src/mhd2/daemon_logger_default.c [] []
/src/mhd2/src/mhd2/stream_process_reply.c ['fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/daemon_add_conn.c ['fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/include/microhttpd2.h ['fuzz_daemon'] []
/src/mhd2/src/mhd2/stream_process_states.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/stream_funcs.c ['fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/tls_gnu_funcs.c ['fuzz_libinfo', 'fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/daemon_funcs.c ['fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/http_status_str.c ['fuzz_response', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/mhd_recv.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/upgrade_prep.c [] []
/src/mhd2/src/mhd2/response_auth_digest.c ['fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_response', 'fuzz_mhd2']
/src/mhd2/src/mhd2/response_destroy.c ['fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_response', 'fuzz_mhd2']
/usr/local/bin/../include/c++/v1/string [] []
/src/mhd2/src/mhd2/request_get_value.c ['fuzz_connection', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/stream_process_request.c ['fuzz_connection', 'fuzz_daemon'] []
/src/mhd2/src/include/microhttpd2_generated_daemon_options.h ['fuzz_mhd2', 'fuzz_daemon'] ['fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/mhd_read_file.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/daemon_set_options.c ['fuzz_mhd2', 'fuzz_daemon'] ['fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/conn_tls_check.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/auth_digest.c ['fuzz_mhd2', 'fuzz_daemon'] ['fuzz_mhd2']
/src/mhd2/src/mhd2/mhd_mono_clock.c ['fuzz_libinfo', 'fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_libinfo', 'fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/daemon_get_info.c ['fuzz_mhd2'] ['fuzz_mhd2']
/src/fuzz_daemon.cpp ['fuzz_daemon'] ['fuzz_daemon']
/src/mhd2/src/mhd2/./mhd_bithelpers.h ['fuzz_mhd2', 'fuzz_daemon', 'fuzz_crypto_int'] []
/src/mhd2/src/mhd2/mhd_tls_funcs.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/conn_data_send.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/respond_with_error.c ['fuzz_connection', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/daemon_create.c ['fuzz_mhd2', 'fuzz_daemon'] ['fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/conn_data_recv.c ['fuzz_daemon'] []
/src/mhd2/src/mhd2/./conn_mark_ready.h ['fuzz_mhd2', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/response_set_options.c ['fuzz_response', 'fuzz_mhd2'] ['fuzz_response', 'fuzz_mhd2']
/src/fuzz_connection.cpp ['fuzz_connection'] ['fuzz_connection']
/src/mhd2/src/mhd2/daemon_start.c ['fuzz_mhd2', 'fuzz_daemon'] ['fuzz_mhd2', 'fuzz_daemon']
/src/mhd2/src/mhd2/post_parser_funcs.c ['fuzz_connection', 'fuzz_daemon'] []
/src/mhd2/src/mhd2/sha256_int.c ['fuzz_mhd2', 'fuzz_daemon', 'fuzz_crypto_int'] ['fuzz_crypto_int']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/fuzz_str.cpp ['fuzz_str'] ['fuzz_str']
/src/mhd2/src/mhd2/daemon_logger.c ['fuzz_connection', 'fuzz_mhd2', 'fuzz_daemon'] []
/src/fuzz_mhd2.cpp ['fuzz_mhd2'] ['fuzz_mhd2']
/src/mhd2/src/mhd2/./mhd_lib_init_impl.h [] []
/src/mhd2/src/mhd2/request_funcs.c ['fuzz_connection', 'fuzz_daemon'] []
/src/fuzz_crypto_int.cpp ['fuzz_crypto_int'] ['fuzz_crypto_int']
/src/mhd2/src/mhd2/response_funcs.c ['fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_response', 'fuzz_mhd2']
/src/mhd2/src/mhd2/response_add_header.c ['fuzz_connection', 'fuzz_response', 'fuzz_mhd2', 'fuzz_daemon'] ['fuzz_response', 'fuzz_mhd2']
/src/mhd2/src/include/microhttpd2_generated_response_options.h ['fuzz_response', 'fuzz_mhd2'] ['fuzz_response', 'fuzz_mhd2']
/src/fuzz_libinfo.cpp ['fuzz_libinfo'] ['fuzz_libinfo']

Directories in report

Directory
/src/mhd2/src/mhd2/
/src/mhd2/src/mhd2/./
/src/
/src/mhd2/src/include/
/usr/local/bin/../include/c++/v1/