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_tzinfo

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 7 53.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 6 46.1%
All colors 13 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
7 5 arrow.parser.TzinfoParser.parse call site: 00005 dateutil.tz.tzutc

Runtime coverage analysis

Covered functions
29
Functions that are reachable but not covered
11
Reachable functions
12
Percentage of reachable functions covered
8.33%
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_tzinfo 4
arrow.parser 7

Fuzzer: fuzz_datetime

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 103 88.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 14 11.9%
All colors 117 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
35 12 arrow.parser.DateTimeParser.parse_iso call site: 00012 arrow.parser.DateTimeParser._parse_multiformat
18 82 arrow.parser.DateTimeParser._build_datetime call site: 00082 arrow.util.next_weekday
16 53 arrow.parser.DateTimeParser._parse_token call site: 00053 arrow.parser.TzinfoParser.parse
11 70 arrow.parser.TzinfoParser.parse call site: 00070 arrow.parser.DateTimeParser._build_datetime
8 108 arrow.parser.DateTimeParser._build_datetime call site: 00108 datetime.timedelta
4 4 ...fuzz_datetime.TestOneInput call site: 00004 arrow.locales.get_locale
4 48 arrow.parser.DateTimeParser._parse_token call site: 00048 .int
2 9 ...fuzz_datetime.TestOneInput call site: 00009 datetime_string.strip
2 103 arrow.parser.DateTimeParser._build_datetime call site: 00103 parts.get
1 2 ...fuzz_datetime.TestOneInput call site: 00002 fdp.ConsumeIntInRange
1 101 arrow.util.next_weekday call site: 00101 dateutil.rrule.rrule
1 106 arrow.parser.DateTimeParser._build_datetime call site: 00106 parts.get

Runtime coverage analysis

Covered functions
30
Functions that are reachable but not covered
52
Reachable functions
56
Percentage of reachable functions covered
7.14%
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_datetime 5
arrow.parser 47
arrow.locales 2
arrow.util 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
arrow.arrow.Arrow.span arrow.arrow 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 3 8 6 42 2 145 100
arrow.arrow.Arrow.dehumanize arrow.arrow 3 ['N/A', 'N/A', 'N/A'] 4 0 1 9 7 39 0 128 64
arrow.arrow.Arrow.humanize arrow.arrow 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 2 0 1 32 16 21 0 80 50
arrow.formatter.DateTimeFormatter._format_token arrow.formatter 3 ['N/A', 'N/A', 'N/A'] 1 0 0 35 17 14 1 59 47
arrow.factory.ArrowFactory.get arrow.factory 3 ['N/A', 'N/A', 'N/A'] 4 0 1 23 12 70 1 251 41

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

Functions statically reachable by fuzzers
20.0%
31 / 157
Cyclomatic complexity statically reachable by fuzzers
28.9%
169 / 588

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