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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 0 0.0%
gold [1:9] 5 17.8%
yellow [10:29] 0 0.0%
greenyellow [30:49] 1 3.57%
lawngreen 50+ 22 78.5%
All colors 28 100

Runtime coverage analysis

Covered functions
33
Functions that are reachable but not covered
3
Reachable functions
32
Percentage of reachable functions covered
90.62%
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/cpp-httplib/test/fuzzing/header_parser_fuzzer.cc 1
/src/cpp-httplib/test/fuzzing/../../httplib.h 14

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 26 100.%
All colors 26 100

Runtime coverage analysis

Covered functions
22
Functions that are reachable but not covered
2
Reachable functions
35
Percentage of reachable functions covered
94.29%
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/cpp-httplib/test/fuzzing/url_parser_fuzzer.cc 1
/src/cpp-httplib/test/fuzzing/../../httplib.h 16

Fuzzer: multipart_parser_fuzzer

Call tree

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

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 19 22.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 66 77.6%
All colors 85 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
13 50 httplib::detail::FormDataParser::parse_content_disposition(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator >&) const call site: 00050
5 43 httplib::detail::FormDataParser::start_with_case_ignore(std::__1::basic_string , std::__1::allocator > const&, char const*, unsigned long) const call site: 00043
1 83 LLVMFuzzerTestOneInput call site: 00083

Runtime coverage analysis

Covered functions
39
Functions that are reachable but not covered
25
Reachable functions
90
Percentage of reachable functions covered
72.22%
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/cpp-httplib/test/fuzzing/multipart_parser_fuzzer.cc 1
/src/cpp-httplib/test/fuzzing/../../httplib.h 44

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 101 36.2%
gold [1:9] 1 0.35%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 177 63.4%
All colors 279 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
19 82 httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool) call site: 00082 inet_pton
11 136 httplib::ClientImpl::write_request_body(httplib::Stream&, httplib::Request&, httplib::Error&) call site: 00136 _ZN7httplib6detail11make_uniqueINS0_15gzip_compressorEJEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEE4typeEDpOT0_
7 117 httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool) call site: 00117 __cxa_thread_atexit
6 155 bool httplib::detail::write_content_with_progress (httplib::Stream&, std::__1::function const&, unsigned long, unsigned long, httplib::ClientImpl::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Error&) const::{lambda()#1}, std::__1 const&, httplib::Error&) call site: 00155
5 52 httplib::detail::get_header_value(std::__1::unordered_multimap , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > > const&, std::__1::basic_string , std::__1::allocator > const&, char const*, unsigned long) call site: 00052 __cxa_allocate_exception
5 76 httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool) call site: 00076
5 109 httplib::detail::split(char const*, char const*, char, std::__1::function ) call site: 00109
5 194 httplib::ClientImpl::process_request(httplib::Stream&, httplib::Request&, httplib::Response&, bool, httplib::Error&) call site: 00194
4 15 httplib::ClientImpl::close_socket(httplib::ClientImpl::Socket&) call site: 00015 close
4 71 httplib::ClientImpl::prepare_default_headers(httplib::Request&, bool, std::__1::basic_string , std::__1::allocator > const&) call site: 00071
4 104 httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool) call site: 00104 snprintf
3 148 httplib::DataSink::DataSink() call site: 00148

Runtime coverage analysis

Covered functions
115
Functions that are reachable but not covered
83
Reachable functions
281
Percentage of reachable functions covered
70.46%
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/cpp-httplib/test/fuzzing/client_fuzzer.cc 6
/src/cpp-httplib/test/fuzzing/../../httplib.h 131
/usr/local/bin/../include/c++/v1/stdexcept 1

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 166 32.8%
gold [1:9] 23 4.55%
yellow [10:29] 1 0.19%
greenyellow [30:49] 14 2.77%
lawngreen 50+ 301 59.6%
All colors 505 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
31 287 httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&) call site: 00287 __assert_fail
25 320 httplib::detail::split_find(char const*, char const*, char, unsigned long, std::__1::function ) call site: 00320 timegm
24 261 httplib::detail::is_websocket_upgrade(httplib::Request const&) call site: 00261 __cxa_guard_acquire
14 185 bool httplib::detail::process_multipart_ranges_data , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)::{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)::{lambda()#1} const&)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#1}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#2}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(unsigned long, unsigned long)#1}>(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)::{lambda()#1}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#2}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(unsigned long, unsigned long)#1}) call site: 00185 _ZN7httplib6detail11make_uniqueINS0_12nocompressorEJEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEE4typeEDpOT0_
13 154 httplib::Server::write_response_core(httplib::Stream&, bool, httplib::Request const&, httplib::Response&, bool) call site: 00154
12 476 httplib::Server::process_request(httplib::Stream&, std::__1::basic_string , std::__1::allocator > const&, int, std::__1::basic_string , std::__1::allocator > const&, int, bool, bool&, std::__1::function const&, bool*) call site: 00476 __cxa_end_catch
7 386 httplib::detail::is_connection_persistent(httplib::Request const&) call site: 00386 poll
5 58 httplib::detail::is_prohibited_header_name(std::__1::basic_string , std::__1::allocator > const&) call site: 00058 __cxa_allocate_exception
5 97 bool httplib::detail::process_multipart_ranges_data , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#1}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#2}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(unsigned long, unsigned long)#1}>(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#1}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string , std::__1::allocator > const&)#2}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&, unsigned long)::{lambda(unsigned long, unsigned long)#1}) call site: 00097
4 76 httplib::detail::get_range_offset_and_length(std::__1::pair , unsigned long) call site: 00076
4 471 httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&) call site: 00471 __cxa_begin_catch
3 235 httplib::Server::process_request(httplib::Stream&, std::__1::basic_string , std::__1::allocator > const&, int, std::__1::basic_string , std::__1::allocator > const&, int, bool, bool&, std::__1::function const&, bool*) call site: 00235

Runtime coverage analysis

Covered functions
222
Functions that are reachable but not covered
168
Reachable functions
459
Percentage of reachable functions covered
63.4%
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/cpp-httplib/test/fuzzing/server_fuzzer.cc 4
/src/cpp-httplib/test/fuzzing/../../httplib.h 211
/usr/local/bin/../include/c++/v1/stdexcept 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
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 74 0 178 116
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::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'] 6 0 20 3 2 32 0 129 68
httplib::Server::process_and_close_socket(int) /src/cpp-httplib/test/fuzzing/../../httplib.h 2 ['N/A', 'int'] 21 0 106 10 8 483 0 2383 68
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'] 6 0 20 3 2 32 0 129 66
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
66.0%
351 / 533
Cyclomatic complexity statically reachable by fuzzers
82.0%
3818 / 4658

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/cpp-httplib/test/fuzzing/header_parser_fuzzer.cc

Dictionary

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


/src/cpp-httplib/test/fuzzing/url_parser_fuzzer.cc

Dictionary

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


/src/cpp-httplib/test/fuzzing/multipart_parser_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=['httplib::detail::FormDataParser::parse_content_disposition(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator >&) const', 'httplib::detail::FormDataParser::start_with_case_ignore(std::__1::basic_string, std::__1::allocator > const&, char const*, unsigned long) const', 'LLVMFuzzerTestOneInput']

/src/cpp-httplib/test/fuzzing/client_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=['httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool)', 'httplib::ClientImpl::write_request_body(httplib::Stream&, httplib::Request&, httplib::Error&)', 'httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool)', 'bool httplib::detail::write_content_with_progress(httplib::Stream&, std::__1::function const&, unsigned long, unsigned long, httplib::ClientImpl::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Error&) const::{lambda()#1}, std::__1 const&, httplib::Error&)', 'httplib::detail::get_header_value(std::__1::unordered_multimap, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&, std::__1::basic_string, std::__1::allocator > const&, char const*, unsigned long)', 'httplib::ClientImpl::write_request(httplib::Stream&, httplib::Request&, bool, httplib::Error&, bool)', 'httplib::detail::split(char const*, char const*, char, std::__1::function)', 'httplib::ClientImpl::process_request(httplib::Stream&, httplib::Request&, httplib::Response&, bool, httplib::Error&)', 'httplib::ClientImpl::close_socket(httplib::ClientImpl::Socket&)', 'httplib::ClientImpl::prepare_default_headers(httplib::Request&, bool, std::__1::basic_string, std::__1::allocator > const&)']

/src/cpp-httplib/test/fuzzing/server_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=['httplib::Server::routing(httplib::Request&, httplib::Response&, httplib::Stream&)', 'httplib::detail::split_find(char const*, char const*, char, unsigned long, std::__1::function)', 'httplib::detail::is_websocket_upgrade(httplib::Request const&)', 'bool httplib::detail::process_multipart_ranges_data, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)::{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)::{lambda()#1} const&)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#1}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#2}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(unsigned long, unsigned long)#1}>(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&)::{lambda()#1}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#2}, httplib::detail::write_multipart_ranges_data<{lambda()#1}>(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, {lambda()#1} const)::{lambda(unsigned long, unsigned long)#1})', 'httplib::Server::write_response_core(httplib::Stream&, bool, httplib::Request const&, httplib::Response&, bool)', 'httplib::Server::process_request(httplib::Stream&, std::__1::basic_string, std::__1::allocator > const&, int, std::__1::basic_string, std::__1::allocator > const&, int, bool, bool&, std::__1::function const&, bool*)', 'httplib::detail::is_connection_persistent(httplib::Request const&)', 'httplib::detail::is_prohibited_header_name(std::__1::basic_string, std::__1::allocator > const&)', 'bool httplib::detail::process_multipart_ranges_data, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#1}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#2}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(unsigned long, unsigned long)#1}>(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#1}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(std::__1::basic_string, std::__1::allocator > const&)#2}, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned long)::{lambda(unsigned long, unsigned long)#1})', 'httplib::detail::get_range_offset_and_length(std::__1::pair, unsigned long)']

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/cpp-httplib/test/fuzzing/header_parser_fuzzer.cc ['header_parser_fuzzer'] ['header_parser_fuzzer']
/src/cpp-httplib/test/fuzzing/server_fuzzer.cc ['server_fuzzer'] ['server_fuzzer']
/usr/local/bin/../include/c++/v1/string [] []
/src/cpp-httplib/test/fuzzing/client_fuzzer.cc ['client_fuzzer'] ['client_fuzzer']
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/usr/local/bin/../include/c++/v1/stdexcept ['client_fuzzer', 'server_fuzzer'] []
/usr/local/bin/../include/c++/v1/istream [] []
/src/cpp-httplib/test/fuzzing/../../httplib.h ['header_parser_fuzzer', 'url_parser_fuzzer', 'multipart_parser_fuzzer', 'client_fuzzer', 'server_fuzzer'] []
/src/cpp-httplib/test/fuzzing/multipart_parser_fuzzer.cc ['multipart_parser_fuzzer'] ['multipart_parser_fuzzer']
/src/cpp-httplib/test/fuzzing/url_parser_fuzzer.cc ['url_parser_fuzzer'] ['url_parser_fuzzer']

Directories in report

Directory
/src/cpp-httplib/test/fuzzing/../../
/usr/local/bin/../include/c++/v1/__exception/
/src/cpp-httplib/test/fuzzing/
/usr/local/bin/../include/c++/v1/