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_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 40 51.9%
gold [1:9] 1 1.29%
yellow [10:29] 5 6.49%
greenyellow [30:49] 10 12.9%
lawngreen 50+ 21 27.2%
All colors 77 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 20 sonmp_decode call site: 00020 log_warn
11 8 vlog call site: 00008 translate
4 53 lldpd_alloc_mgmt call site: 00053 log_warn
2 50 lldpd_alloc_mgmt call site: 00050 __errno_location
1 5 log_debug call site: 00005 strcmp
1 34 sonmp_decode call site: 00034 log_warn
1 41 sonmp_decode call site: 00041 log_warn
1 43 sonmp_decode call site: 00043 log_warnx
1 45 sonmp_decode call site: 00045 log_warnx
1 47 sonmp_decode call site: 00047 log_warnx
1 58 sonmp_decode call site: 00058 log_warn
1 60 sonmp_decode call site: 00060 log_warnx

Runtime coverage analysis

Covered functions
15
Functions that are reachable but not covered
21
Reachable functions
36
Percentage of reachable functions covered
41.67%
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 45 39.4%
gold [1:9] 1 0.87%
yellow [10:29] 5 4.38%
greenyellow [30:49] 2 1.75%
lawngreen 50+ 61 53.5%
All colors 114 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
11 11 vlog call site: 00011 translate
5 23 cdp_decode call site: 00023 log_warn
4 31 log_warn call site: 00031 logit
4 68 lldpd_alloc_mgmt call site: 00068 log_warn
4 76 cdp_decode call site: 00076 log_warn
3 40 cdp_decode call site: 00040 log_info
2 37 cdp_decode call site: 00037 log_warn
2 54 cdp_decode call site: 00054 log_warn
2 65 lldpd_alloc_mgmt call site: 00065 __errno_location
1 8 log_debug call site: 00008 strcmp
1 48 cdp_decode call site: 00048 log_warnx
1 74 cdp_decode call site: 00074 log_warn

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
22
Reachable functions
40
Percentage of reachable functions covered
45.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 40 42.1%
gold [1:9] 1 1.05%
yellow [10:29] 8 8.42%
greenyellow [30:49] 2 2.10%
lawngreen 50+ 44 46.3%
All colors 95 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 20 edp_decode call site: 00020 log_warn
11 8 vlog call site: 00008 translate
3 79 edp_decode call site: 00079 lldpd_vlan_cleanup
2 71 lldpd_alloc_mgmt call site: 00071 __errno_location
2 74 lldpd_alloc_mgmt call site: 00074 log_warn
1 5 log_debug call site: 00005 strcmp
1 34 edp_decode call site: 00034 log_warn
1 47 edp_decode call site: 00047 log_warn
1 56 edp_decode call site: 00056 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

Runtime coverage analysis

Covered functions
16
Functions that are reachable but not covered
20
Reachable functions
36
Percentage of reachable functions covered
44.44%
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 40 25.9%
gold [1:9] 8 5.19%
yellow [10:29] 7 4.54%
greenyellow [30:49] 3 1.94%
lawngreen 50+ 96 62.3%
All colors 154 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
11 8 vlog call site: 00008 translate
5 20 lldp_decode call site: 00020 log_warn
4 28 log_warn call site: 00028 logit
4 56 lldp_decode call site: 00056 log_warn
2 137 lldp_decode call site: 00137 log_warn
1 5 log_debug call site: 00005 strcmp
1 34 lldp_decode call site: 00034 log_warn
1 64 lldp_decode call site: 00064 log_warn
1 76 lldpd_alloc_mgmt call site: 00076 __errno_location
1 79 lldpd_alloc_mgmt call site: 00079 __errno_location
1 81 lldp_decode call site: 00081 log_warn
1 87 lldp_decode call site: 00087 log_warn

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
20
Reachable functions
38
Percentage of reachable functions covered
47.37%
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

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'] 27 0 74 16 6 449 0 2407 2285
_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 26 3 804 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 27 0 237 148
edp_send /src/lldpd/src/daemon/protocols/edp.c 2 ['N/A', 'N/A'] 5 0 1836 277 115 28 0 214 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 102
priv_init /src/lldpd/src/daemon/priv.c 5 ['N/A', 'int', 'int', 'int', 'N/A'] 7 0 154 24 2 66 0 223 98
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%
506 / 904
Cyclomatic complexity statically reachable by fuzzers
65.0%
3807 / 5845

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

Directories in report

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