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_lib2to3_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: fuzz_format_filecontents

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: fuzz_raw_format_filecontents

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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
black.main black 29 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 7 0 34 22 12 403 3 1412 485
black.trans.StringTransformer.__call__ black.trans 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 2 3 4 147 0 532 341
black.linegen.LineGenerator.visit_power black.linegen 2 ['N/A', 'N/A'] 7 0 3 2 4 82 0 326 162
black.linegen._maybe_split_omitting_optional_parens black.linegen 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 4 6 5 88 3 354 132
black.read_pyproject_toml black 3 ['N/A', 'N/A', 'N/A'] 3 0 4 8 6 53 0 174 80
black.trans.BaseStringSplitter.do_match black.trans 2 ['N/A', 'N/A'] 5 0 0 2 4 44 0 162 59
black.linegen.LineGenerator.visit_STRING black.linegen 2 ['N/A', 'N/A'] 5 0 2 13 8 85 1 324 56
black.linegen.normalize_invisible_parens black.linegen 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 11 17 10 67 3 252 43

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

Functions statically reachable by fuzzers
69.0%
261 / 380
Cyclomatic complexity statically reachable by fuzzers
74.0%
1141 / 1552

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

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
json [] []
secrets [] []
packaging [] []
black.resources [] []
enum [] []
black.parsing ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
black.cache [] []
multiprocessing [] []
black.concurrency [] []
colorama [] []
black.mode ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
black.brackets ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
asyncio [] []
datetime [] []
traceback [] []
black.nodes ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
pathlib [] []
sys [] []
black.strings ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
pickle [] []
collections [] []
tomli [] []
tokenize_rt [] []
io [] []
functools [] []
click [] []
black.lines ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
tokenize [] []
tempfile [] []
black.handle_ipynb_magics ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
atheris [] []
black.ranges ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
black.numerics [] []
black.__main__ [] []
mypy_extensions [] []
black._width_table [] []
difflib [] []
typing [] []
itertools [] []
warnings [] []
logging [] []
black.const [] []
IPython [] []
...fuzz_lib2to3_parse ['fuzz_lib2to3_parse'] []
tomllib [] []
[] []
os [] []
uvloop [] []
black.comments ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
importlib [] []
black.report [] []
ast [] []
...fuzz_format_filecontents ['fuzz_format_filecontents'] []
...fuzz_raw_format_filecontents ['fuzz_raw_format_filecontents'] []
platform [] []
black.rusty [] []
pathspec [] []
re [] []
concurrent [] []
black.output ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
dataclasses [] []
black.files [] []
black.linegen ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
black.trans ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
black.debug [] []
black.schema [] []
platformdirs [] []
blib2to3 [] []
_black_version [] []
black ['fuzz_format_filecontents', 'fuzz_raw_format_filecontents'] []
hashlib [] []
operator [] []

Directories in report

Directory