Fuzz introspector: fuzz_sonmp
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
63 63 1 :

['log_warn']

63 155 sonmp_decode call site: 00060 /src/lldpd/src/daemon/protocols/sonmp.c:379
40 40 5 :

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

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

['__errno_location']

128 220 sonmp_decode call site: 00051 /src/lldpd/src/daemon/protocols/sonmp.c:361
2 2 1 :

['__errno_location']

2 2 lldpd_alloc_mgmt call site: 00055 /src/lldpd/src/daemon/lldpd.c:279
0 147 4 :

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

0 147 sonmp_decode call site: 00062 /src/lldpd/src/daemon/protocols/sonmp.c:387
0 147 4 :

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

0 147 sonmp_decode call site: 00064 /src/lldpd/src/daemon/protocols/sonmp.c:393
0 0 None 63 155 sonmp_decode call site: 00043 /src/lldpd/src/daemon/protocols/sonmp.c:330
0 0 None 63 63 sonmp_decode call site: 00022 /src/lldpd/src/daemon/protocols/sonmp.c:294
0 0 None 63 63 sonmp_decode call site: 00036 /src/lldpd/src/daemon/protocols/sonmp.c:299
0 0 None 2 2 lldpd_alloc_mgmt call site: 00052 /src/lldpd/src/daemon/lldpd.c:270
0 0 None 2 2 lldpd_alloc_mgmt call site: 00053 /src/lldpd/src/daemon/lldpd.c:274
0 0 None 0 147 sonmp_decode call site: 00045 /src/lldpd/src/daemon/protocols/sonmp.c:339

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 log_register [function] [call site] 00001
1 donothing [function] [call site] 00002
1 sonmp_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 translate [function] [call site] 00014
5 isatty [call site] 00015
4 isatty [call site] 00016
4 asprintf [call site] 00017
4 vfprintf [call site] 00018
4 fprintf [call site] 00019
4 vfprintf [call site] 00020
4 fflush [call site] 00021
2 calloc [call site] 00022
2 log_warn [function] [call site] 00023
3 __errno_location [call site] 00024
3 strerror [call site] 00025
3 __errno_location [call site] 00028
3 strerror [call site] 00029
3 asprintf [call site] 00030
3 __errno_location [call site] 00032
3 strerror [call site] 00033
2 calloc [call site] 00036
2 memcmp [call site] 00040
2 ntohs [call site] 00041
2 log_debug [function] [call site] 00042
2 calloc [call site] 00043
2 inet_ntop [call site] 00045
2 log_warnx [function] [call site] 00046
2 asprintf [call site] 00047
2 log_warnx [function] [call site] 00048
2 asprintf [call site] 00049
2 log_warnx [function] [call site] 00050
2 lldpd_alloc_mgmt [function] [call site] 00051
3 log_debug [function] [call site] 00052
3 __errno_location [call site] 00053
3 __errno_location [call site] 00054
3 calloc [call site] 00055
3 __errno_location [call site] 00056
2 __errno_location [call site] 00057
2 asprintf [call site] 00060
2 asprintf [call site] 00062
2 log_warnx [function] [call site] 00063
2 asprintf [call site] 00064
2 log_warnx [function] [call site] 00065
2 asprintf [call site] 00066
2 log_warnx [function] [call site] 00067
2 lldpd_chassis_cleanup [function] [call site] 00068
3 lldpd_chassis_mgmt_cleanup [function] [call site] 00069
4 log_debug [function] [call site] 00070
3 log_debug [function] [call site] 00071
2 lldpd_port_cleanup [function] [call site] 00072
3 lldpd_vlan_cleanup [function] [call site] 00073
3 lldpd_ppvid_cleanup [function] [call site] 00074
3 lldpd_pi_cleanup [function] [call site] 00075
3 lldpd_custom_list_cleanup [function] [call site] 00076
1 lldpd_port_cleanup [function] [call site] 00077
1 lldpd_chassis_cleanup [function] [call site] 00078