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

Fuzzer details

Fuzzer: fuzz_markdown_converter

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 2 13.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 13 86.6%
All colors 15 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
1 9 nbconvert.filters.markdown_mistune.MarkdownWithMath.__init__ call site: 00009 _plugins.append
1 13 nbconvert.filters.markdown_mistune.MarkdownWithMath.render call site: 00013 fdp.ConsumeUnicodeNoSurrogates

Runtime coverage analysis

Covered functions
179
Functions that are reachable but not covered
8
Reachable functions
13
Percentage of reachable functions covered
38.46%
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_markdown_converter 3
nbconvert.filters.markdown_mistune 9

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
nbconvert.nbconvertapp.NbConvertApp.convert_notebooks nbconvert.nbconvertapp 1 ['N/A'] 2 0 5 5 5 38 1 123 123
nbconvert.exporters.pdf.PDFExporter.from_notebook_node nbconvert.exporters.pdf 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 7 3 4 31 0 99 87
nbconvert.writers.files.FilesWriter.write nbconvert.writers.files 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 2 0 11 7 6 28 0 93 69
nbconvert.filters.ansi._ansi2anything nbconvert.filters.ansi 2 ['N/A', 'N/A'] 1 0 6 19 11 17 2 74 65
nbconvert.exporters.templateexporter.TemplateExporter._init_preprocessors nbconvert.exporters.templateexporter 1 ['N/A'] 2 0 3 2 4 26 0 86 62
nbconvert.exporters.exporter.Exporter.from_filename nbconvert.exporters.exporter 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 1 3 4 23 0 77 62
nbconvert.preprocessors.extractoutput.ExtractOutputPreprocessor.preprocess_cell nbconvert.preprocessors.extractoutput 4 ['N/A', 'N/A', 'N/A', 'N/A'] 1 0 2 12 8 18 0 63 54
nbconvert.exporters.templateexporter.TemplateExporter._template_paths nbconvert.exporters.templateexporter 3 ['N/A', 'N/A', 'N/A'] 2 0 6 3 4 20 0 70 41

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

Functions statically reachable by fuzzers
16.0%
48 / 296
Cyclomatic complexity statically reachable by fuzzers
20.0%
202 / 998

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

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
os.path.getmtime 74 30 40.54% []
nbconvert.writers.files.FilesWriter.write 36 0 0.0% []
traitlets.config.catch_config_error 1579 212 13.42% []
traitlets.config.configurable.LoggingConfigurable.postprocessor_factory 245 56 22.85% []
nbconvert.exporters.pdf.PDFExporter.run_command 31 0 0.0% []
resources.pop 1578 2 0.126% []
re.sub 391 80 20.46% []
nbconvert.exporters.html.HTMLExporter._init_resources.resources_include_url 32 0 0.0% []
context.get 168 62 36.90% []
nbconvert.exporters.templateexporter.TemplateExporter.get_template_names 48 0 0.0% []
markupsafe.escape 162 78 48.14% []
jinja2.loaders.split_template_path 268 70 26.11% []
m.end 558 86 15.41% []
info.strip 37 16 43.24% []
pygments.lexers.get_lexer_by_name 192 60 31.25% []
pygments.formatters.HtmlFormatter.get_style_defs 86 38 44.18% []
bs4.BeautifulSoup 361 65 18.00% []
element.decode 975 256 26.25% []
xml.etree.ElementTree.Element.append 174 7 4.022% []
s.capture 116 22 18.96% []
p.communicate 54 9 16.66% []
nbformat.writes 58 20 34.48% []
nbconvert.preprocessors.extractoutput.ExtractOutputPreprocessor.preprocess_cell 36 0 0.0% []
pygments.lexers.special.TextLexer 73 31 42.46% []
concurrent.futures.ThreadPoolExecutor 81 38 46.91% []
asyncio.set_event_loop_policy 92 44 47.82% []
tornado.ioloop.IOLoop.instance 276 100 36.23% []
pandocfilters.RawInline 151 55 36.42% []
template.endswith 494 108 21.86% []
paths.append 441 82 18.59% []
nbformat.validator.normalize 271 38 14.02% []
nbconvert.filters.ansi._latexconverter 35 0 0.0% []
nbconvert.filters.ansi._ansi2anything 64 0 0.0% []
packaging.version.Version 165 67 40.60% []
nbconvert.exporters.slides._RevealMetadataPreprocessor.preprocess 39 3 7.692% []
tornado.gen.coroutine 322 83 25.77% []
tornado.web.Application 1429 310 21.69% []
tornado.httpclient.AsyncHTTPClient 245 70 28.57% []
tornado.httpserver.HTTPServer 127 44 34.64% []

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
[] []
nbconvert.nbconvertapp [] []
subprocess [] []
nbconvert.utils.lexers [] []
nbconvert.filters.markdown_mistune ['fuzz_markdown_converter'] []
nbconvert.utils._contextlib_chdir [] []
urllib [] []
nbconvert.filters [] []
nbconvert.postprocessors [] []
nbconvert.preprocessors.regexremove [] []
codecs [] []
nbconvert.utils.text [] []
nbconvert.exporters.asciidoc [] []
winreg [] []
nbconvert.resources [] []
nbconvert.exporters.rst [] []
nbconvert.postprocessors.serve [] []
nbconvert.exporters.slides [] []
html [] []
pprint [] []
packaging [] []
nbconvert [] []
jupyter_core [] []
pygments [] []
nbconvert.exporters.qtpng [] []
nbconvert.preprocessors.base [] []
nbconvert.writers.files [] []
webbrowser [] []
nbconvert.writers [] []
asyncio [] []
atheris [] []
nbconvert.preprocessors.sanitize [] []
nbclient [] []
jinja2 [] []
nbconvert.preprocessors.highlightmagics [] []
nbconvert.preprocessors.convertfigures [] []
traitlets [] []
pandocfilters [] []
nbconvert.exporters.exporter [] []
datetime [] []
os [] []
nbconvert.exporters.base [] []
mimetypes [] []
tempfile [] []
pathlib [] []
nbconvert.preprocessors.latex [] []
pyppeteer [] []
nbformat [] []
[] []
nbconvert.filters.svg_constants [] []
nbconvert.preprocessors.extractoutput [] []
nbconvert.exporters.qtpdf [] []
shutil [] []
collections [] []
nbconvert.exporters.python [] []
nbconvert.filters.metadata [] []
copy [] []
nbconvert.preprocessors.coalescestreams [] []
nbconvert.exporters.script [] []
nbconvert.utils.base [] []
nbconvert.exporters.pdf [] []
bleach [] []
IPython [] []
tornado [] []
nbconvert.utils.exceptions [] []
nbconvert.preprocessors.clearmetadata [] []
nbconvert.exporters.html [] []
importlib [] []
nbconvert.preprocessors.execute [] []
nbconvert.preprocessors [] []
nbconvert.postprocessors.base [] []
nbconvert.preprocessors.clearoutput [] []
nbconvert.preprocessors.csshtmlheader [] []
nbconvert.filters.datatypefilter [] []
nbconvert.filters.latex [] []
nbconvert.filters.pandoc [] []
nbconvert.preprocessors.svg2pdf [] []
nbconvert.filters.citation [] []
glob [] []
nbconvert.preprocessors.tagremove [] []
nbconvert.writers.base [] []
json [] []
nbconvert.exporters [] []
nbconvert.conftest [] []
mistune [] []
textwrap [] []
nbconvert.exporters.templateexporter [] []
markupsafe [] []
...fuzz_markdown_converter ['fuzz_markdown_converter'] []
nbconvert.exporters.qt_screenshot [] []
xml [] []
nbconvert.filters.filter_links [] []
nbconvert.writers.stdout [] []
io [] []
bs4 [] []
nbconvert.exporters.webpdf [] []
re [] []
threading [] []
_winreg [] []
nbconvert._version [] []
nbconvert.exporters.latex [] []
hashlib [] []
nbconvert.exporters.qt_exporter [] []
sys [] []
nbconvert.filters.markdown [] []
nbconvert.filters.strings [] []
defusedxml [] []
nbconvert.__main__ [] []
binascii [] []
functools [] []
base64 [] []
warnings [] []
nbconvert.filters.widgetsdatatypefilter [] []
nbconvert.utils.pandoc [] []
nbconvert.preprocessors.extractattachments [] []
nbconvert.utils.io [] []
nbconvert.exporters.notebook [] []
nbconvert.filters.highlight [] []
nbconvert.writers.debug [] []
nbconvert.utils [] []
random [] []
PyQt5 [] []
nbconvert.exporters.markdown [] []
nbconvert.utils.version [] []
nbconvert.filters.ansi [] []
importlib_metadata [] []

Directories in report

Directory