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 128 76.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 39 23.3%
All colors 167 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
47 97 psutil._pswindows.Process.create_time call site: 00097 psutil.Process.create_time
16 28 psutil._pslinux.pids call site: 00028 psutil._psbsd.pids
16 149 psutil.Process.as_dict call site: 00149 psutil.Process.oneshot
13 46 psutil._psosx.pids call site: 00046 psutil._psosx.Process._get_kinfo_proc
9 18 psutil._pssunos.pids call site: 00018 psutil._psaix.pids
6 75 psutil.Process._init call site: 00075 _psutil_linux.check_pid_range
6 90 psutil.Process._init call site: 00090 psutil.Process._get_ident
5 60 psutil.process_iter call site: 00060 inspect.getframeinfo
3 14 ...fuzz_native.TestOneInput call site: 00014 psutil.pids
3 145 psutil.process_iter call site: 00145 .isinstance
2 2 ...fuzz_native.TestOneInput call site: 00002 fdp.ConsumeIntInRange
2 71 psutil.process_iter call site: 00071 psutil.process_iter.add

Runtime coverage analysis

Covered functions
174
Functions that are reachable but not covered
94
Reachable functions
111
Percentage of reachable functions covered
15.32%
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
/ 1
...fuzz_native 8
psutil 62
psutil._pssunos 8
psutil._psaix 6
psutil._pslinux 14
psutil._psbsd 9
psutil._psosx 7
psutil._common 10
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'] 9 0 0 2 4 192 0 600 396
psutil._pssunos.wrap_exceptions.wrapper psutil._pssunos 3 ['N/A', 'N/A', 'N/A'] 9 0 0 3 4 179 0 557 147
psutil.Process.__str__ psutil 1 ['N/A'] 6 0 0 4 5 97 0 306 115
psutil.cpu_times_percent psutil 2 ['N/A', 'N/A'] 4 0 4 4 5 52 0 163 111
psutil.Process.cpu_percent psutil 2 ['N/A', 'N/A'] 3 0 2 3 4 79 0 248 100
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'] 7 0 3 3 4 113 0 352 42

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

Functions statically reachable by fuzzers
46.0%
232 / 505
Cyclomatic complexity statically reachable by fuzzers
46.0%
773 / 1673

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