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: conf_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 8 15.0%
gold [1:9] 0 0.0%
yellow [10:29] 2 3.77%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 43 81.1%
All colors 53 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
2 2 p11_lexer_init call site: 00002 vfprintf
2 29 p11_message call site: 00029 p11_message
1 6 p11_lexer_init call site: 00006 p11_debug_precond
1 20 p11_lexer_msg call site: 00020 p11_message
1 22 p11_message call site: 00022 fprintf
1 27 p11_debug_message call site: 00027 fprintf

Runtime coverage analysis

Covered functions
12
Functions that are reachable but not covered
13
Reachable functions
24
Percentage of reachable functions covered
45.83%
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
./fuzz/conf_fuzzer.c 1
common/lexer.c 5
common/debug.c 2
common/compat.c 2
common/message.c 2

Fuzzer: uri_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 12.6%
gold [1:9] 0 0.0%
yellow [10:29] 8 2.98%
greenyellow [30:49] 2 0.74%
lawngreen 50+ 224 83.5%
All colors 268 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
5 259 LLVMFuzzerTestOneInput call site: 00259 p11_debug_message
3 62 p11_attr_copy call site: 00062 p11_attr_copy
3 159 p11_kit_uri_format call site: 00159 p11_buffer_init_full
2 3 p11_kit_uri_new call site: 00003 vfprintf
2 164 buffer_realloc call site: 00164 p11_debug_precond
1 11 maybe_expand_array call site: 00011 p11_array_free
1 30 p11_attrs_free call site: 00030 p11_attr_clear
1 57 attrs_build call site: 00057 p11_attr_clear
1 60 attrs_build call site: 00060 p11_debug_precond
1 80 parse_class_attribute call site: 00080 p11_attrs_build
1 154 p11_array_insert call site: 00154 p11_debug_precond
1 173 p11_buffer_append call site: 00173 p11_debug_precond

Runtime coverage analysis

Covered functions
68
Functions that are reachable but not covered
20
Reachable functions
88
Percentage of reachable functions covered
77.27%
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
./fuzz/uri_fuzzer.c 1
p11-kit/uri.c 39
common/debug.c 2
common/array.c 5
common/compat.c 3
common/attrs.c 11
common/url.c 2
common/buffer.c 6
p11-kit/util.c 1

Fuzzer: persist_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 70 15.3%
gold [1:9] 11 2.40%
yellow [10:29] 13 2.84%
greenyellow [30:49] 4 0.87%
lawngreen 50+ 359 78.5%
All colors 457 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
11 99 p11_asn1_cache_take call site: 00099 p11_dict_set
4 26 p11_dict_set call site: 00026 p11_asn1_cache_defs
4 114 sink_object call site: 00114 p11_message
4 301 p11_constant_reverse call site: 00301 p11_dict_set
3 87 p11_attr_copy call site: 00087 p11_attr_copy
3 121 p11_message call site: 00121 p11_message
3 419 certificate_to_attributes call site: 00419 public_key_to_attributes
2 7 p11_asn1_defs_load call site: 00007 p11_hash_murmur3
2 16 p11_asn1_defs_load call site: 00016 p11_debug_precond
2 49 p11_array_push call site: 00049 p11_debug_precond
2 64 p11_asn1_create call site: 00064 p11_debug_precond
2 68 p11_asn1_decode call site: 00068 p11_debug_message

Runtime coverage analysis

Covered functions
106
Functions that are reachable but not covered
34
Reachable functions
122
Percentage of reachable functions covered
72.13%
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
./fuzz/persist_fuzzer.c 1
trust/parser.c 17
common/asn1.c 12
common/dict.c 14
common/hash.c 1
common/debug.c 2
common/array.c 5
common/attrs.c 16
common/compat.c 4
common/message.c 2
common/pem.c 4
common/base64.c 1
common/oid.c 1
common/persist.c 16
common/constants.c 5
common/lexer.c 5
common/url.c 1
common/path.c 1

Fuzzer: rpc_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 847 74.2%
gold [1:9] 85 7.45%
yellow [10:29] 39 3.42%
greenyellow [30:49] 20 1.75%
lawngreen 50+ 149 13.0%
All colors 1140 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
170 219 p11_rpc_buffer_get_uint64 call site: 00219 rpc_C_GetMechanismList
156 871 rpc_C_EncryptMessageBegin call site: 00871 rpc_C_MessageDecryptInit
106 679 rpc_C_VerifyInit call site: 00679 rpc_C_WrapKey
80 591 rpc_C_DigestInit call site: 00591 rpc_C_SignInit
63 521 proto_read_mechanism call site: 00521 rpc_C_DecryptInit
50 813 rpc_C_SeedRandom call site: 00813 rpc_C_MessageEncryptInit
30 139 rpc_C_Initialize call site: 00139 rpc_C_GetInfo
24 414 rpc_C_CreateObject call site: 00414 rpc_C_CopyObject
19 490 rpc_C_FindObjectsInit call site: 00490 rpc_C_EncryptInit
17 176 p11_rpc_buffer_add_uint64 call site: 00176 rpc_C_GetSlotList
16 196 p11_rpc_message_alloc_extra call site: 00196 rpc_C_GetSlotInfo
15 459 proto_write_attribute_array call site: 00459 p11_rpc_message_write_attribute_array

Runtime coverage analysis

Covered functions
116
Functions that are reachable but not covered
149
Reachable functions
227
Percentage of reachable functions covered
34.36%
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
./fuzz/rpc_fuzzer.c 1
common/mock.c 4
common/library.c 5
common/debug.c 4
common/compat.c 1
common/buffer.c 7
p11-kit/virtual.c 1
p11-kit/rpc-server.c 110
common/message.c 3
p11-kit/rpc-message.c 32
common/dict.c 9
common/attrs.c 9

Fuzz engine guidance

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.

./fuzz/conf_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['p11_lexer_init', 'p11_message', 'p11_lexer_msg', 'p11_debug_message']

./fuzz/uri_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LLVMFuzzerTestOneInput', 'p11_attr_copy', 'p11_kit_uri_format', 'p11_kit_uri_new', 'buffer_realloc', 'maybe_expand_array', 'p11_attrs_free', 'attrs_build', 'parse_class_attribute']

./fuzz/persist_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['p11_asn1_cache_take', 'p11_dict_set', 'sink_object', 'p11_constant_reverse', 'p11_attr_copy', 'p11_message', 'certificate_to_attributes', 'p11_asn1_defs_load', 'p11_array_push']

./fuzz/rpc_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['p11_rpc_buffer_get_uint64', 'rpc_C_EncryptMessageBegin', 'rpc_C_VerifyInit', 'rpc_C_DigestInit', 'proto_read_mechanism', 'rpc_C_SeedRandom', 'rpc_C_Initialize', 'rpc_C_CreateObject', 'rpc_C_FindObjectsInit', 'p11_rpc_buffer_add_uint64']

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
[] []
/src/p11-kit/common/base64.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/p11-kit/virtual.c ['rpc_fuzzer'] ['rpc_fuzzer']
/src/p11-kit/./p11-kit/virtual-base-generated.h [] []
/src/p11-kit/p11-kit/messages.c [] []
/src/p11-kit/common/attrs.c ['uri_fuzzer', 'persist_fuzzer', 'rpc_fuzzer'] ['uri_fuzzer', 'persist_fuzzer', 'rpc_fuzzer']
/src/p11-kit/./p11-kit/virtual-ffi-generated.h [] []
/src/p11-kit/common/url.c ['uri_fuzzer', 'persist_fuzzer'] ['uri_fuzzer', 'persist_fuzzer']
/src/p11-kit/p11-kit/modules.c [] []
/src/p11-kit/common/message.c ['conf_fuzzer', 'persist_fuzzer', 'rpc_fuzzer'] ['conf_fuzzer', 'persist_fuzzer', 'rpc_fuzzer']
/src/p11-kit/./fuzz/conf_fuzzer.c ['conf_fuzzer'] []
/src/p11-kit/./fuzz/rpc_fuzzer.c ['rpc_fuzzer'] []
/src/p11-kit/trust/parser.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/./p11-kit/proxy-generated.h [] []
/src/p11-kit/common/argv.c [] []
/src/p11-kit/p11-kit/iter.c [] []
/src/p11-kit/common/dict.c ['persist_fuzzer', 'rpc_fuzzer'] ['persist_fuzzer', 'rpc_fuzzer']
/src/p11-kit/common/hash.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/common/oid.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/p11-kit/rpc-client.c [] []
/src/p11-kit/p11-kit/util.c ['uri_fuzzer'] ['uri_fuzzer']
/src/p11-kit/common/asn1.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/common/path.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/p11-kit/proxy.c [] []
/src/p11-kit/./fuzz/uri_fuzzer.c ['uri_fuzzer'] []
/src/p11-kit/common/persist.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/p11-kit/uri.c ['uri_fuzzer'] ['uri_fuzzer']
/src/p11-kit/./p11-kit/virtual-fixed-closures.h [] []
/src/p11-kit/p11-kit/rpc-transport.c [] []
/src/p11-kit/common/lexer.c ['conf_fuzzer', 'persist_fuzzer'] ['conf_fuzzer', 'persist_fuzzer']
/src/p11-kit/./fuzz/persist_fuzzer.c ['persist_fuzzer'] []
/src/p11-kit/./p11-kit/virtual-stack-generated.h [] []
/src/p11-kit/p11-kit/log.c [] []
/src/p11-kit/p11-kit/conf.c [] []
/src/p11-kit/common/array.c ['uri_fuzzer', 'persist_fuzzer'] ['uri_fuzzer', 'persist_fuzzer']
/src/p11-kit/common/mock.c ['rpc_fuzzer'] ['rpc_fuzzer']
/src/p11-kit/p11-kit/filter.c [] []
/src/p11-kit/common/vsock.c [] []
/src/p11-kit/common/pem.c ['persist_fuzzer'] ['persist_fuzzer']
/src/p11-kit/common/buffer.c ['uri_fuzzer', 'rpc_fuzzer'] ['uri_fuzzer', 'rpc_fuzzer']
/src/p11-kit/p11-kit/rpc-message.c ['rpc_fuzzer'] ['rpc_fuzzer']
/src/p11-kit/p11-kit/pin.c [] []
/src/p11-kit/common/compat.c ['conf_fuzzer', 'uri_fuzzer', 'persist_fuzzer', 'rpc_fuzzer'] ['conf_fuzzer', 'uri_fuzzer', 'persist_fuzzer', 'rpc_fuzzer']
/src/p11-kit/p11-kit/rpc-server.c ['rpc_fuzzer'] ['rpc_fuzzer']
/src/p11-kit/common/library.c ['rpc_fuzzer'] ['rpc_fuzzer']
/src/p11-kit/common/debug.c ['conf_fuzzer', 'uri_fuzzer', 'persist_fuzzer', 'rpc_fuzzer'] ['conf_fuzzer', 'persist_fuzzer', 'rpc_fuzzer']
/src/p11-kit/common/constants.c ['persist_fuzzer'] ['persist_fuzzer']

Directories in report

Directory
/src/p11-kit/p11-kit/
/src/p11-kit/trust/
/src/p11-kit/./p11-kit/
/src/p11-kit/./fuzz/
/src/p11-kit/common/