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

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 9 12.5%
gold [1:9] 0 0.0%
yellow [10:29] 6 8.33%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 57 79.1%
All colors 72 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
4 13 mu::ParserErrorMsg::Instance() call site: 00013 __cxa_allocate_exception
2 66 LLVMFuzzerTestOneInput call site: 00066 __cxa_begin_catch
1 8 mu::ParserTokenReader::ParserTokenReader(mu::ParserBase*) call site: 00008
1 37 mu::ParserBase::SetExpr(std::__1::basic_string , std::__1::allocator > const&) call site: 00037
1 70 LLVMFuzzerTestOneInput call site: 00070 __cxa_end_catch

Runtime coverage analysis

Covered functions
167
Functions that are reachable but not covered
21
Reachable functions
92
Percentage of reachable functions covered
77.17%
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
/src/set_eval_fuzzer.cc 1
/src/muparser/src/muParser.cpp 1
/src/muparser/src/muParserBase.cpp 9
/src/muparser/src/muParserBytecode.cpp 2
/src/muparser/src/muParserTokenReader.cpp 7
/src/muparser/include/muParserToken.h 4
/usr/local/bin/../include/c++/v1/sstream 2
/src/muparser/src/muParserError.cpp 7
/src/muparser/include/muParserError.h 1
/src/muparser/include/muParserBytecode.h 1
/src/muparser/src/muParserCallback.cpp 5
/usr/local/include/muParser.h 1

Fuzzer: c_api_fuzzer

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 412 33.6%
gold [1:9] 37 3.02%
yellow [10:29] 17 1.38%
greenyellow [30:49] 6 0.48%
lawngreen 50+ 753 61.4%
All colors 1225 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
88 1038 mu::ParserBase::ParseCmdCodeBulk(int, int) const call site: 01038 __cxa_allocate_exception
79 766 mu::ParserBase::CreateRPN() const call site: 00766 __cxa_throw
75 513 mu::ParserBase::ApplyFunc(std::__1::stack , std::__1::allocator > >, std::__1::deque , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > > > >&, std::__1::stack , std::__1::allocator > >, std::__1::deque , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > > > >&, int) const call site: 00513 __cxa_allocate_exception
43 989 mu::ParserBase::ParseCmdCodeBulk(int, int) const call site: 00989 __cxa_allocate_exception
20 1173 mu::ParserBase::ParseCmdCodeShort() const call site: 01173 __cxa_allocate_exception
13 600 mu::ParserByteCode::AddFun(mu::generic_callable_type, int, bool) call site: 00600 __cxa_allocate_exception
9 1194 mu::ParserBase::ParseCmdCodeShort() const call site: 01194 __cxa_allocate_exception
6 118 mu::ParserCallback::IsValid() const call site: 00118
5 441 mu::ParserBase::CreateRPN() const call site: 00441 __cxa_allocate_exception
5 490 mu::ParserToken , std::__1::allocator > >::GetArgCount() const call site: 00490 __cxa_allocate_exception
5 738 mu::ParserToken , std::__1::allocator > >::GetPri() const call site: 00738 __cxa_free_exception
5 749 mu::ParserToken , std::__1::allocator > >::GetAssociativity() const call site: 00749 __cxa_allocate_exception

Runtime coverage analysis

Covered functions
269
Functions that are reachable but not covered
95
Reachable functions
431
Percentage of reachable functions covered
77.96%
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/c_api_fuzzer.cc 1
/src/muparser/src/muParserDLL.cpp 32
/src/muparser/src/muParser.cpp 1
/src/muparser/src/muParserBase.cpp 42
/src/muparser/src/muParserBytecode.cpp 15
/src/muparser/src/muParserTokenReader.cpp 26
/src/muparser/include/muParserToken.h 55
/usr/local/bin/../include/c++/v1/sstream 2
/src/muparser/src/muParserError.cpp 16
/src/muparser/include/muParserError.h 1
/src/muparser/include/muParserBytecode.h 4
/src/muparser/src/muParserInt.cpp 1
/src/muparser/src/muParserCallback.cpp 19
/src/muparser/include/muParserBase.h 2
/src/muparser/include/muParserTemplateMagic.h 2
/src/muparser/include/muParserDef.h 1

Analyses and suggestions

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

/src/set_eval_fuzzer.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['mu::ParserErrorMsg::Instance()', 'LLVMFuzzerTestOneInput', 'mu::ParserTokenReader::ParserTokenReader(mu::ParserBase*)', 'mu::ParserBase::SetExpr(std::__1::basic_string, std::__1::allocator > const&)']

/src/c_api_fuzzer.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['mu::ParserBase::ParseCmdCodeBulk(int, int) const', 'mu::ParserBase::CreateRPN() const', 'mu::ParserBase::ApplyFunc(std::__1::stack, std::__1::allocator > >, std::__1::deque, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > > > > >&, std::__1::stack, std::__1::allocator > >, std::__1::deque, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > > > > >&, int) const', 'mu::ParserBase::ParseCmdCodeBulk(int, int) const', 'mu::ParserBase::ParseCmdCodeShort() const', 'mu::ParserByteCode::AddFun(mu::generic_callable_type, int, bool)', 'mu::ParserBase::ParseCmdCodeShort() const', 'mu::ParserCallback::IsValid() const', 'mu::ParserBase::CreateRPN() const', 'mu::ParserToken, std::__1::allocator > >::GetArgCount() const']

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/muparser/src/muParserBytecode.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/src/muParser.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/include/muParserTemplateMagic.h ['c_api_fuzzer'] ['c_api_fuzzer']
/src/muparser/include/muParserInt.h [] []
/src/muparser/include/muParserDef.h ['c_api_fuzzer'] []
/src/c_api_fuzzer.cc ['c_api_fuzzer'] ['c_api_fuzzer']
/src/muparser/include/muParserBytecode.h ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/include/muParser.h [] []
/src/muparser/src/muParserTokenReader.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/include/muParserError.h ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/include/muParserTokenReader.h [] []
/src/muparser/src/muParserInt.cpp ['c_api_fuzzer'] ['c_api_fuzzer']
/usr/local/bin/../include/c++/v1/string [] []
/src/muparser/src/muParserError.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/include/muParserBase.h ['c_api_fuzzer'] ['c_api_fuzzer']
/src/set_eval_fuzzer.cc ['set_eval_fuzzer'] ['set_eval_fuzzer']
/src/muparser/src/muParserBase.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/muparser/include/muParserToken.h ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/src/muparser/src/muParserDLL.cpp ['c_api_fuzzer'] ['c_api_fuzzer']
/usr/local/bin/../include/c++/v1/sstream ['set_eval_fuzzer', 'c_api_fuzzer'] []
/src/muparser/src/muParserCallback.cpp ['set_eval_fuzzer', 'c_api_fuzzer'] ['set_eval_fuzzer', 'c_api_fuzzer']
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []

Directories in report

Directory
/usr/local/bin/../include/c++/v1/__iterator/
/src/muparser/include/
/src/muparser/src/
/src/
/usr/local/bin/../include/c++/v1/