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 62 91.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 6 8.82%
All colors 68 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
35 31 ...fuzz_parse.TestOneInput call site: 00031 coverage.parser.PythonParser._raw_parse
27 3 ...fuzz_parse.TestOneInput call site: 00003 coverage.python.get_python_source

Runtime coverage analysis

Covered functions
3
Functions that are reachable but not covered
57
Reachable functions
57
Percentage of reachable functions covered
0.0%
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_parse 5
coverage.parser 25
coverage.python 13
coverage.files 4
coverage.phystokens 6
coverage.misc 2
coverage.bytecode 3

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
coverage.cmdline.CoverageScript.command_line coverage.cmdline 2 ['N/A', 'N/A'] 8 0 13 21 11 652 2 2171 2072
coverage.parser.AstArcAnalyzer._handle__Try coverage.parser 2 ['N/A', 'N/A'] 2 0 11 16 9 29 0 100 79
coverage.pytracer.PyTracer._trace coverage.pytracer 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 11 26 13 143 0 488 60
coverage.parser.PythonParser.missing_arc_description coverage.parser 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 3 6 5 25 1 86 53
coverage.phystokens.source_token_lines coverage.phystokens 1 ['N/A'] 1 0 5 14 9 21 0 75 48

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

Functions statically reachable by fuzzers
53.0%
318 / 604
Cyclomatic complexity statically reachable by fuzzers
56.9%
1211 / 2125

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

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
[] []
coverage.types [] []
traceback [] []
keyword [] []
coverage.misc ['fuzz_parse'] []
multiprocessing [] []
textwrap [] []
optparse [] []
platform [] []
sqlite3 [] []
functools [] []
coverage.multiproc [] []
tokenize [] []
locale [] []
importlib [] []
coverage.plugin [] []
coverage.lcovreport [] []
coverage.jsonreport [] []
coverage.html [] []
signal [] []
warnings [] []
_thread [] []
coverage.control [] []
datetime [] []
ast [] []
threading [] []
coverage [] []
coverage.files ['fuzz_parse'] []
coverage.debug [] []
glob [] []
sys [] []
coverage.results [] []
coverage.xmlreport [] []
json [] []
zlib [] []
socket [] []
coverage.inorout [] []
os [] []
coverage.exceptions [] []
coverage.sqldata [] []
coverage.fullcoverage.encodings [] []
base64 [] []
atheris [] []
typing [] []
coverage.pytracer [] []
coverage.annotate [] []
reprlib [] []
coverage.version [] []
pudb [] []
coverage.execfile [] []
inspect [] []
itertools [] []
time [] []
posixpath [] []
zipimport [] []
coverage.env [] []
coverage.__main__ [] []
coverage.cmdline [] []
re [] []
random [] []
shlex [] []
coverage.templite [] []
coverage.disposition [] []
pprint [] []
tomllib [] []
[] []
marshal [] []
coverage.config [] []
collections [] []
coverage.parser ['fuzz_parse'] []
hashlib [] []
coverage.tomlconfig [] []
coverage.phystokens ['fuzz_parse'] []
coverage.context [] []
coverage.report_core [] []
coverage.data [] []
coverage.bytecode ['fuzz_parse'] []
atexit [] []
sysconfig [] []
types [] []
ntpath [] []
coverage.plugin_support [] []
io [] []
__pypy__ [] []
struct [] []
coverage.collector [] []
ox_profile [] []
coverage.numbits [] []
...fuzz_parse ['fuzz_parse'] []
coverage.python ['fuzz_parse'] []
shutil [] []
dis [] []
coverage.report [] []

Directories in report

Directory