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

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 2 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 2 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 0 EP call site: 00000 recv_validate_datagram

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
2
Reachable functions
2
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/tinyusb/test/fuzz/device/net_ncm/fuzz.c 1
/src/tinyusb/src/class/net/ncm_device.c 1

Fuzzer: /src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc

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 67 47.5%
gold [1:9] 5 3.54%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 69 48.9%
All colors 141 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 62 tud_descriptor_string_cb call site: 00062 process_get_status
10 84 tud_task_ext call site: 00084 cdc_task
9 36 process_std_device_request call site: 00036 data_stage_xact
5 30 tud_task_ext call site: 00030 process_setup_received
4 78 usbd_edpt_clear_stall call site: 00078 usbd_edpt_stall
3 20 dcd_int_handler call site: 00020 tud_task_ext
3 112 stream_xfer call site: 00112 stream_release
2 11 dcd_int_handler call site: 00011 tu_fifo_write_n_access_mode
2 15 tu_fifo_write_n_access_mode call site: 00015 tud_event_hook_cb
2 47 process_std_device_request call site: 00047 tu_bind_driver_to_ep_itf
2 55 process_get_descriptor call site: 00055 tud_descriptor_bos_cb
2 59 process_get_descriptor call site: 00059 tud_descriptor_string_cb

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
9
Reachable functions
88
Percentage of reachable functions covered
89.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.
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
/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc 2
/src/tinyusb/test/fuzz/fuzz.cc 1
/src/tinyusb/src/tusb.c 12
/src/tinyusb/src/device/usbd.c 33
/src/tinyusb/src/common/tusb_fifo.c 10
/src/tinyusb/test/fuzz/dcd_fuzz.cc 9
/src/tinyusb/test/fuzz/usbd_fuzz.cc 4
/src/tinyusb/test/fuzz/device/cdc/src/usb_descriptors.cc 3
/src/tinyusb/src/class/cdc/cdc_device.c 12

Fuzzer: /src/tinyusb/test/fuzz/device/msc/src/fuzz.cc

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 57 60.6%
gold [1:9] 5 5.31%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 32 34.0%
All colors 94 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 62 tud_descriptor_string_cb call site: 00062 process_get_status
9 36 process_std_device_request call site: 00036 data_stage_xact
9 84 tud_task_ext call site: 00084 usbd_control_xfer_cb
5 30 tud_task_ext call site: 00030 process_setup_received
4 78 usbd_edpt_clear_stall call site: 00078 usbd_edpt_stall
2 11 dcd_int_handler call site: 00011 tu_fifo_write_n_access_mode
2 15 tu_fifo_write_n_access_mode call site: 00015 tud_event_hook_cb
2 21 LLVMFuzzerTestOneInput call site: 00021 tu_fifo_read_n_access_mode
2 47 process_std_device_request call site: 00047 tu_bind_driver_to_ep_itf
2 55 process_get_descriptor call site: 00055 tud_descriptor_bos_cb
2 59 process_get_descriptor call site: 00059 tud_descriptor_string_cb
1 24 tu_fifo_read_n_access_mode call site: 00024 correct_read_index

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
5
Reachable functions
58
Percentage of reachable functions covered
91.38%
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
/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc 1
/src/tinyusb/test/fuzz/fuzz.cc 1
/src/tinyusb/src/tusb.c 2
/src/tinyusb/src/device/usbd.c 28
/src/tinyusb/src/common/tusb_fifo.c 8
/src/tinyusb/test/fuzz/dcd_fuzz.cc 9
/src/tinyusb/test/fuzz/usbd_fuzz.cc 4
/src/tinyusb/test/fuzz/device/msc/src/usb_descriptors.cc 3

Fuzzer: /src/tinyusb/test/fuzz/device/net/src/fuzz.cc

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 65 62.5%
gold [1:9] 5 4.80%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 34 32.6%
All colors 104 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 62 tud_descriptor_string_cb call site: 00062 process_get_status
10 84 tud_task_ext call site: 00084 net_task
9 36 process_std_device_request call site: 00036 data_stage_xact
5 30 tud_task_ext call site: 00030 process_setup_received
4 78 usbd_edpt_clear_stall call site: 00078 usbd_edpt_stall
4 99 net_task call site: 00099 do_in_xfer
3 20 dcd_int_handler call site: 00020 tud_task_ext
2 11 dcd_int_handler call site: 00011 tu_fifo_write_n_access_mode
2 15 tu_fifo_write_n_access_mode call site: 00015 tud_event_hook_cb
2 47 process_std_device_request call site: 00047 tu_bind_driver_to_ep_itf
2 55 process_get_descriptor call site: 00055 tud_descriptor_bos_cb
2 59 process_get_descriptor call site: 00059 tud_descriptor_string_cb

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
7
Reachable functions
64
Percentage of reachable functions covered
89.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.
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
/src/tinyusb/test/fuzz/device/net/src/fuzz.cc 2
/src/tinyusb/test/fuzz/fuzz.cc 1
/src/tinyusb/src/tusb.c 2
/src/tinyusb/src/device/usbd.c 28
/src/tinyusb/src/common/tusb_fifo.c 8
/src/tinyusb/test/fuzz/dcd_fuzz.cc 9
/src/tinyusb/test/fuzz/usbd_fuzz.cc 4
/src/tinyusb/test/fuzz/device/net/src/usb_descriptors.cc 3
/src/tinyusb/src/class/net/ecm_rndis_device.c 4
/src/tinyusb/test/fuzz/net_fuzz.cc 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
netif_input /src/tinyusb/lib/lwip/src/core/netif.c 2 ['N/A', 'N/A'] 11 0 28 6 3 133 0 1138 1138
httpd_init_pcb /src/tinyusb/lib/lwip/src/apps/http/httpd.c 1 ['N/A'] 22 0 25 6 3 125 1 781 258
mscd_xfer_cb /src/tinyusb/src/class/msc/msc_device.c 4 ['char', 'char', 'int', 'int'] 6 0 404 97 36 36 0 242 170
dhserv_init /src/tinyusb/lib/networking/dhserver.c 1 ['N/A'] 9 0 40 8 4 49 0 272 95
rndis_class_set_handler /src/tinyusb/lib/networking/rndis_reports.c 2 ['N/A', 'int'] 6 0 80 10 11 12 0 89 72
netd_xfer_cb /src/tinyusb/src/class/net/ncm_device.c 4 ['char', 'char', 'int', 'int'] 4 0 91 18 7 18 0 95 67
netif_add_noaddr /src/tinyusb/lib/lwip/src/core/netif.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 18 0 12 3 2 68 0 363 60
cdcd_xfer_cb /src/tinyusb/src/class/cdc/cdc_device.c 4 ['char', 'char', 'int', 'int'] 4 0 282 64 25 25 0 136 48
etharp_output /src/tinyusb/lib/lwip/src/core/ipv4/etharp.c 3 ['N/A', 'N/A', 'N/A'] 9 0 161 29 12 32 0 208 41

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

Functions statically reachable by fuzzers
65.0%
351 / 537
Cyclomatic complexity statically reachable by fuzzers
75.0%
2417 / 3202

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

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/tinyusb/src/class/net/ncm_device.c ['net_ncm'] []
/src/tinyusb/test/fuzz/device/cdc/src/usb_descriptors.cc ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/tcp_out.c [] []
/src/tinyusb/lib/lwip/src/core/netif.c [] []
/src/tinyusb/lib/lwip/src/core/mem.c [] []
/src/tinyusb/lib/lwip/src/core/memp.c [] []
/src/tinyusb/lib/lwip/src/apps/http/fs.c [] []
/src/tinyusb/lib/networking/rndis_reports.c [] []
/src/tinyusb/lib/lwip/src/core/tcp.c [] []
/src/tinyusb/lib/lwip/src/core/udp.c [] []
/src/tinyusb/test/fuzz/msc_fuzz.cc [] []
/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/inet_chksum.c [] []
/src/tinyusb/lib/lwip/src/core/ipv4/ip4_addr.c [] []
/src/tinyusb/src/common/tusb_fifo.c ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/src/device/usbd.c ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/test/fuzz/fuzz.cc ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/pbuf.c [] []
/src/tinyusb/lib/lwip/src/core/timeouts.c [] []
/src/tinyusb/lib/lwip/src/core/ipv4/etharp.c [] []
/src/tinyusb/lib/lwip/src/apps/http/httpd.c [] []
/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc ['/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc']
/src/tinyusb/src/tusb.c ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/test/fuzz/device/net_ncm/fuzz.c ['net_ncm'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/tinyusb/lib/lwip/src/core/ipv4/icmp.c [] []
/src/tinyusb/test/fuzz/dcd_fuzz.cc ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/tcp_in.c [] []
/src/tinyusb/lib/lwip/src/core/def.c [] []
/src/tinyusb/lib/networking/dhserver.c [] []
/src/tinyusb/test/fuzz/device/net/src/fuzz.cc ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/ipv4/ip4.c [] []
/src/tinyusb/test/fuzz/net_fuzz.cc ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] []
/usr/local/bin/../include/c++/v1/optional [] []
/src/tinyusb/lib/lwip/src/core/ipv4/ip4_frag.c [] []
/src/tinyusb/src/class/net/ecm_rndis_device.c ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/init.c [] []
/src/tinyusb/lib/networking/dnserver.c [] []
/src/tinyusb/test/fuzz/device/net/src/usb_descriptors.cc ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/netif/slipif.c [] []
/src/tinyusb/test/fuzz/device/msc/src/usb_descriptors.cc ['/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/netif/ethernet.c [] []
/src/tinyusb/src/class/msc/msc_device.c [] []
/src/tinyusb/src/class/cdc/cdc_device.c ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc']
/src/tinyusb/lib/lwip/src/core/stats.c [] []
/src/tinyusb/test/fuzz/usbd_fuzz.cc ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc'] ['/src/tinyusb/test/fuzz/device/cdc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/msc/src/fuzz.cc', '/src/tinyusb/test/fuzz/device/net/src/fuzz.cc']

Directories in report

Directory
/src/tinyusb/src/device/
/src/tinyusb/src/class/net/
/src/tinyusb/test/fuzz/device/msc/src/
/src/tinyusb/lib/lwip/src/core/ipv4/
/src/tinyusb/src/class/cdc/
/src/tinyusb/lib/lwip/src/netif/
/src/tinyusb/test/fuzz/device/net_ncm/
/src/tinyusb/lib/lwip/src/core/
/src/tinyusb/test/fuzz/
/src/tinyusb/src/class/msc/
/src/tinyusb/lib/lwip/src/apps/http/
/src/tinyusb/lib/networking/
/src/tinyusb/src/
/src/tinyusb/test/fuzz/device/net/src/
/src/tinyusb/test/fuzz/device/cdc/src/
/usr/local/bin/../include/c++/v1/
/src/tinyusb/src/common/