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_lexer

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

Runtime coverage analysis

Covered functions
87
Functions that are reachable but not covered
11
Reachable functions
14
Percentage of reachable functions covered
21.43%
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_lexer 4
babel.messages.jslexer 9

Fuzzer: fuzz_profile

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 36 46.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 41 53.2%
All colors 77 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
8 64 babel.messages.pofile.PoFileParser._process_comment call site: 00064 babel.messages.pofile._extract_locations
7 30 babel.messages.pofile.PoFileParser._add_message call site: 00030 babel.messages.pofile.PoFileParser._invalid_pofile
4 5 babel.messages.catalog.Catalog.__init__ call site: 00005 .isinstance
4 57 babel.messages.pofile.PoFileParser._process_keyword_line call site: 00057 babel.messages.pofile._NormalizedString.__init__
3 26 babel.messages.pofile.PoFileParser._process_keyword_line call site: 00026 babel.messages.pofile.PoFileParser._finish_current_message
3 47 babel.messages.catalog.Message.__init__ call site: 00047 babel.messages.catalog.Catalog._key_for
2 15 babel.messages.pofile.PoFileParser.parse call site: 00015 babel.messages.pofile.PoFileParser._process_message_line
2 22 babel.messages.pofile.PoFileParser._invalid_pofile call site: 00022 line.strip
1 38 babel.messages.pofile.PoFileParser._add_message call site: 00038 .map
1 52 babel.messages.pofile.PoFileParser._add_message call site: 00052 babel.messages.pofile._NormalizedString.__init__
1 55 babel.messages.pofile._NormalizedString.__init__ call site: 00055 babel.messages.pofile._NormalizedString.__init__

Runtime coverage analysis

Covered functions
86
Functions that are reachable but not covered
32
Reachable functions
49
Percentage of reachable functions covered
34.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_profile 3
babel.messages.pofile 39
babel.messages.catalog 7

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
babel.dates.DateTimeFormat.__getitem__ babel.dates 2 ['N/A', 'N/A'] 7 0 0 21 11 96 0 350 332
babel.messages.frontend.ExtractMessages.run babel.messages.frontend 1 ['N/A'] 4 0 3 2 4 112 0 374 313
babel.units.format_compound_unit babel.units 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 9 0 1 8 6 93 0 316 187
babel.dates.format_interval babel.dates 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 9 0 1 5 5 92 0 320 124
babel.messages.frontend.UpdateCatalog.run babel.messages.frontend 1 ['N/A'] 5 0 14 8 6 114 0 386 117
babel.messages.extract.extract_python babel.messages.extract 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 15 32 16 34 0 122 95
babel.plural.PluralRule.__init__ babel.plural 2 ['N/A', 'N/A'] 4 0 3 4 5 32 6 108 81
babel.messages.extract.extract_javascript babel.messages.extract 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 9 26 13 35 2 137 80
babel.messages.frontend.CommandLineInterface.run babel.messages.frontend 2 ['N/A', 'N/A'] 4 0 10 4 5 63 2 211 79
babel.messages.frontend.CompileCatalog._run_domain babel.messages.frontend 2 ['N/A', 'N/A'] 4 0 5 5 5 68 1 231 56

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

Functions statically reachable by fuzzers
37.0%
179 / 479
Cyclomatic complexity statically reachable by fuzzers
43.0%
748 / 1758

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
[] []
functools [] []
locale [] []
optparse [] []
typing [] []
babel.messages.mofile [] []
logging [] []
babel.numbers [] []
babel.plural [] []
babel.messages.checkers [] []
babel.messages.frontend [] []
babel.support [] []
babel.messages [] []
copy [] []
pkg_resources [] []
babel.units [] []
babel.localtime._helpers [] []
datetime [] []
...fuzz_profile ['fuzz_profile'] []
collections [] []
string [] []
[] []
email [] []
babel.dates [] []
babel.messages.plurals [] []
decimal [] []
pytz [] []
babel.messages._compat [] []
babel.lists [] []
tomllib [] []
tokenize [] []
textwrap [] []
babel [] []
fnmatch [] []
struct [] []
tempfile [] []
babel.util [] []
babel.localtime._fallback [] []
babel.localtime._unix [] []
os [] []
zoneinfo [] []
importlib [] []
difflib [] []
babel.localtime [] []
time [] []
heapq [] []
babel.messages.setuptools_frontend [] []
babel.messages.catalog ['fuzz_profile'] []
io [] []
babel.localtime._win32 [] []
re [] []
ast [] []
shutil [] []
atheris [] []
gettext [] []
tomli [] []
sys [] []
babel.messages.jslexer ['fuzz_lexer'] []
babel.messages.pofile ['fuzz_profile'] []
babel.localedata [] []
warnings [] []
pickle [] []
winreg [] []
...fuzz_lexer ['fuzz_lexer'] []
babel.messages.extract [] []
configparser [] []
itertools [] []
array [] []
threading [] []
babel.languages [] []
pathlib [] []
babel.core [] []

Directories in report

Directory