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

Fuzzer details

Fuzzer: fuzz_script

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+ 3 100.%
All colors 3 100

Runtime coverage analysis

Covered functions
265
Functions that are reachable but not covered
3
Reachable functions
3
Percentage of reachable functions covered
0.0%
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_script 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
jedi.api.helpers.validate_line_column.wrapper jedi.api.helpers 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 125 0 0 4 5 1105 0 3669 3669
jedi.api.Script.__init__ jedi.api 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 4 4 5 124 1 394 229
jedi.api.refactoring.extract.extract_function jedi.api.refactoring.extract 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 2 0 1 11 7 51 0 176 134
jedi.inference.compiled.mixed.MixedName.infer jedi.inference.compiled.mixed 1 ['N/A'] 126 0 0 2 4 798 2 2612 97
jedi.inference.star_args.process_params jedi.inference.star_args 2 ['N/A', 'N/A'] 125 0 23 27 14 836 6 2758 91
jedi.plugins.pytest.infer_anonymous_param.wrapper jedi.plugins.pytest 1 ['N/A'] 125 0 0 3 4 811 0 2653 82
jedi.inference.names.AnonymousParamName.infer jedi.inference.names 1 ['N/A'] 126 0 0 5 5 832 0 2728 77

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

Functions statically reachable by fuzzers
47.0%
1245/2645
Cyclomatic complexity statically reachable by fuzzers
48.6%
4155 / 8546

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
jedi.inference.context.AbstractContext.py__getattribute__ 33 0 0.0% []
jedi.api.completion.Completion._complete_python 69 0 0.0% []
jedi.inference.helpers.infer_call_of_leaf 33 0 0.0% []
jedi.inference.names.AbstractTreeName.goto 56 0 0.0% []
jedi.api.file_name._add_os_path_join.check 42 0 0.0% []
jedi.inference.value.dynamic_arrays._internal_check_array_additions.find_additions 42 0 0.0% []
jedi.inference.compiled.mixed._find_syntax_node_name 40 0 0.0% []
jedi.inference.analysis._check_for_exception_catch.check_hasattr 32 0 0.0% []
jedi.inference.gradual.typing.TypingModuleName._remap 34 2 5.882% []
jedi.inference.syntax_tree.infer_node 46 0 0.0% []
jedi.inference.syntax_tree._infer_node 58 0 0.0% []
jedi.inference.syntax_tree.infer_atom 52 0 0.0% []
jedi.inference.syntax_tree._infer_comparison_part 38 0 0.0% []
jedi.inference.syntax_tree.tree_name_to_values 70 0 0.0% []
jedi.inference.param.get_executed_param_names_and_issues.too_many_args 84 0 0.0% []
jedi.inference.value.function.BaseFunctionExecutionContext.get_yield_lazy_values 31 0 0.0% []
x.name.lower 64 23 35.93% []
jedi.inference.gradual.typeshed._try_to_load_stub 42 0 0.0% []
parso.cache.parser_cache.clear 141 54 38.29% []
jedi.api.helpers.CallDetails.calculate_index 37 0 0.0% []
jedi.api.helpers._iter_arguments.remove_after_pos 51 0 0.0% []
parso.python.tree.PythonNode 645 301 46.66% []
jedi.api.project.Project._search_func 38 0 0.0% []
jedi.inference.references.find_references 34 0 0.0% []
jedi.api.refactoring.extract._find_nodes 31 0 0.0% []
jedi.api.refactoring.extract.extract_function 49 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
[] []
jedi.inference.param [] []
inspect [] []
jedi.inference.compiled.subprocess [] []
jedi.plugins [] []
jedi.inference.references [] []
jedi.inference.compiled.subprocess.functions [] []
[] []
jedi.api.project [] []
jedi.inference.parser_cache [] []
jedi.inference.compiled.getattr_static [] []
subprocess [] []
jedi.inference.value [] []
jedi.inference.filters [] []
numpydoc [] []
jedi.file_io [] []
jedi.inference.value.dynamic_arrays [] []
jedi [] []
contextlib [] []
...fuzz_script ['fuzz_script'] []
jedi.inference.context [] []
hashlib [] []
jedi.api.replstartup [] []
jedi.inference.value.function [] []
json [] []
colorama [] []
jedi.api.errors [] []
atheris [] []
jedi.plugins.django [] []
jedi.inference.helpers [] []
pickle [] []
jedi.inference.sys_path [] []
jedi.inference.gradual.typing [] []
jedi.inference.value.decorator [] []
traceback [] []
pdb [] []
jedi.inference.names [] []
jedi.inference.compiled.mixed [] []
jedi.inference.gradual.annotation [] []
logging [] []
jedi.utils [] []
jedi.inference.cache [] []
jedi.api.refactoring.extract [] []
jedi.inference.value.module [] []
jedi.api.keywords [] []
pkg_resources [] []
jedi.inference.compiled.subprocess.__main__ [] []
jedi.inference.base_value [] []
parso [] []
zipfile [] []
jedi.api.helpers [] []
jedi.inference [] []
jedi.inference.gradual.type_var [] []
readline [] []
jedi.plugins.stdlib [] []
jedi.api.file_name [] []
jedi.inference.utils [] []
jedi.inference.lazy_value [] []
jedi.api.refactoring [] []
jedi.api.classes [] []
ast [] []
jedi.api.completion [] []
pydoc [] []
jedi.inference.gradual [] []
jedi.api.completion_cache [] []
winreg [] []
jedi.inference.imports [] []
jedi.parser_utils [] []
jedi.plugins.pytest [] []
os [] []
jedi.inference.value.klass [] []
jedi.debug [] []
jedi.inference.compiled [] []
weakref [] []
jedi.inference.docstring_utils [] []
copy [] []
jedi.inference.syntax_tree [] []
threading [] []
jedi.cache [] []
jedi.inference.value.iterable [] []
jedi.inference.flow_analysis [] []
jedi.api [] []
jedi.inference.docstrings [] []
re [] []
platform [] []
difflib [] []
typing [] []
jedi.plugins.registry [] []
jedi.inference.value.instance [] []
jedi.inference.compiled.access [] []
jedi.inference.signature [] []
jedi.api.environment [] []
jedi.inference.gradual.conversion [] []
jedi.inference.analysis [] []
jedi.plugins.flask [] []
jedi.api.interpreter [] []
importlib [] []
itertools [] []
jedi._compatibility [] []
jedi.common [] []
jedi.inference.gradual.stub_value [] []
collections [] []
jedi.inference.arguments [] []
jedi.inference.gradual.utils [] []
jedi.inference.gradual.typeshed [] []
zipimport [] []
jedi.inference.compiled.value [] []
fnmatch [] []
jedi.inference.dynamic_params [] []
jedi.inference.finder [] []
jedi.api.exceptions [] []
jedi.inference.gradual.base [] []
queue [] []
warnings [] []
jedi.inference.star_args [] []
jedi.inference.recursion [] []
jedi.settings [] []
jedi.inference.gradual.generics [] []
pathlib [] []
functools [] []
sys [] []
shutil [] []
time [] []
jedi.inference.value.namespace [] []
jedi.__main__ [] []
jedi.api.strings [] []
textwrap [] []

Directories in report

Directory