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

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 11736 73.6%
gold [1:9] 105 0.65%
yellow [10:29] 38 0.23%
greenyellow [30:49] 20 0.12%
lawngreen 50+ 4031 25.3%
All colors 15930 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
1354 12682 sqlite3DbSpanDup call site: 12682 sqlite3AddPrimaryKey
684 15119 sqlite3_hard_heap_limit64 call site: 15119 sqlite3Pragma
643 4062 sqlite3VdbeChangeOpcode call site: 04062 sqlite3WhereBegin
619 6145 sqlite3_value_int call site: 06145 sqlite3ExprCode
516 5476 sqlite3VdbeChangeToNoop call site: 05476 sqlite3ConstructBloomFilter
470 6767 sqlite3VdbeJumpHereOrPopInst call site: 06767 sqlite3WhereEnd
400 5073 sqlite3LogEstFromDouble call site: 05073 constructAutomaticIndex
305 14039 sqlite3VdbeTakeOpArray call site: 14039 sqlite3CodeDropTable
282 12170 sqlite3Step call site: 12170 sqlite3InitOne
250 4822 sqlite3VdbeChangeP3 call site: 04822 exprAnalyze
217 3235 sqlite3Dequote call site: 03235 flattenSubquery
194 14849 sqlite3_result_int call site: 14849 sqlite3LocateTable

Runtime coverage analysis

Covered functions
2183
Functions that are reachable but not covered
207
Reachable functions
1930
Percentage of reachable functions covered
89.27%
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/ossfuzz.c 5
bld/sqlite3.c 1909

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
jsonExtractFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 42 0 378 70 24 257 0 2115 838
resolveExprStep /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 46 0 2724 472 128 311 1 2622 501
strftimeFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 40 0 573 93 17 194 0 1437 245
selectExpander /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 70 0 2420 404 116 1910 0 19520 236
unixOpen /src/sqlite3/bld/sqlite3.c 5 ['N/A', 'N/A', 'N/A', 'int', 'N/A'] 38 0 1145 242 67 183 0 1345 178
renameColumnFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 70 0 779 118 39 1919 0 19432 157
sqlite3_test_control /src/sqlite3/bld/sqlite3.c 1 ['int'] 45 0 1626 225 59 274 0 1876 153

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

Functions statically reachable by fuzzers
76.0%
2103 / 2761
Cyclomatic complexity statically reachable by fuzzers
85.0%
21679 / 25629

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