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_dostring

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 688 98.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 1.14%
All colors 696 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
570 67 LLVMFuzzerTestOneInput call site: 00067 root
65 1 LLVMFuzzerTestOneInput call site: 00001 janet_ev_init
45 650 LLVMFuzzerTestOneInput call site: 00650 janet_clear_memory
7 638 LLVMFuzzerTestOneInput call site: 00638 janet_parser_eof
1 646 LLVMFuzzerTestOneInput call site: 00646 janet_parser_eof

Runtime coverage analysis

Covered functions
137
Functions that are reachable but not covered
83
Reachable functions
211
Percentage of reachable functions covered
60.66%
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
./test/fuzzers/fuzz_dostring.c 1
src/core/vm.c 2
src/core/symcache.c 8
src/core/table.c 11
src/core/gc.c 11
src/core/util.c 14
src/core/wrap.c 7
src/core/math.c 3
src/core/ev.c 13
src/core/net.c 2
src/core/parse.c 27
src/core/string.c 5
src/core/strtod.c 14
src/core/inttypes.c 2
src/core/abstract.c 5
src/core/tuple.c 3
src/core/value.c 7
src/core/buffer.c 10
src/core/capi.c 7
src/core/pp.c 23
src/core/struct.c 6
src/core/array.c 2

Fuzzer: fuzz_unmarshal

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 926 99.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 9 0.96%
All colors 935 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
788 67 LLVMFuzzerTestOneInput call site: 00067 janet_unmarshal
65 1 LLVMFuzzerTestOneInput call site: 00001 janet_ev_init
44 890 LLVMFuzzerTestOneInput call site: 00890 janet_clear_memory
29 856 LLVMFuzzerTestOneInput call site: 00856 janet_env_lookup_into

Runtime coverage analysis

Covered functions
174
Functions that are reachable but not covered
60
Reachable functions
232
Percentage of reachable functions covered
74.14%
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
./test/fuzzers/fuzz_unmarshal.c 1
src/core/vm.c 4
src/core/symcache.c 8
src/core/table.c 16
src/core/gc.c 11
src/core/util.c 25
src/core/wrap.c 8
src/core/math.c 4
src/core/ev.c 14
src/core/net.c 3
src/core/corelib.c 3
src/core/string.c 6
src/core/value.c 7
src/core/io.c 3
src/core/capi.c 7
src/core/buffer.c 12
src/core/pp.c 22
src/core/struct.c 7
src/core/strtod.c 1
src/core/parse.c 3
src/core/abstract.c 5
src/core/array.c 5
src/core/tuple.c 3
src/core/fiber.c 2
src/core/os.c 1
src/core/compile.c 1
src/core/debug.c 1
src/core/marsh.c 14
src/core/peg.c 1
src/core/asm.c 1
src/core/inttypes.c 1
src/core/filewatch.c 1
src/core/ffi.c 1
src/core/vector.c 1
src/core/bytecode.c 1

Fuzzer: fuzz_compile

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 2059 99.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 15 0.72%
All colors 2074 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
1020 1020 LLVMFuzzerTestOneInput call site: 01020 janet_compile_lint
788 67 LLVMFuzzerTestOneInput call site: 00067 janet_unmarshal
151 856 LLVMFuzzerTestOneInput call site: 00856 root
65 1 LLVMFuzzerTestOneInput call site: 00001 janet_ev_init
30 2043 LLVMFuzzerTestOneInput call site: 02043 janet_clear_memory
3 1011 LLVMFuzzerTestOneInput call site: 01011 janet_parser_checkdead
2 1016 LLVMFuzzerTestOneInput call site: 01016 janet_nanbox_from_bits

Runtime coverage analysis

Covered functions
461
Functions that are reachable but not covered
92
Reachable functions
414
Percentage of reachable functions covered
77.78%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
./test/fuzzers/fuzz_compile.c 1
src/core/vm.c 19
src/core/symcache.c 8
src/core/table.c 16
src/core/gc.c 34
src/core/util.c 27
src/core/wrap.c 8
src/core/math.c 4
src/core/ev.c 17
src/core/net.c 3
src/core/corelib.c 3
src/core/string.c 6
src/core/value.c 15
src/core/io.c 5
src/core/capi.c 9
src/core/buffer.c 12
src/core/pp.c 23
src/core/struct.c 7
src/core/strtod.c 14
src/core/parse.c 29
src/core/abstract.c 5
src/core/array.c 8
src/core/tuple.c 4
src/core/fiber.c 20
src/core/os.c 1
src/core/compile.c 32
src/core/debug.c 1
src/core/marsh.c 11
src/core/peg.c 1
src/core/asm.c 1
src/core/inttypes.c 3
src/core/filewatch.c 1
src/core/ffi.c 1
src/core/vector.c 2
src/core/bytecode.c 4
src/core/regalloc.c 10
src/core/specials.c 1
src/core/cfuns.c 1
src/core/emit.c 15

Fuzzer: fuzz_dobytes

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 2503 99.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 0.31%
All colors 2511 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
1626 858 LLVMFuzzerTestOneInput call site: 00858 janet_loop
788 67 LLVMFuzzerTestOneInput call site: 00067 janet_unmarshal
65 1 LLVMFuzzerTestOneInput call site: 00001 janet_ev_init
24 2486 LLVMFuzzerTestOneInput call site: 02486 janet_clear_memory

Runtime coverage analysis

Covered functions
1002
Functions that are reachable but not covered
74
Reachable functions
485
Percentage of reachable functions covered
84.74%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
./test/fuzzers/fuzz_dobytes.c 1
src/core/vm.c 19
src/core/symcache.c 8
src/core/table.c 16
src/core/gc.c 34
src/core/util.c 29
src/core/wrap.c 8
src/core/math.c 4
src/core/ev.c 52
src/core/net.c 3
src/core/corelib.c 3
src/core/string.c 6
src/core/value.c 15
src/core/io.c 5
src/core/capi.c 11
src/core/buffer.c 12
src/core/pp.c 24
src/core/struct.c 7
src/core/strtod.c 14
src/core/parse.c 31
src/core/abstract.c 8
src/core/array.c 8
src/core/tuple.c 4
src/core/fiber.c 21
src/core/os.c 1
src/core/compile.c 32
src/core/debug.c 2
src/core/marsh.c 23
src/core/peg.c 1
src/core/asm.c 1
src/core/inttypes.c 3
src/core/filewatch.c 1
src/core/ffi.c 1
src/core/vector.c 2
src/core/bytecode.c 5
src/core/run.c 1
src/core/regalloc.c 10
src/core/specials.c 1
src/core/cfuns.c 1
src/core/emit.c 15

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
cfun_peg_replace /src/janet/src/core/peg.c 2 ['int', 'N/A'] 33 0 23 3 2 265 0 2045 303
janet_asm1 /src/janet/src/core/asm.c 4 ['N/A', 'N/A', 'size_t', 'int'] 31 0 2306 396 129 128 3 1043 330
os_execute /src/janet/src/core/os.c 2 ['int', 'N/A'] 31 0 23 3 2 188 0 984 225
janetc_fn /src/janet/src/core/specials.c 4 ['N/A', 'N/A', 'int', 'N/A'] 31 0 1150 203 69 297 0 2304 196
cfun_ffi_buffer_write /src/janet/src/core/ffi.c 2 ['int', 'N/A'] 27 0 129 8 3 147 0 897 149
janetc_var /src/janet/src/core/specials.c 4 ['N/A', 'N/A', 'int', 'N/A'] 32 0 168 21 8 290 0 2191 99
cfun_ev_thread /src/janet/src/core/ev.c 2 ['int', 'N/A'] 37 0 329 51 13 350 0 2427 97
cfun_disasm /src/janet/src/core/asm.c 2 ['int', 'N/A'] 27 0 277 36 17 150 0 813 83
janetc_if /src/janet/src/core/specials.c 4 ['N/A', 'N/A', 'int', 'N/A'] 31 0 739 136 54 277 0 2125 80
cfun_net_connect /src/janet/src/core/net.c 2 ['int', 'N/A'] 31 0 440 66 17 169 0 855 69

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

Functions statically reachable by fuzzers
41.0%
620 / 1528
Cyclomatic complexity statically reachable by fuzzers
56.9%
4667 / 8239

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/janet/./test/fuzzers/fuzz_dostring.c ['fuzz_dostring'] []
/src/janet/src/core/peg.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/string.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/struct.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/io.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/buffer.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/pp.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/wrap.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/vm.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/gc.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/marsh.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/parse.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/os.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/emit.c ['fuzz_compile', 'fuzz_dobytes'] ['fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/util.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/array.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/asm.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/net.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/debug.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/corelib.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/./test/fuzzers/fuzz_compile.c ['fuzz_compile'] []
/src/janet/src/core/abstract.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/specials.c ['fuzz_compile', 'fuzz_dobytes'] ['fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/inttypes.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/ev.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/bytecode.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/run.c ['fuzz_dobytes'] ['fuzz_dobytes']
/src/janet/src/core/vector.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/strtod.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/./test/fuzzers/fuzz_unmarshal.c ['fuzz_unmarshal'] []
/src/janet/src/core/value.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/fiber.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/ffi.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/./test/fuzzers/fuzz_dobytes.c ['fuzz_dobytes'] []
/src/janet/src/core/symcache.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/tuple.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/math.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/compile.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/cfuns.c ['fuzz_compile', 'fuzz_dobytes'] ['fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/filewatch.c ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/capi.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/regalloc.c ['fuzz_compile', 'fuzz_dobytes'] ['fuzz_compile', 'fuzz_dobytes']
/src/janet/src/core/state.c [] []
/src/janet/src/core/table.c ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes'] ['fuzz_dostring', 'fuzz_unmarshal', 'fuzz_compile', 'fuzz_dobytes']

Directories in report

Directory
/src/janet/./test/fuzzers/
/src/janet/src/core/