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 11368 72.2%
gold [1:9] 112 0.71%
yellow [10:29] 51 0.32%
greenyellow [30:49] 20 0.12%
lawngreen 50+ 4183 26.5%
All colors 15734 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
42295 400899 180 :

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

42295 443258 sqlite3VdbeExec call site: 11451 /src/sqlite3/bld/sqlite3.c:102451
42295 400899 180 :

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

42295 443258 sqlite3VdbeExec call site: 11839 /src/sqlite3/bld/sqlite3.c:102748
8893 8893 1 :

['windowFullScan']

8893 9811 windowReturnOneRow call site: 06124 /src/sqlite3/bld/sqlite3.c:174640
2556 2556 1 :

['sqlite3BtreeSetVersion']

2564 15613 sqlite3_backup_step call site: 11672 /src/sqlite3/bld/sqlite3.c:83641
2148 2148 2 :

['sqlite3ShowWhereTerm', 'sqlite3VdbePrintOp']

2148 2148 sqlite3WhereOpcodeRewriteTrace call site: 05953 /src/sqlite3/bld/sqlite3.c:172353
1672 1751 2 :

['sqlite3Error', 'sqlite3MisuseError']

1672 1756 sqlite3_declare_vtab call site: 00000 /src/sqlite3/bld/sqlite3.c:158917
1388 1388 1 :

['sqlite3BtreeNewDb']

3952 18755 sqlite3_backup_step call site: 11662 /src/sqlite3/bld/sqlite3.c:83630
1288 1288 1 :

['pagerWriteLargeSector']

1288 1288 sqlite3PagerWrite call site: 01412 /src/sqlite3/bld/sqlite3.c:64397
1231 1231 1 :

['sqlite3TreeViewExpr']

1231 1231 exprAnalyze call site: 04090 /src/sqlite3/bld/sqlite3.c:164220
1185 1185 1 :

['codeTableLocks']

1185 14133 sqlite3FinishCoding call site: 02402 /src/sqlite3/bld/sqlite3.c:123628
1133 1133 1 :

['yyStackOverflow']

1133 1133 yy_shift call site: 15641 /src/sqlite3/bld/sqlite3.c:178630
1093 1953 3 :

['sqlite3_load_extension', 'sqlite3_free', 'sqlite3_value_text']

1093 2822 loadExt call site: 00000 /src/sqlite3/bld/sqlite3.c:132605

Runtime coverage analysis

Covered functions
2139
Functions that are reachable but not covered
212
Reachable functions
1897
Percentage of reachable functions covered
88.82%
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 1876

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 1958 814
resolveExprStep /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 44 0 2756 472 128 299 1 2565 500
strftimeFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 40 0 589 93 17 180 0 1346 243
selectExpander /src/sqlite3/bld/sqlite3.c 2 ['N/A', 'N/A'] 70 0 2444 401 115 1878 0 19252 232
unixOpen /src/sqlite3/bld/sqlite3.c 5 ['N/A', 'N/A', 'N/A', 'int', 'N/A'] 38 0 1113 229 65 170 0 1274 176
renameColumnFunc /src/sqlite3/bld/sqlite3.c 3 ['N/A', 'int', 'N/A'] 69 0 806 118 39 1887 0 19162 156
sqlite3_test_control /src/sqlite3/bld/sqlite3.c 1 ['int'] 45 0 1602 218 57 261 0 1803 151

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

Functions statically reachable by fuzzers
77.0%
2069 / 2696
Cyclomatic complexity statically reachable by fuzzers
85.0%
21369 / 25033

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