Fuzz introspector: fuzz_lldp
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: 00025 /src/lldpd/src/log.c:202
40 40 5 :

['isatty', 'date', 'fflush', 'vsyslog', 'translate']

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

['__errno_location']

2 2 lldpd_alloc_mgmt call site: 00075 /src/lldpd/src/daemon/lldpd.c:278
0 0 None 72 3424 lldp_decode call site: 00133 /src/lldpd/src/daemon/protocols/lldp.c:1280
0 0 None 72 3424 lldp_decode call site: 00134 /src/lldpd/src/daemon/protocols/lldp.c:1290
0 0 None 59 59 log_warn call site: 00021 /src/lldpd/src/log.c:197
0 0 None 2 2 lldpd_alloc_mgmt call site: 00072 /src/lldpd/src/daemon/lldpd.c:269
0 0 None 0 155 lldp_decode call site: 00052 /src/lldpd/src/daemon/protocols/lldp.c:738
0 0 None 0 155 lldp_decode call site: 00060 /src/lldpd/src/daemon/protocols/lldp.c:788
0 0 None 0 155 lldp_decode call site: 00077 /src/lldpd/src/daemon/protocols/lldp.c:845
0 0 None 0 155 lldp_decode call site: 00083 /src/lldpd/src/daemon/protocols/lldp.c:871
0 0 None 0 155 lldp_decode call site: 00087 /src/lldpd/src/daemon/protocols/lldp.c:883

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 log_register [function] [call site] 00001
1 donothing [function] [call site] 00002
1 lldp_decode [function] [call site] 00003
2 log_debug [function] [call site] 00004
3 log_debug_accept_token [function] [call site] 00005
4 strcmp [call site] 00006
3 vlog [function] [call site] 00007
4 vasprintf [call site] 00008
4 vsyslog [call site] 00009
4 date [function] [call site] 00010
5 time [call site] 00011
5 localtime [call site] 00012
5 strftime [call site] 00013
4 isatty [call site] 00014
4 asprintf [call site] 00015
4 vfprintf [call site] 00016
4 fprintf [call site] 00017
4 vfprintf [call site] 00018
4 fflush [call site] 00019
2 calloc [call site] 00020
2 log_warn [function] [call site] 00021
3 __errno_location [call site] 00022
3 __errno_location [call site] 00025
3 __errno_location [call site] 00027
2 calloc [call site] 00030
2 memcmp [call site] 00034
2 memcmp [call site] 00035
2 memcmp [call site] 00036
2 ntohs [call site] 00039
2 log_warnx [function] [call site] 00041
2 ntohs [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_warnx [function] [call site] 00047
2 log_debug [function] [call site] 00048
2 log_warnx [function] [call site] 00049
2 log_warnx [function] [call site] 00050
2 log_warnx [function] [call site] 00051
2 calloc [call site] 00052
2 log_warnx [function] [call site] 00054
2 log_warnx [function] [call site] 00055
2 log_warnx [function] [call site] 00056
2 log_warnx [function] [call site] 00057
2 ntohs [call site] 00058
2 log_debug [function] [call site] 00059
2 calloc [call site] 00060
2 log_warnx [function] [call site] 00062
2 ntohs [call site] 00063
2 ntohs [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 log_warnx [function] [call site] 00068
2 ntohl [call site] 00069
2 lldpd_af_from_lldp_proto [function] [call site] 00070
2 lldpd_alloc_mgmt [function] [call site] 00071
3 log_debug [function] [call site] 00072
3 __errno_location [call site] 00073
3 __errno_location [call site] 00074
3 calloc [call site] 00075
3 __errno_location [call site] 00076
2 __errno_location [call site] 00077
2 log_warnx [function] [call site] 00080
2 memcmp [call site] 00081
2 log_warnx [function] [call site] 00082
2 calloc [call site] 00083
2 ntohs [call site] 00085
2 log_warnx [function] [call site] 00086
2 calloc [call site] 00087
2 log_warnx [function] [call site] 00089
2 ntohs [call site] 00090
2 log_warnx [function] [call site] 00091
2 calloc [call site] 00092
2 ntohs [call site] 00094
2 log_warnx [function] [call site] 00095
2 calloc [call site] 00096
2 log_warnx [function] [call site] 00098
2 calloc [call site] 00099
2 memcmp [call site] 00101
2 log_warnx [function] [call site] 00102
2 ntohs [call site] 00103
2 ntohs [call site] 00104
2 log_warnx [function] [call site] 00105
2 ntohl [call site] 00106
2 log_warnx [function] [call site] 00107
2 ntohs [call site] 00108
2 log_warnx [function] [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 ntohs [call site] 00117
2 memcmp [call site] 00118
2 log_warnx [function] [call site] 00119
2 ntohs [call site] 00120
2 log_warnx [function] [call site] 00121
2 ntohl [call site] 00122
2 log_warnx [function] [call site] 00124
2 log_warnx [function] [call site] 00127
2 ntohs [call site] 00128
2 memcmp [call site] 00130
2 log_debug [function] [call site] 00131
2 log_debug [function] [call site] 00132
2 calloc [call site] 00133
2 log_warnx [function] [call site] 00136
2 log_warnx [function] [call site] 00137
2 log_warnx [function] [call site] 00138
2 lldpd_chassis_cleanup [function] [call site] 00139
3 lldpd_chassis_mgmt_cleanup [function] [call site] 00140
4 log_debug [function] [call site] 00141
3 log_debug [function] [call site] 00142
2 lldpd_port_cleanup [function] [call site] 00143
3 lldpd_vlan_cleanup [function] [call site] 00144
3 lldpd_ppvid_cleanup [function] [call site] 00145
3 lldpd_pi_cleanup [function] [call site] 00146
3 lldpd_custom_list_cleanup [function] [call site] 00147
1 lldpd_port_cleanup [function] [call site] 00148
1 lldpd_chassis_cleanup [function] [call site] 00149