Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

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 261 75.0%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.28%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 86 24.7%
All colors 348 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
0 0 None 94 2244 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:3116
0 0 None 94 2244 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:3149
0 0 None 94 2244 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:5377
0 0 None 94 2244 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:5405
0 0 None 16 316 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:5399
0 0 None 8 8 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:5544
0 0 1 :

['free']

8 8 hsql_parse(hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:5547
0 0 None 0 23 yydestruct(charconst*,yysymbol_kind_t,HSQL_STYPE*,HSQL_CUST_LTYPE*,hsql::SQLParserResult*,void*) call site: 00000 /src/sql-parser/bison_parser.cpp:2025
0 0 None 0 0 hsql::SQLParser::parse(std::__1::basic_string ,std::__1::allocator >const&,hsql::SQLParserResult*) call site: 00000 /src/sql-parser/src/SQLParser.cpp:17
0 0 None 0 0 yysyntax_error(long*,char**,yypcontext_tconst*) call site: 00000 /src/sql-parser/bison_parser.cpp:1947
0 0 None 0 0 yysyntax_error(long*,char**,yypcontext_tconst*) call site: 00000 /src/sql-parser/bison_parser.cpp:1975
0 0 None 0 0 yysyntax_error(long*,char**,yypcontext_tconst*) call site: 00000 /src/sql-parser/bison_parser.cpp:1982

Runtime coverage analysis

Covered functions
115
Functions that are reachable but not covered
60
Reachable functions
238
Percentage of reachable functions covered
74.79%
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 6
/src/sql-parser/src/SQLParser.cpp 1
/src/sql-parser/flex_lexer.cpp 23
/src/sql-parser/bison_parser.cpp 6
/src/sql-parser/src/parser/parser_typedef.h 4
/src/sql-parser/src/sql/Expr.cpp 29
/src/sql-parser/src/parser/flex_lexer.cpp 2
/src/sql-parser/src/sql/statements.cpp 25
/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 2
/src/sql-parser/src/sql/CreateStatement.h 1
/src/sql-parser/src/parser/../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/sql/statements.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/Expr.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/CreateStatement.h ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/bison_parser.y ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/PrepareStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/flex_lexer.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/CreateStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/fuzz_sql_parse.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/sql-parser/src/parser/flex_lexer.cpp ['fuzz_sql_parse'] []
/usr/local/bin/../include/c++/v1/math.h [] []
/usr/local/bin/../include/c++/v1/iosfwd [] []
/src/sql-parser/bison_parser.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/flex_lexer.l [] []
/src/sql-parser/src/parser/parser_typedef.h ['fuzz_sql_parse'] []
/src/sql-parser/src/parser/../sql/CreateStatement.h ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/SQLParser.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/sql/SQLStatement.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']
/src/sql-parser/src/SQLParserResult.cpp ['fuzz_sql_parse'] ['fuzz_sql_parse']

Directories in report

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