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] 2 0.47%
lawngreen 50+ 114 27.0%
All colors 421 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
655 655 2 :

['std::__1::__map_iterator , std::__1::__tree_node , void*>*, long> >::operator->[abi:ne180100]() const', 'CUtils::ParseServerTime(CString const&)']

655 655 CMessage::InitTime() call site: 00000 /src/znc/src/Message.cpp:248
7 7 1 :

['CString::StrCmp(CString const&, unsigned long) const']

7 7 CString::Equals(CStringconst&,CaseSensitivity)const call site: 00000 /src/znc/src/ZNCString.cpp:154
4 6 2 :

['CString::CString(char const*)', 'CString::TrimRight(CString const&)']

12 14 CString::Escape_n(CString::EEscape,CString::EEscape)const call site: 00000 /src/znc/src/ZNCString.cpp:596
4 4 2 :

['time', 'gettimeofday']

4 4 CUtils::GetTime() call site: 00000 /src/znc/src/Utils.cpp:465
2 2 1 :

['strncasecmp']

2 2 CString::CaseCmp(CStringconst&,unsignedlong)const call site: 00000 /src/znc/src/ZNCString.cpp:140

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 1592 347 213 2040 0 18009 16963
CWebSock::OnPageRequest(CStringconst&) /src/znc/src/WebModules.cpp 2 ['N/A', 'N/A'] 11 0 81 16 12 491 0 4491 3782
CIRCSock::ReadLine(CStringconst&) /src/znc/src/IRCSock.cpp 2 ['N/A', 'N/A'] 29 0 1185 251 136 1268 0 7177 3545
CZNC::ParseConfig(CStringconst&,CString&) /src/znc/src/znc.cpp 3 ['N/A', 'N/A', 'N/A'] 33 0 100 17 17 1362 0 8625 1403
CZNC::WriteNewConfig(CStringconst&) /src/znc/src/znc.cpp 2 ['N/A', 'N/A'] 10 0 4192 845 527 381 0 1981 811
CSocketManager::Loop() /src/znc/build/src/Csocket.cpp 1 ['N/A'] 7 0 790 141 129 147 0 679 568
CConnectQueueTimer::RunJob() /src/znc/src/znc.cpp 1 ['N/A'] 9 0 139 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 / 2377
Cyclomatic complexity statically reachable by fuzzers
81.0%
28360 / 34979

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

Directories in report

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