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_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 35.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 70 64.2%
All colors 109 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 70 face.parser.Parser._parse_flags call site: 00070 face.parser.Parser._parse_flagfile
6 0 EP call site: 00000 face.parser.Parser.parse
4 28 face.sinter.get_fb call site: 00028 inspect.isbuiltin
3 41 face.command.Command.get_dep_names call site: 00041 face.sinter.get_arg_names
2 100 face.parser.Parser._resolve_flags call site: 00100 ff_paths.append
1 16 face.parser.Parser._parse_subcmds call site: 00016 ret.append
1 52 face.command.Command.get_dep_names call site: 00052 collections.OrderedDict
1 96 face.parser.Parser._resolve_flags call site: 00096 missing_flags.append

Runtime coverage analysis

Covered functions
83
Functions that are reachable but not covered
58
Reachable functions
73
Percentage of reachable functions covered
20.55%
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 43
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 85 41.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 120 58.5%
All colors 205 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 166 face.parser.Parser._parse_flags call site: 00166 face.parser.Parser._parse_flagfile
18 35 face.sinter.get_fb call site: 00035 face.command.Command.add
11 12 face.middleware.is_middleware call site: 00012 face.command.Command.add_middleware
7 62 face.command.Command.__init__ call site: 00062 face.utils.unwrap_text
4 25 face.sinter.get_fb call site: 00025 inspect.isbuiltin
4 57 face.command.Command.__init__ call site: 00057 .isinstance
3 78 face.command.Command.add call site: 00078 face.command.Command.add_command
3 106 face.parser.FlagDisplay.__init__ call site: 00106 face.utils.get_type_desc
3 142 face.command.Command.get_dep_names call site: 00142 face.sinter.get_arg_names
2 112 face.command.Command.add call site: 00112 fdp.ConsumeUnicodeNoSurrogates
2 196 face.parser.Parser._resolve_flags call site: 00196 ff_paths.append
1 55 face.command.Command.add call site: 00055 face.command.Command.__init__

Runtime coverage analysis

Covered functions
84
Functions that are reachable but not covered
80
Reachable functions
106
Percentage of reachable functions covered
24.53%
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 27
face.middleware 9
face.sinter 13
face.utils 21
face.parser 50

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'] 7 0 6 9 7 110 0 358 144
face.testing.CommandChecker.run face.testing 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 3 7 6 31 1 104 86
face.helpers.StoutHelpFormatter.get_help_text face.helpers 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 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'] 7 0 2 4 5 69 0 245 62
face.utils.prompt face.utils 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 1 3 4 14 1 50 44

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%
314 / 485

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