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

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 179 97.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 4 2.18%
All colors 183 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
87 27 psutil._psbsd.Process.name call site: 00027 psutil.process_iter.add
56 126 psutil._common.open_binary call site: 00126 psutil.Process.create_time
26 0 EP call site: 00000 psutil.process_iter
10 115 psutil._psbsd.boot_time call site: 00115 psutil._pslinux.Process.create_time

Runtime coverage analysis

Covered functions
69
Functions that are reachable but not covered
113
Reachable functions
118
Percentage of reachable functions covered
4.24%
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
/ 1
...fuzz_native 8
psutil 62
psutil._pssunos 8
psutil._psbsd 14
psutil._psaix 6
psutil._psosx 12
psutil._common 10
psutil._pslinux 14
psutil._pswindows 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
psutil._psbsd.wrap_exceptions.wrapper psutil._psbsd 3 ['N/A', 'N/A', 'N/A'] 10 0 0 2 4 200 0 627 401
psutil._pssunos.wrap_exceptions.wrapper psutil._pssunos 3 ['N/A', 'N/A', 'N/A'] 10 0 0 3 4 188 0 589 150
psutil.Process.__str__ psutil 1 ['N/A'] 5 0 0 4 5 99 0 313 115
psutil.Process.cpu_percent psutil 2 ['N/A', 'N/A'] 4 0 2 3 4 79 0 248 115
psutil.cpu_times_percent psutil 2 ['N/A', 'N/A'] 4 0 4 4 5 49 0 153 105
psutil._pslinux.NetConnections.retrieve psutil._pslinux 3 ['N/A', 'N/A', 'N/A'] 5 0 1 4 5 47 6 153 80
psutil.disk_io_counters psutil 2 ['N/A', 'N/A'] 4 0 1 3 4 38 0 121 64
psutil.Process.memory_percent psutil 2 ['N/A', 'N/A'] 4 0 1 2 4 37 0 119 55
psutil._pslinux.disk_partitions psutil._pslinux 1 ['N/A'] 3 0 4 8 6 34 1 113 49
psutil.Process.cpu_affinity psutil 2 ['N/A', 'N/A'] 8 0 3 3 4 115 0 361 42

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

Functions statically reachable by fuzzers
47.0%
238 / 508
Cyclomatic complexity statically reachable by fuzzers
47.0%
794 / 1686

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