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: numeric_parser_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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 67 100.%
All colors 67 100

Runtime coverage analysis

Covered functions
60
Functions that are reachable but not covered
10
Reachable functions
84
Percentage of reachable functions covered
88.1%
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/numeric_parser_fuzzer.cpp 16
/src/args/args.hxx 40

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 130 57.0%
gold [1:9] 0 0.0%
yellow [10:29] 4 1.75%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 94 41.2%
All colors 228 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 90 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: 00090 __cxa_allocate_exception
22 174 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00174 __cxa_allocate_exception
21 200 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: 00200 __cxa_allocate_exception
9 141 bool args::ArgumentParser::ParseLong , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00141 __cxa_allocate_exception
6 55 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00055 __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 165 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00165 __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 65 args::Group::Add(args::Base&) call site: 00065 __cxa_rethrow
2 15 args::Error::Error(std::__1::basic_string , std::__1::allocator > const&) call site: 00015 __cxa_throw
2 52 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: 00052 __cxa_allocate_exception
2 62 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: 00062 __dynamic_cast

Runtime coverage analysis

Covered functions
82
Functions that are reachable but not covered
57
Reachable functions
163
Percentage of reachable functions covered
65.03%
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 77

Fuzzer: parse_schema_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 140 36.4%
gold [1:9] 8 2.08%
yellow [10:29] 1 0.26%
greenyellow [30:49] 7 1.82%
lawngreen 50+ 228 59.3%
All colors 384 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 188 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00188 __cxa_allocate_exception
21 272 bool args::ArgumentParser::ParseShort , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00272 __cxa_allocate_exception
17 309 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator >*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00309 __cxa_allocate_exception
14 294 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00294 __cxa_allocate_exception
7 241 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00241 __cxa_allocate_exception
6 55 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00055 __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 137 LLVMFuzzerTestOneInput call site: 00137 __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 65 args::Group::Add(args::Base&) call site: 00065 __cxa_rethrow
2 15 args::Error::Error(std::__1::basic_string , std::__1::allocator > const&) call site: 00015 __cxa_throw
2 52 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: 00052 __cxa_allocate_exception

Runtime coverage analysis

Covered functions
179
Functions that are reachable but not covered
65
Reachable functions
266
Percentage of reachable functions covered
75.56%
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_schema_fuzzer.cpp 1
/src/args/args.hxx 128

Fuzzer: commands_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 118 44.5%
gold [1:9] 0 0.0%
yellow [10:29] 4 1.50%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 143 53.9%
All colors 265 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 108 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00108 __cxa_allocate_exception
14 231 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00231 __cxa_allocate_exception
11 214 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00214 __cxa_allocate_exception
7 161 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00161 __cxa_allocate_exception
6 37 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00037 __cxa_throw
6 182 bool args::ArgumentParser::ParseShort , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00182 __cxa_allocate_exception
4 74 args::ArgumentParser::ArgumentParser(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&) call site: 00074 __cxa_allocate_exception
4 206 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00206 __cxa_allocate_exception
3 9 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: 00009 __cxa_allocate_exception
3 47 args::Group::Add(args::Base&) call site: 00047 __cxa_rethrow
2 13 args::Error::Error(std::__1::basic_string , std::__1::allocator > const&) call site: 00013 __cxa_throw
2 34 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: 00034 __cxa_allocate_exception

Runtime coverage analysis

Covered functions
187
Functions that are reachable but not covered
35
Reachable functions
208
Percentage of reachable functions covered
83.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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/args/fuzz/commands_fuzzer.cpp 1
/src/args/args.hxx 99

Fuzzer: help_render_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 146 39.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 225 60.6%
All colors 371 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
21 243 bool args::ArgumentParser::ParseShort , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00243 __cxa_allocate_exception
18 159 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00159
18 179 args::Matcher::GetShortOrAny() const call site: 00179 __cxa_allocate_exception
16 280 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator >*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00280 __cxa_allocate_exception
14 265 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00265 __cxa_allocate_exception
11 212 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00212 __cxa_allocate_exception
8 322 args::Command::GetDescription(args::HelpParams const&, unsigned int) const call site: 00322 __cxa_begin_catch
6 61 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00061 __cxa_throw
5 200 std::__1::basic_string , std::__1::allocator > args::detail::Join , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > >(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&, std::__1::basic_string , std::__1::allocator > const&) call site: 00200 __clang_call_terminate
5 342 args::Command::GetCommandProgramLine(args::HelpParams const&) const call site: 00342 isspace
4 36 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: 00036 __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

Runtime coverage analysis

Covered functions
208
Functions that are reachable but not covered
62
Reachable functions
263
Percentage of reachable functions covered
76.43%
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/help_render_fuzzer.cpp 1
/src/args/args.hxx 126

Fuzzer: completion_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 127 43.9%
gold [1:9] 0 0.0%
yellow [10:29] 4 1.38%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 158 54.6%
All colors 289 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
18 151 args::Matcher::GetShortOrAny() const call site: 00151 __cxa_allocate_exception
18 203 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00203 __cxa_allocate_exception
14 255 bool args::ArgumentParser::ParseShort , std::__1::allocator >*> >(std::__1::__wrap_iter , std::__1::allocator >*>&, std::__1::__wrap_iter , std::__1::allocator >*>) call site: 00255 __cxa_allocate_exception
12 138 args::ArgumentParser::AddCompletionReply(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&) call site: 00138
8 227 args::Subparser::Subparser(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >, args::ArgumentParser&, args::Command const&, args::HelpParams const&) call site: 00227 __cxa_allocate_exception
7 185 std::__1::basic_string , std::__1::allocator > args::ArgumentParser::ParseArgsValues , std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string , std::__1::allocator > const&, std::__1::__wrap_iter , std::__1::allocator > const*>&, std::__1::__wrap_iter , std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string , std::__1::allocator > const&, bool, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00185 __cxa_allocate_exception
6 55 args::ParseError::ParseError(std::__1::basic_string , std::__1::allocator > const&) call site: 00055 __cxa_throw
6 236 args::Command::RaiiSubparser::~RaiiSubparser() call site: 00236 __cxa_allocate_exception
5 132 std::__1::__wrap_iter , std::__1::allocator > const*> args::ArgumentParser::Parse , std::__1::allocator > const*> >(std::__1::__wrap_iter , std::__1::allocator > const*>, std::__1::__wrap_iter , std::__1::allocator > const*>) call site: 00132
4 29 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: 00029 __cxa_allocate_exception
4 198 args::Base::KickOut() const call site: 00198 __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

Runtime coverage analysis

Covered functions
167
Functions that are reachable but not covered
26
Reachable functions
212
Percentage of reachable functions covered
87.74%
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/completion_fuzzer.cpp 1
/src/args/args.hxx 101

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
args::FlagBase::GetProgramLine(args::HelpParamsconst&)const /src/args/args.hxx 3 ['N/A', 'N/A', 'N/A'] 2 0 246 52 49 22 0 82 59
args::MapFlagList ,std::__1::allocator >,int,args::detail::vector,args::ValueReader,args::detail::unordered_map>::Match(args::EitherFlagconst&) /src/args/args.hxx 2 ['N/A', 'N/A'] 5 0 35 8 4 25 0 55 39
args::CompletionFlag::ParseValue(std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>const&) /src/args/args.hxx 2 ['N/A', 'N/A'] 3 0 208 42 35 9 0 47 35

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

Functions statically reachable by fuzzers
57.9%
229 / 394
Cyclomatic complexity statically reachable by fuzzers
77.0%
2252 / 2938

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

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/numeric_parser_fuzzer.cpp

Dictionary

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


/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&)']

/src/args/fuzz/parse_schema_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 > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'bool args::ArgumentParser::ParseShort, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator >*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&)', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, 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 > > >&&)', 'LLVMFuzzerTestOneInput', 'args::ArgumentParser::ArgumentParser(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)', 'args::Group::Add(args::Base&)']

/src/args/fuzz/commands_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 > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', '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 > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&)', 'args::ParseError::ParseError(std::__1::basic_string, std::__1::allocator > const&)', 'bool args::ArgumentParser::ParseShort, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'args::ArgumentParser::ArgumentParser(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, 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 > > >&&)', 'args::Group::Add(args::Base&)']

/src/args/fuzz/help_render_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=['bool args::ArgumentParser::ParseShort, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'args::Matcher::GetShortOrAny() const', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator >*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&)', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&)', 'args::Command::GetDescription(args::HelpParams const&, unsigned int) const', 'args::ParseError::ParseError(std::__1::basic_string, std::__1::allocator > const&)', 'std::__1::basic_string, std::__1::allocator > args::detail::Join, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > >(std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, std::__1::basic_string, std::__1::allocator > const&)', 'args::Command::GetCommandProgramLine(args::HelpParams const&) const']

/src/args/fuzz/completion_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=['args::Matcher::GetShortOrAny() const', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, std::__1::allocator > const*>)', 'bool args::ArgumentParser::ParseShort, std::__1::allocator >*> >(std::__1::__wrap_iter, std::__1::allocator >*>&, std::__1::__wrap_iter, std::__1::allocator >*>)', 'args::ArgumentParser::AddCompletionReply(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)', 'args::Subparser::Subparser(std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >, args::ArgumentParser&, args::Command const&, args::HelpParams const&)', 'std::__1::basic_string, std::__1::allocator > args::ArgumentParser::ParseArgsValues, std::__1::allocator > const*> >(args::FlagBase&, std::__1::basic_string, std::__1::allocator > const&, std::__1::__wrap_iter, std::__1::allocator > const*>&, std::__1::__wrap_iter, std::__1::allocator > const*>, bool, bool, bool, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&)', 'args::ParseError::ParseError(std::__1::basic_string, std::__1::allocator > const&)', 'args::Command::RaiiSubparser::~RaiiSubparser()', 'std::__1::__wrap_iter, std::__1::allocator > const*> args::ArgumentParser::Parse, std::__1::allocator > const*> >(std::__1::__wrap_iter, std::__1::allocator > const*>, std::__1::__wrap_iter, 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 > > >&&)']

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
[] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/args/fuzz/parse_args_fuzzer.cpp ['parse_args_fuzzer'] ['parse_args_fuzzer']
/src/args/fuzz/commands_fuzzer.cpp ['commands_fuzzer'] ['commands_fuzzer']
/src/args/fuzz/completion_fuzzer.cpp ['completion_fuzzer'] ['completion_fuzzer']
/src/args/fuzz/parse_schema_fuzzer.cpp ['parse_schema_fuzzer'] ['parse_schema_fuzzer']
/src/args/fuzz/help_render_fuzzer.cpp ['help_render_fuzzer'] ['help_render_fuzzer']
/src/args/args.hxx ['numeric_parser_fuzzer', 'parse_args_fuzzer', 'parse_schema_fuzzer', 'commands_fuzzer', 'help_render_fuzzer', 'completion_fuzzer'] ['numeric_parser_fuzzer', 'parse_args_fuzzer', 'parse_schema_fuzzer', 'commands_fuzzer', 'help_render_fuzzer', 'completion_fuzzer']
/src/args/fuzz/numeric_parser_fuzzer.cpp ['numeric_parser_fuzzer'] ['numeric_parser_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/usr/local/bin/../include/c++/v1/string [] []

Directories in report

Directory
/src/args/
/usr/local/bin/../include/c++/v1/__exception/
/usr/local/bin/../include/c++/v1/
/src/args/fuzz/