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

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/inspector/light/source_files/src/libusb_fuzzer.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/inspector/source-code/src/libusb_fuzzer.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
op_init /src/libusb/libusb/os/linux_usbfs.c 1 ['N/A'] 13 0 225 45 17 121 0 475 471
libusb_get_bos_descriptor /src/libusb/libusb/descriptor.c 2 ['N/A', 'N/A'] 13 0 172 25 10 104 0 459 348
op_handle_events /src/libusb/libusb/os/linux_usbfs.c 4 ['N/A', 'N/A', 'int', 'int'] 10 0 322 55 19 62 0 287 135
libusb_get_max_alt_packet_size /src/libusb/libusb/core.c 4 ['N/A', 'int', 'int', 'char'] 6 0 75 9 4 35 0 179 121
libusb_init /src/libusb/libusb/core.c 1 ['N/A'] 9 0 16 3 2 71 0 247 108
op_submit_transfer /src/libusb/libusb/os/linux_usbfs.c 1 ['N/A'] 6 0 89 14 2 26 0 138 63
libusb_hotplug_register_callback /src/libusb/libusb/hotplug.c 9 ['N/A', 'int', 'int', 'int', 'int', 'int', 'N/A', 'N/A', 'N/A'] 10 0 377 58 23 40 0 166 56
op_reset_device /src/libusb/libusb/os/linux_usbfs.c 1 ['N/A'] 6 0 194 30 11 29 0 126 37

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

Functions statically reachable by fuzzers
64.0%
185 / 288
Cyclomatic complexity statically reachable by fuzzers
71.0%
1199 / 1683

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/libusb/libusb/./os/events_posix.h [] []
/src/libusb/libusb/./os/threads_posix.h ['libusb_fuzzer', '/src/inspector/light/source_files/src/libusb_fuzzer.cc', '/src/inspector/source-code/src/libusb_fuzzer.cc'] []
/src/libusb/libusb/io.c ['libusb_fuzzer', '/src/inspector/light/source_files/src/libusb_fuzzer.cc', '/src/inspector/source-code/src/libusb_fuzzer.cc'] []
/src/libusb/libusb/os/linux_usbfs.h [] []
/src/libusb/libusb/descriptor.c [] []
/src/libusb_fuzzer.cc ['libusb_fuzzer'] []
/src/libusb/libusb/core.c [] []
/src/libusb/libusb/os/linux_udev.c [] []
/src/libusb/libusb/./libusb.h [] []
/src/libusb/libusb/sync.c [] []
/src/inspector/source-code/src/libusb_fuzzer.cc ['/src/inspector/source-code/src/libusb_fuzzer.cc'] []
/src/inspector/light/source_files/src/libusb_fuzzer.cc ['/src/inspector/light/source_files/src/libusb_fuzzer.cc'] []
/src/libusb/libusb/hotplug.c [] []
/src/libusb/./libusb/libusb.h ['libusb_fuzzer', '/src/inspector/light/source_files/src/libusb_fuzzer.cc', '/src/inspector/source-code/src/libusb_fuzzer.cc'] []
/src/libusb/libusb/./libusbi.h [] []
/src/libusb/libusb/os/threads_posix.c [] []
/src/libusb/libusb/os/events_posix.c [] []
/src/libusb/libusb/os/linux_usbfs.c [] []
/src/libusb/./libusb/os/threads_posix.h ['libusb_fuzzer', '/src/inspector/light/source_files/src/libusb_fuzzer.cc', '/src/inspector/source-code/src/libusb_fuzzer.cc'] []

Directories in report

Directory
/src/libusb/./libusb/
/src/inspector/source-code/src/
/src/libusb/libusb/./
/src/inspector/light/source_files/src/
/src/
/src/libusb/libusb/os/
/src/libusb/libusb/./os/
/src/libusb/libusb/
/src/libusb/./libusb/os/