Fuzz introspector: libwget_hpkp_fuzzer
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
33 33 5 :

['__freading', 'rpl_fflush', 'fileno', 'lseek', '__errno_location']

35 35 rpl_fclose call site: 00139 /src/wget2/lib/fclose.c:66
11 11 1 :

['buffer_realloc']

11 11 wget_buffer_memcat call site: 00028 /src/wget2/libwget/buffer.c:384
10 10 4 :

['open', 'fdopen', 'close', '__errno_location']

10 10 rpl_fopen call site: 00123 /src/wget2/lib/fopen.c:211
7 7 2 :

['hashmap_rehash', 'wget_calloc.151']

7 7 hashmap_new_entry call site: 00216 /src/wget2/libwget/hashmap.c:249
6 6 2 :

['gettext', '__errno_location']

6 6 getline_internal call site: 00191 /src/wget2/libwget/io.c:123
2 2 1 :

['gettext']

2 2 wget_hpkp_db_check_pubkey call site: 00260 /src/wget2/libwget/hpkp_db.c:158
2 2 1 :

['gettext']

2 2 wget_hpkp_db_load call site: 00181 /src/wget2/libwget/hpkp_db.c:359
0 34 1 :

['rpl_fclose']

2 36 wget_update_file call site: 00178 /src/wget2/libwget/io.c:520
0 7 1 :

['nettle_sha256_compress']

0 12 nettle_sha256_update call site: 00000 /src/nettle/sha256.c:111
0 0 None 161 645 wget_buffer_vprintf_append call site: 00027 /src/wget2/libwget/buffer_printf.c:346
0 0 None 161 645 wget_buffer_vprintf_append call site: 00032 /src/wget2/libwget/buffer_printf.c:368
0 0 None 161 645 wget_buffer_vprintf_append call site: 00035 /src/wget2/libwget/buffer_printf.c:372

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 wget_hpkp_db_init [function] [call site] 00001
2 wget_calloc [function] [call site] 00002
2 wget_strdup [function] [call site] 00003
3 strlen [call site] 00004
3 wget_memdup [function] [call site] 00005
4 wget_malloc [function] [call site] 00006
2 wget_hashmap_create [function] [call site] 00007
3 wget_malloc [function] [call site] 00008
3 wget_calloc [function] [call site] 00009
2 hash_hpkp [function] [call site] 00010
2 compare_hpkp [function] [call site] 00011
3 strcmp [call site] 00012
2 wget_hashmap_set_key_destructor [function] [call site] 00013
2 wget_hpkp_free [function] [call site] 00014
3 wget_vector_free [function] [call site] 00015
4 wget_vector_clear [function] [call site] 00016
2 wget_thread_mutex_init [function] [call site] 00017
3 wget_malloc [function] [call site] 00018
3 pthread_mutex_init [call site] 00019
1 wget_hpkp_db_load [function] [call site] 00020
2 wget_update_file [function] [call site] 00021
3 wget_aprintf [function] [call site] 00022
4 wget_vasprintf [function] [call site] 00023
5 wget_buffer_init [function] [call site] 00024
6 wget_malloc [function] [call site] 00025
5 wget_buffer_vprintf [function] [call site] 00026
6 wget_buffer_vprintf_append [function] [call site] 00027
7 wget_buffer_memcat [function] [call site] 00028
8 buffer_realloc [function] [call site] 00029
9 wget_realloc [function] [call site] 00030
9 wget_malloc [function] [call site] 00031
7 wget_buffer_strcat [function] [call site] 00032
8 strlen [call site] 00033
8 wget_buffer_memcat [function] [call site] 00034
7 convert_dec_fast [function] [call site] 00035
8 wget_buffer_memcat [function] [call site] 00036
7 wget_buffer_memcat [function] [call site] 00037
7 convert_pointer [function] [call site] 00038
8 wget_buffer_memcat [function] [call site] 00039
8 wget_buffer_memcat [function] [call site] 00040
8 wget_buffer_memcat [function] [call site] 00041
7 wget_buffer_memset_append [function] [call site] 00042
8 buffer_realloc [function] [call site] 00043
7 read_flag_chars [function] [call site] 00044
7 read_field_width [function] [call site] 00045
8 c_isdigit [function] [call site] 00046
7 read_field_width [function] [call site] 00047
7 read_precision [function] [call site] 00048
7 read_precision [function] [call site] 00051
7 copy_string [function] [call site] 00052
8 wget_buffer_strcat [function] [call site] 00053
8 strnlen [call site] 00054
8 strlen [call site] 00055
8 wget_buffer_memcat [function] [call site] 00056
8 wget_buffer_memset_append [function] [call site] 00057
8 wget_buffer_memset_append [function] [call site] 00058
8 wget_buffer_memcat [function] [call site] 00059
8 wget_buffer_memcat [function] [call site] 00060
8 wget_buffer_memcat [function] [call site] 00061
7 copy_string [function] [call site] 00062
7 convert_dec [function] [call site] 00063
8 wget_buffer_memset_append [function] [call site] 00064
8 wget_buffer_memset_append [function] [call site] 00065
8 wget_buffer_memcat [function] [call site] 00066
8 wget_buffer_memset_append [function] [call site] 00067
8 wget_buffer_memcat [function] [call site] 00068
8 wget_buffer_memset_append [function] [call site] 00069
8 wget_buffer_memset_append [function] [call site] 00070
8 wget_buffer_memset_append [function] [call site] 00071
8 wget_buffer_memset_append [function] [call site] 00072
8 wget_buffer_memset_append [function] [call site] 00073
8 wget_buffer_memset_append [function] [call site] 00074
8 wget_buffer_memset_append [function] [call site] 00075
8 wget_buffer_memset_append [function] [call site] 00076
8 wget_buffer_memset_append [function] [call site] 00077
8 wget_buffer_memset_append [function] [call site] 00078
8 wget_buffer_memset_append [function] [call site] 00079
8 wget_buffer_memcat [function] [call site] 00080
8 wget_buffer_memset_append [function] [call site] 00081
8 wget_buffer_memset_append [function] [call site] 00082
8 wget_buffer_memcat [function] [call site] 00083
8 wget_buffer_memset_append [function] [call site] 00084
8 wget_buffer_memset_append [function] [call site] 00085
8 wget_buffer_memcat [function] [call site] 00086
7 convert_dec [function] [call site] 00087
7 convert_dec [function] [call site] 00088
7 convert_dec [function] [call site] 00089
7 convert_dec [function] [call site] 00090
7 convert_dec [function] [call site] 00091
7 wget_buffer_memset_append [function] [call site] 00092
5 wget_realloc [function] [call site] 00093
3 base_name [function] [call site] 00094
4 last_component [function] [call site] 00095
4 base_len [function] [call site] 00096
5 strlen [call site] 00097
4 ximalloc [function] [call site] 00099
5 imalloc [function] [call site] 00100
6 _gl_alloc_nomem [function] [call site] 00101
7 __errno_location [call site] 00102
5 check_nonnull [function] [call site] 00103
6 xalloc_die [function] [call site] 00104
7 dgettext [call site] 00105
7 error [call site] 00106
7 abort [call site] 00107
3 getenv [call site] 00108
3 getenv [call site] 00109
3 getuid [call site] 00110
3 wget_aprintf [function] [call site] 00111
3 getuid [call site] 00112
3 wget_aprintf [function] [call site] 00113
3 open [call site] 00114
3 gettext [call site] 00115
3 __errno_location [call site] 00116
3 wget_error_printf [function] [call site] 00117
3 flock [call site] 00118
3 gettext [call site] 00119
3 __errno_location [call site] 00120
3 wget_error_printf [function] [call site] 00121
3 rpl_fopen [function] [call site] 00122
4 strlen [call site] 00123
4 open [call site] 00124
4 fdopen [call site] 00125
4 __errno_location [call site] 00126
4 close [call site] 00127
4 __errno_location [call site] 00128
4 orig_fopen [function] [call site] 00129
5 fopen [function] [call site] 00130
6 dlsym [call site] 00131
6 strcmp [call site] 00132
6 fmemopen [call site] 00133
3 __errno_location [call site] 00134
3 gettext [call site] 00135
3 __errno_location [call site] 00136
3 wget_error_printf [function] [call site] 00137
3 rpl_fclose [function] [call site] 00138
4 fileno [call site] 00139
4 fclose [call site] 00140
4 __freading [call site] 00141
4 fileno [call site] 00142
4 lseek [call site] 00143
4 rpl_fflush [function] [call site] 00144
5 __freading [call site] 00145
5 fflush [call site] 00146
5 clear_ungetc_buffer_preserving_position [function] [call site] 00147
6 rpl_fseeko [function] [call site] 00148
7 fileno [call site] 00149
7 lseek [call site] 00150
7 fseeko [call site] 00151
5 fflush [call site] 00152
4 __errno_location [call site] 00153
4 fclose [call site] 00154
4 __errno_location [call site] 00155
3 mkstemp [call site] 00156
3 gettext [call site] 00157
3 __errno_location [call site] 00158
3 wget_error_printf [function] [call site] 00159
3 fdopen [call site] 00160
3 unlink [call site] 00161
3 close [call site] 00162
3 gettext [call site] 00163
3 __errno_location [call site] 00164
3 wget_error_printf [function] [call site] 00165
3 unlink [call site] 00166
3 rpl_fclose [function] [call site] 00167
3 unlink [call site] 00168
3 gettext [call site] 00169
3 __errno_location [call site] 00170
3 wget_error_printf [function] [call site] 00171
3 rename [call site] 00172
3 gettext [call site] 00173
3 __errno_location [call site] 00174
3 wget_error_printf [function] [call site] 00175
3 gettext [call site] 00176
3 wget_error_printf [function] [call site] 00177
3 wget_debug_printf [function] [call site] 00178
3 rpl_fclose [function] [call site] 00179
3 close [call site] 00180
2 hpkp_db_load [function] [call site] 00181
3 time [call site] 00182
3 fileno [call site] 00183
3 fstat [call site] 00184
3 wget_getline [function] [call site] 00185
4 getline_internal [function] [call site] 00186
5 wget_calloc [function] [call site] 00187
5 memchr [call site] 00188
5 memchr [call site] 00189
5 wget_realloc [function] [call site] 00190
5 __errno_location [call site] 00191
5 __errno_location [call site] 00192
5 gettext [call site] 00193
5 __errno_location [call site] 00194
5 wget_error_printf [function] [call site] 00195
4 read_fp [function] [call site] 00196
5 fread [call site] 00197
5 ferror [call site] 00198
3 __ctype_b_loc [call site] 00199
3 wget_hpkp_db_add [function] [call site] 00200
4 wget_thread_mutex_lock [function] [call site] 00201
5 pthread_mutex_lock [call site] 00202
4 wget_vector_size [function] [call site] 00203
4 wget_hashmap_remove [function] [call site] 00204
5 hashmap_remove_entry [function] [call site] 00205
4 wget_debug_printf [function] [call site] 00206
4 wget_hpkp_free [function] [call site] 00207
4 wget_hashmap_get [function] [call site] 00208
5 hashmap_find_entry [function] [call site] 00209
4 wget_vector_free [function] [call site] 00210
4 wget_debug_printf [function] [call site] 00211
4 wget_hpkp_free [function] [call site] 00212
4 wget_hashmap_put [function] [call site] 00213
5 hashmap_find_entry [function] [call site] 00214
5 hashmap_new_entry [function] [call site] 00215
6 wget_malloc [function] [call site] 00216
6 wget_calloc [function] [call site] 00217
6 hashmap_rehash [function] [call site] 00218
4 wget_thread_mutex_unlock [function] [call site] 00219
5 pthread_mutex_unlock [call site] 00220
3 __isoc99_sscanf [call site] 00221
3 wget_hpkp_new [function] [call site] 00222
4 wget_calloc [function] [call site] 00223
4 time [call site] 00224
3 wget_strdup [function] [call site] 00225
3 wget_debug_printf [function] [call site] 00226
3 gettext [call site] 00227
3 wget_error_printf [function] [call site] 00228
3 __isoc99_sscanf [call site] 00229
3 wget_hpkp_pin_add [function] [call site] 00230
4 wget_calloc [function] [call site] 00231
4 strlen [call site] 00232
4 wget_strdup [function] [call site] 00233
4 wget_strdup [function] [call site] 00234
4 wget_base64_decode_alloc [function] [call site] 00235
5 wget_base64_get_decoded_length [function] [call site] 00236
5 wget_malloc [function] [call site] 00237
5 wget_base64_decode [function] [call site] 00238
4 wget_vector_create [function] [call site] 00240
5 wget_calloc [function] [call site] 00241
5 wget_malloc [function] [call site] 00242
4 compare_pin [function] [call site] 00243
5 strcmp [call site] 00244
5 memcmp [call site] 00245
4 wget_vector_set_destructor [function] [call site] 00246
4 hpkp_pin_free [function] [call site] 00247
4 wget_vector_add [function] [call site] 00248
5 insert_element [function] [call site] 00249
6 wget_realloc [function] [call site] 00250
3 gettext [call site] 00251
3 wget_error_printf [function] [call site] 00252
3 wget_debug_printf [function] [call site] 00253
3 wget_hpkp_db_add [function] [call site] 00254
3 ferror [call site] 00255
2 gettext [call site] 00256
2 wget_error_printf [function] [call site] 00257
2 wget_debug_printf [function] [call site] 00258
1 wget_hpkp_db_check_pubkey [function] [call site] 00259
2 wget_hash_get_len [function] [call site] 00260
2 gettext [call site] 00261
2 wget_error_printf [function] [call site] 00262
2 wget_hashmap_get [function] [call site] 00263
2 strchrnul [call site] 00264
2 wget_hash_fast [function] [call site] 00265
3 wget_hash_init [function] [call site] 00266
4 wget_malloc [function] [call site] 00267
4 wget_malloc [function] [call site] 00268
3 wget_hash [function] [call site] 00269
3 wget_hash_deinit [function] [call site] 00270
2 wget_vector_find [function] [call site] 00271
1 wget_hpkp_db_free [function] [call site] 00272
2 wget_hpkp_db_deinit [function] [call site] 00273
3 wget_thread_mutex_lock [function] [call site] 00274
3 wget_hashmap_free [function] [call site] 00275
4 wget_hashmap_clear [function] [call site] 00276
3 wget_thread_mutex_unlock [function] [call site] 00277
3 wget_thread_mutex_destroy [function] [call site] 00278
4 pthread_mutex_destroy [call site] 00279