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

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 300 73.7%
gold [1:9] 0 0.0%
yellow [10:29] 2 0.49%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 105 25.7%
All colors 407 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
36 159 hsql::CreateStatement::setColumnDefsAndConstraints(std::__1::vector >*) call site: 00159
29 114 hsql::ImportExportOptions::~ImportExportOptions() call site: 00114 strcasecmp
17 74 hsql_lex(HSQL_STYPE*, HSQL_CUST_LTYPE*, void*) call site: 00074 getc
14 59 hsql::substr(char const*, int, int) call site: 00059 __tls_init
14 336 hsql::Expr::makeIntervalLiteral(long, hsql::DatetimeField) call site: 00336 __isoc99_sscanf
13 216 hsql::SelectStatement::SelectStatement() call site: 00216 strcasecmp
13 290 hsql::Expr::makeFunctionRef(char*, char*, std::__1::vector >*, bool, hsql::WindowDescription*) call site: 00290
13 351 hsql::Expr::makeParameter(int) call site: 00351
12 244 hsql::Expr::makeOpBinary(hsql::Expr*, hsql::OperatorType, hsql::Expr*) call site: 00244
11 39 hsql_parse(hsql::SQLParserResult*, void*) call site: 00039 __errno_location
10 276 hsql::Expr::makeExists(hsql::SelectStatement*) call site: 00276
8 196 hsql::DropStatement::DropStatement(hsql::DropType) call site: 00196

Runtime coverage analysis

Covered functions
124
Functions that are reachable but not covered
64
Reachable functions
261
Percentage of reachable functions covered
75.48%
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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/sql-parser/fuzz_sql_parse.cpp 1
/src/sql-parser/src/SQLParserResult.cpp 8
/src/sql-parser/src/SQLParser.cpp 1
/src/sql-parser/flex_lexer.cpp 23
/src/sql-parser/bison_parser.cpp 4
/src/sql-parser/src/parser/parser_typedef.h 4
/src/sql-parser/src/sql/Expr.cpp 35
/src/sql-parser/src/parser/flex_lexer.cpp 2
/src/sql-parser/src/sql/statements.cpp 28
/src/sql-parser/src/sql/SQLStatement.cpp 1
/src/sql-parser/src/sql/PrepareStatement.cpp 1
/src/sql-parser/bison_parser.y 1
/src/sql-parser/src/sql/CreateStatement.cpp 9
/src/sql-parser/src/sql/CreateStatement.h 1

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/sql-parser/src/SQLParserResult.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/bison_parser.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/flex_lexer.l [] []
/src/sql-parser/bison_parser.y ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/parser/parser_typedef.h ['fuzz_sql_parse'] []
/src/sql-parser/src/sql/Expr.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/fuzz_sql_parse.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/SQLStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/PrepareStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/sql-parser/src/SQLParser.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/usr/local/bin/../include/c++/v1/string [] []
/usr/local/bin/../include/c++/v1/sstream [] []
/src/sql-parser/flex_lexer.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/parser/flex_lexer.cpp ['fuzz_sql_parse'] []
/src/sql-parser/src/sql/statements.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/CreateStatement.h ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/CreateStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']

Directories in report

Directory
/src/sql-parser/
/src/sql-parser/src/
/src/sql-parser/src/sql/
/src/sql-parser/src/parser/
/usr/local/bin/../include/c++/v1/