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: wolfmqtt-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 4563 95.0%
gold [1:9] 23 0.47%
yellow [10:29] 19 0.39%
greenyellow [30:49] 8 0.16%
lawngreen 50+ 188 3.91%
All colors 4801 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
4189 43 wolfSSL_Cleanup call site: 00043 wolfSSL_connect
257 4275 MqttSocket_WriteDo call site: 04275 wolfSSL_write
18 4536 MqttClient_Connect call site: 04536 MqttClient_Auth
10 4559 MqttSocket_ReadDo call site: 04559 wolfSSL_read
9 30 wc_LockMutex call site: 00030 wolfCrypt_Init
6 4619 MqttDecode_SubscribeAck call site: 04619 MqttDecode_Props
5 4238 MqttClient_Connect call site: 04238 MqttEncode_Props
5 4244 MqttEncode_Data call site: 04244 MqttEncode_Vbi
4 4251 MqttEncode_Connect call site: 04251 MqttEncode_Props
4 4607 MqttDecode_Publish call site: 04607 MqttDecode_Props
3 4589 MqttDecode_Props call site: 04589 MqttDecode_String
3 4594 MqttDecode_String call site: 04594 MqttDecode_Vbi

Runtime coverage analysis

Covered functions
112
Functions that are reachable but not covered
1208
Reachable functions
1341
Percentage of reachable functions covered
9.92%
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
/src/wolfmqtt-fuzzers/fuzzer.cpp 25
/src/fuzzing-headers/include/fuzzing/datasource/datasource.hpp 9
/src/wolfmqtt/src/mqtt_socket.c 9
/src/wolfmqtt/src/mqtt_client.c 28
/src/wolfssl/src/ssl.c 25
/src/wolfssl/wolfcrypt/src/wc_port.c 22
/src/wolfssl/wolfcrypt/src/random.c 30
/src/wolfssl/./src/ssl_sess.c 19
/src/wolfssl/./wolfcrypt/src/misc.c 44
/src/wolfssl/wolfcrypt/src/memory.c 2
/src/wolfssl/src/tls.c 129
/src/wolfssl/src/internal.c 216
/src/wolfssl/./src/ssl_certman.c 8
/src/wolfssl/wolfcrypt/src/asn.c 119
/src/wolfssl/wolfcrypt/src/dh.c 18
/src/wolfssl/wolfcrypt/src/sp_int.c 101
/src/wolfssl/wolfcrypt/src/wc_mlkem.c 21
/src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c 62
/src/wolfssl/wolfcrypt/src/sha3.c 34
/src/wolfssl/wolfcrypt/src/ecc.c 61
/src/wolfssl/./src/ssl_api_cert.c 4
/src/wolfssl/src/wolfio.c 6
/src/wolfssl/wolfcrypt/src/sha512.c 33
/src/wolfssl/wolfcrypt/src/sha256.c 17
/src/wolfssl/wolfcrypt/src/aes.c 32
/src/wolfssl/wolfcrypt/src/rsa.c 35
/src/wolfssl/wolfcrypt/src/hash.c 15
/src/wolfssl/wolfcrypt/src/sha.c 7
/src/wolfssl/src/tls13.c 70
/src/wolfssl/./wolfssl/wolfcrypt/types.h 1
/src/wolfssl/wolfcrypt/src/chacha.c 5
/src/wolfssl/wolfcrypt/src/poly1305.c 11
/src/wolfssl/wolfcrypt/src/wolfmath.c 5
/src/wolfssl/src/keys.c 7
/src/wolfssl/wolfcrypt/src/kdf.c 4
/src/wolfssl/wolfcrypt/src/hmac.c 12
/src/wolfssl/./wolfssl/internal.h 1
/src/wolfssl/./src/x509_str.c 2
/src/wolfmqtt/src/mqtt_packet.c 38

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
wolfSSL_CertManagerLoadCA /src/wolfssl/./src/ssl_certman.c 3 ['N/A', 'N/A', 'N/A'] 30 0 100 20 6 569 0 4951 504
wc_CreateEncryptedPKCS8Key /src/wolfssl/wolfcrypt/src/asn.c 14 ['N/A', 'int', 'N/A', 'N/A', 'N/A', 'int', 'int', 'int', 'int', 'N/A', 'int', 'int', 'N/A', 'N/A'] 21 0 54 3 2 292 0 2150 272
wolfSSL_ERR_error_string_n /src/wolfssl/src/ssl.c 3 ['size_t', 'N/A', 'size_t'] 4 0 59 13 4 5 0 250 248
wolfSSL_CTX_check_private_key /src/wolfssl/./src/ssl_api_pk.c 1 ['N/A'] 21 0 77 12 5 458 0 4169 168
wc_Asn1_PrintAll /src/wolfssl/wolfcrypt/src/asn.c 4 ['N/A', 'N/A', 'N/A', 'int'] 9 0 186 33 13 43 0 428 139
TLS_hmac /src/wolfssl/src/tls.c 8 ['N/A', 'N/A', 'N/A', 'int', 'int', 'int', 'int', 'int'] 9 0 310 56 18 130 0 693 107
wolfSSL_CTX_SetTmpDH_file /src/wolfssl/./src/ssl_load.c 3 ['N/A', 'N/A', 'int'] 17 0 21 3 2 201 0 1918 86

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

Functions statically reachable by fuzzers
68.0%
1438 / 2108
Cyclomatic complexity statically reachable by fuzzers
80.0%
13474 / 16848

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/wolfssl/wolfcrypt/src/rsa.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/error.c [] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/wolfssl/src/wolfio.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/ssl_misc.c [] []
/src/wolfssl/wolfcrypt/src/sha256.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/src/tls13.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/dh.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/chacha.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./wolfssl/wolfcrypt/types.h ['wolfmqtt-fuzzer'] []
/src/wolfssl/src/internal.c ['wolfmqtt-fuzzer'] []
/src/wolfmqtt/src/mqtt_packet.c ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/wolfcrypt/src/ecc.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/x509_str.c ['wolfmqtt-fuzzer'] []
/src/fuzzing-headers/include/fuzzing/exception.hpp [] []
/src/wolfssl/wolfcrypt/src/sha.c ['wolfmqtt-fuzzer'] []
/src/fuzzing-headers/include/fuzzing/types.hpp [] []
/src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/src/keys.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/coding.c [] []
/src/wolfssl/wolfcrypt/src/asn.c ['wolfmqtt-fuzzer'] []
/src/wolfmqtt-fuzzers/fuzzer.cpp ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/./src/ssl_certman.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/pwdbased.c [] []
/src/wolfssl/src/ssl.c ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/wolfcrypt/src/wc_port.c ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/wolfcrypt/src/wolfmath.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/ssl_api_pk.c [] []
/usr/local/bin/../include/c++/v1/string [] []
/src/wolfssl/wolfcrypt/src/sha3.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/src/tls.c ['wolfmqtt-fuzzer'] []
/src/wolfmqtt/src/mqtt_socket.c ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/./src/ssl_api_cert.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./wolfssl/internal.h ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/wc_encrypt.c [] []
/src/wolfssl/wolfcrypt/src/hash.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/sha512.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/ssl_sess.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/poly1305.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/pk.c [] []
/src/wolfssl/./wolfcrypt/src/misc.c ['wolfmqtt-fuzzer'] []
/src/wolfmqtt/src/mqtt_client.c ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/wolfssl/wolfcrypt/src/kdf.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/x509.c [] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/wolfssl/wolfcrypt/src/random.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/aes.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/./src/ssl_load.c [] []
/src/wolfssl/wolfcrypt/src/wc_mlkem.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/hmac.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/memory.c ['wolfmqtt-fuzzer'] []
/src/wolfssl/wolfcrypt/src/sp_int.c ['wolfmqtt-fuzzer'] []
/src/fuzzing-headers/include/fuzzing/datasource/datasource.hpp ['wolfmqtt-fuzzer'] ['wolfmqtt-fuzzer']
/src/fuzzing-headers/include/fuzzing/memory.hpp [] []

Directories in report

Directory
/src/wolfssl/wolfcrypt/src/
/src/wolfssl/./wolfcrypt/src/
/src/wolfmqtt/src/
/src/wolfssl/./wolfssl/wolfcrypt/
/src/fuzzing-headers/include/fuzzing/datasource/
/usr/local/bin/../include/c++/v1/__exception/
/src/wolfssl/./wolfssl/
/src/wolfssl/./src/
/src/wolfmqtt-fuzzers/
/usr/local/bin/../include/c++/v1/
/src/wolfssl/src/
/src/fuzzing-headers/include/fuzzing/