Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: fuzz_parse

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 39 34.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 73 65.1%
All colors 112 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
21 73 face.parser.Parser._parse_flags call site: 00073 face.parser.Parser._parse_flagfile
6 0 EP call site: 00000 face.parser.Parser.parse
4 31 face.sinter.get_fb call site: 00031 inspect.isbuiltin
3 44 face.command.Command.get_dep_names call site: 00044 face.sinter.get_arg_names
2 103 face.parser.Parser._resolve_flags call site: 00103 ff_paths.append
1 16 face.parser.Parser._parse_subcmds call site: 00016 ret.append
1 55 face.command.Command.get_dep_names call site: 00055 collections.OrderedDict
1 99 face.parser.Parser._resolve_flags call site: 00099 missing_flags.append

Runtime coverage analysis

Covered functions
83
Functions that are reachable but not covered
59
Reachable functions
74
Percentage of reachable functions covered
20.27%
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_parse 6
face.parser 45
face.command 9
face.sinter 10
face.utils 10

Fuzzer: fuzz_command

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 93 41.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 129 58.1%
All colors 222 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
21 183 face.parser.Parser._parse_flags call site: 00183 face.parser.Parser._parse_flagfile
18 38 face.sinter.get_fb call site: 00038 face.command.Command.add
14 12 face.middleware.is_middleware call site: 00012 face.command.Command.add_middleware
7 66 face.command.Command.__init__ call site: 00066 face.utils.unwrap_text
5 60 face.command.Command.__init__ call site: 00060 .isinstance
4 28 face.sinter.get_fb call site: 00028 inspect.isbuiltin
4 74 face.command.Command.__init__ call site: 00074 kwargs.pop
3 88 face.command.Command.add call site: 00088 face.command.Command.add_command
3 116 face.parser.FlagDisplay.__init__ call site: 00116 face.utils.get_type_desc
3 159 face.command.Command.get_dep_names call site: 00159 face.sinter.get_arg_names
2 129 face.command.Command.add call site: 00129 fdp.ConsumeUnicodeNoSurrogates
2 213 face.parser.Parser._resolve_flags call site: 00213 ff_paths.append

Runtime coverage analysis

Covered functions
84
Functions that are reachable but not covered
82
Reachable functions
108
Percentage of reachable functions covered
24.07%
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_command 8
face.command 28
face.middleware 10
face.sinter 13
face.utils 21
face.parser 51

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
face.command.Command.run face.command 4 ['N/A', 'N/A', 'N/A', 'N/A'] 4 0 6 9 7 111 0 362 145
face.testing.CommandChecker.run face.testing 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 3 7 6 33 1 111 93
face.helpers.StoutHelpFormatter.get_help_text face.helpers 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 12 6 5 26 1 87 75
face.parser.Parser.__init__ face.parser 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 2 4 5 71 0 252 62
face.utils.prompt face.utils 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 1 3 4 13 1 46 40

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

Functions statically reachable by fuzzers
60.0%
79 / 131
Cyclomatic complexity statically reachable by fuzzers
65.0%
316 / 487

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 Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity