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

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 2.13%
gold [1:9] 4 1.06%
yellow [10:29] 2 0.53%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 361 96.2%
All colors 375 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
0 136 1 :

['cctz::time_zone::Impl::UTC()']

0 136 cctz::time_zone::effective_impl()const call site: 00000 /src/cctz/src/time_zone_lookup.cc:176
0 22 1 :

['cctz::(anonymous namespace)::ParseInt(char const*, int, int, int*)']

0 22 cctz::(anonymousnamespace)::ParseOffset(charconst*,int,int,int,long*) call site: 00000 /src/cctz/src/time_zone_posix.cc:78
0 6 1 :

['cctz::TimeZoneInfo::EquivTransitions(unsigned char, unsigned char) const']

2 8 cctz::TimeZoneInfo::ExtendTransitions() call site: 00000 /src/cctz/src/time_zone_info.cc:331
0 0 None 18 46 cctz::(anonymousnamespace)::AndroidZoneInfoSource::Open(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/cctz/src/time_zone_info.cc:477
0 0 None 6 10 cctz::(anonymousnamespace)::FuchsiaZoneInfoSource::Open(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/cctz/src/time_zone_info.cc:560
0 0 None 4 273 cctz::TimeZoneInfo::ExtendTransitions() call site: 00000 /src/cctz/src/time_zone_info.cc:317
0 0 None 4 256 cctz::TimeZoneInfo::ExtendTransitions() call site: 00000 /src/cctz/src/time_zone_info.cc:328
0 0 None 2 676 cctz::TimeZoneInfo::Load(cctz::ZoneInfoSource*) call site: 00000 /src/cctz/src/time_zone_info.cc:637
0 0 None 2 22 cctz::detail::impl::n_day(long,signedchar,long,long,signedchar,signedchar,signedchar) call site: 00000 /src/cctz/build/../include/cctz/civil_time_detail.h:131
0 0 None 0 658 cctz::TimeZoneInfo::Load(cctz::ZoneInfoSource*) call site: 00000 /src/cctz/src/time_zone_info.cc:651
0 0 None 0 630 cctz::TimeZoneInfo::Load(cctz::ZoneInfoSource*) call site: 00000 /src/cctz/src/time_zone_info.cc:717
0 0 None 0 63 cctz::TimeZoneLibC::BreakTime(std::__1::chrono::time_point >>const&)const call site: 00000 /src/cctz/src/time_zone_libc.cc:208

Runtime coverage analysis

Covered functions
166
Functions that are reachable but not covered
16
Reachable functions
285
Percentage of reachable functions covered
94.39%
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/cctz/build/./fuzz_cctz.cc 1
/src/cctz/build/../include/cctz/time_zone.h 7
/src/cctz/src/time_zone_lookup.cc 5
/src/cctz/src/time_zone_impl.cc 6
/src/cctz/src/time_zone_if.cc 2
/src/cctz/src/time_zone_info.cc 19
/src/cctz/src/time_zone_info.h 3
/src/cctz/src/time_zone_if.h 3
/src/cctz/include/cctz/civil_time_detail.h 45
/src/cctz/build/../include/cctz/civil_time_detail.h 15
/src/cctz/src/time_zone_fixed.cc 5
/src/cctz/src/time_zone_libc.cc 2
/src/cctz/src/time_zone_posix.h 2
/src/cctz/src/time_zone_posix.cc 5
/src/cctz/src/time_zone_format.cc 17
/src/cctz/src/time_zone_impl.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
cctz::TimeZoneInfo::Load(std::__1::basic_string ,std::__1::allocator >const&)::$_0::operator()(std::__1::basic_string ,std::__1::allocator >const&)const /src/cctz/src/time_zone_info.cc 3 ['N/A', 'N/A', 'N/A'] 4 0 138 29 4 26 0 117 109
cctz::TimeZoneLibC::MakeTime(cctz::detail::civil_time const&)const /src/cctz/src/time_zone_libc.cc 3 ['N/A', 'N/A', 'N/A'] 9 0 429 52 16 85 0 167 42
cctz::TimeZoneInfo::MakeTime(cctz::detail::civil_time const&)const /src/cctz/src/time_zone_info.cc 3 ['N/A', 'N/A', 'N/A'] 9 0 409 49 19 91 0 162 41

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

Functions statically reachable by fuzzers
78.0%
162 / 209
Cyclomatic complexity statically reachable by fuzzers
89.0%
1216 / 1371

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/cctz/include/cctz/civil_time_detail.h ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_impl.h ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/zone_info_source.cc [] []
/src/cctz/src/time_zone_posix.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_posix.h ['fuzz_cctz'] []
/src/cctz/build/./fuzz_cctz.cc ['fuzz_cctz'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/cctz/src/time_zone_if.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_libc.h [] []
/src/cctz/build/../include/cctz/time_zone.h ['fuzz_cctz'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/cctz/src/time_zone_format.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/include/cctz/zone_info_source.h [] []
/src/cctz/build/../include/cctz/civil_time_detail.h ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_info.h ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_impl.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_fixed.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_info.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/src/time_zone_libc.cc ['fuzz_cctz'] ['fuzz_cctz']
/src/cctz/include/cctz/time_zone.h [] []
/src/cctz/src/time_zone_if.h ['fuzz_cctz'] ['fuzz_cctz']
/usr/local/bin/../include/c++/v1/string [] []
/src/cctz/src/time_zone_lookup.cc ['fuzz_cctz'] ['fuzz_cctz']

Directories in report

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