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_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 106 95.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 5 4.50%
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
106 3 ...fuzz_contrib.TestOneInput call site: 00003 prompt_toolkit.contrib.regular_languages.compiler._compile_from_parse_tree

Runtime coverage analysis

Covered functions
353
Functions that are reachable but not covered
43
Reachable functions
44
Percentage of reachable functions covered
2.27%
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 1 11.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 88.8%
All colors 9 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 2 ...fuzz_formatted_text.fuzz_html call site: 00002 fdp.ConsumeUnicodeNoSurrogates

Runtime coverage analysis

Covered functions
354
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'] 7 0 5 4 5 188 1 593 578
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'] 7 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 169 2 552 391
prompt_toolkit.renderer.Renderer.render prompt_toolkit.renderer 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 12 14 9 120 1 412 283
prompt_toolkit.layout.processors.ReverseSearchProcessor.apply_transformation prompt_toolkit.layout.processors 2 ['N/A', 'N/A'] 7 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'] 4 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'] 5 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%
388 / 2068
Cyclomatic complexity statically reachable by fuzzers
20.0%
1348 / 6735

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
prompt_toolkit.application.application.Application.__init__ 59 0 0.0% []
prompt_toolkit.renderer._output_screen_diff.get_max_column_index 51 4 7.843% ['fuzz_formatted_text', 'fuzz_contrib']
prompt_toolkit.renderer.Renderer.render 57 0 0.0% []
prompt_toolkit.key_binding.key_processor.KeyProcessor._process 34 0 0.0% []
prompt_toolkit.styles.style._parse_style_str 54 8 14.81% ['fuzz_formatted_text', 'fuzz_contrib']
prompt_toolkit.buffer.Buffer.__init__ 32 0 0.0% []
prompt_toolkit.buffer.Buffer._create_completer_coroutine.async_completer.refresh_while_loading 46 0 0.0% []
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__ 48 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% []
prompt_toolkit.layout.controls.UIContent.get_height_for_line 31 2 6.451% ['fuzz_formatted_text', 'fuzz_contrib']
prompt_toolkit.layout.controls.BufferControl.mouse_handler 31 0 0.0% []
prompt_toolkit.completion.filesystem.PathCompleter.get_completions 32 2 6.25% ['fuzz_formatted_text', 'fuzz_contrib']
prompt_toolkit.widgets.base.TextArea.__init__ 32 2 6.25% ['fuzz_formatted_text', 'fuzz_contrib']
wcwidth.wcwidth 101 20 19.80% ['fuzz_formatted_text', 'fuzz_contrib']
prompt_toolkit.document.Document.paste_clipboard_data 31 0 0.0% []
prompt_toolkit.eventloop.async_generator.generator_to_async_generator.runner 32 0 0.0% []
prompt_toolkit.layout.menus.MultiColumnCompletionMenuControl.create_content.is_current_completion 39 0 0.0% []
prompt_toolkit.layout.scrollable_pane.ScrollablePane.write_to_screen 36 0 0.0% []
prompt_toolkit.widgets.menus.MenuContainer._submenu.get_text_fragments.one_item.mouse_handler 31 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% []

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
[] []
prompt_toolkit.styles.style [] []
xml [] []
prompt_toolkit.win32_types [] []
prompt_toolkit.layout.utils [] []
queue [] []
prompt_toolkit.contrib.regular_languages.completion [] []
prompt_toolkit.widgets.dialogs [] []
logging [] []
prompt_toolkit.shortcuts.progress_bar [] []
atheris [] []
math [] []
prompt_toolkit.eventloop [] []
prompt_toolkit.output.win32 [] []
prompt_toolkit.clipboard [] []
prompt_toolkit.shortcuts.dialogs [] []
prompt_toolkit.contrib.completers.system [] []
prompt_toolkit.input.defaults [] []
prompt_toolkit.key_binding.digraphs [] []
prompt_toolkit.widgets.toolbars [] []
prompt_toolkit.key_binding.bindings.vi [] []
typing [] []
[] []
prompt_toolkit.completion.deduplicate [] []
asyncio [] []
bisect [] []
...fuzz_formatted_text ['fuzz_formatted_text'] []
prompt_toolkit [] []
importlib [] []
traceback [] []
prompt_toolkit.key_binding.bindings.basic [] []
prompt_toolkit.key_binding.bindings.search [] []
contextlib [] []
prompt_toolkit.output.defaults [] []
prompt_toolkit.key_binding.bindings.scroll [] []
prompt_toolkit.key_binding.bindings.mouse [] []
prompt_toolkit.application [] []
prompt_toolkit.layout [] []
prompt_toolkit.output.windows10 [] []
itertools [] []
prompt_toolkit.utils [] []
pdb [] []
prompt_toolkit.key_binding.vi_state [] []
prompt_toolkit.key_binding.bindings.named_commands [] []
socket [] []
prompt_toolkit.lexers.pygments [] []
msvcrt [] []
prompt_toolkit.search [] []
prompt_toolkit.eventloop.utils [] []
colorsys [] []
prompt_toolkit.key_binding.emacs_state [] []
prompt_toolkit.input [] []
prompt_toolkit.widgets.menus [] []
prompt_toolkit.token [] []
prompt_toolkit.selection [] []
prompt_toolkit.contrib.telnet.log [] []
prompt_toolkit.layout.screen [] []
prompt_toolkit.widgets [] []
prompt_toolkit.lexers.base [] []
selectors [] []
pyperclip [] []
prompt_toolkit.shortcuts.progress_bar.formatters [] []
prompt_toolkit.layout.dummy [] []
prompt_toolkit.layout.controls [] []
prompt_toolkit.shortcuts [] []
shutil [] []
prompt_toolkit.key_binding.bindings [] []
prompt_toolkit.formatted_text.ansi [] []
prompt_toolkit.cursor_shapes [] []
prompt_toolkit.application.dummy [] []
datetime [] []
prompt_toolkit.shortcuts.progress_bar.base [] []
wcwidth [] []
prompt_toolkit.completion.nested [] []
prompt_toolkit.formatted_text.pygments [] []
asyncssh [] []
prompt_toolkit.styles.style_transformation [] []
functools [] []
prompt_toolkit.filters [] []
prompt_toolkit.key_binding.bindings.open_in_editor [] []
prompt_toolkit.contrib.telnet.server [] []
prompt_toolkit.eventloop.async_generator [] []
prompt_toolkit.widgets.base [] []
termios [] []
ctypes [] []
prompt_toolkit.history [] []
string [] []
prompt_toolkit.cache [] []
prompt_toolkit.completion.filesystem [] []
prompt_toolkit.key_binding.bindings.emacs [] []
prompt_toolkit.formatted_text.base [] []
prompt_toolkit.layout.containers [] []
prompt_toolkit.input.vt100_parser [] []
prompt_toolkit.key_binding.key_bindings [] []
os [] []
prompt_toolkit.contrib [] []
prompt_toolkit.key_binding.bindings.page_navigation [] []
prompt_toolkit.key_binding.bindings.completion [] []
prompt_toolkit.input.ansi_escape_sequences [] []
prompt_toolkit.layout.menus [] []
time [] []
prompt_toolkit.completion.base [] []
sys [] []
prompt_toolkit.shortcuts.prompt [] []
prompt_toolkit.completion.word_completer [] []
prompt_toolkit.input.posix_utils [] []
inspect [] []
prompt_toolkit.completion.fuzzy_completer [] []
prompt_toolkit.renderer [] []
pygments [] []
prompt_toolkit.contrib.regular_languages [] []
prompt_toolkit.key_binding.key_processor [] []
prompt_toolkit.styles.base [] []
prompt_toolkit.input.typeahead [] []
prompt_toolkit.clipboard.pyperclip [] []
prompt_toolkit.filters.cli [] []
prompt_toolkit.styles [] []
prompt_toolkit.contrib.ssh.server [] []
prompt_toolkit.layout.layout [] []
prompt_toolkit.patch_stdout [] []
prompt_toolkit.eventloop.inputhook [] []
prompt_toolkit.application.current [] []
prompt_toolkit.styles.defaults [] []
shlex [] []
contextvars [] []
prompt_toolkit.output.flush_stdout [] []
prompt_toolkit.output.conemu [] []
collections [] []
signal [] []
prompt_toolkit.filters.app [] []
prompt_toolkit.output [] []
prompt_toolkit.formatted_text.utils [] []
prompt_toolkit.contrib.telnet [] []
prompt_toolkit.application.application [] []
prompt_toolkit.output.vt100 [] []
prompt_toolkit.auto_suggest [] []
prompt_toolkit.clipboard.base [] []
re [] []
prompt_toolkit.layout.margins [] []
...fuzz_contrib ['fuzz_contrib'] []
prompt_toolkit.eventloop.win32 [] []
prompt_toolkit.filters.utils [] []
weakref [] []
prompt_toolkit.key_binding.bindings.auto_suggest [] []
prompt_toolkit.shortcuts.utils [] []
prompt_toolkit.contrib.regular_languages.lexer [] []
prompt_toolkit.input.vt100 [] []
prompt_toolkit.contrib.completers [] []
prompt_toolkit.layout.scrollable_pane [] []
prompt_toolkit.clipboard.in_memory [] []
prompt_toolkit.key_binding.defaults [] []
prompt_toolkit.layout.mouse_handlers [] []
prompt_toolkit.formatted_text [] []
prompt_toolkit.key_binding [] []
prompt_toolkit.output.plain_text [] []
prompt_toolkit.formatted_text.html [] []
subprocess [] []
prompt_toolkit.output.color_depth [] []
prompt_toolkit.enums [] []
prompt_toolkit.mouse_events [] []
prompt_toolkit.application.run_in_terminal [] []
codecs [] []
prompt_toolkit.data_structures [] []
prompt_toolkit.contrib.regular_languages.regex_parser ['fuzz_contrib'] []
struct [] []
prompt_toolkit.completion [] []
prompt_toolkit.key_binding.bindings.cpr [] []
prompt_toolkit.input.posix_pipe [] []
prompt_toolkit.input.base [] []
prompt_toolkit.contrib.telnet.protocol [] []
prompt_toolkit.filters.base [] []
prompt_toolkit.key_binding.bindings.focus [] []
prompt_toolkit.contrib.regular_languages.validation [] []
prompt_toolkit.keys [] []
prompt_toolkit.document [] []
threading [] []
prompt_toolkit.styles.pygments [] []
prompt_toolkit.input.win32 [] []
select [] []
prompt_toolkit.log [] []
prompt_toolkit.buffer [] []
prompt_toolkit.contrib.ssh [] []
prompt_toolkit.styles.named_colors [] []
prompt_toolkit.lexers [] []
prompt_toolkit.output.base [] []
prompt_toolkit.input.win32_pipe [] []
prompt_toolkit.contrib.regular_languages.compiler ['fuzz_contrib'] []
prompt_toolkit.layout.dimension [] []
prompt_toolkit.validation [] []
prompt_toolkit.layout.processors [] []

Directories in report

Directory