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-message-decode

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 90 32.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 186 67.3%
All colors 276 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
73 154 pn_message_decode call site: 00154 pn_data_put_atom
11 35 LLVMFuzzerTestOneInput call site: 00035 pn_error_format
2 240 pn_message_decode call site: 00240 pn_data_put_atom
1 16 pni_mem_subreallocate call site: 00016 pn_free
1 21 pn_free call site: 00021 pni_class_free
1 64 pni_consumer_skip_value call site: 00064 pni_consumer_skip_value_not_described
1 79 consume_described call site: 00079 pni_consumer_skip_value_not_described

Runtime coverage analysis

Covered functions
73
Functions that are reachable but not covered
40
Reachable functions
107
Percentage of reachable functions covered
62.62%
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
c/tests/fuzz/fuzz-message-decode.c 1
c/src/core/message.c 10
c/src/core/object/object.c 10
c/src/core/memory.c 6
c/src/core/object/string.c 4
c/src/core/util.h 3
c/src/core/error.c 5
c/src/core/util.c 1
build/c/src/core/frame_consumers.c 5
c/src/core/consumers.h 28
c/src/core/codec.c 15
c/src/core/data.h 5
c/src/core/buffer.c 9

Fuzzer: c/tests/fuzz/fuzz-sniff-header.c

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 1 50.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 1 50.0%
All colors 2 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
1 0 EP call site: 00000 pni_sniff_header

Runtime coverage analysis

Covered functions
604
Functions that are reachable but not covered
0
Reachable functions
2
Percentage of reachable functions covered
100.0%
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
c/tests/fuzz/fuzz-sniff-header.c 1
c/src/core/autodetect.c 1

Fuzzer: c/tests/fuzz/fuzz-url.c

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 26 53.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 23 46.9%
All colors 49 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
19 29 pn_strdup call site: 00029 pni_parse_url
3 0 EP call site: 00000 pn_url_parse
1 7 pni_mem_zallocate call site: 00007 pn_string
1 16 pni_mem_subreallocate call site: 00016 pn_free
1 21 pn_free call site: 00021 pni_class_free
1 25 pn_string call site: 00025 pn_strdup

Runtime coverage analysis

Covered functions
604
Functions that are reachable but not covered
13
Reachable functions
34
Percentage of reachable functions covered
61.76%
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
c/tests/fuzz/fuzz-url.c 1
c/src/extra/url.c 5
c/src/core/object/object.c 10
c/src/core/memory.c 4
c/src/core/object/string.c 4
c/src/core/util.h 1
c/src/core/util.c 1

Fuzzer: fuzz-connection-driver

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 105 10.7%
gold [1:9] 4 0.40%
yellow [10:29] 7 0.71%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 863 88.1%
All colors 979 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
21 341 pn_transport_bind call site: 00341 pn_ssl_set_peer_hostname
8 329 pn_transport_bind call site: 00329 pn_sasl
6 98 pn_condition_set_description call site: 00098 pn_condition_set_description
5 367 batch_next call site: 00367 pni_logger_log_msg_inspect
4 116 pni_logger_vlogf call site: 00116 pn_logger_logf
3 373 pn_fixed_string_addf call site: 00373 pn_fixed_string_addf
3 606 pn_message_decode call site: 00606 pn_data_put_atom
2 53 pn_buffer call site: 00053 pn_transport_free
2 111 pn_fixed_string_vaddf call site: 00111 pn_fixed_string_append
2 128 pn_transport_pending call site: 00128 pni_mem_subreallocate
2 300 pn_connection_driver_init call site: 00300 puts
2 458 pn_link_flow call site: 00458 pn_link_set_drain

Runtime coverage analysis

Covered functions
604
Functions that are reachable but not covered
33
Reachable functions
396
Percentage of reachable functions covered
91.67%
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
c/tests/fuzz/fuzz-connection-driver.c 7
c/src/core/connection_driver.c 14
c/src/core/engine.c 84
c/src/core/object/object.c 22
c/src/core/memory.c 6
c/src/core/object/list.c 10
c/src/core/object/string.c 8
c/src/core/util.h 4
c/src/core/object/record.c 4
c/src/core/transport.c 30
c/src/core/buffer.c 13
c/src/core/event.c 14
c/src/core/logger.c 6
c/src/core/fixed_string.h 7
c/src/core/object/map.c 18
c/src/core/codec.c 45
c/src/core/error.c 5
c/include/proton/types.h 2
c/src/sasl/sasl.c 3
c/src/core/util.c 1
c/src/ssl/openssl.c 7
c/src/core/message.c 11
build/c/src/core/frame_consumers.c 5
c/src/core/consumers.h 28
c/src/core/data.h 6
c/src/core/decoder.c 21

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
pn_output_write_amqp /src/qpid-proton/c/src/core/transport.c 4 ['N/A', 'int', 'N/A', 'size_t'] 21 0 66 16 7 320 0 1490 1045
pn_data_scan /src/qpid-proton/c/src/core/codec.c 2 ['N/A', 'N/A'] 9 0 17 3 2 106 0 517 272
pn_ssl_init /src/qpid-proton/c/src/ssl/openssl.c 3 ['N/A', 'N/A', 'N/A'] 8 0 97 23 10 81 0 238 177
pn_output_write_sasl /src/qpid-proton/c/src/sasl/sasl.c 4 ['N/A', 'int', 'N/A', 'size_t'] 13 0 111 22 10 170 0 728 135
pn_data_vfill /src/qpid-proton/c/src/core/codec.c 3 ['N/A', 'N/A', 'N/A'] 11 0 1005 189 60 119 3 535 127
pn_message_send /src/qpid-proton/c/src/core/message.c 3 ['N/A', 'N/A', 'N/A'] 12 0 68 14 6 143 0 529 122
pn_do_transfer /src/qpid-proton/c/src/core/transport.c 5 ['N/A', 'char', 'short', 'size_t', 'N/A'] 11 0 506 90 38 144 0 560 105
pn_io_layer_input_autodetect /src/qpid-proton/c/src/core/transport.c 4 ['N/A', 'int', 'N/A', 'size_t'] 11 0 320 60 21 93 0 371 80
pn_do_mechanisms /src/qpid-proton/c/src/sasl/sasl.c 5 ['N/A', 'char', 'short', 'size_t', 'N/A'] 10 0 239 53 21 72 0 283 78
pn_ssl_domain_set_credentials /src/qpid-proton/c/src/ssl/openssl.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 9 0 135 33 14 48 0 134 75

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

Functions statically reachable by fuzzers
55.0%
732 / 1328
Cyclomatic complexity statically reachable by fuzzers
64.0%
3543 / 5568

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

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/qpid-proton/c/src/core/message.c ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-message-decode', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/logger.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/framing.c [] []
/src/qpid-proton/c/src/core/util.h ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver'] ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/data.h ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/sasl/sasl.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/transport.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/autodetect.c ['c/tests/fuzz/fuzz-sniff-header.c'] ['c/tests/fuzz/fuzz-sniff-header.c']
/src/qpid-proton/c/tests/fuzz/fuzz-url.c ['c/tests/fuzz/fuzz-url.c'] ['c/tests/fuzz/fuzz-url.c']
/src/qpid-proton/c/src/core/connection_driver.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/object/object.c ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver'] ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/engine.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/util.c ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver'] ['c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/value_dump.c [] []
/src/qpid-proton/c/src/sasl/default_sasl.c [] []
/src/qpid-proton/c/src/core/object/list.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/tests/fuzz/fuzz-sniff-header.c ['c/tests/fuzz/fuzz-sniff-header.c'] ['c/tests/fuzz/fuzz-sniff-header.c']
/src/qpid-proton/c/tests/fuzz/fuzz-connection-driver.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/memory.c ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver'] ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver']
/src/qpid-proton/c/include/proton/types.h ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/object/iterator.c [] []
/src/qpid-proton/c/src/ssl/openssl.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/tests/fuzz/fuzz-message-decode.c ['fuzz-message-decode'] ['fuzz-message-decode']
/src/qpid-proton/c/src/core/object/record.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/extra/url.c ['c/tests/fuzz/fuzz-url.c'] []
/src/qpid-proton/c/src/core/error.c ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-message-decode', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/codec.c ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-message-decode', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/object/string.c ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver'] ['fuzz-message-decode', 'c/tests/fuzz/fuzz-url.c', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/dispatcher.c [] []
/src/qpid-proton/build/c/src/core/frame_consumers.c ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-message-decode', 'fuzz-connection-driver']
/src/qpid-proton/c/src/core/event.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/object/map.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/buffer.c ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/sasl/cyrus_stub.c [] []
/src/qpid-proton/c/src/core/encoder.c [] []
/src/qpid-proton/c/src/core/decoder.c ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/c/src/core/emitters.h [] []
/src/qpid-proton/c/src/core/fixed_string.h ['fuzz-connection-driver'] ['fuzz-connection-driver']
/src/qpid-proton/build/c/src/core/frame_generators.c [] []
/src/qpid-proton/c/src/core/consumers.h ['fuzz-message-decode', 'fuzz-connection-driver'] ['fuzz-message-decode', 'fuzz-connection-driver']

Directories in report

Directory
/src/qpid-proton/c/src/core/object/
/src/qpid-proton/build/c/src/core/
/src/qpid-proton/c/include/proton/
/src/qpid-proton/c/src/sasl/
/src/qpid-proton/c/tests/fuzz/
/src/qpid-proton/c/src/core/
/src/qpid-proton/c/src/ssl/
/src/qpid-proton/c/src/extra/