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

Fuzzer details

Fuzzer: fuzzer-usb-descriptor

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 1 7.69%
gold [1:9] 1 7.69%
yellow [10:29] 2 15.3%
greenyellow [30:49] 1 7.69%
lawngreen 50+ 8 61.5%
All colors 13 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
2 2 3 :

['usbguard::Logger::delOutputSink_nolock(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::basic_string (char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()']

2 2 usbguard::Logger::setOutputConsole(bool) call site: 00000 /src/usbguard/src/Library/public/usbguard/Logger.cpp:320
0 0 None 0 33 usbguard::Logger::Logger() call site: 00000 /src/usbguard/src/Library/public/usbguard/Logger.cpp:287

Runtime coverage analysis

Covered functions
23
Functions that are reachable but not covered
6
Reachable functions
10
Percentage of reachable functions covered
40.0%
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/usbguard/src/Tests/Fuzzers/fuzzer-usb-descriptor.cpp 2
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/public/usbguard/USB.hpp 2
/src/usbguard/src/Library/public/usbguard/USB.cpp 3

Fuzzer: fuzzer-uevent

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 38 74.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 13 25.4%
All colors 51 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
659 659 1 :

['void usbguard::parseUEventFromString (std::__1::basic_string , std::__1::allocator > const&, usbguard::UEvent&, bool)']

659 659 usbguard::parseUEventFromString(std::__1::basic_string ,std::__1::allocator >const&,usbguard::UEvent&,bool,bool) call site: 00000 /src/usbguard/src/Library/UEventParser.cpp:151
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::UEvent&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::UEventParser::actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::UEvent&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::UEvent&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::UEventParser::actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::UEvent&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::UEvent&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::UEventParser::actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::UEvent&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::UEvent&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::UEventParser::actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::UEvent&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::UEvent&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 3 :

['usbguard::Logger::delOutputSink_nolock(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::basic_string (char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()']

2 2 usbguard::Logger::setOutputConsole(bool) call site: 00000 /src/usbguard/src/Library/public/usbguard/Logger.cpp:320
0 0 None 606 618 voidusbguard::parseUEventFromString (std::__1::basic_string ,std::__1::allocator >const&,usbguard::UEvent&,bool) call site: 00000 /src/usbguard/src/Library/UEventParser.cpp:133
0 0 None 26 110 voidusbguard::UEventParser::actions ::apply ,std::__1::allocator >>>>(tao::pegtl::internal::action_input ,std::__1::allocator >>>const&,usbguard::UEvent&) call site: 00000 /src/usbguard/src/Library/UEventParser.cpp:54
0 0 None 0 33 usbguard::Logger::Logger() call site: 00000 /src/usbguard/src/Library/public/usbguard/Logger.cpp:287
0 0 None 0 0 usbguard::trimRight(std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/usbguard/src/Common/Utility.cpp:257
0 0 1 :

['std::__1::basic_string , std::__1::allocator >::basic_string(std::__1::basic_string , std::__1::allocator > const&)']

0 0 usbguard::trimLeft(std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/usbguard/src/Common/Utility.cpp:269
0 0 1 :

['std::__1::basic_string , std::__1::allocator >::basic_string()']

0 0 usbguard::UEvent::getAttribute(std::__1::basic_string ,std::__1::allocator >const&)const call site: 00000 /src/usbguard/src/Library/UEvent.cpp:67

Runtime coverage analysis

Covered functions
295
Functions that are reachable but not covered
245
Reachable functions
381
Percentage of reachable functions covered
35.7%
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/usbguard/src/Tests/Fuzzers/fuzzer-uevent.cpp 1
/src/usbguard/src/Library/UEvent.cpp 2
/src/usbguard/src/Library/UEventParser.cpp 3
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/string_input.hpp 4
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/memory_input.hpp 9
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/iterator.hpp 1
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../parse.hpp 2
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 5
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp 3
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/marker.hpp 4
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/seq.hpp 1
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/trace.hpp 6
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/../position.hpp 2
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/UEvent.hpp 1

Fuzzer: fuzzer-rules

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 33 42.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 45 57.6%
All colors 78 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
8 8 4 :

['std::runtime_error::runtime_error(char const*)', '__cxa_allocate_exception', '__cxa_throw', '__cxa_free_exception']

8 8 usbguard::RuleConditionBase::getImplementation(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/usbguard/src/Library/public/usbguard/RuleCondition.cpp:148
8 8 4 :

['std::runtime_error::runtime_error(char const*)', '__cxa_allocate_exception', '__cxa_throw', '__cxa_free_exception']

8 8 usbguard::USBDeviceID::checkDeviceID(std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/usbguard/src/Library/public/usbguard/USB.cpp:54
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::rule_parser_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal , tao::pegtl::ascii::any>> >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,tao::pegtl::ascii::any>>,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)2,usbguard::RuleParser::rule_parser_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal ::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::id_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::id_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::name_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::name_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)2,usbguard::RuleParser::name_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal > >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match >,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::hash_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156
2 2 1 :

['void tao::pegtl::normal >::failure , std::__1::allocator > >, usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string , std::__1::allocator > > const&, usbguard::Rule&)']

2 4 autotao::pegtl::match ,(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::hash_actions,tao::pegtl::normal,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&) call site: 00000 /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp:156

Runtime coverage analysis

Covered functions
2816
Functions that are reachable but not covered
180
Reachable functions
295
Percentage of reachable functions covered
38.98%
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/usbguard/src/Tests/Fuzzers/fuzzer-rules.cpp 1
/src/usbguard/src/Library/public/usbguard/RuleParser.cpp 1
/src/usbguard/src/Library/public/usbguard/Rule.cpp 2
/src/usbguard/./src/Common/Utility.hpp 1
/src/usbguard/src/Library/RulePrivate.cpp 1
/src/usbguard/./src/Library/RulePrivate.hpp 1
/src/usbguard/./src/Library/public/usbguard/Rule.hpp 5
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/string_input.hpp 4
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/memory_input.hpp 9
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/iterator.hpp 1
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../parse.hpp 2
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 6
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp 3
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/marker.hpp 4
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/until.hpp 1
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/trace.hpp 6
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/../position.hpp 2
/src/usbguard/src/Library/public/usbguard/RuleParser.hpp 6
/usr/local/bin/../include/c++/v1/exception 2
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/parse_error.hpp 2

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
booltao::pegtl::normal ,void>>::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::label_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 13 0 15 3 2 445 0 1439 1310
usbguard::RulePrivate::appliesToWithConditions(usbguard::Ruleconst&,bool) /src/usbguard/src/Library/RulePrivate.cpp 3 ['class.usbguard::RulePrivate *', 'class.usbguard::Rule *', 'N/A'] 7 0 199 40 31 90 0 1075 1058
booltao::pegtl::normal >::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::condition_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 62 0 15 3 2 433 0 1348 872
booltao::pegtl::normal ,void>>::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::condition_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 26 0 15 3 2 440 0 1629 643
booltao::pegtl::normal ,usbguard::RuleParser::string_value>>::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::with_connect_type_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 32 0 15 3 2 200 0 641 539
booltao::pegtl::normal ,tao::pegtl::star ,tao::pegtl::ascii::any>>>>::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::rule_parser_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 32 0 15 3 2 208 0 643 492
booltao::pegtl::normal ,void>>::match<(tao::pegtl::apply_mode)1,(tao::pegtl::rewind_mode)0,usbguard::RuleParser::rule_parser_actions,tao::pegtl::state_control ::type,tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>,usbguard::Rule&,tao::pegtl::tracer >&>(tao::pegtl::string_input<(tao::pegtl::tracking_mode)0,tao::pegtl::ascii::eol::lf_crlf,std::__1::basic_string ,std::__1::allocator >>&,usbguard::Rule&,tao::pegtl::tracer >&) /src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp 3 ['struct.tao::pegtl::string_input *', 'class.usbguard::Rule *', 'struct.tao::pegtl::tracer *'] 7 0 15 3 2 177 0 545 431

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

Functions statically reachable by fuzzers
23.2%
1969/8476
Cyclomatic complexity statically reachable by fuzzers
27.0%
7454 / 27539

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 Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

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/usbguard/./src/Library/RuleEvaluatedCondition.hpp [] []
/usr/local/bin/../include/c++/v1/math.h [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/seq.hpp ['fuzzer-uevent'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/opt.hpp [] []
/src/usbguard/src/Library/AllowedMatchesCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../normal.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/trace.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/src/Library/public/usbguard/USB.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/rep.hpp [] []
/src/usbguard/src/Library/RandomStateCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/peek_char.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/star.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/plus.hpp [] []
/src/usbguard/src/Library/public/usbguard/Rule.cpp ['fuzzer-rules'] ['fuzzer-rules']
/src/usbguard/src/Tests/Fuzzers/fuzzer-usb-descriptor.cpp ['fuzzer-usb-descriptor'] ['fuzzer-usb-descriptor']
/src/usbguard/./src/Library/RuleParser/Actions.hpp [] []
/src/usbguard/src/Library/UEventParser.cpp ['fuzzer-uevent'] ['fuzzer-uevent']
/src/usbguard/./src/Library/AllowedMatchesCondition.hpp [] []
/src/usbguard/src/Tests/Fuzzers/fuzzer-uevent.cpp ['fuzzer-uevent'] ['fuzzer-uevent']
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/until.hpp ['fuzzer-rules'] []
/src/usbguard/src/Library/Utility.cpp [] []
/src/usbguard/src/Library/public/usbguard/Logger.cpp [] []
/src/usbguard/./src/Library/public/usbguard/Exception.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/bump.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/state_control.hpp [] []
/usr/local/bin/../include/c++/v1/exception ['fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/ranges.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/any.hpp [] []
/src/usbguard/src/Library/public/usbguard/RuleCondition.cpp [] []
/src/usbguard/./src/Library/LocaltimeCondition.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/../position.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/src/Common/Utility.cpp [] []
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/UEvent.hpp ['fuzzer-uevent'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/action_input.hpp [] []
/src/usbguard/./src/Library/RandomStateCondition.hpp [] []
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/public/usbguard/USB.hpp ['fuzzer-usb-descriptor'] []
/src/usbguard/src/Library/public/usbguard/USB.cpp ['fuzzer-usb-descriptor'] ['fuzzer-usb-descriptor']
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/match.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/src/Tests/Fuzzers/fuzzer-rules.cpp ['fuzzer-rules'] ['fuzzer-rules']
/src/usbguard/src/Library/UEvent.cpp ['fuzzer-uevent'] ['fuzzer-uevent']
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/marker.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/usbguard/./src/Common/ByteOrder.hpp [] []
/src/usbguard/src/Library/RulePrivate.cpp ['fuzzer-rules'] ['fuzzer-rules']
/src/usbguard/./src/Library/public/usbguard/Predicates.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/rep_opt.hpp [] []
/src/usbguard/./src/Common/Utility.hpp ['fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/iterator.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../parse.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/src/usbguard/./src/Library/RuleAppliedCondition.hpp [] []
/src/usbguard/./src/Library/public/usbguard/USB.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/must.hpp [] []
/src/usbguard/./src/Library/public/usbguard/Rule.hpp ['fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/sor.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/action.hpp [] []
/src/usbguard/src/Library/public/usbguard/RuleCondition.hpp [] []
/src/usbguard/src/Library/FixedStateCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/string.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/range.hpp [] []
/src/usbguard/./src/Library/public/usbguard/Logger.hpp [] []
/src/usbguard/./src/Library/FixedStateCondition.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../demangle.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/parse_error.hpp ['fuzzer-rules'] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/one.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/input_pair.hpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/bump_help.hpp [] []
/src/usbguard/src/Library/public/usbguard/RuleParser.cpp ['fuzzer-rules'] ['fuzzer-rules']
/src/usbguard/src/Library/LocaltimeCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/eof.hpp [] []
/src/usbguard/src/Library/RuleEvaluatedCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/if_must.hpp [] []
/src/usbguard/./src/Library/RulePrivate.hpp ['fuzzer-rules'] []
/src/usbguard/src/Library/public/usbguard/RuleParser.hpp ['fuzzer-rules'] ['fuzzer-rules']
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/not_at.hpp [] []
/src/usbguard/src/Library/RuleAppliedCondition.cpp [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/memory_input.hpp ['fuzzer-uevent', 'fuzzer-rules'] []
/usr/include/x86_64-linux-gnu/sys/stat.h [] []
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/string_input.hpp ['fuzzer-uevent', 'fuzzer-rules'] []

Directories in report

Directory
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/../
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/../
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/public/usbguard/
/src/usbguard/./src/Library/public/usbguard/
/src/usbguard/./src/Library/
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/contrib/
/usr/local/bin/../include/c++/v1/
/src/usbguard/src/Common/
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/
/src/usbguard/src/Library/public/usbguard/
/src/usbguard/src/Tests/Fuzzers/../../../src/Library/
/src/usbguard/src/Tests/Fuzzers/
/usr/include/x86_64-linux-gnu/sys/
/src/usbguard/./src/Common/
/src/usbguard/./src/Library/RuleParser/
/src/usbguard/./src/ThirdParty/PEGTL/include/tao/pegtl/internal/
/src/usbguard/src/Library/