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: parse_args_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 133 57.0%
gold [1:9] 0 0.0%
yellow [10:29] 4 1.71%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 96 41.2%
All colors 233 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
46 91 std::__1::__wrap_iter , std::__1::allocator >*> args::ArgumentParser::Parse , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00091 __cxa_allocate_exception
23 175 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00175 __cxa_allocate_exception
21 202 std::__1::__wrap_iter , std::__1::allocator >*> args::ArgumentParser::Parse , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00202 __cxa_allocate_exception
9 142 bool args::ArgumentParser::ParseLong , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00142 __cxa_allocate_exception
6 56 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00056 __cxa_throw
4 30 args::Matcher::Matcher , std::__1::equal_to , std::__1::allocator >, std::__1::unordered_set , std::__1::allocator >, std::__1::hash , std::__1::allocator > >, std::__1::equal_to , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > > >(std::__1::unordered_set , std::__1::equal_to , std::__1::allocator >&&, std::__1::unordered_set , std::__1::allocator >, std::__1::hash , std::__1::allocator > >, std::__1::equal_to , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > >&&) call site: 00030 __cxa_allocate_exception
4 166 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00166 __cxa_allocate_exception
3 11 args::ArgumentParser::ArgumentParser(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&) call site: 00011 __cxa_allocate_exception
3 66 args::Group::Add(args::Base&) call site: 00066 __cxa_rethrow
2 15 args::Error::Error(std::__1::basic_string , std::__1::allocator > const&) call site: 00015 __cxa_throw
2 53 args::Group::DetectDuplicateFlags(std::__1::unordered_set , std::__1::equal_to , std::__1::allocator >&, std::__1::unordered_set , std::__1::allocator >, std::__1::hash , std::__1::allocator > >, std::__1::equal_to , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > >&) call site: 00053 __cxa_allocate_exception
2 63 args::Group::DetectDuplicateFlags(std::__1::unordered_set , std::__1::equal_to , std::__1::allocator >&, std::__1::unordered_set , std::__1::allocator >, std::__1::hash , std::__1::allocator > >, std::__1::equal_to , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > > >&) call site: 00063 __dynamic_cast

Runtime coverage analysis

Covered functions
82
Functions that are reachable but not covered
61
Reachable functions
167
Percentage of reachable functions covered
63.47%
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/args/fuzz/parse_args_fuzzer.cpp 1
/src/args/args.hxx 79

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/args/fuzz/parse_args_fuzzer.cpp

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=['std::__1::__wrap_iter, std::__1::allocator >*> args::ArgumentParser::Parse, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>, std::__1::__wrap_iter, std::__1::allocator >*>)', 'bool args::ArgumentParser::ParseShort, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>)', 'std::__1::__wrap_iter, std::__1::allocator >*> args::ArgumentParser::Parse, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>, std::__1::__wrap_iter, std::__1::allocator >*>)', 'bool args::ArgumentParser::ParseLong, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>)', 'args::ParseError::ParseError(std::__1::basic_string, std::__1::allocator > const&)', 'args::Matcher::Matcher, std::__1::equal_to, std::__1::allocator >, std::__1::unordered_set, std::__1::allocator >, std::__1::hash, std::__1::allocator > >, std::__1::equal_to, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > > > >(std::__1::unordered_set, std::__1::equal_to, std::__1::allocator >&&, std::__1::unordered_set, std::__1::allocator >, std::__1::hash, std::__1::allocator > >, std::__1::equal_to, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > > >&&)', 'bool args::ArgumentParser::ParseShort, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>)', 'args::ArgumentParser::ArgumentParser(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)', 'args::Group::Add(args::Base&)', 'args::Error::Error(std::__1::basic_string, std::__1::allocator > const&)']