Warning:
The number of runtime covered functions are larger than the
number of reachable functions. This means that Fuzz Introspector found
there are more functions covered at runtime than what is considered
reachable based on the static analysis. This is a limitation in the
analysis as anything covered at runtime is by definition reachable by the
fuzzers.
This is likely due to a limitation in the static analysis. In this case, the
count of functions covered at runtime is the true value, which means this
is what should be considered "achieved" by the fuzzer.
Use the project functions table below to query all functions that were not covered at runtime.
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 | Fuzzers runtime hit | Func lines hit % | I Count | BB Count | Cyclomatic complexity | Functions reached | Reached by functions | Accumulated cyclomatic complexity | Undiscovered complexity |
---|
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 | 76 | 39.1% |
gold | [1:9] | 0 | 0.0% |
yellow | [10:29] | 0 | 0.0% |
greenyellow | [30:49] | 0 | 0.0% |
lawngreen | 50+ | 118 | 60.8% |
All colors | 194 | 100 |
The following nodes represent call sites where fuzz blockers occur.
Amount of callsites blocked | Calltree index | Parent function | Callsite | Largest blocked function |
---|---|---|---|---|
17 | 108 | tomlkit._compat.decode | call site: 00108 | contextlib.suppress |
10 | 31 | tomlkit.items.item | call site: 00031 | collections.abc.MutableSequence.items |
8 | 152 | tomlkit.items.item | call site: 00152 | tomlkit.items.Date.__init__ |
8 | 164 | tomlkit.items.Time.__init__ | call site: 00164 | datetime.datetime.isoformat |
7 | 93 | tomlkit.items.item | call site: 00093 | datetime.time.items |
7 | 144 | tomlkit.items.DateTime.__init__ | call site: 00144 | datetime.datetime.isoformat |
6 | 62 | tomlkit.items.AoT.__init__ | call site: 00062 | tomlkit.items.item |
3 | 43 | tomlkit.items.item | call site: 00043 |
|
3 | 175 | tomlkit.items.Array.as_string | call site: 00175 | v.value.as_string |
1 | 1 | ...fuzz_dumps.test_one_input | call site: 00001 | fdp.ConsumeInt |
1 | 24 | tomlkit.items.item | call site: 00024 |
|
1 | 50 | tomlkit.items.Table.append | call site: 00050 | tomlkit.items.item |
Function name | source code lines | source lines hit | percentage hit |
---|
filename | functions hit |
---|---|
/ | 1 |
...fuzz_dumps | 4 |
tomlkit.api | 17 |
tomlkit.items | 61 |
tomlkit._compat | 10 |
tomlkit._utils | 7 |
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 | 147 | 20.2% |
gold | [1:9] | 0 | 0.0% |
yellow | [10:29] | 0 | 0.0% |
greenyellow | [30:49] | 0 | 0.0% |
lawngreen | 50+ | 578 | 79.7% |
All colors | 725 | 100 |
The following nodes represent call sites where fuzz blockers occur.
Amount of callsites blocked | Calltree index | Parent function | Callsite | Largest blocked function |
---|---|---|---|---|
17 | 5 | tomlkit._compat.decode | call site: 00005 | contextlib.suppress |
12 | 444 | tomlkit.container.Container._replace_at | call site: 00444 | tomlkit.items.InlineTable.append |
11 | 413 | tomlkit.container.Container._replace_at | call site: 00413 | tomlkit.container.Container._insert_at |
10 | 254 | tomlkit.items.item | call site: 00254 | datetime.datetime.items |
8 | 327 | tomlkit.items.item | call site: 00327 | tomlkit.items.Date.__init__ |
8 | 339 | tomlkit.items.Time.__init__ | call site: 00339 | builtins.list.isoformat |
7 | 297 | tomlkit.items.item | call site: 00297 | datetime.datetime.items |
7 | 319 | tomlkit.items.DateTime.__init__ | call site: 00319 | builtins.list.isoformat |
6 | 272 | tomlkit.items.AoT.__init__ | call site: 00272 | tomlkit.items.item |
6 | 672 | tomlkit.parser.Parser._parse_table | call site: 00672 | tomlkit.items.Table.__init__ |
5 | 367 | tomlkit.container.Container.append | call site: 00367 |
|
4 | 407 | tomlkit.container.Container._replace_at | call site: 00407 | tomlkit.items.SingleKey.__init__ |
Function name | source code lines | source lines hit | percentage hit |
---|
filename | functions hit |
---|---|
/ | 1 |
...fuzz_parser | 4 |
tomlkit.parser | 100 |
tomlkit._compat | 10 |
tomlkit.source | 10 |
tomlkit.toml_char | 2 |
tomlkit.items | 65 |
tomlkit._utils | 18 |
tomlkit.container | 58 |
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
tomlkit.container.Container._render_table
|
tomlkit.container | 4 | ['N/A', 'N/A', 'N/A', 'N/A'] | 4 | 0 | 0 | 9 | 7 | 24 | 4 | 86 | 44 |
Implementing fuzzers that target the above functions will improve reachability such that it becomes:
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 |
---|
This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.
Use this with the libFuzzer -dict=DICT.file flag
Use one of these functions as input to libfuzzer with flag: -focus_function name
-focus_function=['tomlkit._compat.decode', 'tomlkit.items.item', 'tomlkit.items.Time.__init__', 'tomlkit.items.DateTime.__init__', 'tomlkit.items.AoT.__init__', 'tomlkit.items.Array.as_string', '...fuzz_dumps.test_one_input']
Use this with the libFuzzer -dict=DICT.file flag
Use one of these functions as input to libfuzzer with flag: -focus_function name
-focus_function=['tomlkit._compat.decode', 'tomlkit.container.Container._replace_at', 'tomlkit.items.item', 'tomlkit.items.Time.__init__', 'tomlkit.items.DateTime.__init__', 'tomlkit.items.AoT.__init__', 'tomlkit.parser.Parser._parse_table']
This section shows analysis of runtime coverage data.
For futher technical details on how this section is generated, please see the Glossary .
Func name | Function total lines | Lines covered at runtime | percentage covered | Reached by fuzzers |
---|---|---|---|---|
tomlkit.items.Array.add_line | 39 | 0 | 0.0% | [] |
tomlkit.container.Container._replace_at | 40 | 16 | 40.0% | ['fuzz_parser'] |
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
Source file | Reached by | Covered by |
---|---|---|
[] | [] | |
tomlkit.container | ['fuzz_parser'] | [] |
tomlkit | [] | [] |
tomlkit.toml_document | [] | [] |
tomlkit.toml_char | ['fuzz_parser'] | [] |
dictgen | [] | [] |
tomlkit._utils | ['fuzz_dumps', 'fuzz_parser'] | [] |
tomlkit.parser | ['fuzz_parser'] | [] |
tomlkit.toml_file | [] | [] |
atheris | [] | [] |
dictgen.utils | [] | [] |
collections | [] | [] |
|
[] | [] |
re | [] | [] |
typing | [] | [] |
tomlkit.source | ['fuzz_parser'] | [] |
...fuzz_parser | ['fuzz_parser'] | [] |
contextlib | [] | [] |
numbers | [] | [] |
tomlkit._compat | ['fuzz_dumps', 'fuzz_parser'] | [] |
datetime | [] | [] |
dataclasses | [] | [] |
abc | [] | [] |
tomlkit._types | [] | [] |
builtins | [] | [] |
copy | [] | [] |
random | [] | [] |
...fuzz_dumps | ['fuzz_dumps'] | [] |
dictgen.generate | [] | [] |
tomlkit.exceptions | [] | [] |
tomlkit.api | ['fuzz_dumps'] | [] |
tomlkit.items | ['fuzz_dumps', 'fuzz_parser'] | [] |
Directory |
---|
This sections shows the raw data that is used to produce this report. This is mainly used for further processing and developer debugging.
Fuzzer | Calltree file | Program data file | Coverage file |
---|---|---|---|
fuzz_dumps | fuzzerLogFile-fuzz_dumps.data | fuzzerLogFile-fuzz_dumps.data.yaml | all_cov.json |
fuzz_parser | fuzzerLogFile-fuzz_parser.data | fuzzerLogFile-fuzz_parser.data.yaml | all_cov.json |