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: lws_upng_inflate_fuzzer

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 13 11.4%
gold [1:9] 11 9.64%
yellow [10:29] 5 4.38%
greenyellow [30:49] 7 6.14%
lawngreen 50+ 78 68.4%
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
2 22 __lws_logv call site: 00022 lws_snprintf
2 43 spew_emit call site: 00043 spew_emit
2 52 lws_upng_inflator_create call site: 00052 _lws_log
1 3 lws_upng_inflator_create call site: 00003 _lws_log
1 5 _lws_log call site: 00005 lws_strncpy
1 12 lws_snprintf call site: 00012 lws_snprintf
1 14 __lws_logv call site: 00014 lws_snprintf
1 16 __lws_logv call site: 00016 lws_snprintf
1 98 _lws_upng_inflate_data call site: 00098 _lws_log
1 112 lws_upng_inflator_destroy call site: 00112 lws_realloc

Runtime coverage analysis

Covered functions
32
Functions that are reachable but not covered
13
Reachable functions
43
Percentage of reachable functions covered
69.77%
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
/src/libwebsockets/lws_upng_inflate_fuzzer.cpp 2
/src/libwebsockets/lib/misc/upng-gzip.c 10
/src/libwebsockets/lib/core/alloc.c 2
/src/libwebsockets/lib/core/logs.c 12
/src/libwebsockets/lib/core/libwebsockets.c 2
/src/libwebsockets/lib/plat/unix/unix-misc.c 1

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
lws_parse_iso8601 /src/libwebsockets/lib/core/libwebsockets.c 1 ['N/A'] 3 0 248 47 20 10 0 179 177
__lws_lc_untag /src/libwebsockets/lib/core/logs.c 2 ['N/A', 'N/A'] 9 0 90 10 3 36 0 158 54
lws_cmdline_option_handle_builtin /src/libwebsockets/lib/core/libwebsockets.c 3 ['int', 'N/A', 'N/A'] 8 0 307 45 4 37 0 149 45
_realloc /src/libwebsockets/lib/core/alloc.c 3 ['N/A', 'size_t', 'N/A'] 10 0 134 27 10 33 0 143 39

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

Functions statically reachable by fuzzers
32.0%
60 / 186
Cyclomatic complexity statically reachable by fuzzers
47.0%
532 / 1131

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/libwebsockets/lib/core/lws_dll2.c [] []
/src/libwebsockets/lib/plat/unix/unix-misc.c ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']
/src/libwebsockets/lib/core/logs.c ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']
/src/libwebsockets/include/libwebsockets/lws-dll2.h [] []
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/limits [] []
/src/libwebsockets/lib/core/libwebsockets.c ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']
/src/libwebsockets/lws_upng_inflate_fuzzer.cpp ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']
/src/libwebsockets/lib/plat/unix/unix-file.c [] []
/src/libwebsockets/lib/core/alloc.c ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']
/src/libwebsockets/lib/misc/upng-gzip.c ['lws_upng_inflate_fuzzer'] ['lws_upng_inflate_fuzzer']

Directories in report

Directory
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/
/src/libwebsockets/
/src/libwebsockets/lib/misc/
/src/libwebsockets/include/libwebsockets/
/src/libwebsockets/lib/plat/unix/
/src/libwebsockets/lib/core/