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: msg_parse_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 304 72.2%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.23%
greenyellow [30:49] 3 0.71%
lawngreen 50+ 113 26.8%
All colors 421 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
266 133 CMessage::InitTime() call site: 00133 _ZN4cctz6detail10civil_timeINS0_7day_tagEEC2INS0_8year_tagEEERKNS1_IT_EEPNSt3__19enable_ifIXsr3std10is_base_ofIS2_S6_EE5valueEvE4typeE
29 17 CString::Escape_n(CString::EEscape, CString::EEscape) const call site: 00017 strtol
3 84 CMessage::InitType() call site: 00084 strncmp
3 417 LLVMFuzzerTestOneInput call site: 00417
2 401 CUtils::GetTime() call site: 00401 gettimeofday
1 88 CString::Equals(CString const&, CaseSensitivity) const call site: 00088 strncasecmp

Runtime coverage analysis

Covered functions
33
Functions that are reachable but not covered
257
Reachable functions
320
Percentage of reachable functions covered
19.69%
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/msg_parse_fuzzer.cpp 1
/src/znc/include/znc/ZNCString.h 8
/src/znc/src/Message.cpp 7
/src/znc/src/Nick.cpp 3
/src/znc/src/ZNCString.cpp 15
/src/znc/src/Utils.cpp 2
/src/znc/third_party/cctz/src/time_zone_lookup.cc 4
/src/znc/third_party/cctz/src/time_zone_impl.cc 3
/src/znc/third_party/cctz/src/time_zone_if.cc 1
/src/znc/third_party/cctz/src/time_zone_libc.cc 1
/src/znc/third_party/cctz/src/time_zone_if.h 2
/src/znc/third_party/cctz/src/time_zone_info.h 3
/src/znc/third_party/cctz/src/time_zone_info.cc 17
/src/znc/third_party/cctz/src/time_zone_fixed.cc 5
/src/znc/third_party/cctz/include/cctz/civil_time_detail.h 55
/src/znc/third_party/cctz/src/time_zone_posix.h 2
/src/znc/third_party/cctz/src/time_zone_posix.cc 5
/src/znc/third_party/cctz/include/cctz/time_zone.h 3
/src/znc/third_party/cctz/src/time_zone_format.cc 9
/src/znc/third_party/cctz/src/time_zone_impl.h 2
/src/znc/include/znc/Message.h 2

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
CClient::ReadLine(CStringconst&) /src/znc/src/Client.cpp 2 ['N/A', 'N/A'] 33 0 1551 347 213 2040 0 18009 16963
CWebSock::OnPageRequest(CStringconst&) /src/znc/src/WebModules.cpp 2 ['N/A', 'N/A'] 11 0 77 16 12 491 0 4491 3782
CIRCSock::ReadLine(CStringconst&) /src/znc/src/IRCSock.cpp 2 ['N/A', 'N/A'] 29 0 1157 251 136 1268 0 7177 3545
CZNC::ParseConfig(CStringconst&,CString&) /src/znc/src/znc.cpp 3 ['N/A', 'N/A', 'N/A'] 33 0 96 17 17 1362 0 8625 1403
CZNC::WriteNewConfig(CStringconst&) /src/znc/src/znc.cpp 2 ['N/A', 'N/A'] 10 0 4133 845 527 381 0 1981 811
CSocketManager::Loop() /src/znc/build/src/Csocket.cpp 1 ['N/A'] 7 0 777 141 129 147 0 679 568
CConnectQueueTimer::RunJob() /src/znc/src/znc.cpp 1 ['N/A'] 9 0 134 30 27 338 0 1041 396

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

Functions statically reachable by fuzzers
60.0%
1417 / 2378
Cyclomatic complexity statically reachable by fuzzers
81.0%
28360 / 34983

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

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/znc/src/IRCSock.cpp [] []
/src/znc/include/znc/MD5.h [] []
/src/znc/third_party/cctz/src/time_zone_posix.cc ['msg_parse_fuzzer'] []
/usr/local/bin/../include/c++/v1/istream [] []
/src/znc/src/Listener.cpp [] []
/src/znc/include/znc/User.h [] []
/src/znc/src/Modules.cpp [] []
/src/znc/include/znc/Threads.h [] []
/src/znc/include/znc/Modules.h [] []
/src/znc/third_party/cctz/src/time_zone_impl.cc ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/include/znc/Chan.h [] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/znc/include/znc/Socket.h [] []
/src/znc/third_party/cctz/src/time_zone_posix.h ['msg_parse_fuzzer'] []
/src/znc/third_party/cctz/src/time_zone_libc.cc ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/build/include/znc/Csocket.h [] []
/src/znc/src/Socket.cpp [] []
/src/znc/include/znc/znc.h [] []
/src/znc/src/Message.cpp ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/src/IRCNetwork.cpp [] []
/src/znc/src/znc.cpp [] []
/src/znc/include/znc/WebModules.h [] []
/src/znc/src/Utils.cpp ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/include/znc/Query.h [] []
/src/znc/src/Threads.cpp [] []
/src/znc/include/znc/Utils.h [] []
/src/znc/include/znc/Client.h [] []
/src/znc/third_party/cctz/src/time_zone_info.cc ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/src/ZNCString.cpp ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/include/znc/Server.h [] []
/src/znc/third_party/cctz/src/zone_info_source.cc [] []
/usr/local/bin/../include/c++/v1/variant [] []
/src/znc/third_party/cctz/src/time_zone_libc.h [] []
/src/znc/src/WebModules.cpp [] []
/src/znc/include/znc/FileUtils.h [] []
/src/znc/include/znc/Translation.h [] []
/src/znc/include/znc/Template.h [] []
/src/znc/include/znc/Listener.h [] []
/src/znc/src/User.cpp [] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/znc/third_party/cctz/src/time_zone_lookup.cc ['msg_parse_fuzzer'] []
/src/znc/third_party/cctz/src/time_zone_format.cc ['msg_parse_fuzzer'] []
/src/znc/build/src/Csocket.cpp [] []
/src/znc/include/znc/IRCSock.h [] []
/src/znc/include/znc/ZNCDebug.h [] []
/src/znc/src/Buffer.cpp [] []
/src/znc/src/SHA256.cpp [] []
/src/znc/third_party/cctz/include/cctz/time_zone.h ['msg_parse_fuzzer'] []
/src/znc/third_party/cctz/src/time_zone_fixed.cc ['msg_parse_fuzzer'] []
/src/znc/src/Chan.cpp [] []
/src/znc/third_party/cctz/src/time_zone_info.h ['msg_parse_fuzzer'] []
/src/znc/include/znc/Config.h [] []
/src/znc/third_party/cctz/src/time_zone_if.cc ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/usr/local/bin/../include/c++/v1/sstream [] []
/src/znc/third_party/cctz/include/cctz/zone_info_source.h [] []
/src/znc/third_party/cctz/include/cctz/civil_time_detail.h ['msg_parse_fuzzer'] []
/src/znc/src/FileUtils.cpp [] []
/src/znc/src/Template.cpp [] []
/src/znc/src/HTTPSock.cpp [] []
/src/znc/include/znc/IRCNetwork.h [] []
/src/znc/src/Config.cpp [] []
/src/znc/third_party/cctz/src/time_zone_impl.h ['msg_parse_fuzzer'] []
/src/znc/include/znc/ZNCString.h ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/include/znc/HTTPSock.h [] []
/src/znc/src/Query.cpp [] []
/src/znc/src/ClientCommand.cpp [] []
/src/znc/src/Translation.cpp [] []
/src/znc/src/Server.cpp [] []
/src/znc/include/znc/Buffer.h [] []
/src/znc/src/MD5.cpp [] []
/usr/local/bin/../include/c++/v1/string [] []
/src/znc/src/Nick.cpp ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/msg_parse_fuzzer.cpp ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/src/Client.cpp [] []
/src/znc/include/znc/Message.h ['msg_parse_fuzzer'] ['msg_parse_fuzzer']
/src/znc/include/znc/Nick.h [] []
/src/znc/third_party/cctz/src/time_zone_if.h ['msg_parse_fuzzer'] []
/src/znc/src/ZNCDebug.cpp [] []

Directories in report

Directory
/src/znc/third_party/cctz/include/cctz/
/src/
/src/znc/src/
/src/znc/build/src/
/usr/local/bin/../include/c++/v1/
/usr/local/bin/../include/c++/v1/__exception/
/src/znc/build/include/znc/
/src/znc/include/znc/
/src/znc/third_party/cctz/src/