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

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: fuzz_lldp

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 156 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 156 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
155 0 EP call site: 00000 lldp_decode

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
39
Reachable functions
39
Percentage of reachable functions covered
0.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/fuzz_lldp.c 2
src/log.c 10
src/daemon/protocols/lldp.c 2
src/daemon/lldpd.c 1
src/lldpd-structs.c 7

Fuzzer: fuzz_cdp

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 116 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 116 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
115 0 EP call site: 00000 cdp_decode

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
41
Reachable functions
41
Percentage of reachable functions covered
0.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/fuzz_cdp.c 2
src/log.c 10
src/daemon/protocols/cdp.c 3
src/daemon/lldpd.c 1
src/lldpd-structs.c 7

Fuzzer: fuzz_edp

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 97 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 97 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
96 0 EP call site: 00000 edp_decode

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
37
Reachable functions
37
Percentage of reachable functions covered
0.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/fuzz_edp.c 2
src/log.c 10
src/daemon/protocols/edp.c 1
src/daemon/lldpd.c 1
src/lldpd-structs.c 7

Fuzzer: fuzz_sonmp

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 42 53.1%
gold [1:9] 1 1.26%
yellow [10:29] 5 6.32%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 31 39.2%
All colors 79 100

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

Runtime coverage analysis

Covered functions
15
Functions that are reachable but not covered
22
Reachable functions
37
Percentage of reachable functions covered
40.54%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/fuzz_sonmp.c 2
src/log.c 9
src/daemon/protocols/sonmp.c 1
src/daemon/lldpd.c 1
src/lldpd-structs.c 7

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
levent_loop /src/lldpd/src/daemon/event.c 1 ['N/A'] 25 0 75 16 6 447 0 2380 2257
_lldp_send /src/lldpd/src/daemon/protocols/lldp.c 10 ['N/A', 'N/A', 'char', 'N/A', 'int', 'char', 'N/A', 'int', 'int', 'int'] 4 0 6139 885 358 27 3 805 725
bufferevent_socket_connect_hostname /src/lldpd/libevent/bufferevent_sock.c 5 ['N/A', 'N/A', 'int', 'N/A', 'int'] 19 0 117 16 7 148 0 729 251
fdp_send /src/lldpd/src/daemon/protocols/cdp.c 2 ['N/A', 'N/A'] 6 0 20 3 2 28 0 238 148
priv_init /src/lldpd/src/daemon/priv.c 4 ['N/A', 'int', 'int', 'int'] 7 0 137 19 20 66 0 240 118
edp_send /src/lldpd/src/daemon/protocols/edp.c 2 ['N/A', 'N/A'] 5 0 1858 277 115 29 0 215 117
evutil_secure_rng_get_bytes /src/lldpd/libevent/evutil_rand.c 2 ['N/A', 'size_t'] 9 0 20 3 2 24 0 114 100
bufferevent_filter_new /src/lldpd/libevent/bufferevent_filter.c 6 ['N/A', 'N/A', 'N/A', 'int', 'N/A', 'N/A'] 19 0 183 19 8 130 0 625 96
event_reinit /src/lldpd/libevent/event.c 1 ['N/A'] 8 0 333 49 17 93 0 445 95
evbuffer_readline /src/lldpd/libevent/buffer.c 1 ['N/A'] 12 0 16 3 2 70 0 342 87

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
56.0%
503 / 899
Cyclomatic complexity statically reachable by fuzzers
65.0%
3795 / 5815

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
/src/lldpd/src/daemon/protocols/lldp.c ['fuzz_lldp'] []
[] []
/src/lldpd/libevent/evutil_time.c [] []
/src/lldpd/libevent/././arc4random.c [] []
/src/lldpd/src/daemon/priv-linux.c [] []
/src/lldpd/src/daemon/interfaces-linux.c [] []
/src/lldpd/src/./lldpd-structs.h [] []
/src/lldpd/libevent/evutil.c [] []
/src/lldpd/src/ctl.c [] []
/src/lldpd/src/daemon/interfaces.c [] []
/src/lldpd/src/compat/strlcpy.c [] []
/src/lldpd/src/daemon/lldpd.c ['fuzz_lldp', 'fuzz_cdp', 'fuzz_edp', 'fuzz_sonmp'] ['fuzz_sonmp']
/src/lldpd/libevent/signal.c [] []
/src/lldpd/tests/fuzz_cdp.c ['fuzz_cdp'] []
/src/lldpd/src/daemon/pattern.c [] []
/src/lldpd/src/version.c [] []
/src/lldpd/libevent/./minheap-internal.h [] []
/src/lldpd/src/daemon/frame.c [] []
/src/lldpd/src/daemon/dmi-linux.c [] []
/src/lldpd/src/daemon/netlink.c [] []
/src/lldpd/src/daemon/protocols/cdp.c ['fuzz_cdp'] []
/src/lldpd/src/daemon/forward-linux.c [] []
/src/lldpd/src/daemon/protocols/sonmp.c ['fuzz_sonmp'] ['fuzz_sonmp']
/src/lldpd/src/daemon/priv.c [] []
/src/lldpd/src/daemon/event.c [] []
/src/lldpd/libevent/bufferevent_sock.c [] []
/src/lldpd/libevent/evmap.c [] []
/src/lldpd/tests/fuzz_edp.c ['fuzz_edp'] []
/src/lldpd/libevent/log.c [] []
/src/lldpd/libevent/bufferevent_pair.c [] []
/src/lldpd/src/daemon/privsep.c [] []
/src/lldpd/src/daemon/client.c [] []
/src/lldpd/src/daemon/protocols/edp.c ['fuzz_edp'] []
/src/lldpd/src/daemon/privsep_io.c [] []
/src/lldpd/libevent/buffer.c [] []
/src/lldpd/src/lldpd-structs.c ['fuzz_lldp', 'fuzz_cdp', 'fuzz_edp', 'fuzz_sonmp'] ['fuzz_sonmp']
/src/lldpd/libevent/bufferevent_ratelim.c [] []
/src/lldpd/src/marshal.c [] []
/src/lldpd/libevent/event.c [] []
/src/lldpd/libevent/poll.c [] []
/src/lldpd/libevent/evutil_rand.c [] []
/src/lldpd/libevent/strlcpy.c [] []
/src/lldpd/src/compat/setproctitle.c [] []
/src/lldpd/tests/fuzz_sonmp.c ['fuzz_sonmp'] ['fuzz_sonmp']
/src/lldpd/libevent/epoll.c [] []
/src/lldpd/src/log.c ['fuzz_lldp', 'fuzz_cdp', 'fuzz_edp', 'fuzz_sonmp'] ['fuzz_sonmp']
/src/lldpd/src/daemon/bitmap.c [] []
/src/lldpd/libevent/select.c [] []
/src/lldpd/tests/fuzz_lldp.c ['fuzz_lldp'] []
/src/lldpd/libevent/./bufferevent-internal.h [] []
/src/lldpd/src/compat/strtonum.c [] []
/src/lldpd/src/daemon/privsep_fd.c [] []
/src/lldpd/libevent/bufferevent_filter.c [] []
/src/lldpd/libevent/bufferevent.c [] []

Directories in report

Directory
/src/lldpd/src/compat/
/src/lldpd/tests/
/src/lldpd/libevent/././
/src/lldpd/libevent/
/src/lldpd/src/
/src/lldpd/src/./
/src/lldpd/src/daemon/protocols/
/src/lldpd/libevent/./
/src/lldpd/src/daemon/