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: 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 144 18.3%
gold [1:9] 24 3.05%
yellow [10:29] 13 1.65%
greenyellow [30:49] 15 1.91%
lawngreen 50+ 589 75.0%
All colors 785 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
9 634 v_validate_body call site: 00634 v_resume_clause
8 108 LinkImports call site: 00108 FreeMemoryBlock
8 652 v_validate_body call site: 00652 v_resume_clause
8 671 v_validate_body call site: 00671 Module_ContTypeOfRef
8 723 m3_Realloc_Impl call site: 00723 AddSafePointValue
7 117 LinkImports call site: 00117 Module_FindExportedTable
7 662 v_validate_body call site: 00662 v_resume_clause
7 700 CompileFunction call site: 00700 IsRefType
6 286 ReadLEB_i7 call site: 00286 NormalizeType
6 712 ReserveConstants call site: 00712 EmitOp
5 35 Function_Release call site: 00035 m3_Free_Impl
5 644 HeapTypeOf call site: 00644 v_pop_expect

Runtime coverage analysis

Covered functions
1006
Functions that are reachable but not covered
29
Reachable functions
245
Percentage of reachable functions covered
88.16%
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
/src/wasm3/platforms/app_fuzz/fuzzer.c 1
m3_env.c 59
m3_core.c 29
m3_function.c 13
m3_code.c 7
m3_info.c 1
m3_module.c 4
m3_host_posix.h 9
m3_parse.c 4
m3_function.h 1
m3_env.h 3
m3_core.h 3
m3_compile.c 59
m3_exec.h 7
m3_compile.h 4
m3_exec_defs.h 1
m3_validate.c 28

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
Compile_Resume /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 12 0 984 197 80 195 0 1505 328
Compile_If /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 12 0 162 38 17 143 0 762 209
ParseSection_Import /src/wasm3/source/m3_parse.c 3 ['N/A', 'N/A', 'N/A'] 5 0 344 81 33 35 0 228 147
ParseSection_Type /src/wasm3/source/m3_parse.c 3 ['N/A', 'N/A', 'N/A'] 5 0 256 51 20 24 0 182 98
Compile_SetLocal /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 8 0 236 53 24 62 0 276 83
Compile_Call /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 9 0 242 52 22 85 0 357 73
m3_LinkRawFunction /src/wasm3/source/m3_bind.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 12 3 2 24 0 125 68
Compile_Switch /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 8 0 350 71 30 70 0 315 61
Compile_Atomic /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 8 0 270 58 25 75 0 292 56
m3_CallArgv /src/wasm3/source/m3_env.c 3 ['N/A', 'int', 'N/A'] 6 0 210 42 13 39 0 157 51

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

Functions statically reachable by fuzzers
28.9%
356 / 1216
Cyclomatic complexity statically reachable by fuzzers
49.0%
2848 / 5820

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/wasm3/source/m3_atomic.h [] []
/src/wasm3/source/m3_bind.c [] []
/src/wasm3/source/m3_env.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_parse.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_compile.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_info.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_exec.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_compile.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_exec_atomic.h [] []
/src/wasm3/source/m3_host.h [] []
/src/wasm3/source/m3_function.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_module.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_math_utils.h [] []
/src/wasm3/source/m3_exec_defs.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_env.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_function.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_host_posix.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_core.h ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_code.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_core.c ['fuzzer'] ['fuzzer']
/src/wasm3/source/m3_validate.c ['fuzzer'] ['fuzzer']
/src/wasm3/platforms/app_fuzz/fuzzer.c ['fuzzer'] ['fuzzer']

Directories in report

Directory
/src/wasm3/source/
/src/wasm3/platforms/app_fuzz/