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: FuzzStun

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 147 27.7%
gold [1:9] 2 0.37%
yellow [10:29] 9 1.69%
greenyellow [30:49] 14 2.64%
lawngreen 50+ 358 67.5%
All colors 530 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
115 37 stun_produce_integrity_key_str call site: 00037 turn_out_of_memory
6 481 make_ioa_addr call site: 00481 getaddrinfo
4 409 stun_is_binding_response_str call site: 00409 stun_is_response_str
3 244 stun_attr_get_addr_str call site: 00244 addr_get_port
3 348 map_addr_from_private_to_public call site: 00348 addr_get_port
2 404 stun_is_binding_request_str call site: 00404 stun_is_request_str
2 467 turn_strdup_impl call site: 00467 turn_out_of_memory
1 4 stun_is_command_message_str call site: 00004 ntohs
1 6 stun_is_command_message_str call site: 00006 ntohl
1 18 stun_attr_get_first_by_type_str call site: 00018 stun_attr_get_first_str
1 175 stun_produce_integrity_key_str call site: 00175 EVP_default_properties_enable_fips
1 187 stun_set_command_message_len_str call site: 00187 ntohs

Runtime coverage analysis

Covered functions
107
Functions that are reachable but not covered
72
Reachable functions
175
Percentage of reachable functions covered
58.86%
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
fuzzing/FuzzStun.c 12
src/client/ns_turn_msg.c 72
src/ns_turn_defs.h 6
src/apps/common/ns_turn_utils.c 16
src/ns_turn_atomic.h 1
src/client/ns_turn_ioaddr.c 10
src/client/ns_turn_msg_addr.c 2
src/client/ns_turn_ioaddr.h 1

Fuzzer: FuzzStunClient

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 12 2.37%
gold [1:9] 0 0.0%
yellow [10:29] 4 0.79%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 490 96.8%
All colors 506 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
2 140 stun_init_command_str call site: 00140 stun_tid_generate_in_message_str
1 4 stun_is_command_message_str call site: 00004 ntohs
1 6 stun_is_command_message_str call site: 00006 ntohl
1 43 stun_attr_get_first_by_type_str call site: 00043 stun_attr_get_first_str
1 106 fuzz_addr call site: 00106 fuzz_u32
1 108 fuzz_u32 call site: 00108 htonl
1 137 stun_init_command_str call site: 00137 ntohs
1 148 stun_tid_message_cpy call site: 00148 stun_init_error_response_common_str
1 201 addr_set_port call site: 00201 ntohs
1 289 old_stun_init_command_str call site: 00289 stun_tid_generate_in_message_str
1 297 old_stun_init_error_response_str call site: 00297 stun_init_error_response_common_str

Runtime coverage analysis

Covered functions
142
Functions that are reachable but not covered
10
Reachable functions
146
Percentage of reachable functions covered
93.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
fuzzing/FuzzStunClient.c 18
src/apps/common/stun_buffer.c 39
src/client/ns_turn_msg.c 64
src/ns_turn_defs.h 5
src/client/ns_turn_msg_addr.c 2
src/client/ns_turn_ioaddr.c 7
src/client/ns_turn_ioaddr.h 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
ioa_addr_in_range /src/coturn/src/client/ns_turn_ioaddr.c 2 ['N/A', 'N/A'] 2 0 136 27 11 5 0 78 74
encode_oauth_token /src/coturn/src/client/ns_turn_msg.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 89 20 5 24 0 78 60
convert_oauth_key_data /src/coturn/src/client/ns_turn_msg.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 1 0 345 47 17 10 0 57 47
get_canonic_origin /src/coturn/src/apps/common/ns_turn_utils.c 3 ['N/A', 'N/A', 'int'] 2 0 272 43 17 11 0 56 46
turn_check_stateless_nonce /src/coturn/src/client/ns_turn_msg.c 7 ['N/A', 'size_t', 'N/A', 'int', 'int', 'N/A', 'N/A'] 4 0 280 52 20 14 0 68 36
decode_oauth_token /src/coturn/src/client/ns_turn_msg.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 82 18 5 20 0 72 35

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

Functions statically reachable by fuzzers
81.0%
216 / 266
Cyclomatic complexity statically reachable by fuzzers
83.0%
1227 / 1471

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/coturn/fuzzing/FuzzOpenSSLInit.c [] []
/src/coturn/src/client/ns_turn_msg.c ['FuzzStun', 'FuzzStunClient'] ['FuzzStun', 'FuzzStunClient']
/src/coturn/src/client/ns_turn_ioaddr.c ['FuzzStun', 'FuzzStunClient'] ['FuzzStun', 'FuzzStunClient']
/src/coturn/src/client/ns_turn_ioaddr.h ['FuzzStun', 'FuzzStunClient'] ['FuzzStun', 'FuzzStunClient']
/src/coturn/fuzzing/FuzzStun.c ['FuzzStun'] ['FuzzStun']
/src/coturn/src/ns_turn_defs.h ['FuzzStun', 'FuzzStunClient'] ['FuzzStun', 'FuzzStunClient']
/src/coturn/src/ns_turn_atomic.h ['FuzzStun'] []
/src/coturn/src/apps/common/stun_buffer.c ['FuzzStunClient'] ['FuzzStunClient']
/src/coturn/fuzzing/FuzzStunClient.c ['FuzzStunClient'] ['FuzzStunClient']
/src/coturn/src/apps/common/ns_turn_utils.c ['FuzzStun'] ['FuzzStun']
/src/coturn/src/client/ns_turn_msg_addr.c ['FuzzStun', 'FuzzStunClient'] ['FuzzStun', 'FuzzStunClient']

Directories in report

Directory
/src/coturn/src/apps/common/
/src/coturn/fuzzing/
/src/coturn/src/
/src/coturn/src/client/