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

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 644 79.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 169 20.7%
All colors 813 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
86 375 rich.console.Console.render call site: 00375 rich.pretty.pretty_repr
63 538 rich.ansi.AnsiDecoder.decode_line call site: 00538 rich.text.Text.with_indent_guides
58 684 rich.markdown.Markdown.__rich_console__ call site: 00684 rich.markdown.MarkdownContext.on_text
36 488 rich.segment.Segment.split_and_crop_lines call site: 00488 rich.console.Console.render
33 130 rich.style.Style.__init__ call site: 00130 rich.style.Style.normalize
33 602 rich.console.Console.render call site: 00602 rich.console.Console.render_lines
24 743 rich.markdown.MarkdownContext.enter_style call site: 00743 rich.markdown.MarkdownContext.on_text
23 231 rich.text.Text.divide call site: 00231 rich.text.Text.divide
23 316 rich.containers.Lines.justify call site: 00316 rich.cells.cell_len
22 636 rich.segment.Segment.line call site: 00636 rich.console.Console.render
19 347 rich.text.Text.render call site: 00347 rich.text.Text.render.get_current_style
17 78 rich.text.Text.append call site: 00078 rich.style.Style.normalize

Runtime coverage analysis

Covered functions
273
Functions that are reachable but not covered
255
Reachable functions
330
Percentage of reachable functions covered
22.73%
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_markdown 6
rich.markdown 32
rich.console 72
rich._windows 4
rich._win32_console 3
rich.protocol 9
rich.markup 28
rich.text 62
rich._emoji_replace 1
rich.style 21
rich.color 12
rich._loop 2
rich.pretty 50
rich.containers 18
rich._pick 1
rich._wrap 9
rich.cells 15
rich._unicode_data 12
rich.control 3
rich.layout 15
rich.segment 8
rich.ansi 26
rich.panel 19
rich.padding 3
rich.measure 7
rich.syntax 35
rich.constrain 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
rich.console.PagerContext.__exit__ rich.console 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 2 3 4 70 0 230 197
rich.table.Table.__rich_console__ rich.table 3 ['N/A', 'N/A', 'N/A'] 9 0 4 4 5 140 0 483 138
rich.logging.RichHandler.emit rich.logging 2 ['N/A', 'N/A'] 7 0 4 4 5 131 0 434 127
rich.traceback.Traceback.__rich_console__.render_stack rich.traceback 2 ['N/A', 'N/A'] 8 0 11 6 5 109 2 360 116
rich.console.Console.export_svg rich.console 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 7 0 4 7 6 72 1 245 75
rich._inspect.Inspect._render rich._inspect 1 ['N/A'] 7 0 19 16 9 96 1 320 72
rich.progress.Progress.track rich.progress 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 6 3 4 25 1 84 66
rich.progress.ProgressColumn.__call__ rich.progress 2 ['N/A', 'N/A'] 8 0 1 2 4 80 0 268 52
rich.syntax.Syntax._get_syntax rich.syntax 3 ['N/A', 'N/A', 'N/A'] 7 0 13 13 8 119 1 404 49
rich.live.Live.start rich.live 2 ['N/A', 'N/A'] 3 0 7 5 5 24 6 85 41

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

Functions statically reachable by fuzzers
32.0%
274 / 859
Cyclomatic complexity statically reachable by fuzzers
36.0%
1051 / 2949

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

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
rich.console.Console.print 37 20 54.05% ['fuzz_markdown']
rich.console.Console._write_buffer 49 10 20.40% ['fuzz_markdown']
rich.console.Console.export_html 36 0 0.0% []
rich.console.Console.export_svg.get_svg_style 42 0 0.0% []
rich.console.Console.export_svg.make_tag.stringify 47 0 0.0% []
rich.text.Text.divide 48 3 6.25% ['fuzz_markdown']
rich.syntax.Syntax._get_syntax 62 0 0.0% []
rich.containers.Lines.justify 38 10 26.31% ['fuzz_markdown']
rich.rule.Rule.__rich_console__ 40 0 0.0% []
rich.table.Table.__init__ 33 0 0.0% []
rich.table.Table._calculate_column_widths 32 0 0.0% []
rich.table.Table._get_cells.get_padding 39 0 0.0% []
rich.table.Table._render 37 0 0.0% []
rich.table.Table._render.align_cell 44 1 2.272% ['fuzz_markdown']
rich.style.Style.__str__ 43 0 0.0% []
rich.style.Style.parse 39 0 0.0% ['fuzz_markdown']
title.encode 48 7 14.58% ['fuzz_markdown']
rich.segment.Segment.divide 47 2 4.255% ['fuzz_markdown']
rich.cells.split_graphemes 32 0 0.0% ['fuzz_markdown']
rich._log_render.LogRender.__call__ 35 1 2.857% ['fuzz_markdown']
rich._inspect.Inspect._render.safe_getattr 60 1 1.666% ['fuzz_markdown']
rich.pretty.traverse._traverse.iter_rich_args 61 0 0.0% ['fuzz_markdown']
rich.pretty.traverse._traverse.iter_attrs 89 0 0.0% ['fuzz_markdown']
rich.panel.Panel.__rich_console__.align_text 50 0 0.0% ['fuzz_markdown']
rich.markup.render.pop_style 51 1 1.960% ['fuzz_markdown']
style.strip 101 42 41.58% ['fuzz_markdown']
rich.color.Color.downgrade 38 0 0.0% []
table.add_column 165 13 7.878% ['fuzz_markdown']
pygments.lexers.get_lexer_by_name 192 39 20.31% ['fuzz_markdown']
lexer.get_tokens 492 102 20.73% ['fuzz_markdown']
code.index 31 10 32.25% ['fuzz_markdown']
rich.box.Box.get_row 32 0 0.0% []

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
[] []
rich.region [] []
atheris [] []
rich._fileno [] []
rich.palette [] []
rich.layout ['fuzz_markdown'] []
rich.file_proxy [] []
time [] []
linecache [] []
rich._pick ['fuzz_markdown'] []
collections [] []
contextlib [] []
rich.tree [] []
rich._unicode_data.unicode5-0-0 [] []
rich.abc [] []
rich.diagnose [] []
rich._unicode_data.unicode17-0-0 [] []
inspect [] []
rich.__main__ [] []
rich.pager [] []
rich.padding ['fuzz_markdown'] []
rich.control ['fuzz_markdown'] []
rich._extension [] []
rich.default_styles [] []
warnings [] []
rich.logging [] []
rich._unicode_data.unicode6-3-0 [] []
rich._unicode_data.unicode10-0-0 [] []
rich._loop ['fuzz_markdown'] []
...fuzz_markdown ['fuzz_markdown'] []
rich.protocol ['fuzz_markdown'] []
rich.prompt [] []
rich.rule [] []
rich.screen [] []
rich.highlighter [] []
pygments [] []
rich.scope [] []
rich.emoji [] []
rich.spinner [] []
rich._emoji_replace ['fuzz_markdown'] []
operator [] []
rich._unicode_data.unicode4-1-0 [] []
rich.containers ['fuzz_markdown'] []
get_console [] []
abc [] []
pathlib [] []
rich.live_render [] []
itertools [] []
rich._win32_console ['fuzz_markdown'] []
rich._unicode_data.unicode15-0-0 [] []
re [] []
traceback [] []
rich._export_format [] []
rich.jupyter [] []
pydoc [] []
os [] []
math [] []
zlib [] []
rich.status [] []
rich._unicode_data.unicode6-0-0 [] []
rich.constrain ['fuzz_markdown'] []
typing [] []
rich._unicode_data ['fuzz_markdown'] []
rich._windows_renderer [] []
rich.align [] []
rich.repr [] []
argparse [] []
rich._log_render [] []
rich.console ['fuzz_markdown'] []
rich.markup ['fuzz_markdown'] []
random [] []
rich._unicode_data.unicode7-0-0 [] []
rich._ratio [] []
rich.color_triplet [] []
rich._stack [] []
rich.pretty ['fuzz_markdown'] []
rich.traceback [] []
rich.measure ['fuzz_markdown'] []
rich._unicode_data.unicode6-1-0 [] []
rich.panel ['fuzz_markdown'] []
rich._spinners [] []
rich._unicode_data.unicode8-0-0 [] []
rich._windows ['fuzz_markdown'] []
rich._unicode_data.unicode9-0-0 [] []
logging [] []
rich.themes [] []
rich.theme [] []
rich._unicode_data.unicode5-1-0 [] []
pty [] []
textwrap [] []
rich._null_file [] []
rich._unicode_data._versions [] []
ast [] []
rich.progress_bar [] []
rich._unicode_data.unicode13-0-0 [] []
rich.columns [] []
rich._unicode_data.unicode6-2-0 [] []
rich._inspect [] []
rich.markdown ['fuzz_markdown'] []
getpass [] []
rich.styled [] []
ipywidgets [] []
rich.errors [] []
rich.json [] []
datetime [] []
rich.color ['fuzz_markdown'] []
[] []
IPython [] []
functools [] []
rich.progress [] []
rich.live [] []
pickle [] []
rich.segment ['fuzz_markdown'] []
rich._unicode_data.unicode12-1-0 [] []
rich.cells ['fuzz_markdown'] []
rich._unicode_data.unicode12-0-0 [] []
rich.ansi ['fuzz_markdown'] []
fractions [] []
rich._palettes [] []
dataclasses [] []
rich._unicode_data.unicode5-2-0 [] []
rich._unicode_data.unicode16-0-0 [] []
rich._unicode_data.unicode11-0-0 [] []
rich._wrap ['fuzz_markdown'] []
rich._timer [] []
markdown_it [] []
rich._emoji_codes [] []
colorsys [] []
rich.terminal_theme [] []
rich.style ['fuzz_markdown'] []
sys [] []
json [] []
rich._unicode_data.unicode14-0-0 [] []
importlib [] []
rich.syntax ['fuzz_markdown'] []
rich.bar [] []
rich.box [] []
rich [] []
rich.filesize [] []
threading [] []
configparser [] []
platform [] []
rich._unicode_data.unicode15-1-0 [] []
attr [] []
ctypes [] []
bisect [] []
rich.table [] []
io [] []
rich.text ['fuzz_markdown'] []
html [] []

Directories in report

Directory