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

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

['pkcs11_key_free']

419 881 sshkey_free_contents call site: 00099 /src/openssh/sshkey.c:782
209 209 1 :

['ssh_digest_buffer']

209 607 webauthn_check_prepare_hash call site: 00000 /src/openssh/ssh-ecdsa-sk.c:217
158 158 5 :

['do_log', 'getpid', 'strrchr', 'strlcpy', 'match_pattern_list']

158 158 sshlogv call site: 00015 /src/openssh/log.c:462
13 13 1 :

['ssh_rsa_hash_id_from_keyname']

23 674 ssh_rsa_verify call site: 00000 /src/openssh/ssh-rsa.c:528
2 2 1 :

['BN_clear_free']

2 2 sshbuf_get_bignum2 call site: 00000 /src/openssh/sshbuf-getput-crypto.c:48
2 2 1 :

['explicit_bzero']

2 2 sshkey_xmss_free_state call site: 00000 /src/openssh/sshkey-xmss.c:144
2 2 1 :

['munmap']

2 2 sshkey_prekey_free call site: 00177 /src/openssh/sshkey.c:770
2 2 1 :

['SHA512']

2 2 core_hash_SHA2 call site: 00000 /src/openssh/xmss_hash.c:55
0 717 1 :

['sshbuf_put_u8']

0 722 sshbuf_dtob64 call site: 00000 /src/openssh/sshbuf-misc.c:147
0 440 1 :

['sshkey_free']

0 440 sshkey_new call site: 00087 /src/openssh/sshkey.c:723
0 440 1 :

['cert_free']

0 440 cert_new call site: 00089 /src/openssh/sshkey.c:688
0 199 1 :

['sshbuf_free']

0 199 sshbuf_froms call site: 00196 /src/openssh/sshbuf-getput-basic.c:561

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 sshkey_from_blob [function] [call site] 00001
2 sshbuf_from [function] [call site] 00002
3 calloc [call site] 00003
2 sshkey_from_blob_internal [function] [call site] 00004
3 sshbuf_fromb [function] [call site] 00005
4 sshbuf_check_sanity [function] [call site] 00006
5 ssh_signal [function] [call site] 00007
6 memset [call site] 00008
6 sigfillset [call site] 00009
6 sigaction [call site] 00010
6 strsignal [call site] 00011
6 __errno_location [call site] 00012
6 strerror [call site] 00013
6 sshlog [function] [call site] 00014
7 sshlogv [function] [call site] 00015
8 strrchr [call site] 00016
8 getpid [call site] 00017
8 snprintf [call site] 00018
8 match_pattern_list [function] [call site] 00019
9 strlen [call site] 00020
9 __ctype_b_loc [call site] 00021
9 tolower [call site] 00022
9 match_pattern [function] [call site] 00023
10 match_pattern [function] [call site] 00024
11 match_pattern [function] [call site] 00025
8 snprintf [call site] 00026
8 snprintf [call site] 00027
8 do_log [function] [call site] 00029
9 __errno_location [call site] 00030
9 snprintf [call site] 00031
9 vsnprintf [call site] 00032
9 vsnprintf [call site] 00033
9 snprintf [call site] 00034
9 strnvis [function] [call site] 00036
10 __ctype_b_loc [call site] 00037
10 vis [function] [call site] 00038
11 __ctype_b_loc [call site] 00039
11 __ctype_b_loc [call site] 00040
9 snprintf [call site] 00042
9 strlen [call site] 00043
9 write [call site] 00044
9 openlog [call site] 00045
9 syslog [call site] 00046
9 closelog [call site] 00047
9 __errno_location [call site] 00048
5 raise [call site] 00049
4 sshbuf_ptr [function] [call site] 00050
5 sshbuf_check_sanity [function] [call site] 00051
4 sshbuf_len [function] [call site] 00052
5 sshbuf_check_sanity [function] [call site] 00053
4 sshbuf_from [function] [call site] 00054
4 sshbuf_set_parent [function] [call site] 00055
5 sshbuf_check_sanity [function] [call site] 00056
5 sshbuf_check_sanity [function] [call site] 00057
4 sshbuf_free [function] [call site] 00058
5 sshbuf_check_sanity [function] [call site] 00059
5 sshbuf_free [function] [call site] 00060
6 freezero [function] [call site] 00061
7 explicit_bzero [call site] 00062
3 sshbuf_get_cstring [function] [call site] 00064
4 sshbuf_peek_string_direct [function] [call site] 00065
5 sshbuf_ptr [function] [call site] 00066
5 sshbuf_len [function] [call site] 00067
5 sshbuf_len [function] [call site] 00068
4 memchr [call site] 00069
4 sshbuf_get_string_direct [function] [call site] 00070
5 sshbuf_peek_string_direct [function] [call site] 00071
5 sshbuf_consume [function] [call site] 00072
6 sshbuf_check_sanity [function] [call site] 00073
6 sshbuf_len [function] [call site] 00074
3 sshkey_type_from_name [function] [call site] 00075
4 type_from_name [function] [call site] 00076
5 strcmp [call site] 00077
5 strcasecmp [call site] 00078
3 sshkey_type_is_cert [function] [call site] 00079
4 sshkey_impl_from_type [function] [call site] 00080
3 sshkey_impl_from_type [function] [call site] 00081
3 sshkey_new [function] [call site] 00082
4 sshkey_impl_from_type [function] [call site] 00083
4 calloc [call site] 00084
4 sshkey_is_cert [function] [call site] 00085
5 sshkey_type_is_cert [function] [call site] 00086
4 cert_new [function] [call site] 00087
5 calloc [call site] 00088
5 sshbuf_new [function] [call site] 00089
6 calloc [call site] 00090
6 calloc [call site] 00091
5 sshbuf_new [function] [call site] 00092
5 sshbuf_new [function] [call site] 00093
5 cert_free [function] [call site] 00094
6 sshbuf_free [function] [call site] 00095
6 sshbuf_free [function] [call site] 00096
6 sshbuf_free [function] [call site] 00097
6 sshkey_free [function] [call site] 00098
7 sshkey_free_contents [function] [call site] 00099
8 pkcs11_key_free [function] [call site] 00100
9 sshkey_type [function] [call site] 00101
10 sshkey_impl_from_key [function] [call site] 00102
11 sshkey_impl_from_type_nid [function] [call site] 00103
9 helper_by_key [function] [call site] 00105
10 sshbuf_new [function] [call site] 00106
10 sshfatal [function] [call site] 00107
11 cleanup_exit [function] [call site] 00109
12 _exit [call site] 00110
10 sshkey_putb [function] [call site] 00111
11 to_blob_buf [function] [call site] 00112
12 sshkey_type_plain [function] [call site] 00113
12 sshkey_type_is_cert [function] [call site] 00114
12 sshbuf_len [function] [call site] 00115
12 sshbuf_putb [function] [call site] 00116
13 sshbuf_ptr [function] [call site] 00117
13 sshbuf_len [function] [call site] 00118
13 sshbuf_put [function] [call site] 00119
14 sshbuf_reserve [function] [call site] 00120
15 sshbuf_allocate [function] [call site] 00121
16 sshbuf_check_reserve [function] [call site] 00122
17 sshbuf_check_sanity [function] [call site] 00123
16 sshbuf_maybe_pack [function] [call site] 00124
16 recallocarray [function] [call site] 00125
17 calloc [call site] 00126
17 __errno_location [call site] 00127
17 __errno_location [call site] 00128
17 getpagesize [call site] 00129
17 memset [call site] 00130
17 memset [call site] 00131
17 explicit_bzero [call site] 00132
16 sshbuf_check_reserve [function] [call site] 00133
12 sshkey_impl_from_type [function] [call site] 00134
12 sshkey_ssh_name_from_type_nid [function] [call site] 00135
13 sshkey_impl_from_type_nid [function] [call site] 00136
12 sshbuf_put_cstring [function] [call site] 00137
13 strlen [call site] 00138
13 sshbuf_put_string [function] [call site] 00139
14 sshbuf_reserve [function] [call site] 00140
10 ssh_err [function] [call site] 00141
11 __errno_location [call site] 00142
11 strerror [call site] 00143
10 sshfatal [function] [call site] 00144
10 sshbuf_equals [function] [call site] 00145
11 sshbuf_ptr [function] [call site] 00146
11 sshbuf_len [function] [call site] 00147
11 sshbuf_len [function] [call site] 00148
11 sshbuf_ptr [function] [call site] 00149
11 sshbuf_len [function] [call site] 00150
11 memcmp [call site] 00151
10 sshbuf_free [function] [call site] 00152
10 sshbuf_free [function] [call site] 00153
9 sshkey_type [function] [call site] 00154
9 sshbuf_new [function] [call site] 00156
9 sshkey_putb [function] [call site] 00158
9 sshbuf_equals [function] [call site] 00161
9 xrecallocarray [function] [call site] 00163
10 recallocarray [function] [call site] 00164
10 sshfatal [function] [call site] 00165
9 helper_terminate [function] [call site] 00166
10 sshfatal [function] [call site] 00167
10 close [call site] 00169
10 sshfatal [function] [call site] 00170
10 xrecallocarray [function] [call site] 00171
8 sshkey_impl_from_type [function] [call site] 00172
8 sshkey_is_cert [function] [call site] 00173
8 sshkey_prekey_free [function] [call site] 00177
9 munmap [call site] 00178
4 sshkey_free [function] [call site] 00180
3 sshkey_type_is_cert [function] [call site] 00181
3 sshbuf_get_string_direct [function] [call site] 00182
3 sshkey_is_cert [function] [call site] 00183
3 cert_parse [function] [call site] 00184
4 sshbuf_putb [function] [call site] 00185
4 sshbuf_get_u64 [function] [call site] 00186
5 sshbuf_ptr [function] [call site] 00187
5 sshbuf_consume [function] [call site] 00188
4 sshbuf_get_u32 [function] [call site] 00189
5 sshbuf_ptr [function] [call site] 00190
5 sshbuf_consume [function] [call site] 00191
4 sshbuf_get_cstring [function] [call site] 00192
4 sshbuf_froms [function] [call site] 00193
5 sshbuf_peek_string_direct [function] [call site] 00194
5 sshbuf_from [function] [call site] 00195
5 sshbuf_consume [function] [call site] 00196
5 sshbuf_set_parent [function] [call site] 00197
5 sshbuf_free [function] [call site] 00198
4 sshbuf_get_u64 [function] [call site] 00199
4 sshbuf_get_u64 [function] [call site] 00200
4 sshbuf_froms [function] [call site] 00201
4 sshbuf_froms [function] [call site] 00202
4 sshbuf_get_string_direct [function] [call site] 00203
4 sshbuf_froms [function] [call site] 00204
4 sshbuf_len [function] [call site] 00205
4 sshbuf_get_string [function] [call site] 00206
5 sshbuf_get_string_direct [function] [call site] 00207
4 sshbuf_len [function] [call site] 00208
4 sshbuf_get_cstring [function] [call site] 00209
4 recallocarray [function] [call site] 00210
4 sshbuf_putb [function] [call site] 00211
4 sshbuf_putb [function] [call site] 00212
4 sshbuf_len [function] [call site] 00213
4 sshbuf_get_string_direct [function] [call site] 00214
4 sshbuf_get_string_direct [function] [call site] 00215
4 sshbuf_reset [function] [call site] 00216
5 sshbuf_check_sanity [function] [call site] 00217
5 recallocarray [function] [call site] 00218
5 explicit_bzero [call site] 00219
4 sshbuf_len [function] [call site] 00220
4 sshbuf_get_string_direct [function] [call site] 00221
4 sshbuf_get_string_direct [function] [call site] 00222
4 sshbuf_reset [function] [call site] 00223
4 sshkey_from_blob_internal [function] [call site] 00224
5 sshbuf_len [function] [call site] 00225
5 sshbuf_free [function] [call site] 00226
5 sshkey_free [function] [call site] 00227
4 sshkey_type_is_valid_ca [function] [call site] 00228
5 sshkey_impl_from_type [function] [call site] 00229
4 sshbuf_ptr [function] [call site] 00230
4 sshkey_verify [function] [call site] 00231
5 sshkey_impl_from_key [function] [call site] 00232
4 sshkey_get_sigtype [function] [call site] 00233
5 sshbuf_from [function] [call site] 00234
5 sshbuf_get_cstring [function] [call site] 00235
5 sshbuf_free [function] [call site] 00236
4 sshbuf_free [function] [call site] 00237
4 sshbuf_free [function] [call site] 00238
4 sshbuf_free [function] [call site] 00239
4 sshbuf_free [function] [call site] 00240
2 sshbuf_free [function] [call site] 00241
1 sshkey_free [function] [call site] 00242