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 141 26.9%
gold [1:9] 1 0.19%
yellow [10:29] 15 2.86%
greenyellow [30:49] 6 1.14%
lawngreen 50+ 361 68.8%
All colors 524 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 35 stun_produce_integrity_key_str call site: 00035 turn_out_of_memory
6 475 make_ioa_addr call site: 00475 getaddrinfo
4 404 stun_is_binding_response_str call site: 00404 stun_is_response_str
3 240 stun_attr_get_addr_str call site: 00240 addr_get_port
3 343 map_addr_from_private_to_public call site: 00343 addr_get_port
2 399 stun_is_binding_request_str call site: 00399 stun_is_request_str
2 461 turn_strdup_impl call site: 00461 turn_out_of_memory
1 16 stun_attr_get_first_by_type_str call site: 00016 stun_attr_get_first_str
1 173 stun_produce_integrity_key_str call site: 00173 EVP_default_properties_enable_fips
1 420 stun_init_command_str call site: 00420 stun_tid_generate_in_message_str
1 429 stun_init_error_response_common_str call site: 00429 get_default_reason
1 482 harness_full_addr_parser call site: 00482 make_ioa_addr_from_full_string

Runtime coverage analysis

Covered functions
102
Functions that are reachable but not covered
72
Reachable functions
170
Percentage of reachable functions covered
57.65%
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/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
src/ns_turn_defs.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 5 1.00%
gold [1:9] 0 0.0%
yellow [10:29] 4 0.80%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 490 98.1%
All colors 499 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
1 41 stun_attr_get_first_by_type_str call site: 00041 stun_attr_get_first_str
1 104 fuzz_addr call site: 00104 fuzz_u32
1 106 fuzz_u32 call site: 00106 htonl
1 136 stun_init_command_str call site: 00136 stun_tid_generate_in_message_str
1 282 old_stun_init_command_str call site: 00282 stun_tid_generate_in_message_str

Runtime coverage analysis

Covered functions
138
Functions that are reachable but not covered
10
Reachable functions
142
Percentage of reachable functions covered
92.96%
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/client/ns_turn_msg_addr.c 2
src/client/ns_turn_ioaddr.c 7
src/client/ns_turn_ioaddr.h 1
src/ns_turn_defs.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 4 0 78 76
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 21 0 72 58
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
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 17 0 66 35

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

Functions statically reachable by fuzzers
81.0%
207 / 254
Cyclomatic complexity statically reachable by fuzzers
84.0%
1182 / 1409

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

Directories in report

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