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 123 28.3%
gold [1:9] 91 20.9%
yellow [10:29] 77 17.7%
greenyellow [30:49] 20 4.60%
lawngreen 50+ 123 28.3%
All colors 434 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
27 172 ValidateBlockEnd call site: 00172 ResolveBlockResults
8 212 UnwindBlockStack call site: 00212 PushBlockResults
7 63 NewCodePage call site: 00063 CompileBlock
6 79 Pop call site: 00079 PushBlockResults
6 103 EmitSlotOffset call site: 00103 Pop
6 134 EnsureCodePageNumLines call site: 00134 AcquireCodePageWithCapacity
6 149 Compile_Operator call site: 00149 PreserveRegisterIfOccupied
5 127 PreserveRegisterIfOccupied call site: 00127 EmitOp
5 206 CopyStackIndexToSlot call site: 00206 CopyStackSlotsR
5 230 m3_LoadModule call site: 00230 EvaluateExpression
3 294 v_validate_body call site: 00294 v_pop_expect
3 403 CompileFunction call site: 00403 PushAllocatedSlot

Runtime coverage analysis

Covered functions
174
Functions that are reachable but not covered
24
Reachable functions
157
Percentage of reachable functions covered
84.71%
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 27
m3_core.c 18
m3_function.c 11
m3_code.c 7
m3_parse.c 2
m3_module.c 2
m3_compile.c 56
m3_compile.h 4
m3_exec.h 2
m3_exec_defs.h 1
m3_validate.c 20
m3_info.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
ParseSection_Import /src/wasm3/source/m3_parse.c 3 ['N/A', 'N/A', 'N/A'] 4 0 308 64 24 20 0 123 83
Compile_BranchTable /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 10 0 488 107 44 70 0 283 80
Compile_If /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 12 0 139 33 15 91 0 394 61
Compile_Const_f32 /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 8 0 33 6 3 38 0 144 46
Compile_Branch /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 10 0 312 75 35 69 0 271 37
Compile_CallIndirect /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 9 0 111 21 9 109 0 593 36
Compile_Select /src/wasm3/source/m3_compile.c 2 ['N/A', 'short'] 7 0 312 77 32 48 0 174 36

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

Functions statically reachable by fuzzers
25.0%
198 / 784
Cyclomatic complexity statically reachable by fuzzers
41.0%
1207 / 2936

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