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

Fuzzer details

Fuzzer: fuzz_contrib

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 11 9.90%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 100 90.0%
All colors 111 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 66 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar.__init__ call site: 00066 prompt_toolkit.contrib.regular_languages.regex_parser.tokenize_regex
3 91 prompt_toolkit.contrib.regular_languages.regex_parser.parse_regex._parse call site: 00091 prompt_toolkit.contrib.regular_languages.regex_parser.parse_regex._parse
2 18 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar._transform.transform call site: 00018 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar._transform.transform
1 21 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar.__init__ call site: 00021 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar._transform_prefix
1 35 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar._transform_prefix.transform call site: 00035 prompt_toolkit.contrib.regular_languages.compiler._CompiledGrammar._transform_prefix.transform
1 75 prompt_toolkit.contrib.regular_languages.regex_parser.tokenize_regex call site: 00075 prompt_toolkit.contrib.regular_languages.regex_parser.parse_regex

Runtime coverage analysis

Covered functions
385
Functions that are reachable but not covered
26
Reachable functions
44
Percentage of reachable functions covered
40.91%
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_contrib 4
prompt_toolkit.contrib.regular_languages.compiler 22
prompt_toolkit.contrib.regular_languages.regex_parser 20

Fuzzer: fuzz_formatted_text

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 9 100.%
All colors 9 100

Runtime coverage analysis

Covered functions
386
Functions that are reachable but not covered
5
Reachable functions
6
Percentage of reachable functions covered
16.67%
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_formatted_text 5

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
prompt_toolkit.application.application.Application.run prompt_toolkit.application.application 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 5 4 5 186 1 587 572
prompt_toolkit.shortcuts.utils.print_formatted_text prompt_toolkit.shortcuts.utils 10 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 6 5 5 154 0 497 455
prompt_toolkit.key_binding.bindings.completion.display_completions_like_readline prompt_toolkit.key_binding.bindings.completion 1 ['N/A'] 7 0 5 4 5 168 2 549 391
prompt_toolkit.renderer.Renderer.render prompt_toolkit.renderer 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 12 14 9 117 1 403 274
prompt_toolkit.layout.processors.ReverseSearchProcessor.apply_transformation prompt_toolkit.layout.processors 2 ['N/A', 'N/A'] 8 0 0 2 4 94 0 301 156
prompt_toolkit.application.application.Application.__init__ prompt_toolkit.application.application 26 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 1 3 4 169 0 553 147
prompt_toolkit.layout.containers.Window._write_to_screen_at_index prompt_toolkit.layout.containers 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 6 2 4 71 0 239 124

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

Functions statically reachable by fuzzers
19.0%
389 / 2059
Cyclomatic complexity statically reachable by fuzzers
20.0%
1351 / 6706

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
t.cancel 32 15 46.87% []
prompt_toolkit.buffer.Buffer.__init__ 31 0 0.0% []
prompt_toolkit.buffer.Buffer._create_completer_coroutine.async_completer.refresh_while_loading 43 0 0.0% []
prompt_toolkit.completion.filesystem.PathCompleter.get_completions 32 2 6.25% []
prompt_toolkit.application.application.Application.__init__ 59 0 0.0% []
prompt_toolkit.renderer._output_screen_diff.get_max_column_index 51 4 7.843% []
prompt_toolkit.renderer.Renderer.render 57 0 0.0% []
prompt_toolkit.key_binding.key_processor.KeyProcessor._process 33 0 0.0% []
prompt_toolkit.styles.style._parse_style_str 54 8 14.81% []
prompt_toolkit.layout.layout.Layout.focus 35 0 0.0% []
prompt_toolkit.key_binding.bindings.basic.load_basic_bindings 92 0 0.0% []
prompt_toolkit.shortcuts.prompt.PromptSession.__init__ 46 0 0.0% []
prompt_toolkit.shortcuts.prompt.PromptSession.prompt 81 0 0.0% []
prompt_toolkit.shortcuts.prompt.PromptSession.prompt_async 81 0 0.0% []
prompt_toolkit.layout.containers.FloatContainer._draw_float 64 0 0.0% []
prompt_toolkit.layout.containers.Window._copy_body.copy_line 59 0 0.0% []
wcwidth.wcwidth 101 20 19.80% []
prompt_toolkit.widgets.base.TextArea.__init__ 32 2 6.25% []
prompt_toolkit.document.Document.paste_clipboard_data 31 0 0.0% []
prompt_toolkit.layout.menus.MultiColumnCompletionMenuControl.create_content.is_current_completion 39 0 0.0% []
prompt_toolkit.layout.controls.UIContent.get_height_for_line 31 2 6.451% []
prompt_toolkit.layout.controls.BufferControl.mouse_handler 31 0 0.0% []
prompt_toolkit.layout.scrollable_pane.ScrollablePane.write_to_screen 36 0 0.0% []
prompt_toolkit.key_binding.bindings.emacs.load_emacs_bindings._esc 34 0 0.0% []
prompt_toolkit.key_binding.bindings.mouse.load_mouse_bindings._ 33 0 0.0% []
prompt_toolkit.widgets.menus.MenuContainer._submenu.get_text_fragments.one_item.mouse_handler 31 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
[] []
[] []
contextlib [] []
...fuzz_contrib ['fuzz_contrib'] []
ctypes [] []
prompt_toolkit.eventloop.utils [] []
prompt_toolkit.contrib.regular_languages.lexer [] []
prompt_toolkit.filters.app [] []
codecs [] []
re [] []
prompt_toolkit.contrib.completers [] []
threading [] []
prompt_toolkit.contrib.telnet.protocol [] []
prompt_toolkit.filters.base [] []
prompt_toolkit.keys [] []
string [] []
prompt_toolkit.clipboard.pyperclip [] []
queue [] []
bisect [] []
prompt_toolkit.styles.named_colors [] []
prompt_toolkit.layout.utils [] []
prompt_toolkit.eventloop.win32 [] []
prompt_toolkit.key_binding.bindings.vi [] []
prompt_toolkit.shortcuts.utils [] []
prompt_toolkit.contrib.regular_languages.validation [] []
prompt_toolkit.contrib.regular_languages.regex_parser ['fuzz_contrib'] []
prompt_toolkit.mouse_events [] []
prompt_toolkit.lexers [] []
prompt_toolkit.clipboard [] []
prompt_toolkit.contrib.ssh.server [] []
prompt_toolkit.key_binding.bindings.emacs [] []
datetime [] []
prompt_toolkit.input.vt100 [] []
prompt_toolkit.layout.scrollable_pane [] []
prompt_toolkit.widgets.menus [] []
prompt_toolkit.widgets.toolbars [] []
prompt_toolkit.input.ansi_escape_sequences [] []
prompt_toolkit.formatted_text.html [] []
socket [] []
prompt_toolkit.cursor_shapes [] []
struct [] []
prompt_toolkit.output.plain_text [] []
prompt_toolkit.data_structures [] []
prompt_toolkit.application.application [] []
shutil [] []
select [] []
prompt_toolkit.input.base [] []
prompt_toolkit.widgets.dialogs [] []
prompt_toolkit.output.conemu [] []
prompt_toolkit.input.typeahead [] []
prompt_toolkit.output.win32 [] []
prompt_toolkit.output.flush_stdout [] []
prompt_toolkit.shortcuts.progress_bar.base [] []
prompt_toolkit.input.posix_pipe [] []
prompt_toolkit.input.vt100_parser [] []
prompt_toolkit.utils [] []
prompt_toolkit.styles.style [] []
prompt_toolkit.output [] []
prompt_toolkit.styles.base [] []
prompt_toolkit.formatted_text.pygments [] []
prompt_toolkit.key_binding.emacs_state [] []
prompt_toolkit.completion [] []
prompt_toolkit.input.win32_pipe [] []
prompt_toolkit.output.defaults [] []
prompt_toolkit.layout.menus [] []
prompt_toolkit.shortcuts.progress_bar [] []
prompt_toolkit.document [] []
weakref [] []
prompt_toolkit.search [] []
typing [] []
prompt_toolkit.lexers.pygments [] []
prompt_toolkit.output.color_depth [] []
termios [] []
prompt_toolkit.contrib.regular_languages [] []
prompt_toolkit.application [] []
sys [] []
selectors [] []
prompt_toolkit.clipboard.base [] []
prompt_toolkit.layout.controls [] []
prompt_toolkit.buffer [] []
prompt_toolkit.styles [] []
prompt_toolkit.log [] []
prompt_toolkit.enums [] []
prompt_toolkit.key_binding.bindings [] []
prompt_toolkit.shortcuts.dialogs [] []
prompt_toolkit.completion.base [] []
prompt_toolkit.key_binding.bindings.named_commands [] []
prompt_toolkit.filters.cli [] []
prompt_toolkit.contrib.completers.system [] []
prompt_toolkit.layout.margins [] []
os [] []
prompt_toolkit.key_binding.bindings.completion [] []
contextvars [] []
prompt_toolkit.styles.style_transformation [] []
traceback [] []
xml [] []
prompt_toolkit.application.dummy [] []
prompt_toolkit.key_binding.key_processor [] []
collections [] []
prompt_toolkit.token [] []
colorsys [] []
prompt_toolkit.contrib.telnet.log [] []
asyncio [] []
inspect [] []
itertools [] []
prompt_toolkit.key_binding.bindings.basic [] []
msvcrt [] []
prompt_toolkit.layout.dimension [] []
math [] []
prompt_toolkit.key_binding.bindings.scroll [] []
prompt_toolkit.selection [] []
signal [] []
prompt_toolkit.key_binding.bindings.search [] []
prompt_toolkit.widgets [] []
prompt_toolkit.clipboard.in_memory [] []
prompt_toolkit.styles.defaults [] []
prompt_toolkit.key_binding.vi_state [] []
prompt_toolkit.layout [] []
prompt_toolkit.layout.mouse_handlers [] []
prompt_toolkit.key_binding.digraphs [] []
prompt_toolkit.completion.word_completer [] []
prompt_toolkit.eventloop [] []
prompt_toolkit.contrib.telnet [] []
prompt_toolkit.filters.utils [] []
prompt_toolkit.application.current [] []
prompt_toolkit.contrib [] []
pdb [] []
prompt_toolkit.validation [] []
prompt_toolkit.contrib.regular_languages.compiler ['fuzz_contrib'] []
prompt_toolkit.formatted_text.base [] []
prompt_toolkit.key_binding.bindings.cpr [] []
prompt_toolkit.eventloop.async_generator [] []
asyncssh [] []
prompt_toolkit.input.defaults [] []
prompt_toolkit.filters [] []
prompt_toolkit.cache [] []
pyperclip [] []
prompt_toolkit.key_binding.key_bindings [] []
atheris [] []
prompt_toolkit.layout.processors [] []
prompt_toolkit.widgets.base [] []
prompt_toolkit.key_binding.bindings.page_navigation [] []
prompt_toolkit.lexers.base [] []
prompt_toolkit.output.windows10 [] []
prompt_toolkit.layout.screen [] []
prompt_toolkit.key_binding.bindings.mouse [] []
prompt_toolkit.formatted_text [] []
prompt_toolkit.input.win32 [] []
prompt_toolkit.output.vt100 [] []
prompt_toolkit.completion.filesystem [] []
prompt_toolkit.renderer [] []
prompt_toolkit.application.run_in_terminal [] []
prompt_toolkit.history [] []
prompt_toolkit.contrib.ssh [] []
prompt_toolkit.key_binding.bindings.open_in_editor [] []
prompt_toolkit.layout.dummy [] []
prompt_toolkit.contrib.telnet.server [] []
prompt_toolkit.auto_suggest [] []
prompt_toolkit.shortcuts [] []
prompt_toolkit.shortcuts.prompt [] []
prompt_toolkit.formatted_text.ansi [] []
prompt_toolkit.input.posix_utils [] []
prompt_toolkit.input [] []
prompt_toolkit.layout.layout [] []
prompt_toolkit.key_binding.bindings.auto_suggest [] []
prompt_toolkit.eventloop.inputhook [] []
prompt_toolkit.output.base [] []
prompt_toolkit.win32_types [] []
prompt_toolkit.layout.containers [] []
prompt_toolkit.shortcuts.progress_bar.formatters [] []
prompt_toolkit.key_binding.defaults [] []
prompt_toolkit.completion.fuzzy_completer [] []
prompt_toolkit.contrib.regular_languages.completion [] []
...fuzz_formatted_text ['fuzz_formatted_text'] []
wcwidth [] []
prompt_toolkit.patch_stdout [] []
prompt_toolkit.styles.pygments [] []
prompt_toolkit.key_binding [] []
prompt_toolkit [] []
functools [] []
prompt_toolkit.completion.nested [] []
prompt_toolkit.key_binding.bindings.focus [] []
logging [] []
prompt_toolkit.formatted_text.utils [] []
pygments [] []
subprocess [] []
shlex [] []
time [] []
prompt_toolkit.completion.deduplicate [] []

Directories in report

Directory