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: header_parser_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: url_parser_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: client_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: server_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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
httplib::Server::read_content_core(httplib::Stream&,httplib::Request&,httplib::Response&,std::__1::function ,std::__1::function ,std::__1::function )const::{lambda(charconst*,unsignedlong,unsignedlong,unsignedlong)#1}::operator()(charconst*,unsignedlong,unsignedlong,unsignedlong)const /src/cpp-httplib/test/fuzzing/../../httplib.h 5 ['N/A', 'N/A', 'size_t', 'size_t', 'size_t'] 6 0 31 3 2 75 0 332 190
LLVMFuzzerInitialize /src/cpp-httplib/test/fuzzing/server_fuzzer.cc 2 ['N/A', 'N/A'] 7 0 199 34 23 35 0 142 132
httplib::ClientImpl::create_and_connect_socket(httplib::ClientImpl::Socket&,httplib::Error&) /src/cpp-httplib/test/fuzzing/../../httplib.h 3 ['N/A', 'N/A', 'N/A'] 9 0 42 6 3 56 0 125 115
httplib::ws::WebSocket::start_heartbeat()::{lambda()#1}::operator()()const /src/cpp-httplib/test/fuzzing/../../httplib.h 1 ['N/A'] 2 0 155 34 29 8 0 97 97
httplib::Server::process_and_close_socket(int) /src/cpp-httplib/test/fuzzing/../../httplib.h 2 ['N/A', 'int'] 19 0 109 11 8 479 0 2370 68
httplib::detail::write_content_chunked ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&)::{lambda()#1},httplib::detail::compressor>(httplib::Stream&,std::__1::function const&,httplib::Server::write_content_with_provider(httplib::Stream&,httplib::Requestconst&,httplib::Response&,std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&)::{lambda()#1}const&,httplib::detail::compressor&,httplib::Error&)::{lambda(std::__1::unordered_multimap ,std::__1::allocator >,std::__1::basic_string ,std::__1::allocator >,httplib::detail::case_ignore::hash,std::__1::unordered_multimap::equal_to,std::__1::allocator ,std::__1::allocator >const,std::__1::basic_string ,std::__1::allocator >>>>const&)#1}::operator()(std::__1::unordered_multimap ,std::__1::allocator >,std::__1::basic_string ,std::__1::allocator >,httplib::detail::case_ignore::hash,std::__1::unordered_multimap::equal_to,std::__1::allocator ,std::__1::allocator >const,std::__1::basic_string ,std::__1::allocator >>>>const)const /src/cpp-httplib/test/fuzzing/../../httplib.h 2 ['N/A', 'N/A'] 2 0 20 3 2 10 0 69 61
httplib::detail::write_content_chunked (httplib::Stream&,std::__1::function const&,httplib::ClientImpl::write_content_with_provider(httplib::Stream&,httplib::Requestconst&,httplib::Error&)const::{lambda()#1}const&,httplib::detail::compressor&,httplib::Error&)::{lambda(httplib::detail::compressor::unordered_multimap ,httplib::detail::compressor::allocator >,httplib::detail::compressor::allocator ,httplib::detail::case_ignore::hash,httplib::detail::compressor::basic_string ,httplib::detail::compressor::allocator >::equal_to,httplib::detail::compressor::char_traits const,httplib::detail::compressor::allocator >>>const&)#1}::operator()(httplib::detail::compressor::unordered_multimap ,httplib::detail::compressor::allocator >,httplib::detail::compressor::allocator ,httplib::detail::case_ignore::hash,httplib::detail::compressor::basic_string ,httplib::detail::compressor::allocator >::equal_to,httplib::detail::compressor::char_traits const,httplib::detail::compressor::allocator >>>const)const /src/cpp-httplib/test/fuzzing/../../httplib.h 2 ['N/A', 'N/A'] 2 0 20 3 2 10 0 69 59
httplib::Server::Server()::{lambda()#1}::operator()()const /src/cpp-httplib/test/fuzzing/../../httplib.h 1 ['N/A'] 3 0 84 14 14 17 0 74 58
httplib::detail::parse_accept_header(std::__1::basic_string ,std::__1::allocator >const&,std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&)::{lambda(charconst*,charconst*)#1}::operator()(charconst*,charconst*)const /src/cpp-httplib/test/fuzzing/../../httplib.h 3 ['N/A', 'N/A', 'N/A'] 5 0 161 28 28 22 0 102 46
httplib::ThreadPool::enqueue(std::__1::function )::{lambda()#1}::operator()()const /src/cpp-httplib/test/fuzzing/../../httplib.h 1 ['N/A'] 2 0 17 3 2 5 0 39 37

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

Functions statically reachable by fuzzers
65.0%
342 / 523
Cyclomatic complexity statically reachable by fuzzers
82.0%
3727 / 4559

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