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_markdown_extended

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 17 19.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 69 80.2%
All colors 86 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
6 1 ...markdown-it-py.tests.fuzz.fuzz_markdown_extended.TestOneInput call site: 00001 fdp.ConsumeIntInRange
3 26 markdown_it.main.MarkdownIt.__init__ call site: 00026 inspect.getmembers
1 21 ...markdown-it-py.tests.fuzz.fuzz_markdown_extended.TestOneInput call site: 00021 markdown_it.main.MarkdownIt.__init__
1 40 markdown_it.main.MarkdownIt.configure call site: 00040 markdown_it.main.MarkdownIt.render
1 54 ...markdown-it-py.tests.fuzz.fuzz_markdown_extended.TestOneInput call site: 00054 markdown_it.main.MarkdownIt.normalizeLink
1 62 markdown_it.common.normalize_url.normalizeLink call site: 00062 markdown_it.main.MarkdownIt.normalizeLinkText
1 70 markdown_it.common.normalize_url.normalizeLinkText call site: 00070 markdown_it.main.MarkdownIt.disable
1 74 markdown_it.main.MarkdownIt.disable call site: 00074 markdown_it.main.MarkdownIt.enable
1 78 markdown_it.main.MarkdownIt.enable call site: 00078 markdown_it.main.MarkdownIt.validateLink
1 84 markdown_it.common.normalize_url.validateLink call site: 00084 markdown_it.main.MarkdownIt.configure

Runtime coverage analysis

Covered functions
214
Functions that are reachable but not covered
23
Reachable functions
47
Percentage of reachable functions covered
51.06%
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
...markdown-it-py.tests.fuzz.fuzz_markdown_extended 14
markdown_it.main 19
markdown_it.renderer 2
markdown_it.utils 2
markdown_it.common.normalize_url 12

Fuzzer: fuzz_markdown

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 3 10.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 26 89.6%
All colors 29 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
3 6 markdown_it.main.MarkdownIt.__init__ call site: 00006 inspect.getmembers

Runtime coverage analysis

Covered functions
213
Functions that are reachable but not covered
10
Reachable functions
23
Percentage of reachable functions covered
56.52%
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
...markdown-it-py.tests.fuzz.fuzz_markdown 5
markdown_it.main 14
markdown_it.renderer 2
markdown_it.utils 2

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
markdown_it.rules_block.reference.reference markdown_it.rules_block.reference 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 2 31 15 20 0 75 75
markdown_it.rules_core.smartquotes.smartquotes markdown_it.rules_core.smartquotes 1 ['N/A'] 3 0 1 3 4 16 0 62 53
markdown_it.rules_core.linkify.linkify markdown_it.rules_core.linkify 1 ['N/A'] 2 0 6 15 9 18 0 63 48
markdown_it.rules_core.replacements.replace markdown_it.rules_core.replacements 1 ['N/A'] 2 0 2 5 5 13 0 46 46
markdown_it.renderer.RendererHTML.fence markdown_it.renderer 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 1 5 5 15 0 51 45
markdown_it.rules_block.table.table markdown_it.rules_block.table 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 7 31 15 14 0 58 43
markdown_it.rules_block.list.list_block markdown_it.rules_block.list 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 3 27 14 15 0 63 39

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

Functions statically reachable by fuzzers
22.0%
48 / 222
Cyclomatic complexity statically reachable by fuzzers
25.0%
215 / 869

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
[] []
markdown_it.rules_block [] []
markdown_it.rules_block.lheading [] []
typing [] []
markdown_it.rules_core.state_core [] []
sys [] []
markdown_it.common [] []
markdown_it.rules_block.blockquote [] []
markdown_it.rules_block.state_block [] []
markdown_it.utils ['fuzz_markdown_extended', 'fuzz_markdown'] []
markdown_it.rules_core.smartquotes [] []
markdown_it.ruler [] []
markdown_it.rules_inline.link [] []
atheris [] []
markdown_it.rules_core.replacements [] []
markdown_it.rules_inline.emphasis [] []
markdown_it.parser_block [] []
markdown_it.rules_core [] []
markdown_it.common.normalize_url ['fuzz_markdown_extended'] []
markdown_it._compat [] []
argparse [] []
markdown_it.common.utils [] []
markdown_it.presets.zero [] []
inspect [] []
...markdown-it-py.tests.fuzz.fuzz_markdown_extended ['fuzz_markdown_extended'] []
markdown_it.rules_inline.balance_pairs [] []
markdown_it.rules_block.paragraph [] []
markdown_it.rules_inline.image [] []
logging [] []
markdown_it.rules_inline.backticks [] []
markdown_it.rules_inline.text [] []
markdown_it.rules_block.hr [] []
markdown_it.rules_block.heading [] []
markdown_it.rules_core.text_join [] []
markdown_it.rules_block.fence [] []
markdown_it.rules_core.linkify [] []
markdown_it.helpers [] []
codecs [] []
markdown_it.helpers.parse_link_destination [] []
markdown_it [] []
markdown_it.rules_core.block [] []
linkify_it [] []
[] []
markdown_it.renderer ['fuzz_markdown_extended', 'fuzz_markdown'] []
markdown_it.helpers.parse_link_label [] []
markdown_it.presets [] []
mdurl [] []
textwrap [] []
markdown_it.rules_block.html_block [] []
markdown_it.rules_inline.autolink [] []
markdown_it.rules_block.list [] []
markdown_it.rules_inline.html_inline [] []
markdown_it.tree [] []
markdown_it.rules_core.normalize [] []
markdown_it.common.html_blocks [] []
markdown_it.presets.default [] []
markdown_it.rules_inline.newline [] []
markdown_it.rules_block.table [] []
markdown_it.rules_inline.strikethrough [] []
re [] []
markdown_it.rules_block.code [] []
...markdown-it-py.tests.fuzz.fuzz_markdown ['fuzz_markdown'] []
pathlib [] []
markdown_it.rules_inline.state_inline [] []
markdown_it._punycode [] []
markdown_it.rules_core.inline [] []
markdown_it.helpers.parse_link_title [] []
markdown_it.rules_inline.linkify [] []
markdown_it.common.entities [] []
markdown_it.rules_block.reference [] []
markdown_it.rules_inline.entity [] []
markdown_it.parser_core [] []
markdown_it.common.html_re [] []
markdown_it.rules_inline [] []
markdown_it.token [] []
markdown_it.rules_inline.escape [] []
markdown_it.main ['fuzz_markdown_extended', 'fuzz_markdown'] []
markdown_it.cli [] []
markdown_it.cli.parse [] []
warnings [] []
markdown_it.parser_inline [] []
collections [] []
markdown_it.rules_inline.fragments_join [] []
dataclasses [] []
markdown_it.presets.commonmark [] []
contextlib [] []

Directories in report

Directory