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 86 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 86 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
85 0 EP call site: 00000 stun_check_message_integrity_str

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
40
Reachable functions
40
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/coturn/fuzzing/FuzzStun.c 1
client/ns_turn_msg.c 18

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 2 8.69%
greenyellow [30:49] 5 21.7%
lawngreen 50+ 16 69.5%
All colors 23 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 stun_is_command_message call site: 00001 /src/coturn/src/apps/common/stun_buffer.c:81
0 0 None 0 0 stun_get_method_str call site: 00020 /src/coturn/src/client/ns_turn_msg.c:374
0 0 None 0 0 stun_get_msg_type_str call site: 00010 /src/coturn/src/client/ns_turn_msg.c:384
0 0 None 0 0 stun_is_success_response_str call site: 00015 /src/coturn/src/client/ns_turn_msg.c:471
0 0 None 0 0 stun_is_response_str call site: 00008 /src/coturn/src/client/ns_turn_msg.c:562

Runtime coverage analysis

Covered functions
12
Functions that are reachable but not covered
2
Reachable functions
14
Percentage of reachable functions covered
85.71%
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/coturn/fuzzing/FuzzStunClient.c 1
apps/common/stun_buffer.c 4
client/ns_turn_msg.c 7

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
stun_set_binding_response /src/coturn/src/apps/common/stun_buffer.c 5 ['N/A', 'N/A', 'N/A', 'int', 'N/A'] 8 0 36 3 2 39 0 159 142
encode_oauth_token /src/coturn/src/client/ns_turn_msg.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 94 20 5 22 0 75 62
stun_get_message_len_str /src/coturn/src/client/ns_turn_msg.c 4 ['N/A', 'size_t', 'int', 'N/A'] 4 0 284 51 20 9 0 60 54
convert_oauth_key_data /src/coturn/src/client/ns_turn_msg.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 1 0 352 47 17 10 0 57 51
make_ioa_addr_from_full_string /src/coturn/src/client/ns_turn_ioaddr.c 3 ['N/A', 'int', 'N/A'] 2 0 78 12 5 13 0 57 47
stun_attr_get_first_addr /src/coturn/src/apps/common/stun_buffer.c 4 ['N/A', 'short', 'N/A', 'N/A'] 5 0 33 3 2 23 0 107 47

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

Functions statically reachable by fuzzers
45.0%
84 / 187
Cyclomatic complexity statically reachable by fuzzers
52.0%
483 / 925

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