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 11421 72.5%
gold [1:9] 120 0.76%
yellow [10:29] 29 0.18%
greenyellow [30:49] 47 0.29%
lawngreen 50+ 4133 26.2%
All colors 15750 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
42473 401976 181 :

['sqlite3VdbeCheckMemInvariants', 'sqlite3UnlinkAndDeleteIndex', 'sqlite3BtreeIncrVacuum', 'sqlite3BtreeGetMeta', 'sqlite3ReportError', 'sqlite3BtreeRowCountEst', 'sqlite3VdbeFinishMoveto', 'sqlite3MPrintf', 'sqlite3BtreeHoldsMutex', 'sqlite3VdbePrintOp', 'sqlite3ResetAllSchemasOfConnection', 'sqlite3VdbeRecordUnpack', 'sqlite3VdbeFreeCursor', 'sqlite3VdbeIncrWriteCounter', 'sqlite3PagerCloseWal', 'sqlite3BtreeBeginStmt', 'allocateCursor', 'sqlite3VdbeMemAboutToChange', 'sqlite3VtabSavepoint', 'sqlite3BtreeSavepoint', 'sqlite3VdbeMemSetNull', 'sqlite3BtreeFakeValidCursor', 'sqlite3_randomness', 'sqlite3PagerGetJournalMode', 'sqlite3VdbeSerialGet', 'sqlite3BtreeIndexMoveto', 'vdbeColumnFromOverflow', 'sqlite3FkClearTriggerCache', 'sqlite3VdbeMemRelease', 'sqlite3AnalysisLoad', 'sqlite3DbStrDup', 'sqlite3VdbeMemIsRowSet', 'sqlite3VdbeMemStringify', 'sqlite3BtreeBeginTrans', 'sqlite3BtreeClose', 'sqlite3VtabCallDestroy', 'sqlite3BtreeIntegerKey', 'sqlite3StrICmp', 'sqlite3VdbeMemClearAndResize', 'sqlite3BtreeLastPage', 'sqlite3BtreeEof', 'sqlite3VdbeCheckFkImmediate', 'sqlite3VtabLock', 'sqlite3VdbeSorterInit', 'sqlite3_free', 'strncmp', 'sqlite3BtreeSetVersion', 'sqlite3VdbeDeleteAuxData', 'sqlite3BtreeClearTableOfCursor', 'sqlite3VdbeMemFinalize', 'sqlite3RollbackAll', 'sqlite3SchemaClear', 'sqlite3BtreeTransferRow', 'sqlite3VdbeSorterWrite', 'sqlite3BtreePayloadFetch', 'sqlite3BtreeLast', 'sqlite3VdbeChangeEncoding', 'sqlite3VdbeCheckFkDeferred', 'sqlite3VdbeMemSetInt64', 'sqlite3_value_text', 'sqlite3BtreeCount', 'sqlite3VdbeMemGrow', 'sqlite3BtreeCursor', 'sqlite3BtreeFirst', 'sqlite3PagerFilename', 'sqlite3VdbeMemExpandBlob', 'sqlite3VdbeMemInit', 'sqlite3DbMallocRawNN', 'sqlite3VdbeFrameRestore', 'sqlite3BtreePager', 'filterHash', 'sqlite3UnlinkAndDeleteTable', 'sqlite3VdbeIdxRowid', 'sqlite3BtreeCursorHasMoved', 'sqlite3BtreeCursorHintFlags', 'sqlite3_value_type', 'test_trace_breakpoint', 'sqlite3PagerOkToChangeJournalMode', 'sqlite3BtreeNext', 'sqlite3VdbeMemRealify', 'sqlite3VtabUnlock', 'sqlite3RowSetInsert', 'sqlite3RootPageMoved', 'sqlite3ValueText', 'sqlite3VdbeMemCopy', 'sqlite3Checkpoint', 'sqlite3BtreeIntegrityCheck', 'sqlite3VdbeSetChanges', 'sqlite3VdbeCursorRestore', 'sqlite3GetVarint32', 'sqlite3VdbeMemMove', 'sqlite3Strlen30', 'sqlite3VdbeRecordCompareWithSkip', 'sqlite3BtreeCreateTable', 'sqlite3IsNaN', 'sqlite3VdbeMemTooBig', 'sqlite3VdbeIdxKeyCompare', 'sqlite3VdbeMemFromBtreeZeroOffset', 'sqlite3VdbeMemSetStr', 'sqlite3VdbeSorterRewind', 'sqlite3VdbeHandleMovedCursor', 'sqlite3VtabImportErrmsg', 'sqlite3PagerWalSupported', 'sqlite3CloseSavepoints', 'sqlite3DebugPrintf', 'sqlite3BtreeClearTable', 'sqlite3_exec', 'sqlite3BtreeCursorIsValidNN', 'sqlite3BtreeClosesWithCursor', 'sqlite3PagerSetJournalMode', 'sqlite3VdbeIntValue', 'sqlite3IntFloatCompare', 'sqlite3PutVarint', 'sqlite3BtreeCursorUnpin', 'sqlite3BtreeCursorPin', 'sqlite3RunVacuum', 'sqlite3VdbeSorterRowkey', 'sqlite3_malloc64', 'sqlite3VdbeMemShallowCopy', 'sqlite3VdbeRealValue', 'sqlite3VdbeAssertAbortable', 'sqlite3VtabBegin', 'sqlite3BtreeLockTable', 'sqlite3UnlinkAndDeleteTrigger', 'sqlite3BtreeIsEmpty', 'checkSavepointCount', 'sqlite3MemCompare', 'sqlite3SchemaMutexHeld', 'sqlite3BtreeTableMoveto', 'sqlite3BtreeUpdateMeta', 'sqlite3BtreeTripAllCursors', 'sqlite3WritableSchema', 'sqlite3VdbeExpandSql', 'sqlite3BtreeDelete', 'sqlite3VdbeAllocUnpackedRecord', 'sqlite3VdbeSorterNext', 'applyNumericAffinity', 'sqlite3VdbeMemSetRowSet', 'sqlite3BtreeCursorIsValid', 'applyAffinity', 'sqlite3MulInt64', 'sqlite3VdbeRegisterDump', 'sqlite3VdbeSorterCompare', 'sqlite3ExpirePreparedStatements', 'vdbeMemTypeName', 'sqlite3VdbeMemIntegerify', 'sqlite3LogEst', 'sqlite3VdbeSerialTypeLen', 'sqlite3VdbeMemCast', 'sqlite3BtreeClearCursor', 'sqlite3FaultSim', 'sqlite3VdbeMemSetZeroBlob', 'sqlite3BtreeMaxPageCount', 'sqlite3BtreePayloadSize', 'sqlite3VdbeOneByteSerialTypeLen', 'sqlite3SubInt64', 'sqlite3VdbeMemSetPointer', 'registerTrace', 'sqlite3VdbeBooleanValue', 'sqlite3BtreeInsert', 'sqlite3BtreeCursorHasHint', 'sqlite3BtreeOpen', 'sqlite3DbMallocZero', 'sqlite3BtreeTxnState', 'sqlite3AddInt64', 'sqlite3DbFreeNN', 'sqlite3VdbeMemAggValue', 'sqlite3RowSetTest', 'sqlite3VdbeSorterReset', 'sqlite3BtreePrevious', 'sqlite3RowSetNext', 'sqlite3VdbeMemMakeWriteable', 'numericType', 'out2Prerelease', 'sqlite3JournalModename', 'sqlite3VdbeMemReleaseMalloc', 'sqlite3DbFree', 'sqlite3InitOne', 'sqlite3VarintLen', 'sqlite3VtabCallCreate', 'sqlite3BtreeDropTable']

42473 444495 sqlite3VdbeExec call site: 11465 /src/sqlite3/bld/sqlite3.c:102636
42473 401976 181 :

['sqlite3VdbeCheckMemInvariants', 'sqlite3UnlinkAndDeleteIndex', 'sqlite3BtreeIncrVacuum', 'sqlite3BtreeGetMeta', 'sqlite3ReportError', 'sqlite3BtreeRowCountEst', 'sqlite3VdbeFinishMoveto', 'sqlite3MPrintf', 'sqlite3BtreeHoldsMutex', 'sqlite3VdbePrintOp', 'sqlite3ResetAllSchemasOfConnection', 'sqlite3VdbeRecordUnpack', 'sqlite3VdbeFreeCursor', 'sqlite3VdbeIncrWriteCounter', 'sqlite3PagerCloseWal', 'sqlite3BtreeBeginStmt', 'allocateCursor', 'sqlite3VdbeMemAboutToChange', 'sqlite3VtabSavepoint', 'sqlite3BtreeSavepoint', 'sqlite3VdbeMemSetNull', 'sqlite3BtreeFakeValidCursor', 'sqlite3_randomness', 'sqlite3PagerGetJournalMode', 'sqlite3VdbeSerialGet', 'sqlite3BtreeIndexMoveto', 'vdbeColumnFromOverflow', 'sqlite3FkClearTriggerCache', 'sqlite3VdbeMemRelease', 'sqlite3AnalysisLoad', 'sqlite3DbStrDup', 'sqlite3VdbeMemIsRowSet', 'sqlite3VdbeMemStringify', 'sqlite3BtreeBeginTrans', 'sqlite3BtreeClose', 'sqlite3VtabCallDestroy', 'sqlite3BtreeIntegerKey', 'sqlite3StrICmp', 'sqlite3VdbeMemClearAndResize', 'sqlite3BtreeLastPage', 'sqlite3BtreeEof', 'sqlite3VdbeCheckFkImmediate', 'sqlite3VtabLock', 'sqlite3VdbeSorterInit', 'sqlite3_free', 'strncmp', 'sqlite3BtreeSetVersion', 'sqlite3VdbeDeleteAuxData', 'sqlite3BtreeClearTableOfCursor', 'sqlite3VdbeMemFinalize', 'sqlite3RollbackAll', 'sqlite3SchemaClear', 'sqlite3BtreeTransferRow', 'sqlite3VdbeSorterWrite', 'sqlite3BtreePayloadFetch', 'sqlite3BtreeLast', 'sqlite3VdbeChangeEncoding', 'sqlite3VdbeCheckFkDeferred', 'sqlite3VdbeMemSetInt64', 'sqlite3_value_text', 'sqlite3BtreeCount', 'sqlite3VdbeMemGrow', 'sqlite3BtreeCursor', 'sqlite3BtreeFirst', 'sqlite3PagerFilename', 'sqlite3VdbeMemExpandBlob', 'sqlite3VdbeMemInit', 'sqlite3DbMallocRawNN', 'sqlite3VdbeFrameRestore', 'sqlite3BtreePager', 'filterHash', 'sqlite3UnlinkAndDeleteTable', 'sqlite3VdbeIdxRowid', 'sqlite3BtreeCursorHasMoved', 'sqlite3BtreeCursorHintFlags', 'sqlite3_value_type', 'test_trace_breakpoint', 'sqlite3PagerOkToChangeJournalMode', 'sqlite3BtreeNext', 'sqlite3VdbeMemRealify', 'sqlite3VtabUnlock', 'sqlite3RowSetInsert', 'sqlite3RootPageMoved', 'sqlite3ValueText', 'sqlite3VdbeMemCopy', 'sqlite3Checkpoint', 'sqlite3BtreeIntegrityCheck', 'sqlite3VdbeSetChanges', 'sqlite3VdbeCursorRestore', 'sqlite3GetVarint32', 'sqlite3VdbeMemMove', 'sqlite3Strlen30', 'sqlite3VdbeRecordCompareWithSkip', 'sqlite3BtreeCreateTable', 'sqlite3IsNaN', 'sqlite3VdbeMemTooBig', 'sqlite3VdbeIdxKeyCompare', 'sqlite3VdbeMemFromBtreeZeroOffset', 'sqlite3VdbeMemSetStr', 'sqlite3VdbeSorterRewind', 'sqlite3VdbeHandleMovedCursor', 'sqlite3VtabImportErrmsg', 'sqlite3PagerWalSupported', 'sqlite3CloseSavepoints', 'sqlite3DebugPrintf', 'sqlite3BtreeClearTable', 'sqlite3_exec', 'sqlite3BtreeCursorIsValidNN', 'sqlite3BtreeClosesWithCursor', 'sqlite3PagerSetJournalMode', 'sqlite3VdbeIntValue', 'sqlite3IntFloatCompare', 'sqlite3PutVarint', 'sqlite3BtreeCursorUnpin', 'sqlite3BtreeCursorPin', 'sqlite3RunVacuum', 'sqlite3VdbeSorterRowkey', 'sqlite3_malloc64', 'sqlite3VdbeMemShallowCopy', 'sqlite3VdbeRealValue', 'sqlite3VdbeAssertAbortable', 'sqlite3VtabBegin', 'sqlite3BtreeLockTable', 'sqlite3UnlinkAndDeleteTrigger', 'sqlite3BtreeIsEmpty', 'checkSavepointCount', 'sqlite3MemCompare', 'sqlite3SchemaMutexHeld', 'sqlite3BtreeTableMoveto', 'sqlite3BtreeUpdateMeta', 'sqlite3BtreeTripAllCursors', 'sqlite3WritableSchema', 'sqlite3VdbeExpandSql', 'sqlite3BtreeDelete', 'sqlite3VdbeAllocUnpackedRecord', 'sqlite3VdbeSorterNext', 'applyNumericAffinity', 'sqlite3VdbeMemSetRowSet', 'sqlite3BtreeCursorIsValid', 'applyAffinity', 'sqlite3MulInt64', 'sqlite3VdbeRegisterDump', 'sqlite3VdbeSorterCompare', 'sqlite3ExpirePreparedStatements', 'vdbeMemTypeName', 'sqlite3VdbeMemIntegerify', 'sqlite3LogEst', 'sqlite3VdbeSerialTypeLen', 'sqlite3VdbeMemCast', 'sqlite3BtreeClearCursor', 'sqlite3FaultSim', 'sqlite3VdbeMemSetZeroBlob', 'sqlite3BtreeMaxPageCount', 'sqlite3BtreePayloadSize', 'sqlite3VdbeOneByteSerialTypeLen', 'sqlite3SubInt64', 'sqlite3VdbeMemSetPointer', 'registerTrace', 'sqlite3VdbeBooleanValue', 'sqlite3BtreeInsert', 'sqlite3BtreeCursorHasHint', 'sqlite3BtreeOpen', 'sqlite3DbMallocZero', 'sqlite3BtreeTxnState', 'sqlite3AddInt64', 'sqlite3DbFreeNN', 'sqlite3VdbeMemAggValue', 'sqlite3RowSetTest', 'sqlite3VdbeSorterReset', 'sqlite3BtreePrevious', 'sqlite3RowSetNext', 'sqlite3VdbeMemMakeWriteable', 'numericType', 'out2Prerelease', 'sqlite3JournalModename', 'sqlite3VdbeMemReleaseMalloc', 'sqlite3DbFree', 'sqlite3InitOne', 'sqlite3VarintLen', 'sqlite3VtabCallCreate', 'sqlite3BtreeDropTable']

42473 444495 sqlite3VdbeExec call site: 11853 /src/sqlite3/bld/sqlite3.c:102933
8907 8907 1 :

['sqlite3MaterializeView']

9750 112683 sqlite3DeleteFrom call site: 12797 /src/sqlite3/bld/sqlite3.c:130397
8903 8903 1 :

['windowFullScan']

8903 9825 windowReturnOneRow call site: 06131 /src/sqlite3/bld/sqlite3.c:174876
2560 2560 1 :

['sqlite3BtreeSetVersion']

2568 15645 sqlite3_backup_step call site: 11686 /src/sqlite3/bld/sqlite3.c:83809
2156 2156 2 :

['sqlite3ShowWhereTerm', 'sqlite3VdbePrintOp']

2156 2156 sqlite3WhereOpcodeRewriteTrace call site: 05960 /src/sqlite3/bld/sqlite3.c:172589
1680 1759 2 :

['sqlite3Error', 'sqlite3MisuseError']

1680 1764 sqlite3_declare_vtab call site: 00000 /src/sqlite3/bld/sqlite3.c:159151
1392 1392 1 :

['sqlite3BtreeNewDb']

3960 18795 sqlite3_backup_step call site: 11676 /src/sqlite3/bld/sqlite3.c:83798
1292 1292 1 :

['pagerWriteLargeSector']

1292 1292 sqlite3PagerWrite call site: 01412 /src/sqlite3/bld/sqlite3.c:64565
1235 1235 1 :

['sqlite3TreeViewExpr']

1235 1235 exprAnalyze call site: 04095 /src/sqlite3/bld/sqlite3.c:164457
1189 1189 1 :

['codeTableLocks']

1189 14165 sqlite3FinishCoding call site: 02402 /src/sqlite3/bld/sqlite3.c:123854
1137 1137 1 :

['yyStackOverflow']

1137 1137 yy_shift call site: 15657 /src/sqlite3/bld/sqlite3.c:178866

Runtime coverage analysis

Covered functions
2138
Functions that are reachable but not covered
214
Reachable functions
1901
Percentage of reachable functions covered
88.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/ossfuzz.c 5
bld/sqlite3.c 1880

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 398 72 25 242 0 1962 814
resolveExprStep /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 44 0 2756 472 128 300 1 2571 500
strftimeFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 40 0 589 93 17 180 0 1350 243
selectExpander /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 70 0 2444 401 115 1882 0 19267 232
unixOpen /src/sqlite3/bld/sqlite3.c 5 ['N/A', 'N/A', 'N/A', 'int', 'N/A'] 38 0 1113 229 65 170 0 1278 176
renameColumnFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 69 0 806 118 39 1891 0 19177 156
sqlite3_test_control /src/sqlite3/bld/sqlite3.c 1 ['int'] 45 0 1602 218 57 261 0 1807 151

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

Functions statically reachable by fuzzers
77.0%
2073 / 2700
Cyclomatic complexity statically reachable by fuzzers
85.0%
21384 / 25048

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