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 100 54.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 83 45.3%
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
18 116 psutil._pslinux.Process._parse_stat_file call site: 00116 psutil._psbsd.Process.create_time
18 164 psutil.Process.as_dict call site: 00164 psutil.Process.oneshot
14 35 psutil._psosx.pids call site: 00035 psutil._psosx.adjust_proc_create_time
7 140 psutil._pswindows.Process.create_time call site: 00140 psutil._common.debug
7 153 psutil.Process._get_ident call site: 00153 psutil.Process.create_time
6 97 psutil.Process._init call site: 00097 psutil._pslinux.Process.create_time
5 66 psutil.process_iter call site: 00066 psutil._common.debug
4 22 psutil.pids call site: 00022 .int
4 52 psutil.pids call site: 00052 psutil._psbsd._pid_0_exists
4 135 psutil._psbsd.boot_time call site: 00135 psutil._pswindows.Process.create_time
3 57 psutil._psbsd.Process.name call site: 00057 _psutil_bsd.proc_oneshot_info
3 111 psutil._common.cat call site: 00111 psutil._common.open_text

Runtime coverage analysis

Covered functions
84
Functions that are reachable but not covered
105
Reachable functions
118
Percentage of reachable functions covered
11.02%
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._psaix 6
psutil._pslinux 14
psutil._psosx 12
psutil._common 10
psutil._psbsd 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'] 11 0 0 2 4 200 0 627 398
psutil._pssunos.wrap_exceptions.wrapper psutil._pssunos 3 ['N/A', 'N/A', 'N/A'] 11 0 0 3 4 188 0 589 147
psutil.Process.__str__ psutil 1 ['N/A'] 6 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'] 3 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'] 9 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%
237 / 508
Cyclomatic complexity statically reachable by fuzzers
47.0%
791 / 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