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: wpantund-fuzz

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 838 86.3%
gold [1:9] 3 0.30%
yellow [10:29] 0 0.0%
greenyellow [30:49] 3 0.30%
lawngreen 50+ 127 13.0%
All colors 971 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
513 513 2 :

['void boost::signals2::signal , std::__1::allocator > const&, boost::any const&), boost::signals2::optional_last_value , int, std::__1::less , boost::function , std::__1::allocator > const&, boost::any const&)>, boost::function , std::__1::allocator > const&, boost::any const&)>, boost::signals2::mutex>::disconnect , std::__1::allocator > const&, boost::any const&>, boost::_bi::list3 , boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t , std::__1::allocator > const&, boost::any const&>, boost::_bi::list3 , boost::arg<1>, boost::arg<2> > > const&)', 'void boost::signals2::signal , int, std::__1::less , boost::function , boost::function , boost::signals2::mutex>::disconnect , boost::_bi::list2 , boost::arg<1> > > >(boost::_bi::bind_t , boost::_bi::list2 , boost::arg<1> > > const&)']

2168 2168 nl::wpantund::StatCollector::set_ncp_control_interface(nl::wpantund::NCPControlInterface*) call site: 00000 /src/wpantund/src/wpantund/StatCollector.cpp:1120
472 472 1 :

['nl::wpantund::NCPInstanceBase::remove_address_on_ncp_and_update_prefixes(in6_addr const&, nl::wpantund::NCPInstanceBase::UnicastAddressEntry const&)']

472 472 nl::wpantund::NCPInstanceBase::unicast_address_was_removed(nl::wpantund::NCPInstanceBase::Origin,in6_addrconst&) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:696
333 703 15 :

['_ZN5boost8functionIFviRKNS_3anyEEEC2INS_3_bi6bind_tINS7_11unspecifiedENS0_IFviEEENS7_5list1INS_3argILi1EEEEEEEEET_NS_10enable_if_IXntsr11is_integralISH_EE5valueEiE4typeE', 'std::__1::map , std::__1::allocator >, boost::any, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, boost::any> > >::map[abi:ne180100]()', 'std::__1::map , std::__1::allocator >, boost::any, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, boost::any> > >::~map[abi:ne180100]()', 'boost::function ::~function()', 'boost::any::operator=(boost::any const&)', 'operator new(unsigned long)', 'nl::wpantund::SpinelNCPTaskJoin::SpinelNCPTaskJoin(nl::wpantund::SpinelNCPInstance*, boost::function , std::__1::map , std::__1::allocator >, boost::any, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, boost::any> > > const&)', 'std::__1::map , std::__1::allocator >, boost::any, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, boost::any> > >::operator[](std::__1::basic_string , std::__1::allocator >&&)', 'nl::wpantund::SpinelNCPInstance::start_new_task(boost::shared_ptr const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'operator delete(void*)', 'boost::_bi::bind_t , boost::_bi::list1 > >::~bind_t()', 'boost::shared_ptr ::~shared_ptr()', 'boost::shared_ptr ::shared_ptr (nl::wpantund::SpinelNCPTaskJoin*)', 'boost::_bi::bind_t , boost::_bi::list_av_1 >::type> boost::bind , boost::arg<1> >(boost::function , boost::arg<1>)']

381 767 nl::wpantund::SpinelNCPInstance::set_prop_NetworkKey(boost::anyconst&,boost::function ) call site: 00000 /src/wpantund/src/ncp-spinel/SpinelNCPInstance.cpp:4426
246 342 6 :

['_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEiNSt3__112basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEES2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSK_IPKcEENSK_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISV_EE5valueEiE4typeE', 'boost::function ::~function()', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list_av_4 , char const*, boost::function >::type> boost::bind , std::__1::allocator >, boost::function , nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, std::__1::basic_string , std::__1::allocator >, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function )', 'boost::function ::function(boost::function const&)', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()', 'nl::wpantund::NCPInstanceBase::IPv6Prefix::get_prefix() const']

246 342 nl::wpantund::NCPInstanceBase::route_was_added(nl::wpantund::NCPInstanceBase::Origin,in6_addrconst&,unsignedchar,nl::wpantund::NCPControlInterface::ExternalRoutePriority,bool,unsignedshort,bool,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:1069
246 342 6 :

['_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEiNSt3__112basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEES2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSK_IPKcEENSK_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISV_EE5valueEiE4typeE', 'boost::function ::~function()', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list_av_4 , char const*, boost::function >::type> boost::bind , std::__1::allocator >, boost::function , nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, std::__1::basic_string , std::__1::allocator >, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function )', 'boost::function ::function(boost::function const&)', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()', 'nl::wpantund::NCPInstanceBase::IPv6Prefix::get_prefix() const']

246 342 nl::wpantund::NCPInstanceBase::route_was_removed(nl::wpantund::NCPInstanceBase::Origin,in6_addrconst&,unsignedchar,nl::wpantund::NCPControlInterface::ExternalRoutePriority,bool,unsignedshort,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:1096
246 340 5 :

['_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEiNSt3__112basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEES2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSK_IPKcEENSK_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISV_EE5valueEiE4typeE', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list_av_4 , char const*, boost::function >::type> boost::bind , std::__1::allocator >, boost::function , nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, std::__1::basic_string , std::__1::allocator >, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function )', 'boost::function ::~function()', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()', 'boost::function ::function(boost::function const&)']

246 344 nl::wpantund::NCPInstanceBase::service_was_added(nl::wpantund::NCPInstanceBase::Origin,unsignedint,nl::Dataconst&,bool,nl::Dataconst&,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:1295
246 340 5 :

['_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEiNSt3__112basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEES2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSK_IPKcEENSK_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISV_EE5valueEiE4typeE', 'boost::function ::~function()', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list_av_4 , char const*, boost::function >::type> boost::bind , std::__1::allocator >, boost::function , nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, std::__1::basic_string , std::__1::allocator >, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function )', 'boost::function ::function(boost::function const&)', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()']

246 344 nl::wpantund::NCPInstanceBase::service_was_removed(nl::wpantund::NCPInstanceBase::Origin,unsignedint,nl::Dataconst&,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:1319
246 340 5 :

['boost::function ::~function()', 'boost::_bi::bind_t >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()', 'boost::function ::function(boost::function const&)', '_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEi8in6_addrS2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSE_ISB_EENSE_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISN_EE5valueEiE4typeE', 'boost::_bi::bind_t >, boost::_bi::list_av_4 , in6_addr, boost::function >::type> boost::bind , nl::wpantund::NCPInstanceBase*, boost::arg<1>, in6_addr, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, in6_addr, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, in6_addr, boost::function )']

246 340 nl::wpantund::NCPInstanceBase::multicast_address_was_joined(nl::wpantund::NCPInstanceBase::Origin,in6_addrconst&,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:791
246 340 5 :

['_ZN5boost8functionIFviEEC2INS_3_bi6bind_tIvNS_4_mfi3mf3IvN2nl8wpantund15NCPInstanceBaseEiNSt3__112basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEES2_EENS4_5list4INS4_5valueIPSA_EENS_3argILi1EEENSK_IPKcEENSK_IS2_EEEEEEEET_NS_10enable_if_IXntsr11is_integralISV_EE5valueEiE4typeE', 'boost::function ::~function()', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list_av_4 , char const*, boost::function >::type> boost::bind , std::__1::allocator >, boost::function , nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function >(void (nl::wpantund::NCPInstanceBase::*)(int, std::__1::basic_string , std::__1::allocator >, boost::function ), nl::wpantund::NCPInstanceBase*, boost::arg<1>, char const*, boost::function )', 'boost::function ::function(boost::function const&)', 'boost::_bi::bind_t , std::__1::allocator >, boost::function >, boost::_bi::list4 , boost::arg<1>, boost::_bi::value , boost::_bi::value > > >::~bind_t()']

246 340 nl::wpantund::NCPInstanceBase::multicast_address_was_left(nl::wpantund::NCPInstanceBase::Origin,in6_addrconst&,boost::function ) call site: 00000 /src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp:819
173 526 8 :

['_ZN5boost8functionIFviRKNS_3anyEEEC2IN2nl9NilReturnEEET_NS_10enable_if_IXntsr11is_integralIS9_EE5valueEiE4typeE', 'boost::function ::~function()', 'boost::shared_ptr ::shared_ptr (nl::wpantund::SpinelNCPTaskDeepSleep*)', 'nl::wpantund::SpinelNCPInstance::start_new_task(boost::shared_ptr const&)', 'boost::shared_ptr ::~shared_ptr()', 'operator delete(void*)', 'nl::wpantund::SpinelNCPTaskDeepSleep::SpinelNCPTaskDeepSleep(nl::wpantund::SpinelNCPInstance*, boost::function )', 'operator new(unsigned long)']

173 526 nl::wpantund::SpinelNCPInstance::vprocess_offline(int,__va_list_tag*) call site: 00000 /src/wpantund/src/ncp-spinel/SpinelNCPInstance-Protothreads.cpp:281
162 164 5 :

['nl::wpantund::StatCollector::NodeStat::add_node_info_map_iter(std::__1::list , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&, std::__1::__map_const_iterator , std::__1::__tree_node , void*>*, long> > const&) const', 'std::__1::operator!=[abi:ne180100](std::__1::__map_const_iterator , std::__1::__tree_node , void*>*, long> > const&, std::__1::__map_const_iterator , std::__1::__tree_node , void*>*, long> > const&)', 'std::__1::map , std::__1::allocator > >::find[abi:ne180100](nl::wpantund::StatCollector::IPAddress const&) const', 'std::__1::map , std::__1::allocator > >::end[abi:ne180100]() const', 'nl::wpantund::StatCollector::IPAddress::read_from(unsigned char const*)']

162 168 nl::wpantund::StatCollector::NodeStat::add_node_stat_history(std::__1::list ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,std::__1::basic_string ,std::__1::allocator >)const call site: 00000 /src/wpantund/src/wpantund/StatCollector.cpp:674
162 162 3 :

['std::__1::map , std::__1::allocator > >::begin[abi:ne180100]() const', 'nl::wpantund::StatCollector::NodeStat::add_node_info_map_iter(std::__1::list , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&, std::__1::__map_const_iterator , std::__1::__tree_node , void*>*, long> > const&) const', 'void std::__1::advance[abi:ne180100] , std::__1::__tree_node , void*>*, long> >, int, int, void>(std::__1::__map_const_iterator , std::__1::__tree_node , void*>*, long> >&, int)']

162 162 nl::wpantund::StatCollector::NodeStat::add_node_stat_history(std::__1::list ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,std::__1::basic_string ,std::__1::allocator >)const call site: 00000 /src/wpantund/src/wpantund/StatCollector.cpp:689

Runtime coverage analysis

Covered functions
642
Functions that are reachable but not covered
1183
Reachable functions
1255
Percentage of reachable functions covered
5.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/wpantund/src/wpantund/wpantund-fuzz.cpp 6
/src/wpantund/src/wpantund/../util/time-utils.c 3
/src/wpantund/src/wpantund/../util/config-file.c 2
/src/wpantund/src/wpantund/../../third_party/fgetln/fgetln.h 1
/src/wpantund/src/wpantund/./wpantund.cpp 5
/usr/include/stdlib.h 1
/src/wpantund/src/wpantund/NCPInstance.cpp 1
/usr/local/bin/../include/c++/v1/stdexcept 2
/usr/include/boost/signals2/detail/slot_template.hpp 14
/usr/include/boost/signals2/slot_base.hpp 8
/usr/include/boost/function/function_template.hpp 65
/usr/include/boost/function/function_base.hpp 14
/usr/include/boost/signals2/detail/signals_common.hpp 6
/usr/include/boost/function/function_fwd.hpp 4
/usr/include/boost/signals2/detail/tracked_objects_visitor.hpp 23
/usr/include/boost/visit_each.hpp 7
/usr/include/boost/signals2/detail/signal_template.hpp 40
/usr/include/boost/smart_ptr/shared_ptr.hpp 65
/usr/include/boost/signals2/connection.hpp 30
/usr/include/boost/signals2/detail/auto_buffer.hpp 25
/usr/include/boost/type_traits/aligned_storage.hpp 6
/usr/include/boost/signals2/detail/unique_lock.hpp 4
/usr/include/boost/signals2/detail/lwm_pthreads.hpp 2
/usr/include/boost/smart_ptr/detail/shared_count.hpp 23
/usr/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp 8
/usr/include/boost/signals2/detail/slot_groups.hpp 37
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp 12
/usr/include/boost/core/checked_delete.hpp 12
/usr/include/boost/signals2/detail/foreign_ptr.hpp 13
/usr/include/boost/smart_ptr/detail/operator_bool.hpp 3
/usr/include/boost/variant/detail/apply_visitor_unary.hpp 1
/usr/include/boost/move/utility_core.hpp 1
/usr/include/boost/variant/variant.hpp 7
/usr/include/boost/variant/detail/visitation_impl.hpp 8
/usr/include/boost/variant/detail/cast_storage.hpp 3
/usr/include/boost/smart_ptr/weak_ptr.hpp 7
/usr/include/boost/smart_ptr/scoped_ptr.hpp 1
/usr/include/boost/variant/detail/forced_return.hpp 1
/usr/include/boost/type_traits/integral_constant.hpp 1
/usr/include/boost/optional/optional.hpp 1
/usr/include/boost/optional/detail/optional_trivially_copyable_base.hpp 1
/src/wpantund/src/wpantund/StatCollector.cpp 1
/usr/include/boost/bind/bind_mf_cc.hpp 3
/usr/include/boost/bind/mem_fn_template.hpp 5
/usr/include/boost/bind/bind.hpp 28
/usr/include/boost/bind/storage.hpp 11
/usr/include/boost/type_index.hpp 6
/usr/include/boost/type_index/stl_type_index.hpp 10
/usr/include/boost/bind/arg.hpp 2
/usr/include/boost/core/addressof.hpp 7
/src/wpantund/src/wpantund/../../src/util/SocketWrapper.h 2
/src/wpantund/src/wpantund/../util/Timer.cpp 5
/src/wpantund/src/wpantund/../util/Timer.h 8
/usr/include/boost/throw_exception.hpp 3
/usr/include/boost/exception/exception.hpp 34
/src/wpantund/src/wpantund/NCPControlInterface.cpp 1
/usr/include/boost/any.hpp 12
/usr/include/boost/type_index/type_index_facade.hpp 2
/usr/local/bin/../include/c++/v1/typeinfo 1
/usr/local/bin/../include/c++/v1/__exception/exception.h 1
/src/wpantund/src/wpantund/../util/socket-utils.c 1

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
wpantund_ncpinstance_default_alloc /src/wpantund/src/ncp-spinel/SpinelNCPInstance.cpp 1 ['N/A'] 26 0 37 6 6 3297 0 8006 7204
nl::wpantund::SpinelNCPInstance::ncp_to_driver_pump() /src/wpantund/src/ncp-spinel/SpinelNCPInstance-DataPump.cpp 1 ['N/A'] 28 0 606 102 25 1614 0 4834 3310
non-virtualthunktonl::wpantund::SpinelNCPInstance::vprocess_event(int,__va_list_tag*) /src/wpantund/src/ncp-spinel/SpinelNCPInstance-Protothreads.cpp 3 ['N/A', 'int', 'N/A'] 17 0 22 3 2 429 0 1373 939

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

Functions statically reachable by fuzzers
53.0%
2553 / 4828
Cyclomatic complexity statically reachable by fuzzers
54.0%
13572 / 25323

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/wpantund/src/wpantund/wpantund-fuzz.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=['boost::signals2::slot_base::expired() const', 'MainLoop::MainLoop(std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&)', 'nl::wpantund::StatCollector::set_ncp_control_interface(nl::wpantund::NCPControlInterface*)', 'MainLoop::MainLoop(std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&)', 'nl::wpantund::StatCollector::set_ncp_control_interface(nl::wpantund::NCPControlInterface*)', 'nl::wpantund::StatCollector::set_ncp_control_interface(nl::wpantund::NCPControlInterface*)', 'nl::Timer::process()', 'MainLoop::MainLoop(std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&)', 'nl::wpantund::StatCollector::set_ncp_control_interface(nl::wpantund::NCPControlInterface*)', 'MainLoop::process()']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
nl::wpantund::SpinelNCPInstance::log_spinel_frame(nl::wpantund::SpinelNCPInstance::SpinelFrameOrigin,unsignedcharconst*,unsignedint) 89 7 7.865% ['wpantund-fuzz']
nl::wpantund::SpinelNCPInstance::process() 38 8 21.05% ['wpantund-fuzz']
nl::wpantund::SpinelNCPTaskSendCommand::vprocess_event(int,__va_list_tag*) 60 27 45.0% ['wpantund-fuzz']
nl::IPv6PacketMatcherRule::operator<(nl::IPv6PacketMatcherRuleconst&)const 53 11 20.75% ['wpantund-fuzz']
nl::dump_inbound_ipv6_packet(unsignedcharconst*,long,charconst*,bool) 42 6 14.28% ['wpantund-fuzz']
TunnelIPv6Interface::processNetlinkFD() 55 6 10.90% ['wpantund-fuzz']
TunnelIPv6Interface::processMLDMonitorFD() 49 15 30.61% ['wpantund-fuzz']
any_to_string(boost::anyconst&) 78 7 8.974% ['wpantund-fuzz']
fork_unixdomain_socket 45 23 51.11% ['wpantund-fuzz']
open_system_socket_forkpty 52 18 34.61% ['wpantund-fuzz']
nl::wpantund::FirmwareUpgrade::set_firmware_upgrade_command(std::__1::basic_string ,std::__1::allocator >const&) 72 17 23.61% ['wpantund-fuzz']
nl::wpantund::FirmwareUpgrade::set_firmware_check_command(std::__1::basic_string ,std::__1::allocator >const&) 86 13 15.11% ['wpantund-fuzz']
nl::wpantund::NCPInstanceBase::on_mesh_prefix_flags_to_string(unsignedshort,bool) 33 8 24.24% ['wpantund-fuzz']
nl::wpantund::NCPInstanceBase::should_forward_hostbound_frame(unsignedchar*,unsignedcharconst*,unsignedlong) 77 39 50.64% ['wpantund-fuzz']
nl::wpantund::NetworkRetain::set_network_retain_command(std::__1::basic_string ,std::__1::allocator >const&) 65 12 18.46% ['wpantund-fuzz']
nl::wpantund::PcapManager::process() 33 3 9.090% ['wpantund-fuzz']
wpantund_status_to_cstr 45 23 51.11% ['wpantund-fuzz']
nl::wpantund::get_wpantund_version_string() 33 17 51.51% ['wpantund-fuzz']

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/wpantund/src/ncp-spinel/./SpinelNCPInstance.h [] []
/usr/include/boost/signals2/detail/slot_groups.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPVendorCustom.cpp [] []
/usr/include/boost/smart_ptr/enable_shared_from_this.hpp [] []
/usr/include/boost/smart_ptr/detail/shared_count.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/Timer.h ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskDeepSleep.h [] []
/usr/include/boost/optional/optional.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/time-utils.c ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskJoinerCommissioning.cpp [] []
/usr/include/boost/signals2/slot_base.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/bind/bind_cc.hpp [] []
/usr/include/boost/none_t.hpp [] []
/src/wpantund/src/ncp-spinel/../../src/util/IPv6Helpers.h [] []
/usr/include/boost/function/function_template.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/config-file.c ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../util/IPv6PacketMatcher.cpp [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskSendCommand.h [] []
/src/wpantund/src/wpantund/../../src/util/string-utils.h [] []
/src/wpantund/src/ncp-spinel/../../src/util/Callbacks.h [] []
/src/wpantund/src/wpantund/wpan-error.c [] []
/src/wpantund/src/wpantund/../util/ValueMap.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskJoin.cpp [] []
/src/wpantund/src/wpantund/../../src/util/SocketWrapper.h ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskScan.cpp [] []
/usr/include/boost/signals2/detail/signal_template.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/SocketAdapter.cpp [] []
/usr/include/boost/smart_ptr/scoped_ptr.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../../src/util/RingBuffer.h [] []
/usr/include/boost/variant/detail/apply_visitor_unary.hpp ['wpantund-fuzz'] []
/usr/include/boost/optional/detail/optional_aligned_storage.hpp [] []
/usr/include/boost/signals2/detail/slot_template.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../util/SocketWrapper.h [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPThreadDataset.h [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskForm.h [] []
/src/wpantund/src/wpantund/../util/SocketWrapper.cpp [] []
/usr/include/boost/bind/storage.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../util/nlpt-select.c [] []
/src/wpantund/src/wpantund/NCPInstanceBase-AsyncIO.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPThreadDataset.cpp [] []
/src/wpantund/src/wpantund/../util/EventHandler.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskForm.cpp [] []
/usr/include/boost/core/checked_delete.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/signals2/detail/result_type_wrapper.hpp [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPControlInterface.h [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskSendCommand.cpp [] []
/usr/include/boost/visit_each.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/StatCollector.cpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/smart_ptr/weak_ptr.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/signals2/detail/foreign_ptr.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../../src/util/args.h [] []
/src/wpantund/src/wpantund/../../src/util/IPv6Helpers.h [] []
/usr/include/boost/type_index.hpp ['wpantund-fuzz'] []
/usr/include/boost/signals2/detail/auto_buffer.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskScan.h [] []
/src/wpantund/src/wpantund/../util/UnixSocket.cpp [] []
/usr/include/boost/iterator/function_output_iterator.hpp [] []
/usr/include/boost/type_traits/integral_constant.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/../../src/util/Data.h [] []
/src/wpantund/src/wpantund/wpantund-fuzz.cpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/SocketAdapter.h [] []
/src/wpantund/src/wpantund/../../src/util/NilReturn.h [] []
/src/wpantund/src/wpantund/Pcap.cpp [] []
/src/wpantund/src/wpantund/../util/TunnelIPv6Interface.cpp [] []
/src/wpantund/src/wpantund/../../src/util/IPv6PacketMatcher.h [] []
/src/wpantund/src/wpantund/../util/string-utils.h [] []
/src/wpantund/src/ncp-spinel/../../src/wpantund/NCPControlInterface.h [] []
/src/wpantund/src/wpantund/../../src/util/Data.h [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskDeepSleep.cpp [] []
/usr/include/boost/signals2/detail/slot_call_iterator.hpp [] []
/usr/include/boost/function/function_fwd.hpp ['wpantund-fuzz'] []
/usr/include/boost/bind/arg.hpp ['wpantund-fuzz'] []
/usr/include/boost/signals2/optional_last_value.hpp [] []
/src/wpantund/src/wpantund/NCPInstanceBase-NetInterface.cpp [] []
/src/wpantund/src/wpantund/../util/Data.h [] []
/usr/include/boost/bind/bind_mf_cc.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../../src/util/ObjectPool.h [] []
/usr/include/boost/exception/exception.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/NCPTypes.cpp [] []
/usr/include/boost/signals2/detail/unique_lock.hpp ['wpantund-fuzz'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPTask.cpp [] []
/usr/include/boost/get_pointer.hpp [] []
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/TunnelIPv6Interface.h [] []
/src/wpantund/src/wpantund/NetworkRetain.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPInstance-Protothreads.cpp [] []
/usr/include/boost/optional/detail/optional_trivially_copyable_base.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskGetMsgBufferCounters.h [] []
/src/wpantund/src/wpantund/RunawayResetBackoffManager.cpp [] []
/src/wpantund/src/wpantund/./NCPInstanceBase.h [] []
/usr/include/boost/signals2/trackable.hpp [] []
/usr/include/boost/variant/detail/cast_storage.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskHostDidWake.cpp [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskHostDidWake.h [] []
/usr/local/bin/../include/c++/v1/string [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskGetMsgBufferCounters.cpp [] []
/src/wpantund/src/wpantund/NCPInstanceBase.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPInstance-DataPump.cpp [] []
/src/wpantund/src/wpantund/../util/IPv6Helpers.cpp [] []
/usr/include/boost/type_index/stl_type_index.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/NCPControlInterface.cpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/ncp-spinel/SpinelNCPTaskGetNetworkTopology.cpp [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskJoin.h [] []
/src/wpantund/src/wpantund/../util/string-utils.c [] []
/usr/include/boost/smart_ptr/detail/operator_bool.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/NCPInstance.cpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/./NCPInstance.h [] []
/usr/include/stdlib.h ['wpantund-fuzz'] []
/usr/include/boost/signals2/signal_base.hpp [] []
/src/wpantund/src/ncp-spinel/../../src/util/NilReturn.h [] []
/src/wpantund/src/wpantund/./wpantund.cpp ['wpantund-fuzz'] []
/usr/include/boost/core/addressof.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/ncp-spinel/SpinelNCPInstance.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskPeek.cpp [] []
/usr/include/boost/type_traits/aligned_storage.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskWake.cpp [] []
/src/wpantund/src/wpantund/./NetworkInstance.h [] []
/src/wpantund/src/wpantund/../util/netif-mgmt.c [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskLeave.h [] []
/src/wpantund/src/wpantund/../util/SuperSocket.cpp [] []
/usr/include/boost/signals2/connection.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskJoinerCommissioning.h [] []
/usr/include/boost/function/function_base.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/../util/any-to.cpp [] []
/usr/include/boost/type_index/type_index_facade.hpp ['wpantund-fuzz'] []
/usr/include/boost/variant/detail/visitation_impl.hpp ['wpantund-fuzz'] []
/usr/local/bin/../include/c++/v1/typeinfo ['wpantund-fuzz'] []
/usr/include/boost/signals2/detail/tracked_objects_visitor.hpp ['wpantund-fuzz'] []
/usr/include/boost/signals2/detail/variadic_slot_invoker.hpp [] []
/usr/include/boost/signals2/detail/null_output_iterator.hpp [] []
/usr/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp ['wpantund-fuzz'] []
/usr/include/boost/signals2/detail/lwm_pthreads.hpp ['wpantund-fuzz'] []
/usr/include/boost/any.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/wpantund/./StatCollector.h [] []
/src/wpantund/src/wpantund/../util/sec-random.c [] []
/src/wpantund/src/wpantund/../util/tunnel.c [] []
/usr/include/boost/move/utility_core.hpp ['wpantund-fuzz'] []
/usr/include/boost/variant/variant.hpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskWake.h [] []
/src/wpantund/src/wpantund/FirmwareUpgrade.cpp [] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskPeek.h [] []
/usr/include/boost/throw_exception.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../util/IPv6Helpers.h [] []
/usr/include/boost/iterator/iterator_facade.hpp [] []
/usr/include/boost/signals2/detail/signals_common.hpp ['wpantund-fuzz'] []
/usr/include/boost/smart_ptr/shared_ptr.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/bind/mem_fn_template.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/src/wpantund/src/ncp-spinel/SpinelNCPControlInterface.cpp [] []
/src/wpantund/src/ncp-spinel/SpinelNCPTaskLeave.cpp [] []
/usr/include/boost/signals2/detail/scope_guard.hpp [] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h [] []
/src/wpantund/src/wpantund/../../third_party/fgetln/fgetln.h ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/../util/socket-utils.c ['wpantund-fuzz'] []
/usr/include/boost/bind/bind.hpp ['wpantund-fuzz'] ['wpantund-fuzz']
/usr/include/boost/variant/detail/initializer.hpp [] []
/usr/include/boost/variant/detail/forced_return.hpp ['wpantund-fuzz'] []
/src/wpantund/src/wpantund/NCPInstanceBase-Addresses.cpp [] []
/usr/local/bin/../include/c++/v1/stdexcept ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/./SpinelNCPTaskGetNetworkTopology.h [] []
/src/wpantund/src/ncp-spinel/../../src/wpantund/NCPMfgInterface_v1.h [] []
/src/wpantund/src/wpantund/../util/Timer.cpp ['wpantund-fuzz'] []
/src/wpantund/src/ncp-spinel/../../src/util/SocketAsyncOp.h [] []

Directories in report

Directory
/usr/include/boost/iterator/
/src/wpantund/src/wpantund/../../src/util/
/usr/include/boost/variant/detail/
/usr/local/bin/../include/c++/v1/
/src/wpantund/src/ncp-spinel/../../src/util/
/usr/include/boost/
/usr/include/boost/signals2/
/usr/include/boost/exception/
/src/wpantund/src/wpantund/../../third_party/fgetln/
/usr/include/boost/type_index/
/usr/include/boost/function/
/usr/include/boost/optional/
/usr/include/boost/core/
/usr/include/boost/type_traits/
/usr/include/
/src/wpantund/src/wpantund/../util/
/usr/include/boost/optional/detail/
/usr/include/boost/bind/
/src/wpantund/src/wpantund/
/src/wpantund/src/ncp-spinel/../../src/wpantund/
/usr/local/bin/../include/c++/v1/__exception/
/src/wpantund/src/wpantund/./
/usr/include/boost/variant/
/usr/include/boost/smart_ptr/
/src/wpantund/src/ncp-spinel/./
/src/wpantund/src/ncp-spinel/
/usr/include/boost/smart_ptr/detail/
/usr/include/x86_64-linux-gnu/bits/
/usr/include/boost/signals2/detail/
/usr/include/boost/move/