Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: cbor_load_fuzzer

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 34 5.92%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 540 94.0%
All colors 574 100

Fuzz blockers

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
2 2 1 :

['abort']

2 2 limited_free(void*) call site: 00000 /src/libcbor/build/../oss-fuzz/cbor_load_fuzzer.cc:28
2 2 1 :

['abort']

2 2 limited_realloc(void*,unsignedlong) call site: 00000 /src/libcbor/build/../oss-fuzz/cbor_load_fuzzer.cc:39
0 130 1 :

['_cbor_builder_append']

0 130 cbor_builder_array_start_callback call site: 00000 /src/libcbor/src/cbor/internal/builder_callbacks.c:300
0 130 1 :

['_cbor_builder_append']

0 130 cbor_builder_map_start_callback call site: 00000 /src/libcbor/src/cbor/internal/builder_callbacks.c:326
0 11 1 :

['cbor_ctrl_value']

0 11 _cbor_nested_describe call site: 00173 /src/libcbor/src/cbor.c:408
0 0 None 0 1416 cbor_copy call site: 00482 /src/libcbor/src/cbor.c:263
0 0 None 0 742 cbor_copy call site: 00482 /src/libcbor/src/cbor.c:178
0 0 None 0 740 cbor_copy call site: 00482 /src/libcbor/src/cbor.c:204
0 0 None 0 726 cbor_copy call site: 00482 /src/libcbor/src/cbor.c:230
0 0 None 0 201 _cbor_builder_append call site: 00000 /src/libcbor/src/cbor/internal/builder_callbacks.c:44
0 0 None 0 171 cbor_stream_decode call site: 00004 /src/libcbor/src/cbor/streaming.c:48
0 0 None 0 138 cbor_copy call site: 00482 /src/libcbor/src/cbor.c:258

Runtime coverage analysis

Covered functions
206
Functions that are reachable but not covered
4
Reachable functions
175
Percentage of reachable functions covered
97.71%
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
/src/libcbor/build/../oss-fuzz/cbor_load_fuzzer.cc 1
/src/libcbor/src/cbor.c 8
/src/libcbor/src/cbor/internal/stack.c 2
/src/libcbor/src/cbor/streaming.c 2
/src/libcbor/src/cbor/internal/loaders.c 8
/src/libcbor/src/cbor/common.c 17
/src/libcbor/src/cbor/bytestrings.c 8
/src/libcbor/src/cbor/strings.c 8
/src/libcbor/src/cbor/arrays.c 7
/src/libcbor/src/cbor/maps.c 8
/src/libcbor/src/cbor/ints.c 7
/src/libcbor/src/cbor/tags.c 2
/src/libcbor/src/cbor/floats_ctrls.c 8
/src/libcbor/src/cbor/serialization.c 12
/src/libcbor/src/cbor/internal/memory_utils.c 5
/src/libcbor/src/cbor/encoding.c 23
/src/libcbor/src/cbor/internal/encoders.c 5

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
[] []
/usr/local/bin/../include/c++/v1/math.h [] []
/src/libcbor/src/cbor/internal/builder_callbacks.c [] []
/src/libcbor/src/allocators.c [] []
/src/libcbor/src/cbor/streaming.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/tags.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/build/../oss-fuzz/cbor_load_fuzzer.cc ['cbor_load_fuzzer'] []
/src/libcbor/src/cbor.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/bytestrings.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/arrays.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/floats_ctrls.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/internal/loaders.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/encoding.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/strings.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/ints.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/internal/memory_utils.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/internal/unicode.c [] []
/src/libcbor/src/cbor/common.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/internal/stack.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/internal/encoders.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/maps.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']
/src/libcbor/src/cbor/serialization.c ['cbor_load_fuzzer'] ['cbor_load_fuzzer']

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/src/libcbor/src/
/src/libcbor/src/cbor/
/src/libcbor/src/cbor/internal/
/src/libcbor/build/../oss-fuzz/