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

Fuzzer details

Fuzzer: levels_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 41 42.7%
gold [1:9] 15 15.6%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 40 41.6%
All colors 96 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
193 213 12 :

['spdlog::details::os::sleep_for_millis(unsigned int)', 'spdlog::details::os::fopen_s(_IO_FILE**, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::create_dir(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::dir_name(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::filename_to_str(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator > const&, int)', 'fclose', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc', '__errno_location', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:52
166 166 6 :

['spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const', 'spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING::operator fmt::v10::basic_string_view () const', 'fmt::v10::format_arg_store , std::__1::remove_cv ::type>::type> fmt::v10::make_format_args , int>(int&)', 'std::__1::back_insert_iterator > > fmt::v10::vformat_to > >, 0>(std::__1::back_insert_iterator > >, fmt::v10::basic_string_view , fmt::v10::basic_format_args >)', 'void fmt::v10::detail::check_format_string >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING, 0>(spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING)', 'std::__1::back_insert_iterator > > std::__1::back_inserter[abi:v180000] > >(fmt::v10::basic_memory_buffer >&)']

166 166 spdlog::details::fmt_helper::pad2(int,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:85
20 20 1 :

['void spdlog::details::fmt_helper::append_int (unsigned int, fmt::v10::basic_memory_buffer >&)']

20 20 voidspdlog::details::fmt_helper::pad3 (unsignedint,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:107
20 20 4 :

['std::__1::basic_string , std::__1::allocator > std::__1::operator+ , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator >)']

20 20 spdlog::details::registry::throw_if_exists_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:249
10 10 2 :

['std::__1::shared_ptr ::operator->[abi:v180000]() const', 'spdlog::logger::enable_backtrace(unsigned long)']

10 48 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:72
4 8 7 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:v180000]() const', 'spdlog::details::os::mkdir_(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator >::find_first_of[abi:v180000](char const*, unsigned long) const', 'std::__1::basic_string , std::__1::allocator >::substr[abi:v180000](unsigned long, unsigned long) const', 'spdlog::details::os::path_exists(std::__1::basic_string , std::__1::allocator > const&)']

4 8 spdlog::details::os::create_dir(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/os-inl.h:520
4 4 1 :

['spdlog::details::os::gmtime(long const&)']

4 4 spdlog::pattern_formatter::get_time_(spdlog::details::log_msgconst&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:990
2 2 3 :

['spdlog::logger::set_error_handler(std::__1::function , std::__1::allocator > const&)>)', 'std::__1::function , std::__1::allocator > const&)>::function(std::__1::function , std::__1::allocator > const&)> const&)', 'std::__1::function , std::__1::allocator > const&)>::~function()']

12 56 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:61
2 2 5 :

['_ZNSt3__110unique_ptrIN6spdlog7details14flag_formatterENS_14default_deleteIS3_EEEC2B7v180000INS1_21custom_flag_formatterENS4_IS8_EEvvEEONS0_IT_T0_EE', 'std::__1::unique_ptr >::~unique_ptr[abi:v180000]()', 'std::__1::unique_ptr >::operator->[abi:v180000]() const', 'spdlog::custom_flag_formatter::set_padding_info(spdlog::details::padding_info const&)', 'std::__1::__hash_map_iterator > >, void*>*> >::operator->[abi:v180000]() const']

2 2 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1000
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1294
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1295
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1303

Runtime coverage analysis

Covered functions
141
Functions that are reachable but not covered
40
Reachable functions
146
Percentage of reachable functions covered
72.6%
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/levels_fuzzer.cc 1
/src/spdlog/include/spdlog/common.h 3
/src/spdlog/include/spdlog/sinks/basic_file_sink.h 1
/src/spdlog/include/spdlog/details/synchronous_factory.h 1
/src/spdlog/include/spdlog/details/registry-inl.h 2
/src/spdlog/include/spdlog/pattern_formatter-inl.h 3
/src/spdlog/include/spdlog/formatter.h 2
/src/spdlog/include/spdlog/pattern_formatter.h 2
/src/spdlog/include/spdlog/fmt/bundled/format.h 7
/src/spdlog/include/spdlog/fmt/bundled/core.h 12
/src/spdlog/include/spdlog/spdlog-inl.h 2
/src/spdlog/include/spdlog/cfg/env.h 1
/src/spdlog/include/spdlog/details/os-inl.h 4
/src/spdlog/include/spdlog/cfg/helpers-inl.h 5
/src/spdlog/include/spdlog/common-inl.h 1
/src/spdlog/include/spdlog/cfg/argv.h 1
/src/spdlog/include/spdlog/spdlog.h 1
/src/spdlog/include/spdlog/logger.h 4
/src/spdlog/include/spdlog/details/backtracer-inl.h 2
/src/spdlog/include/spdlog/details/log_msg-inl.h 2
/src/spdlog/include/spdlog/logger-inl.h 1
/src/spdlog/include/spdlog/details/log_msg_buffer-inl.h 3
/src/spdlog/include/spdlog/fmt/bundled/format-inl.h 1
/src/spdlog/include/spdlog/details/circular_q.h 1
/src/spdlog/include/spdlog/details/log_msg_buffer.h 1

Fuzzer: pattern_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 8 8.33%
gold [1:9] 11 11.4%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 77 80.2%
All colors 96 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
193 213 12 :

['spdlog::details::os::sleep_for_millis(unsigned int)', 'spdlog::details::os::fopen_s(_IO_FILE**, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::create_dir(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::dir_name(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::filename_to_str(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator > const&, int)', 'fclose', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc', '__errno_location', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:52
20 20 4 :

['std::__1::basic_string , std::__1::allocator > std::__1::operator+ , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator >)']

20 20 spdlog::details::registry::throw_if_exists_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:249
10 10 2 :

['std::__1::shared_ptr ::operator->[abi:v180000]() const', 'spdlog::logger::enable_backtrace(unsigned long)']

10 48 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:72
4 8 7 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:v180000]() const', 'spdlog::details::os::mkdir_(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator >::find_first_of[abi:v180000](char const*, unsigned long) const', 'std::__1::basic_string , std::__1::allocator >::substr[abi:v180000](unsigned long, unsigned long) const', 'spdlog::details::os::path_exists(std::__1::basic_string , std::__1::allocator > const&)']

4 8 spdlog::details::os::create_dir(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/os-inl.h:520
2 2 3 :

['spdlog::logger::set_error_handler(std::__1::function , std::__1::allocator > const&)>)', 'std::__1::function , std::__1::allocator > const&)>::function(std::__1::function , std::__1::allocator > const&)> const&)', 'std::__1::function , std::__1::allocator > const&)>::~function()']

12 56 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:61
2 2 5 :

['_ZNSt3__110unique_ptrIN6spdlog7details14flag_formatterENS_14default_deleteIS3_EEEC2B7v180000INS1_21custom_flag_formatterENS4_IS8_EEvvEEONS0_IT_T0_EE', 'std::__1::unique_ptr >::~unique_ptr[abi:v180000]()', 'std::__1::unique_ptr >::operator->[abi:v180000]() const', 'spdlog::custom_flag_formatter::set_padding_info(spdlog::details::padding_info const&)', 'std::__1::__hash_map_iterator > >, void*>*> >::operator->[abi:v180000]() const']

2 2 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1000
2 2 5 :

['_ZNSt3__110unique_ptrIN6spdlog7details14flag_formatterENS_14default_deleteIS3_EEEC2B7v180000INS1_21custom_flag_formatterENS4_IS8_EEvvEEONS0_IT_T0_EE', 'std::__1::unique_ptr >::~unique_ptr[abi:v180000]()', 'std::__1::unique_ptr >::operator->[abi:v180000]() const', 'spdlog::custom_flag_formatter::set_padding_info(spdlog::details::padding_info const&)', 'std::__1::__hash_map_iterator > >, void*>*> >::operator->[abi:v180000]() const']

2 2 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1000
0 0 1 :

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

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:35
0 0 None 193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:41
0 0 1 :

['std::__1::function , std::__1::allocator > const&, _IO_FILE*)>::operator()(std::__1::basic_string , std::__1::allocator > const&, _IO_FILE*) const']

2 2 spdlog::details::file_helper::close() call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:87
0 0 None 0 12 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1221
0 0 1 :

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

0 0 spdlog::details::file_helper::close() call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:94

Runtime coverage analysis

Covered functions
241
Functions that are reachable but not covered
14
Reachable functions
408
Percentage of reachable functions covered
96.57%
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/pattern_fuzzer.cc 1
/src/spdlog/include/spdlog/common.h 46
/src/spdlog/include/spdlog/sinks/basic_file_sink.h 1
/src/spdlog/include/spdlog/details/synchronous_factory.h 1
/src/spdlog/include/spdlog/details/registry-inl.h 2
/src/spdlog/include/spdlog/pattern_formatter-inl.h 9
/src/spdlog/include/spdlog/formatter.h 2
/src/spdlog/include/spdlog/pattern_formatter.h 5
/src/spdlog/include/spdlog/fmt/bundled/format.h 3
/src/spdlog/include/spdlog/fmt/bundled/core.h 4
/src/spdlog/include/spdlog/spdlog-inl.h 3

Fuzzer: backtrace_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 10 9.70%
gold [1:9] 15 14.5%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 78 75.7%
All colors 103 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
193 213 12 :

['spdlog::details::os::sleep_for_millis(unsigned int)', 'spdlog::details::os::fopen_s(_IO_FILE**, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::create_dir(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::dir_name(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::filename_to_str(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator > const&, int)', 'fclose', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc', '__errno_location', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:52
166 166 6 :

['spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const', 'spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING::operator fmt::v10::basic_string_view () const', 'fmt::v10::format_arg_store , std::__1::remove_cv ::type>::type> fmt::v10::make_format_args , int>(int&)', 'std::__1::back_insert_iterator > > fmt::v10::vformat_to > >, 0>(std::__1::back_insert_iterator > >, fmt::v10::basic_string_view , fmt::v10::basic_format_args >)', 'void fmt::v10::detail::check_format_string >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING, 0>(spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING)', 'std::__1::back_insert_iterator > > std::__1::back_inserter[abi:v180000] > >(fmt::v10::basic_memory_buffer >&)']

166 166 spdlog::details::fmt_helper::pad2(int,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:85
20 20 1 :

['void spdlog::details::fmt_helper::append_int (unsigned int, fmt::v10::basic_memory_buffer >&)']

20 20 voidspdlog::details::fmt_helper::pad3 (unsignedint,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:107
20 20 4 :

['std::__1::basic_string , std::__1::allocator > std::__1::operator+ , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator >)']

20 20 spdlog::details::registry::throw_if_exists_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:249
4 8 7 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:v180000]() const', 'spdlog::details::os::mkdir_(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator >::find_first_of[abi:v180000](char const*, unsigned long) const', 'std::__1::basic_string , std::__1::allocator >::substr[abi:v180000](unsigned long, unsigned long) const', 'spdlog::details::os::path_exists(std::__1::basic_string , std::__1::allocator > const&)']

4 8 spdlog::details::os::create_dir(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/os-inl.h:520
4 4 1 :

['spdlog::details::os::gmtime(long const&)']

4 4 spdlog::pattern_formatter::get_time_(spdlog::details::log_msgconst&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:990
2 2 3 :

['spdlog::logger::set_error_handler(std::__1::function , std::__1::allocator > const&)>)', 'std::__1::function , std::__1::allocator > const&)>::function(std::__1::function , std::__1::allocator > const&)> const&)', 'std::__1::function , std::__1::allocator > const&)>::~function()']

2 56 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:61
2 2 5 :

['_ZNSt3__110unique_ptrIN6spdlog7details14flag_formatterENS_14default_deleteIS3_EEEC2B7v180000INS1_21custom_flag_formatterENS4_IS8_EEvvEEONS0_IT_T0_EE', 'std::__1::unique_ptr >::~unique_ptr[abi:v180000]()', 'std::__1::unique_ptr >::operator->[abi:v180000]() const', 'spdlog::custom_flag_formatter::set_padding_info(spdlog::details::padding_info const&)', 'std::__1::__hash_map_iterator > >, void*>*> >::operator->[abi:v180000]() const']

2 2 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1000
0 10 2 :

['std::__1::shared_ptr ::operator->[abi:v180000]() const', 'spdlog::logger::enable_backtrace(unsigned long)']

0 48 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:72
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1294
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1295
0 0 None 515 1032 spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1303

Runtime coverage analysis

Covered functions
161
Functions that are reachable but not covered
15
Reachable functions
148
Percentage of reachable functions covered
89.86%
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/backtrace_fuzzer.cc 1
/src/spdlog/include/spdlog/common.h 3
/src/spdlog/include/spdlog/sinks/basic_file_sink.h 1
/src/spdlog/include/spdlog/details/synchronous_factory.h 1
/src/spdlog/include/spdlog/details/registry-inl.h 2
/src/spdlog/include/spdlog/pattern_formatter-inl.h 3
/src/spdlog/include/spdlog/formatter.h 2
/src/spdlog/include/spdlog/pattern_formatter.h 2
/src/spdlog/include/spdlog/fmt/bundled/format.h 7
/src/spdlog/include/spdlog/fmt/bundled/core.h 12
/src/spdlog/include/spdlog/spdlog-inl.h 4
/src/spdlog/include/spdlog/spdlog.h 1
/src/spdlog/include/spdlog/logger.h 4
/src/spdlog/include/spdlog/details/backtracer-inl.h 3
/src/spdlog/include/spdlog/details/log_msg-inl.h 3
/src/spdlog/include/spdlog/details/os-inl.h 3
/src/spdlog/include/spdlog/logger-inl.h 4
/src/spdlog/include/spdlog/details/log_msg_buffer-inl.h 3
/src/spdlog/include/spdlog/fmt/bundled/format-inl.h 1
/src/spdlog/include/spdlog/details/circular_q.h 4
/src/spdlog/include/spdlog/details/log_msg_buffer.h 1

Fuzzer: format_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 67 29.3%
gold [1:9] 8 3.50%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 153 67.1%
All colors 228 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
193 213 12 :

['spdlog::details::os::sleep_for_millis(unsigned int)', 'spdlog::details::os::fopen_s(_IO_FILE**, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::create_dir(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::dir_name(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::filename_to_str(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator > const&, int)', 'fclose', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc', '__errno_location', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:52
166 166 6 :

['spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const', 'spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING::operator fmt::v10::basic_string_view () const', 'fmt::v10::format_arg_store , std::__1::remove_cv ::type>::type> fmt::v10::make_format_args , int>(int&)', 'std::__1::back_insert_iterator > > fmt::v10::vformat_to > >, 0>(std::__1::back_insert_iterator > >, fmt::v10::basic_string_view , fmt::v10::basic_format_args >)', 'void fmt::v10::detail::check_format_string >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING, 0>(spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING)', 'std::__1::back_insert_iterator > > std::__1::back_inserter[abi:v180000] > >(fmt::v10::basic_memory_buffer >&)']

166 166 spdlog::details::fmt_helper::pad2(int,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:85
75 75 1 :

['spdlog::details::mdc_formatter ::format_mdc(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&, fmt::v10::basic_memory_buffer >&)']

75 75 spdlog::details::mdc_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:797
28 28 1 :

['spdlog::details::mdc_formatter ::format_mdc(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&, fmt::v10::basic_memory_buffer >&)']

28 28 spdlog::details::mdc_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:797
20 20 4 :

['std::__1::basic_string , std::__1::allocator > std::__1::operator+ , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator >)']

20 20 spdlog::details::registry::throw_if_exists_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:249
10 10 2 :

['std::__1::shared_ptr ::operator->[abi:v180000]() const', 'spdlog::logger::enable_backtrace(unsigned long)']

10 48 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:72
6 56 6 :

['spdlog::details::fmt_helper::append_string_view(fmt::v10::basic_string_view , fmt::v10::basic_memory_buffer >&)', 'fmt::v10::detail::buffer ::push_back(char const&)', 'unsigned int spdlog::details::scoped_padder::count_digits (int)', 'spdlog::details::padding_info::enabled() const', 'void spdlog::details::fmt_helper::append_int (int, fmt::v10::basic_memory_buffer >&)', 'std::__1::char_traits ::length[abi:v180000](char const*)']

6 174 spdlog::details::source_location_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:645
6 30 2 :

['unsigned int spdlog::details::scoped_padder::count_digits (int)', 'void spdlog::details::fmt_helper::append_int (int, fmt::v10::basic_memory_buffer >&)']

6 148 spdlog::details::source_linenum_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:733
5 26 4 :

['spdlog::details::short_filename_formatter ::basename(char const*)', 'spdlog::details::fmt_helper::append_string_view(fmt::v10::basic_string_view , fmt::v10::basic_memory_buffer >&)', 'spdlog::details::padding_info::enabled() const', 'std::__1::char_traits ::length[abi:v180000](char const*)']

5 144 spdlog::details::short_filename_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:715
5 26 4 :

['spdlog::details::short_filename_formatter ::basename(char const*)', 'spdlog::details::fmt_helper::append_string_view(fmt::v10::basic_string_view , fmt::v10::basic_memory_buffer >&)', 'spdlog::details::padding_info::enabled() const', 'std::__1::char_traits ::length[abi:v180000](char const*)']

5 28 spdlog::details::short_filename_formatter ::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:715
4 8 7 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:v180000]() const', 'spdlog::details::os::mkdir_(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator >::find_first_of[abi:v180000](char const*, unsigned long) const', 'std::__1::basic_string , std::__1::allocator >::substr[abi:v180000](unsigned long, unsigned long) const', 'spdlog::details::os::path_exists(std::__1::basic_string , std::__1::allocator > const&)']

4 8 spdlog::details::os::create_dir(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/os-inl.h:520
4 4 1 :

['fmt::v10::basic_format_parse_context ::begin() const']

4 4 fmt::v10::detail::vformat_to (fmt::v10::detail::buffer &,fmt::v10::basic_string_view ,fmt::v10::detail::vformat_args ::type,fmt::v10::detail::locale_ref)::format_handler::on_format_specs(int,charconst*,charconst*) call site: 00000 /src/spdlog/include/spdlog/fmt/bundled/format.h:4402

Runtime coverage analysis

Covered functions
687
Functions that are reachable but not covered
100
Reachable functions
629
Percentage of reachable functions covered
84.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.
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/format_fuzzer.cc 2
/src/spdlog/include/spdlog/common.h 50
/src/spdlog/include/spdlog/sinks/basic_file_sink.h 1
/src/spdlog/include/spdlog/details/synchronous_factory.h 1
/src/spdlog/include/spdlog/details/registry-inl.h 2
/src/spdlog/include/spdlog/pattern_formatter-inl.h 9
/src/spdlog/include/spdlog/formatter.h 2
/src/spdlog/include/spdlog/pattern_formatter.h 8
/src/spdlog/include/spdlog/fmt/bundled/format.h 26
/src/spdlog/include/spdlog/fmt/bundled/core.h 34
/src/spdlog/include/spdlog/spdlog-inl.h 3
/src/spdlog/include/spdlog/spdlog.h 1
/src/spdlog/include/spdlog/logger.h 7
/src/spdlog/include/spdlog/details/backtracer-inl.h 2
/src/spdlog/include/spdlog/details/log_msg-inl.h 2
/src/spdlog/include/spdlog/details/os-inl.h 4
/src/spdlog/include/spdlog/logger-inl.h 3
/src/spdlog/include/spdlog/details/log_msg_buffer-inl.h 3
/src/spdlog/include/spdlog/fmt/bundled/format-inl.h 3
/src/spdlog/include/spdlog/details/circular_q.h 1
/src/spdlog/include/spdlog/details/log_msg_buffer.h 1

Fuzzer: log_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 49 25.9%
gold [1:9] 15 7.93%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 125 66.1%
All colors 189 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
193 213 12 :

['spdlog::details::os::sleep_for_millis(unsigned int)', 'spdlog::details::os::fopen_s(_IO_FILE**, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::create_dir(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::dir_name(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::details::os::filename_to_str(std::__1::basic_string , std::__1::allocator > const&)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator > const&, int)', 'fclose', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc', '__errno_location', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

193 213 spdlog::details::file_helper::open(std::__1::basic_string ,std::__1::allocator >const&,bool) call site: 00000 /src/spdlog/include/spdlog/details/file_helper-inl.h:52
166 166 6 :

['spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const', 'spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING::operator fmt::v10::basic_string_view () const', 'fmt::v10::format_arg_store , std::__1::remove_cv ::type>::type> fmt::v10::make_format_args , int>(int&)', 'std::__1::back_insert_iterator > > fmt::v10::vformat_to > >, 0>(std::__1::back_insert_iterator > >, fmt::v10::basic_string_view , fmt::v10::basic_format_args >)', 'void fmt::v10::detail::check_format_string >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING, 0>(spdlog::details::fmt_helper::pad2(int, fmt::v10::basic_memory_buffer >&)::{lambda()#1}::operator()() const::FMT_COMPILE_STRING)', 'std::__1::back_insert_iterator > > std::__1::back_inserter[abi:v180000] > >(fmt::v10::basic_memory_buffer >&)']

166 166 spdlog::details::fmt_helper::pad2(int,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:85
31 35 5 :

['std::__1::back_insert_iterator >::operator=[abi:v180000](char&&)', 'fmt::v10::appender fmt::v10::detail::base_iterator (fmt::v10::appender, fmt::v10::appender)', 'std::__1::back_insert_iterator >::operator*[abi:v180000]()', 'fmt::v10::appender::operator++(int)', 'fmt::v10::detail::format_decimal_result fmt::v10::detail::format_decimal (fmt::v10::appender, unsigned int, int)']

31 35 fmt::v10::appenderfmt::v10::detail::write (fmt::v10::appender,int) call site: 00000 /src/spdlog/include/spdlog/fmt/bundled/format.h:2363
20 20 1 :

['void spdlog::details::fmt_helper::append_int (unsigned int, fmt::v10::basic_memory_buffer >&)']

20 20 voidspdlog::details::fmt_helper::pad3 (unsignedint,fmt::v10::basic_memory_buffer >&) call site: 00000 /src/spdlog/include/spdlog/details/fmt_helper.h:107
20 20 4 :

['std::__1::basic_string , std::__1::allocator > std::__1::operator+ , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:v180000] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'spdlog::throw_spdlog_ex(std::__1::basic_string , std::__1::allocator >)']

20 20 spdlog::details::registry::throw_if_exists_(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:249
10 10 2 :

['std::__1::shared_ptr ::operator->[abi:v180000]() const', 'spdlog::logger::enable_backtrace(unsigned long)']

10 48 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:72
4 8 7 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:v180000]() const', 'spdlog::details::os::mkdir_(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_string , std::__1::allocator >::find_first_of[abi:v180000](char const*, unsigned long) const', 'std::__1::basic_string , std::__1::allocator >::substr[abi:v180000](unsigned long, unsigned long) const', 'spdlog::details::os::path_exists(std::__1::basic_string , std::__1::allocator > const&)']

4 8 spdlog::details::os::create_dir(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/spdlog/include/spdlog/details/os-inl.h:520
4 4 1 :

['spdlog::details::os::gmtime(long const&)']

4 4 spdlog::pattern_formatter::get_time_(spdlog::details::log_msgconst&) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:990
2 2 3 :

['spdlog::logger::set_error_handler(std::__1::function , std::__1::allocator > const&)>)', 'std::__1::function , std::__1::allocator > const&)>::function(std::__1::function , std::__1::allocator > const&)> const&)', 'std::__1::function , std::__1::allocator > const&)>::~function()']

12 56 spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) call site: 00000 /src/spdlog/include/spdlog/details/registry-inl.h:61
2 2 6 :

['std::__1::basic_string , std::__1::allocator >::back[abi:v180000]() const', 'std::__1::basic_string , std::__1::allocator >::end[abi:v180000]() const', 'bool std::__1::operator==[abi:v180000] (std::__1::__wrap_iter const&, std::__1::__wrap_iter const&)', 'std::__1::__wrap_iter ::operator++[abi:v180000](int)', 'char fmt::v10::detail::max_value ()', 'std::__1::__wrap_iter ::operator*[abi:v180000]() const']

2 4 fmt::v10::detail::digit_grouping ::next(fmt::v10::detail::digit_grouping ::next_state&)const call site: 00000 /src/spdlog/include/spdlog/fmt/bundled/format.h:2022
2 2 5 :

['_ZNSt3__110unique_ptrIN6spdlog7details14flag_formatterENS_14default_deleteIS3_EEEC2B7v180000INS1_21custom_flag_formatterENS4_IS8_EEvvEEONS0_IT_T0_EE', 'std::__1::unique_ptr >::~unique_ptr[abi:v180000]()', 'std::__1::unique_ptr >::operator->[abi:v180000]() const', 'spdlog::custom_flag_formatter::set_padding_info(spdlog::details::padding_info const&)', 'std::__1::__hash_map_iterator > >, void*>*> >::operator->[abi:v180000]() const']

2 2 voidspdlog::pattern_formatter::handle_flag_ (char,spdlog::details::padding_info) call site: 00000 /src/spdlog/include/spdlog/pattern_formatter-inl.h:1000
0 16 1 :

['fmt::v10::detail::throw_format_error(char const*)']

0 16 fmt::v10::appenderfmt::v10::detail::write (fmt::v10::appender,charconst*) call site: 00000 /src/spdlog/include/spdlog/fmt/bundled/format.h:3729

Runtime coverage analysis

Covered functions
449
Functions that are reachable but not covered
71
Reachable functions
289
Percentage of reachable functions covered
75.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.
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/log_fuzzer.cc 1
/src/spdlog/include/spdlog/common.h 5
/src/spdlog/include/spdlog/sinks/basic_file_sink.h 1
/src/spdlog/include/spdlog/details/synchronous_factory.h 1
/src/spdlog/include/spdlog/details/registry-inl.h 2
/src/spdlog/include/spdlog/pattern_formatter-inl.h 3
/src/spdlog/include/spdlog/formatter.h 2
/src/spdlog/include/spdlog/pattern_formatter.h 2
/src/spdlog/include/spdlog/fmt/bundled/format.h 26
/src/spdlog/include/spdlog/fmt/bundled/core.h 34
/src/spdlog/include/spdlog/spdlog-inl.h 2
/src/spdlog/include/spdlog/spdlog.h 6
/src/spdlog/include/spdlog/logger.h 12
/src/spdlog/include/spdlog/details/backtracer-inl.h 2
/src/spdlog/include/spdlog/details/log_msg-inl.h 2
/src/spdlog/include/spdlog/details/os-inl.h 4
/src/spdlog/include/spdlog/logger-inl.h 3
/src/spdlog/include/spdlog/details/log_msg_buffer-inl.h 3
/src/spdlog/include/spdlog/fmt/bundled/format-inl.h 3
/src/spdlog/include/spdlog/details/circular_q.h 1
/src/spdlog/include/spdlog/details/log_msg_buffer.h 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
charconst*fmt::v10::detail::parse_replacement_field (fmt::v10::detail::buffer &,fmt::v10::basic_string_view ,fmt::v10::detail::vformat_args ::type,fmt::v10::detail::locale_ref)::format_handler&>(charconst*,charconst*,fmt::v10::detail::vformat_to (fmt::v10::detail::buffer &,fmt::v10::basic_string_view ,fmt::v10::detail::vformat_args ::type,fmt::v10::detail::locale_ref)::format_handler&) /src/spdlog/include/spdlog/fmt/bundled/core.h 3 ['N/A', 'N/A', 'N/A'] 13 0 723 75 7 510 0 864 738
intfmt::v10::detail::format_float (double,int,fmt::v10::detail::float_specs,fmt::v10::detail::buffer &) /src/spdlog/include/spdlog/fmt/bundled/format.h 4 ['double', 'int', 'size_t', 'N/A'] 8 0 920 127 40 283 0 676 603
spdlog::sinks::basic_file_sink ::basic_file_sink(std::__1::basic_string ,std::__1::allocator >const&,bool,spdlog::file_event_handlersconst&) /src/spdlog/include/spdlog/sinks/basic_file_sink-inl.h 4 ['N/A', 'N/A', 'bool', 'N/A'] 9 0 69 9 8 169 0 327 205
fmt::v10::format_facet ::do_put(fmt::v10::appender,fmt::v10::loc_value,fmt::v10::format_specs const&)const /src/spdlog/include/spdlog/fmt/bundled/format-inl.h 4 ['N/A', 'N/A', 'N/A', 'N/A'] 15 0 82 11 9 215 0 374 127
fmt::v10::appenderfmt::v10::detail::default_arg_formatter ::operator() (float) /src/spdlog/include/spdlog/fmt/bundled/format.h 2 ['N/A', 'float'] 11 0 33 3 2 227 0 445 125
fmt::v10::appenderfmt::v10::detail::default_arg_formatter ::operator() (double) /src/spdlog/include/spdlog/fmt/bundled/format.h 2 ['N/A', 'double'] 11 0 33 3 2 240 0 477 106
boolfmt::v10::detail::loc_writer ::operator()<__int128,0>(__int128) /src/spdlog/include/spdlog/fmt/bundled/format.h 3 ['N/A', 'size_t', 'size_t'] 13 0 120 12 10 190 0 343 106
spdlog::details::registry::initialize_logger(std::__1::shared_ptr ) /src/spdlog/include/spdlog/details/registry-inl.h 2 ['N/A', 'N/A'] 5 0 186 30 26 31 0 97 87
spdlog::details::full_formatter::format(spdlog::details::log_msgconst&,tmconst&,fmt::v10::basic_memory_buffer >&) /src/spdlog/include/spdlog/pattern_formatter-inl.h 4 ['N/A', 'N/A', 'N/A', 'N/A'] 7 0 338 18 7 89 0 115 74
spdlog::logger::sink_it_(spdlog::details::log_msgconst&) /src/spdlog/include/spdlog/logger-inl.h 2 ['N/A', 'N/A'] 11 0 349 47 37 157 0 221 57

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

Functions statically reachable by fuzzers
56.0%
776 / 1382
Cyclomatic complexity statically reachable by fuzzers
64.0%
3791 / 5923

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

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/levels_fuzzer.cc

Dictionary

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


Fuzzer function priority

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

-focus_function=['void fmt::v10::detail::buffer::append(char const*, char const*)', 'spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::basic_string_view)', 'spdlog::details::full_formatter::full_formatter(spdlog::details::padding_info)', 'fmt::v10::basic_memory_buffer >::basic_memory_buffer(std::__1::allocator const&)', 'spdlog::details::registry::registry()', 'fmt::v10::basic_memory_buffer >::~basic_memory_buffer()', 'spdlog::details::os::getenv(char const*)', 'spdlog::details::log_msg::log_msg(spdlog::source_loc, fmt::v10::basic_string_view, spdlog::level::level_enum, fmt::v10::basic_string_view)', 'std::__1::make_unsigned::type fmt::v10::detail::to_unsigned(long)']

/src/pattern_fuzzer.cc

Dictionary

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


Fuzzer function priority

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

-focus_function=['spdlog::details::full_formatter::full_formatter(spdlog::details::padding_info)', 'fmt::v10::basic_memory_buffer >::basic_memory_buffer(std::__1::allocator const&)', 'spdlog::details::registry::registry()', 'fmt::v10::basic_memory_buffer >::~basic_memory_buffer()', 'spdlog::set_pattern(std::__1::basic_string, std::__1::allocator >, spdlog::pattern_time_type)', 'spdlog::pattern_formatter::compile_pattern_(std::__1::basic_string, std::__1::allocator > const&)']

/src/backtrace_fuzzer.cc

Dictionary

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


Fuzzer function priority

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

-focus_function=['spdlog::details::full_formatter::full_formatter(spdlog::details::padding_info)', 'fmt::v10::basic_memory_buffer >::basic_memory_buffer(std::__1::allocator const&)', 'spdlog::details::registry::registry()', 'fmt::v10::basic_memory_buffer >::~basic_memory_buffer()', 'spdlog::details::log_msg::log_msg(spdlog::source_loc, fmt::v10::basic_string_view, spdlog::level::level_enum, fmt::v10::basic_string_view)', 'spdlog::details::backtracer::push_back(spdlog::details::log_msg const&)', 'std::__1::make_unsigned::type fmt::v10::detail::to_unsigned(long)', 'spdlog::details::backtracer::push_back(spdlog::details::log_msg const&)']

/src/format_fuzzer.cc

Dictionary

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


Fuzzer function priority

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

-focus_function=['void fmt::v10::detail::buffer::append(char const*, char const*)', 'void spdlog::logger::log_, std::__1::allocator > const&>(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::basic_string_view, unsigned long const&, unsigned long const&, std::__1::basic_string, std::__1::allocator > const&)', 'void spdlog::logger::log_, std::__1::allocator > const&>(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::basic_string_view, unsigned long const&, unsigned long const&, std::__1::basic_string, std::__1::allocator > const&)', 'void fmt::v10::detail::vformat_to(fmt::v10::detail::buffer&, fmt::v10::basic_string_view, fmt::v10::detail::vformat_args::type, fmt::v10::detail::locale_ref)', 'fmt::v10::detail::buffer::try_resize(unsigned long)', 'fmt::v10::detail::format_decimal_result fmt::v10::detail::format_decimal(char*, unsigned int, int)', 'void fmt::v10::detail::vformat_to(fmt::v10::detail::buffer&, fmt::v10::basic_string_view, fmt::v10::detail::vformat_args::type, fmt::v10::detail::locale_ref)', 'spdlog::details::full_formatter::full_formatter(spdlog::details::padding_info)', 'fmt::v10::basic_memory_buffer >::basic_memory_buffer(std::__1::allocator const&)', 'std::__1::unique_ptr > spdlog::details::make_unique()']

/src/log_fuzzer.cc

Dictionary

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


Fuzzer function priority

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

-focus_function=['void fmt::v10::detail::buffer::append(char const*, char const*)', 'void spdlog::logger::log_, std::__1::allocator > const&>(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::basic_string_view, unsigned long const&, unsigned long const&, std::__1::basic_string, std::__1::allocator > const&)', 'fmt::v10::detail::buffer::try_resize(unsigned long)', 'fmt::v10::detail::format_decimal_result fmt::v10::detail::format_decimal(char*, unsigned int, int)', 'spdlog::details::full_formatter::full_formatter(spdlog::details::padding_info)', 'fmt::v10::basic_memory_buffer >::basic_memory_buffer(std::__1::allocator const&)', 'fmt::v10::basic_format_args >::get(int) const', 'spdlog::details::registry::registry()', 'fmt::v10::basic_memory_buffer >::~basic_memory_buffer()', 'spdlog::details::log_msg::log_msg(spdlog::source_loc, fmt::v10::basic_string_view, spdlog::level::level_enum, fmt::v10::basic_string_view)']

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/backtrace_fuzzer.cc ['backtrace_fuzzer'] ['backtrace_fuzzer']
/src/spdlog/include/spdlog/details/file_helper-inl.h [] []
/src/spdlog/include/spdlog/fmt/bundled/format-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/os-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/registry-inl.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/spdlog/include/spdlog/fmt/bundled/core.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h [] []
/src/spdlog/include/spdlog/details/backtracer.h [] []
/src/spdlog/include/spdlog/sinks/sink-inl.h [] []
/src/spdlog/include/spdlog/pattern_formatter.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/log_fuzzer.cc ['log_fuzzer'] ['log_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/spdlog/include/spdlog/cfg/helpers-inl.h ['levels_fuzzer'] ['levels_fuzzer']
/src/spdlog/include/spdlog/details/circular_q.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/log_msg_buffer.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['backtrace_fuzzer']
/src/spdlog/include/spdlog/cfg/env.h ['levels_fuzzer'] ['levels_fuzzer']
/src/spdlog/include/spdlog/spdlog-inl.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/pattern_fuzzer.cc ['pattern_fuzzer'] ['pattern_fuzzer']
/src/spdlog/include/spdlog/fmt/bundled/format.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/log_msg-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/sinks/sink.h [] []
/src/spdlog/include/spdlog/spdlog.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/fmt_helper.h [] []
/src/spdlog/include/spdlog/sinks/base_sink.h [] []
/src/levels_fuzzer.cc ['levels_fuzzer'] ['levels_fuzzer']
/src/spdlog/include/spdlog/sinks/ansicolor_sink.h [] []
/src/spdlog/include/spdlog/sinks/base_sink-inl.h [] []
/src/spdlog/include/spdlog/common.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/console_globals.h [] []
/src/spdlog/include/spdlog/details/synchronous_factory.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/sinks/basic_file_sink-inl.h [] []
/src/spdlog/include/spdlog/details/backtracer-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/log_msg.h [] []
/src/spdlog/include/spdlog/sinks/basic_file_sink.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/logger.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/periodic_worker-inl.h [] []
/src/spdlog/include/spdlog/common-inl.h ['levels_fuzzer'] ['levels_fuzzer']
/src/spdlog/include/spdlog/cfg/argv.h ['levels_fuzzer'] ['levels_fuzzer']
/src/spdlog/include/spdlog/formatter.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/format_fuzzer.cc ['format_fuzzer'] ['format_fuzzer']
/src/spdlog/include/spdlog/logger-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/mdc.h [] []
/src/spdlog/include/spdlog/pattern_formatter-inl.h ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['levels_fuzzer', 'pattern_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer']
/src/spdlog/include/spdlog/details/log_msg_buffer-inl.h ['levels_fuzzer', 'backtrace_fuzzer', 'format_fuzzer', 'log_fuzzer'] ['backtrace_fuzzer']

Directories in report

Directory
/src/spdlog/include/spdlog/
/src/spdlog/include/spdlog/sinks/
/src/
/src/spdlog/include/spdlog/details/
/src/spdlog/include/spdlog/fmt/bundled/
/src/spdlog/include/spdlog/cfg/
/usr/local/bin/../include/c++/v1/__exception/
/usr/local/bin/../include/c++/v1/