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_parse

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 1079 71.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 438 28.8%
All colors 1517 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
105 789 pyparsing.core.SkipTo._update_ignorer call site: 00789 pyparsing.core.ParserElement.matches
97 451 pyparsing.core.CharsNotIn.__init__ call site: 00451 pyparsing.helpers.match_previous_literal.copy_token_to_repeater
96 1083 pyparsing.util.replaced_by_pep8._inner call site: 01083 pyparsing.core.token_map.pa
58 1210 pyparsing.util.replaced_by_pep8._inner call site: 01210 pyparsing.core.ParserElement.split
57 1286 pyparsing.core.ParseExpression.leave_whitespace call site: 01286 pyparsing.core.ParserElement.search_string
48 739 pyparsing.util.replaced_by_pep8._inner call site: 00739 pyparsing.core.token_map.pa
47 563 pyparsing.util.replaced_by_pep8._inner call site: 00563 pyparsing.core.token_map.pa
39 250 pyparsing.core.ParserElement._parseNoCache call site: 00250 pyparsing.core.ParserElement._parseNoCache
33 148 pyparsing.core.Word.parseImpl_regex call site: 00148 pyparsing.core.token_map.pa
28 925 pyparsing.helpers._makeTags call site: 00925 pyparsing.core.token_map.pa
27 974 pyparsing.helpers._makeTags call site: 00974 pyparsing.core.token_map.pa
26 418 pyparsing.util.replaced_by_pep8._inner call site: 00418 pyparsing.helpers.match_previous_literal.copy_token_to_repeater

Runtime coverage analysis

Covered functions
233
Functions that are reachable but not covered
242
Reachable functions
302
Percentage of reachable functions covered
19.87%
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_parse 29
pyparsing.tools.cvt_pyparsing_pep8_names 3
pyparsing.helpers 78
pyparsing.util 59
pyparsing.core 203
pyparsing.results 4
pyparsing.actions 3
pyparsing.exceptions 1
pyparsing.testing 23

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
pyparsing.diagram.to_railroad pyparsing.diagram 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 42 0 5 5 5 325 1 1070 114
pyparsing.testing.pyparsing_test.reset_pyparsing_context.restore pyparsing.testing 1 ['N/A'] 4 0 5 2 4 20 1 66 45
pyparsing.core.Each.parseImpl pyparsing.core 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 10 8 6 23 0 78 42
pyparsing.results.ParseResults.dump pyparsing.results 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 9 7 6 19 1 66 39
pyparsing.core.Word.__init__ pyparsing.core 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 1 20 11 21 0 76 37

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

Functions statically reachable by fuzzers
30.0%
142 / 476
Cyclomatic complexity statically reachable by fuzzers
32.0%
539 / 1679

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

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
[] []
[] []
pyparsing.testing ['fuzz_parse'] []
abc [] []
pyparsing.tools [] []
threading [] []
contextlib [] []
warnings [] []
datetime [] []
typing [] []
pyparsing [] []
traceback [] []
pyparsing.diagram [] []
operator [] []
argparse [] []
pathlib [] []
pyparsing.unicode [] []
unittest [] []
pyparsing.exceptions ['fuzz_parse'] []
inspect [] []
itertools [] []
importlib [] []
sys [] []
pyparsing.actions ['fuzz_parse'] []
pyparsing.common [] []
io [] []
railroad [] []
pyparsing.ai.show_best_practices.__main__ [] []
pyparsing.tools.cvt_pyparsing_pep8_names ['fuzz_parse'] []
core_builtin_exprs [] []
collections [] []
pyparsing.ai [] []
pyparsing.ai.show_best_practices [] []
os [] []
pyparsing.helpers ['fuzz_parse'] []
jinja2 [] []
...fuzz_parse ['fuzz_parse'] []
types [] []
atheris [] []
functools [] []
pyparsing.results ['fuzz_parse'] []
re [] []
pyparsing.core ['fuzz_parse'] []
difflib [] []
pyparsing.util ['fuzz_parse'] []

Directories in report

Directory