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_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 42 43.2%
gold [1:9] 2 2.06%
yellow [10:29] 7 7.21%
greenyellow [30:49] 4 4.12%
lawngreen 50+ 42 43.2%
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
13 8 vlog call site: 00008 translate
13 22 edp_decode call site: 00022 log_warn
3 81 edp_decode call site: 00081 lldpd_vlan_cleanup
2 73 lldpd_alloc_mgmt call site: 00073 __errno_location
2 76 lldpd_alloc_mgmt call site: 00076 log_warn
1 5 log_debug call site: 00005 strcmp
1 36 edp_decode call site: 00036 log_warn
1 49 edp_decode call site: 00049 log_warn
1 58 edp_decode call site: 00058 log_warn
1 60 edp_decode call site: 00060 log_warn
1 62 edp_decode call site: 00062 log_warn
1 64 edp_decode call site: 00064 log_warn

Runtime coverage analysis

Covered functions
16
Functions that are reachable but not covered
21
Reachable functions
37
Percentage of reachable functions covered
43.24%
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_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 42 26.9%
gold [1:9] 3 1.92%
yellow [10:29] 13 8.33%
greenyellow [30:49] 5 3.20%
lawngreen 50+ 93 59.6%
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
13 8 vlog call site: 00008 translate
5 22 lldp_decode call site: 00022 log_warn
4 30 log_warn call site: 00030 logit
4 58 lldp_decode call site: 00058 log_warn
2 139 lldp_decode call site: 00139 log_warn
1 5 log_debug call site: 00005 strcmp
1 36 lldp_decode call site: 00036 log_warn
1 66 lldp_decode call site: 00066 log_warn
1 78 lldpd_alloc_mgmt call site: 00078 __errno_location
1 81 lldpd_alloc_mgmt call site: 00081 __errno_location
1 83 lldp_decode call site: 00083 log_warn
1 89 lldp_decode call site: 00089 log_warn

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
21
Reachable functions
39
Percentage of reachable functions covered
46.15%
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_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] 10 12.6%
lawngreen 50+ 21 26.5%
All colors 79 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
13 8 vlog call site: 00008 translate
13 22 sonmp_decode call site: 00022 log_warn
4 55 lldpd_alloc_mgmt call site: 00055 log_warn
2 52 lldpd_alloc_mgmt call site: 00052 __errno_location
1 5 log_debug call site: 00005 strcmp
1 36 sonmp_decode call site: 00036 log_warn
1 43 sonmp_decode call site: 00043 log_warn
1 45 sonmp_decode call site: 00045 log_warnx
1 47 sonmp_decode call site: 00047 log_warnx
1 49 sonmp_decode call site: 00049 log_warnx
1 60 sonmp_decode call site: 00060 log_warn
1 62 sonmp_decode call site: 00062 log_warnx

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

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 47 40.5%
gold [1:9] 1 0.86%
yellow [10:29] 6 5.17%
greenyellow [30:49] 1 0.86%
lawngreen 50+ 61 52.5%
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
13 11 vlog call site: 00011 translate
5 25 cdp_decode call site: 00025 log_warn
4 33 log_warn call site: 00033 logit
4 70 lldpd_alloc_mgmt call site: 00070 log_warn
4 78 cdp_decode call site: 00078 log_warn
3 42 cdp_decode call site: 00042 log_info
2 39 cdp_decode call site: 00039 log_warn
2 56 cdp_decode call site: 00056 log_warn
2 67 lldpd_alloc_mgmt call site: 00067 __errno_location
1 8 log_debug call site: 00008 strcmp
1 50 cdp_decode call site: 00050 log_warnx
1 76 cdp_decode call site: 00076 log_warn

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
23
Reachable functions
41
Percentage of reachable functions covered
43.9%
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

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 74 16 6 448 0 2386 2263
_lldp_send /src/lldpd/src/daemon/protocols/lldp.c 10 ['N/A', 'N/A', 'char', 'N/A', 'int', 'char', 'N/A', 'int', 'int', 'int'] 5 0 6103 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 109 16 7 148 0 729 251
fdp_send /src/lldpd/src/daemon/protocols/cdp.c 2 ['N/A', 'N/A'] 6 0 18 3 2 28 0 238 148
priv_init /src/lldpd/src/daemon/priv.c 4 ['N/A', 'int', 'int', 'int'] 7 0 130 19 20 66 0 240 118
edp_send /src/lldpd/src/daemon/protocols/edp.c 2 ['N/A', 'N/A'] 4 0 1836 277 115 29 0 215 117
evutil_secure_rng_get_bytes /src/lldpd/libevent/evutil_rand.c 2 ['N/A', 'size_t'] 9 0 18 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 175 19 8 130 0 625 96
event_reinit /src/lldpd/libevent/event.c 1 ['N/A'] 8 0 327 49 17 93 0 445 95
evbuffer_readline /src/lldpd/libevent/buffer.c 1 ['N/A'] 12 0 15 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%
504 / 900
Cyclomatic complexity statically reachable by fuzzers
65.0%
3801 / 5822

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

Directories in report

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