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: /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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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 30 6 3 133 0 1139 1139
httpd_init_pcb /src/tinyusb/lib/lwip/src/apps/http/httpd.c 1 ['N/A'] 22 0 29 6 3 125 1 781 258
mscd_xfer_cb /src/tinyusb/src/class/msc/msc_device.c 4 ['char', 'char', 'int', 'int'] 5 0 458 105 40 39 0 232 175
netd_control_xfer_cb /src/tinyusb/src/class/net/ecm_rndis_device.c 3 ['char', 'char', 'N/A'] 7 0 278 63 24 21 0 161 119
dhserv_init /src/tinyusb/lib/networking/dhserver.c 1 ['N/A'] 9 0 42 8 4 49 0 272 95
netif_add_noaddr /src/tinyusb/lib/lwip/src/core/netif.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 18 0 16 3 2 68 0 363 60
etharp_output /src/tinyusb/lib/lwip/src/core/ipv4/etharp.c 3 ['N/A', 'N/A', 'N/A'] 9 0 169 29 12 32 0 209 42

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

Functions statically reachable by fuzzers
65.0%
329 / 506
Cyclomatic complexity statically reachable by fuzzers
74.0%
2311 / 3109

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

Directories in report

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