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

Fuzzer details

Fuzzer: fuzz_rst_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 82 64.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 45 35.4%
All colors 127 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
59 35 docutils.utils.DependencyList.__init__ call site: 00035 docutils.frontend.OptionParser.get_config_file_settings
4 24 docutils.frontend.OptionParser.__init__ call site: 00024 docutils.frontend.OptionParser.get_standard_config_settings
4 100 docutils.utils.decode_path call site: 00100 sys.getfilesystemencoding
4 122 docutils.utils.new_document call site: 00122 docutils.frontend.get_default_settings
3 5 docutils.parsers.get_parser_class call site: 00005 docutils.utils.new_document
2 0 EP call site: 00000 docutils.parsers.get_parser_class
2 32 docutils.frontend.Values.__init__ call site: 00032 docutils.utils.DependencyList.set_output
2 108 docutils.utils.Reporter.__init__ call site: 00108 .isinstance
1 13 docutils.frontend.OptionParser.__init__ call site: 00013 optparse.TitledHelpFormatter
1 22 docutils.frontend.OptionParser.populate_from_components call site: 00022 optparse.OptionParser.defaults.update

Runtime coverage analysis

Covered functions
454
Functions that are reachable but not covered
74
Reachable functions
89
Percentage of reachable functions covered
16.85%
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_rst_parse 7
docutils.parsers 3
docutils.utils 16
docutils.frontend 57
docutils.io 3
docutils.nodes 8

Fuzzer: fuzz_rst

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 92 45.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 109 54.2%
All colors 201 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
59 30 docutils.utils.DependencyList.__init__ call site: 00030 docutils.frontend.OptionParser.get_config_file_settings
13 171 ...fuzz_rst.TestOneInput call site: 00171 docutils.nodes.pending.pformat
4 19 docutils.frontend.OptionParser.__init__ call site: 00019 docutils.frontend.OptionParser.get_standard_config_settings
4 105 docutils.utils.decode_path call site: 00105 sys.getfilesystemencoding
4 191 docutils.nodes.Node.walkabout call site: 00191 docutils.writers.odf_odt.ODFTranslator.dispatch_visit
2 27 docutils.frontend.Values.__init__ call site: 00027 docutils.utils.DependencyList.set_output
2 113 docutils.utils.Reporter.__init__ call site: 00113 .isinstance
1 8 docutils.frontend.OptionParser.__init__ call site: 00008 optparse.TitledHelpFormatter
1 17 docutils.frontend.OptionParser.populate_from_components call site: 00017 optparse.OptionParser.defaults.update
1 102 ...fuzz_rst.TestOneInput call site: 00102 docutils.frontend.get_default_settings
1 162 docutils.nodes.Element.attlist call site: 00162 parts.append

Runtime coverage analysis

Covered functions
455
Functions that are reachable but not covered
92
Reachable functions
127
Percentage of reachable functions covered
27.56%
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_rst 17
docutils.frontend 58
docutils.utils 16
docutils.io 3
docutils.nodes 33
docutils.parsers.rst 4
docutils.statemachine 5
docutils.writers.odf_odt 4

Fuzzer: fuzz_table

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 7 14.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 42 85.7%
All colors 49 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
2 0 EP call site: 00000 docutils.statemachine.ViewList.__init__
2 8 docutils.statemachine.ViewList.__init__ call site: 00008 docutils.statemachine.string2lines
2 13 docutils.statemachine.string2lines call site: 00013 docutils.parsers.rst.tableparser.GridTableParser.setup
1 18 docutils.parsers.rst.tableparser.GridTableParser.setup call site: 00018 docutils.parsers.rst.tableparser.TableParser.find_head_body_sep

Runtime coverage analysis

Covered functions
454
Functions that are reachable but not covered
18
Reachable functions
31
Percentage of reachable functions covered
41.94%
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_table 8
docutils.statemachine 7
docutils.parsers.rst.tableparser 18

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
docutils.writers._html_base.HTMLTranslator.visit_math docutils.writers._html_base 3 ['N/A', 'N/A', 'N/A'] 4 0 16 19 11 135 1 472 436
docutils.writers.odf_odt.Writer.assemble_my_parts docutils.writers.odf_odt 1 ['N/A'] 4 0 13 7 6 82 1 269 254
docutils.core.Publisher.publish docutils.core 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 11 5 5 170 24 552 241
docutils.utils.math.math2html.Formula.parse docutils.utils.math.math2html 2 ['N/A', 'N/A'] 6 0 7 4 5 67 0 213 192
docutils.parsers.rst.directives.misc.Include.run docutils.parsers.rst.directives.misc 1 ['N/A'] 4 0 9 18 10 150 0 491 122
docutils.transforms.universal.SmartQuotes.apply docutils.transforms.universal 1 ['N/A'] 2 0 3 7 6 41 0 139 121
docutils.parsers.rst.states.Inliner.interpreted_or_phrase_ref docutils.parsers.rst.states 3 ['N/A', 'N/A', 'N/A'] 3 0 0 7 6 47 0 156 112

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

Functions statically reachable by fuzzers
11.0%
247 / 2209
Cyclomatic complexity statically reachable by fuzzers
12.0%
920 / 7445

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
[] []
docutils.parsers.commonmark_wrapper [] []
docutils.parsers.rst.languages.ca [] []
docutils.languages.af [] []
docutils.writers [] []
docutils.languages.it [] []
docutils.parsers.rst.languages.pl [] []
docutils.languages.ca [] []
time [] []
docutils.parsers.rst ['fuzz_rst'] []
docutils.parsers.rst.directives.references [] []
docutils.languages.de [] []
docutils.parsers.null [] []
docutils.transforms.universal [] []
docutils.writers.odf_odt ['fuzz_rst'] []
docutils.languages.sk [] []
subprocess [] []
docutils.languages.lv [] []
xml [] []
docutils.transforms.components [] []
docutils.parsers.rst.directives.images [] []
...fuzz_table ['fuzz_table'] []
docutils.languages.ja [] []
docutils.languages.ko [] []
docutils.languages.gl [] []
docutils.parsers.rst.languages.da [] []
warnings [] []
docutils.languages.fi [] []
PIL [] []
docutils.statemachine ['fuzz_rst', 'fuzz_table'] []
docutils.parsers.rst.languages.eo [] []
unittest [] []
docutils.languages.pl [] []
docutils.languages.da [] []
sys [] []
docutils.writers._html_base [] []
docutils.languages.eo [] []
docutils.readers [] []
docutils.languages.zh_cn [] []
docutils.parsers.rst.roles [] []
docutils.nodes ['fuzz_rst_parse', 'fuzz_rst'] []
docutils.parsers.rst.languages.zh_tw [] []
itertools [] []
docutils.transforms.frontmatter [] []
docutils.languages.he [] []
urllib [] []
docutils.writers.null [] []
string [] []
pprint [] []
pathlib [] []
docutils.languages.en [] []
docutils.parsers.rst.languages.fa [] []
locale [] []
docutils.languages.ar [] []
docutils.utils.code_analyzer [] []
docutils.parsers.rst.languages.gl [] []
zipfile [] []
docutils.parsers.rst.languages.sv [] []
docutils.readers.pep [] []
unicodedata [] []
docutils.utils.punctuation_chars [] []
docutils.writers.pseudoxml [] []
docutils.parsers.rst.languages.nl [] []
docutils.writers.xetex [] []
docutils.parsers.rst.languages.he [] []
docutils.parsers.rst.languages.sk [] []
docutils.languages.fa [] []
docutils.utils.smartquotes [] []
docutils.languages.ru [] []
docutils.utils.math.math2html [] []
docutils.utils.math.unichar2tex [] []
docutils [] []
docutils.parsers.rst.languages.lv [] []
optparse [] []
docutils.languages.zh_tw [] []
docutils.parsers.rst.directives.misc [] []
docutils.parsers.rst.languages.zh_cn [] []
docutils.parsers.rst.languages [] []
docutils.parsers.rst.directives.html [] []
docutils.parsers ['fuzz_rst_parse'] []
docutils.languages [] []
shutil [] []
copy [] []
docutils.parsers.rst.languages.it [] []
docutils.parsers.rst.languages.es [] []
argparse [] []
configparser [] []
docutils.parsers.rst.languages.ar [] []
docutils.languages.lt [] []
docutils.parsers.rst.languages.ja [] []
[] []
docutils.writers.pep_html [] []
docutils.transforms [] []
docutils.parsers.rst.languages.fi [] []
mimetypes [] []
docutils.parsers.rst.languages.uk [] []
docutils.parsers.rst.directives.body [] []
docutils.parsers.rst.directives.tables [] []
csv [] []
docutils.io ['fuzz_rst_parse', 'fuzz_rst'] []
docutils.parsers.rst.languages.de [] []
docutils.writers.manpage [] []
docutils.writers.html5_polyglot [] []
base64 [] []
docutils.utils.math.latex2mathml [] []
docutils.languages.nl [] []
docutils.writers.s5_html [] []
docutils.writers.docutils_xml [] []
docutils.languages.fr [] []
docutils.readers.doctree [] []
docutils.examples [] []
docutils.utils.math.tex2mathml_extern [] []
docutils.writers.odf_odt.prepstyles [] []
docutils.transforms.references [] []
docutils.parsers.rst.languages.fr [] []
docutils.transforms.parts [] []
...fuzz_rst_parse ['fuzz_rst_parse'] []
docutils.writers.latex2e [] []
docutils.utils.math.tex2unichar [] []
docutils.parsers.rst.languages.en [] []
docutils.parsers.rst.languages.lt [] []
docutils.utils.math [] []
docutils.writers.odf_odt.pygmentsformatter [] []
docutils.readers.standalone [] []
docutils.utils ['fuzz_rst_parse', 'fuzz_rst'] []
docutils.__main__ [] []
docutils.transforms.peps [] []
docutils.transforms.writer_aux [] []
docutils.parsers.rst.languages.ru [] []
docutils.languages.cs [] []
tempfile [] []
docutils.parsers.recommonmark_wrapper [] []
docutils.core [] []
re [] []
docutils.languages.sv [] []
io [] []
importlib [] []
Image [] []
docutils.parsers.rst.languages.af [] []
docutils.parsers.rst.directives.parts [] []
docutils.utils.error_reporting [] []
docutils.utils.urischemes [] []
docutils.parsers.rst.languages.pt_br [] []
docutils.languages.es [] []
docutils.frontend ['fuzz_rst_parse', 'fuzz_rst'] []
docutils.transforms.misc [] []
...fuzz_rst ['fuzz_rst'] []
docutils.parsers.rst.languages.ko [] []
roman [] []
docutils.parsers.rst.languages.cs [] []
types [] []
pygments [] []
random [] []
docutils.parsers.rst.directives [] []
recommonmark [] []
codecs [] []
weakref [] []
os [] []
docutils.parsers.rst.tableparser ['fuzz_table'] []
docutils.languages.uk [] []
collections [] []
docutils.parsers.rst.directives.admonitions [] []
docutils.utils.roman [] []
docutils.languages.pt_br [] []
docutils.writers.html4css1 [] []
docutils.parsers.rst.states [] []
atheris [] []

Directories in report

Directory