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

Fuzzer details

Fuzzer: fuzz-scanopt

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 4 17.3%
gold [1:9] 3 13.0%
yellow [10:29] 4 17.3%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 12 52.1%
All colors 23 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
0 0 None 2 82 scanopt call site: 00004 /src/flex/src/scanopt.c:636
0 0 None 2 2 find_opt call site: 00006 /src/flex/src/scanopt.c:564
0 0 None 0 0 scanopt call site: 00004 /src/flex/src/scanopt.c:631
0 0 None 0 0 scanopt call site: 00021 /src/flex/src/scanopt.c:750

Runtime coverage analysis

Covered functions
7
Functions that are reachable but not covered
5
Reachable functions
12
Percentage of reachable functions covered
58.33%
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/fuzz-scanopt.c 1
scanopt.c 6

Fuzzer: fuzz-main

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 1336 88.6%
gold [1:9] 16 1.06%
yellow [10:29] 4 0.26%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 151 10.0%
All colors 1507 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
1522 4259 18 :

['outc', 'out_str_dec', 'ntod', 'skelout', 'outn', 'make_tables', 'flexinit', 'readin', 'comment', 'visible_define', 'line_warning', 'optimize_pack', 'flexscan', 'out_str', 'flexend', 'fputs', 'line_directive_out', 'out']

1522 4259 flex_main call site: 00006 /src/flex/src/main.c:142
170 170 3 :

['ferror', 'lerr', 'fclose']

230 230 flexend call site: 00066 /src/flex/src/main.c:471
111 111 1 :

['skel_property']

111 111 suffix call site: 00134 /src/flex/src/skeletons.c:134
98 98 2 :

['mkechar', 'check_char']

98 98 mkstate call site: 00522 /src/flex/src/nfa.c:639
85 202 3 :

['gettext', 'lerr', 'reallocate_array']

183 300 mkstate call site: 00512 /src/flex/src/nfa.c:590
85 85 2 :

['fopen', 'lerr']

2397 2401 readin call site: 00959 /src/flex/src/main.c:1319
83 83 1 :

['flexerror']

168 285 check_options call site: 00589 /src/flex/src/main.c:383
83 83 1 :

['lerr']

83 83 check_options call site: 00593 /src/flex/src/main.c:422
59 59 4 :

['yytbl_hdr_init', 'yytbl_hdr_fwrite', 'calloc', 'yytbl_writer_init']

2899 2977 readin call site: 00868 /src/flex/src/main.c:1223
58 58 3 :

['putc', 'fputs', 'strcmp']

60 60 flexend call site: 00072 /src/flex/src/main.c:492
47 47 3 :

['strlen', 'scanopt_err', 'find_opt']

47 47 scanopt call site: 00034 /src/flex/src/scanopt.c:664
23 23 1 :

['visible_define_int']

801 801 readin call site: 01047 /src/flex/src/main.c:1592

Runtime coverage analysis

Covered functions
67
Functions that are reachable but not covered
203
Reachable functions
270
Percentage of reachable functions covered
24.81%
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/fuzz-main.c 1
main.c 8
misc.c 33
buf.c 5
scanflags.c 3
scanopt.c 6
skeletons.c 6
./scan.l 4
parse.c 2
yylex.c 1
stage1scan.c 17
parse.y 10
sym.c 9
ccl.c 9
nfa.c 16
ecs.c 4
regex.c 2
filter.c 4
tables.c 15
gen.c 15
dfa.c 10
tblcmp.c 14
tables_shared.c 1

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/flex/src/sym.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/dfa.c ['fuzz-main'] []
/src/flex/src/tables_shared.c ['fuzz-main'] []
/src/flex/src/./scan.l ['fuzz-main'] []
/src/flex/src/main.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/parse.y ['fuzz-main'] ['fuzz-main']
/src/flex/src/yylex.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/nfa.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/scanopt.c ['fuzz-scanopt', 'fuzz-main'] ['fuzz-scanopt', 'fuzz-main']
/src/flex/src/gen.c ['fuzz-main'] []
/src/flex/src/parse.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/buf.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/ecs.c ['fuzz-main'] []
/src/flex/src/tblcmp.c ['fuzz-main'] []
/src/flex/src/stage1scan.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/filter.c ['fuzz-main'] []
/src/flex/src/scanflags.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/skeletons.c ['fuzz-main'] ['fuzz-main']
/src/fuzz-scanopt.c ['fuzz-scanopt'] ['fuzz-scanopt']
/src/flex/src/misc.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/tables.c ['fuzz-main'] []
/src/fuzz-main.c ['fuzz-main'] ['fuzz-main']
/src/flex/src/regex.c ['fuzz-main'] []
/src/flex/src/ccl.c ['fuzz-main'] ['fuzz-main']

Directories in report

Directory
/src/flex/src/
/src/flex/src/./
/src/