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 | 77 | 21.8% |
gold | [1:9] | 4 | 1.13% |
yellow | [10:29] | 3 | 0.84% |
greenyellow | [30:49] | 2 | 0.56% |
lawngreen | 50+ | 267 | 75.6% |
All colors | 353 | 100 |
The followings are the branches where fuzzer fails to bypass.
Unique non-covered Complexity | Unique Reachable Complexities | Unique Reachable Functions | All non-covered Complexity | All Reachable Complexity | Function Name | Function Callsite | Blocked Branch |
---|---|---|---|---|---|---|---|
17 | 17 |
1 :
['write_tag_blockout'] |
17 | 17 | WavpackWriteTag | call site: 00343 | /src/wavpack/src/tag_utils.c:228 |
6 | 6 |
3 :
['pthread_cond_wait', 'pthread_mutex_unlock', 'pthread_mutex_lock'] |
6 | 6 | worker_threads_finish | call site: 00298 | /src/wavpack/src/unpack_utils.c:565 |
2 | 64 |
2 :
['strcpy', 'WavpackCloseFile'] |
2 | 64 | WavpackOpenFileInputEx64 | call site: 00114 | /src/wavpack/src/open_utils.c:207 |
2 | 2 |
1 :
['strncpy'] |
2 | 2 | get_id3_tag_item | call site: 00197 | /src/wavpack/src/tag_utils.c:313 |
2 | 2 |
1 :
['strncpy'] |
2 | 2 | get_id3_tag_item_indexed | call site: 00176 | /src/wavpack/src/tag_utils.c:396 |
0 | 47 |
1 :
['find_sample'] |
78 | 2761 | WavpackSeekSample64 | call site: 00316 | /src/wavpack/src/unpack_seek.c:77 |
0 | 5 |
1 :
['WavpackLittleEndianToNative'] |
78 | 2647 | WavpackSeekSample64 | call site: 00323 | /src/wavpack/src/unpack_seek.c:115 |
0 | 0 | None | 182 | 2223 | WavpackUnpackSamples | call site: 00219 | /src/wavpack/src/unpack_utils.c:117 |
0 | 0 | None | 182 | 2223 | WavpackUnpackSamples | call site: 00276 | /src/wavpack/src/unpack_utils.c:156 |
0 | 0 | None | 182 | 2223 | WavpackUnpackSamples | call site: 00277 | /src/wavpack/src/unpack_utils.c:178 |
0 | 0 | None | 182 | 2223 | WavpackUnpackSamples | call site: 00283 | /src/wavpack/src/unpack_utils.c:273 |
0 | 0 | None | 182 | 2223 | WavpackUnpackSamples | call site: 00284 | /src/wavpack/src/unpack_utils.c:278 |
Function name | source code lines | source lines hit | percentage hit |
---|
filename | functions hit |
---|---|
fuzzing/fuzzer.cc | 1 |
src/common_utils.c | 35 |
src/open_utils.c | 26 |
src/tags.c | 4 |
src/unpack_dsd.c | 12 |
src/decorr_utils.c | 4 |
src/entropy_utils.c | 6 |
src/tag_utils.c | 18 |
src/unpack_utils.c | 7 |
src/unpack.c | 4 |
src/read_words.c | 3 |
src/unpack_floats.c | 2 |
src/unpack_seek.c | 3 |
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 |
---|
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=['LLVMFuzzerTestOneInput', 'WavpackCloseFile', 'WavpackUnpackSamples', 'WavpackOpenFileInputEx64', 'unpack_samples_interleave', 'WavpackSeekSample64', 'WavpackNativeToLittleEndian', 'read_wrapper_data', 'unpack_samples']
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 |
---|---|---|---|---|
unpack_samples | 325 | 140 | 43.07% | ['fuzzer'] |
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 |
---|---|---|
[] | [] | |
/src/wavpack/src/unpack_floats.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/read_words.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/open_utils.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/unpack_seek.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/tag_utils.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/unpack_utils.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/fuzzing/fuzzer.cc | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/decorr_utils.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/entropy_utils.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/tags.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/unpack.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/unpack_dsd.c | ['fuzzer'] | ['fuzzer'] |
/src/wavpack/src/common_utils.c | ['fuzzer'] | ['fuzzer'] |
Directory |
---|
/src/wavpack/fuzzing/ |
/src/wavpack/src/ |
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 |
---|---|---|---|
fuzzer | fuzzerLogFile-0-8Ld1nLDHvY.data | fuzzerLogFile-0-8Ld1nLDHvY.data.yaml | fuzzer.covreport |