Fuzz introspector: FuzzDecode
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
59 59 3 :

['strerror', '__errno_location', 'logit']

59 112 log_warn call site: 00024 /src/lldpd/src/log.c:202
2 2 1 :

['vsyslog']

6 40 vlog call site: 00007 /src/lldpd/src/log.c:168
2 2 1 :

['__errno_location']

2 220 sonmp_decode call site: 00227 /src/lldpd/src/daemon/protocols/sonmp.c:354
2 2 1 :

['__errno_location']

2 2 lldpd_alloc_mgmt call site: 00074 /src/lldpd/src/daemon/lldpd.c:278
0 147 4 :

['log_warnx', 'lldpd_chassis_cleanup', 'lldpd_port_cleanup', 'free']

0 147 sonmp_decode call site: 00234 /src/lldpd/src/daemon/protocols/sonmp.c:378
0 147 4 :

['log_warnx', 'lldpd_chassis_cleanup', 'lldpd_port_cleanup', 'free']

0 147 sonmp_decode call site: 00236 /src/lldpd/src/daemon/protocols/sonmp.c:384
0 63 1 :

['log_warn']

0 155 cdp_decode call site: 00203 /src/lldpd/src/daemon/protocols/cdp.c:612
0 63 1 :

['log_warn']

0 155 cdp_decode call site: 00205 /src/lldpd/src/daemon/protocols/cdp.c:619
0 63 1 :

['log_warn']

0 155 cdp_decode call site: 00206 /src/lldpd/src/daemon/protocols/cdp.c:627
0 63 1 :

['log_warn']

0 155 sonmp_decode call site: 00231 /src/lldpd/src/daemon/protocols/sonmp.c:369
0 58 1 :

['log_info']

0 150 cdp_decode call site: 00155 /src/lldpd/src/daemon/protocols/cdp.c:332
0 0 None 72 3424 lldp_decode call site: 00132 /src/lldpd/src/daemon/protocols/lldp.c:1280

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 lldp_decode [function] [call site] 00002
2 log_debug [function] [call site] 00003
3 log_debug_accept_token [function] [call site] 00004
4 strcmp [call site] 00005
3 vlog [function] [call site] 00006
4 vasprintf [call site] 00007
4 vsyslog [call site] 00008
4 date [function] [call site] 00009
5 time [call site] 00010
5 localtime [call site] 00011
5 strftime [call site] 00012
4 isatty [call site] 00013
4 asprintf [call site] 00014
4 vfprintf [call site] 00015
4 fprintf [call site] 00016
4 vfprintf [call site] 00017
4 fflush [call site] 00018
2 calloc [call site] 00019
2 log_warn [function] [call site] 00020
3 __errno_location [call site] 00021
3 __errno_location [call site] 00024
3 __errno_location [call site] 00026
2 calloc [call site] 00029
2 memcmp [call site] 00033
2 memcmp [call site] 00034
2 memcmp [call site] 00035
2 ntohs [call site] 00038
2 log_warnx [function] [call site] 00040
2 ntohs [call site] 00041
2 log_warnx [function] [call site] 00042
2 log_warnx [function] [call site] 00043
2 log_warnx [function] [call site] 00044
2 log_warnx [function] [call site] 00045
2 log_warnx [function] [call site] 00046
2 log_debug [function] [call site] 00047
2 log_warnx [function] [call site] 00048
2 log_warnx [function] [call site] 00049
2 log_warnx [function] [call site] 00050
2 calloc [call site] 00051
2 log_warnx [function] [call site] 00053
2 log_warnx [function] [call site] 00054
2 log_warnx [function] [call site] 00055
2 log_warnx [function] [call site] 00056
2 ntohs [call site] 00057
2 log_debug [function] [call site] 00058
2 calloc [call site] 00059
2 log_warnx [function] [call site] 00061
2 ntohs [call site] 00062
2 ntohs [call site] 00063
2 log_warnx [function] [call site] 00064
2 log_warnx [function] [call site] 00065
2 log_warnx [function] [call site] 00066
2 log_warnx [function] [call site] 00067
2 ntohl [call site] 00068
2 lldpd_af_from_lldp_proto [function] [call site] 00069
2 lldpd_alloc_mgmt [function] [call site] 00070
3 log_debug [function] [call site] 00071
3 __errno_location [call site] 00072
3 __errno_location [call site] 00073
3 calloc [call site] 00074
3 __errno_location [call site] 00075
2 __errno_location [call site] 00076
2 log_warnx [function] [call site] 00079
2 memcmp [call site] 00080
2 log_warnx [function] [call site] 00081
2 calloc [call site] 00082
2 ntohs [call site] 00084
2 log_warnx [function] [call site] 00085
2 calloc [call site] 00086
2 log_warnx [function] [call site] 00088
2 ntohs [call site] 00089
2 log_warnx [function] [call site] 00090
2 calloc [call site] 00091
2 ntohs [call site] 00093
2 log_warnx [function] [call site] 00094
2 calloc [call site] 00095
2 log_warnx [function] [call site] 00097
2 calloc [call site] 00098
2 memcmp [call site] 00100
2 log_warnx [function] [call site] 00101
2 ntohs [call site] 00102
2 ntohs [call site] 00103
2 log_warnx [function] [call site] 00104
2 ntohl [call site] 00105
2 log_warnx [function] [call site] 00106
2 ntohs [call site] 00107
2 log_warnx [function] [call site] 00108
2 ntohs [call site] 00109
2 ntohs [call site] 00110
2 ntohs [call site] 00111
2 ntohs [call site] 00112
2 ntohs [call site] 00113
2 ntohs [call site] 00114
2 ntohs [call site] 00115
2 ntohs [call site] 00116
2 memcmp [call site] 00117
2 log_warnx [function] [call site] 00118
2 ntohs [call site] 00119
2 log_warnx [function] [call site] 00120
2 ntohl [call site] 00121
2 log_warnx [function] [call site] 00123
2 log_warnx [function] [call site] 00126
2 ntohs [call site] 00127
2 memcmp [call site] 00129
2 log_debug [function] [call site] 00130
2 log_debug [function] [call site] 00131
2 calloc [call site] 00132
2 log_warnx [function] [call site] 00135
2 log_warnx [function] [call site] 00136
2 log_warnx [function] [call site] 00137
2 lldpd_chassis_cleanup [function] [call site] 00138
3 lldpd_chassis_mgmt_cleanup [function] [call site] 00139
4 log_debug [function] [call site] 00140
3 log_debug [function] [call site] 00141
2 lldpd_port_cleanup [function] [call site] 00142
3 lldpd_vlan_cleanup [function] [call site] 00143
3 lldpd_ppvid_cleanup [function] [call site] 00144
3 lldpd_pi_cleanup [function] [call site] 00145
3 lldpd_custom_list_cleanup [function] [call site] 00146
1 cdp_decode [function] [call site] 00147
2 log_debug [function] [call site] 00148
2 calloc [call site] 00149
2 calloc [call site] 00151
2 memcmp [call site] 00154
2 memcmp [call site] 00155
2 ntohs [call site] 00157
2 log_warnx [function] [call site] 00158
2 ntohs [call site] 00159
2 log_debug [function] [call site] 00160
2 log_warnx [function] [call site] 00161
2 log_warnx [function] [call site] 00162
2 ntohs [call site] 00163
2 ntohs [call site] 00164
2 log_warnx [function] [call site] 00165
2 calloc [call site] 00166
2 log_warnx [function] [call site] 00169
2 ntohl [call site] 00170
2 ntohs [call site] 00173
2 ntohs [call site] 00175
2 lldpd_alloc_mgmt [function] [call site] 00176
2 __errno_location [call site] 00177
2 calloc [call site] 00181
2 calloc [call site] 00183
2 strncmp [call site] 00185
2 strncmp [call site] 00186
2 strncmp [call site] 00187
2 log_warnx [function] [call site] 00188
2 ntohl [call site] 00189
2 log_warnx [function] [call site] 00190
2 calloc [call site] 00191
2 ntohs [call site] 00193
2 asprintf [call site] 00194
2 log_warnx [function] [call site] 00196
2 ntohs [call site] 00197
2 ntohs [call site] 00198
2 ntohl [call site] 00199
2 log_debug [function] [call site] 00200
2 ntohs [call site] 00201
2 log_debug [function] [call site] 00202
2 calloc [call site] 00203
2 calloc [call site] 00205
2 log_warnx [function] [call site] 00208
2 lldpd_chassis_cleanup [function] [call site] 00209
2 lldpd_port_cleanup [function] [call site] 00210
1 sonmp_decode [function] [call site] 00211
2 log_debug [function] [call site] 00212
2 calloc [call site] 00213
2 calloc [call site] 00215
2 log_warnx [function] [call site] 00217
2 memcmp [call site] 00218
2 ntohs [call site] 00219
2 log_debug [function] [call site] 00220
2 calloc [call site] 00221
2 inet_ntoa [call site] 00223
2 log_warnx [function] [call site] 00224
2 asprintf [call site] 00225
2 log_warnx [function] [call site] 00226
2 lldpd_alloc_mgmt [function] [call site] 00227
2 __errno_location [call site] 00228
2 asprintf [call site] 00231
2 strlen [call site] 00233
2 asprintf [call site] 00234
2 log_warnx [function] [call site] 00235
2 asprintf [call site] 00236
2 log_warnx [function] [call site] 00237
2 asprintf [call site] 00238
2 log_warnx [function] [call site] 00239
2 lldpd_chassis_cleanup [function] [call site] 00240
2 lldpd_port_cleanup [function] [call site] 00241
1 edp_decode [function] [call site] 00242
2 log_debug [function] [call site] 00243
2 calloc [call site] 00244
2 calloc [call site] 00246
2 log_warnx [function] [call site] 00248
2 memcmp [call site] 00249
2 ntohs [call site] 00251
2 log_debug [function] [call site] 00252
2 log_warnx [function] [call site] 00253
2 ntohs [call site] 00254
2 ntohs [call site] 00255
2 log_warnx [function] [call site] 00256
2 log_warnx [function] [call site] 00257
2 frame_checksum [function] [call site] 00258
2 log_warnx [function] [call site] 00259
2 log_warnx [function] [call site] 00260
2 ntohs [call site] 00261
2 log_debug [function] [call site] 00262
2 log_warnx [function] [call site] 00263
2 ntohs [call site] 00264
2 asprintf [call site] 00265
2 asprintf [call site] 00268
2 calloc [call site] 00270
2 log_warnx [function] [call site] 00271
2 log_warnx [function] [call site] 00272
2 ntohs [call site] 00274
2 lldpd_alloc_mgmt [function] [call site] 00275
2 calloc [call site] 00277
2 log_debug [function] [call site] 00279
2 memcmp [call site] 00280
2 lldpd_vlan_cleanup [function] [call site] 00281
2 log_warnx [function] [call site] 00282
2 lldpd_chassis_cleanup [function] [call site] 00283
2 lldpd_port_cleanup [function] [call site] 00284