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

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 510 62.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 306 37.5%
All colors 816 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
79 213 rich.console.Console.render call site: 00213 rich.pretty.pretty_repr
52 363 rich.segment.Segment.split_and_crop_lines call site: 00363 rich.console.Console.render
33 129 rich.style.Style.__init__ call site: 00129 rich.style.Style.normalize
29 596 rich.table.Table.__init__ call site: 00596 rich.columns.Columns.__rich_console__.iter_renderables
20 416 rich.color.Color.from_triplet call site: 00416 rich.text.Text.with_indent_guides
19 539 rich.containers.Lines.justify call site: 00539 rich.text.Text.join
15 57 rich.text.Text.__init__ call site: 00057 rich.markup._parse
14 481 rich.text.Text.expand_tabs call site: 00481 rich.text.Text.split
13 185 rich.console.Console._collect_renderables call site: 00185 rich.console.Console._collect_renderables.check_text
12 686 rich.text.Text.stylize call site: 00686 rich.syntax.Syntax._apply_stylized_ranges
12 716 rich.markdown.Markdown.__rich_console__ call site: 00716 rich.markdown.MarkdownContext.on_text
10 17 rich.console.detect_legacy_windows call site: 00017 rich._windows.get_windows_console_features

Runtime coverage analysis

Covered functions
393
Functions that are reachable but not covered
222
Reachable functions
325
Percentage of reachable functions covered
31.69%
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 6
rich.markdown 32
rich.console 71
rich._windows 4
rich._win32_console 3
rich.protocol 9
rich.markup 28
rich.text 60
rich._emoji_replace 1
rich.style 21
rich.color 12
rich._loop 2
rich.pretty 50
rich.cells 9
rich.layout 15
rich.segment 8
rich.ansi 26
rich._pick 1
rich.containers 18
rich._wrap 9
rich.columns 20
rich.padding 4
rich.measure 7
rich.table 6
rich.syntax 33
rich.constrain 3
rich.panel 19
rich.control 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'] 4 0 2 3 4 65 0 216 183
rich.table.Table.__rich_console__ rich.table 3 ['N/A', 'N/A', 'N/A'] 8 0 4 4 5 126 0 431 134
rich.logging.RichHandler.emit rich.logging 2 ['N/A', 'N/A'] 7 0 4 4 5 126 0 417 113
rich.traceback.Traceback.__rich_console__ rich.traceback 3 ['N/A', 'N/A', 'N/A'] 6 0 7 5 5 113 0 368 94
rich.console.Console.export_svg rich.console 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 4 7 6 58 1 194 75
rich._inspect.Inspect._render rich._inspect 1 ['N/A'] 6 0 19 16 9 96 1 319 71
rich.progress.Progress.track rich.progress 6 ['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'] 7 0 1 2 4 81 0 271 55
rich.syntax.Syntax._get_syntax rich.syntax 3 ['N/A', 'N/A', 'N/A'] 8 0 13 13 8 105 1 350 49
rich.live.Live.start rich.live 2 ['N/A', 'N/A'] 4 0 8 4 5 24 6 84 40

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

Functions statically reachable by fuzzers
32.0%
271 / 846
Cyclomatic complexity statically reachable by fuzzers
35.0%
1022 / 2884

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

Directories in report

Directory