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: target_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 657 94.9%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 35 5.05%
All colors 692 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
583 10 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00010 _ZN8nlohmann10basic_jsonINSt3__13mapENS1_6vectorENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEblmdS7_NS_14adl_serializerEE5eraseINS_6detail9iter_implISB_EETnNS1_9enable_ifIXoosr3std7is_sameIT_SF_EE5valuesr3std7is_sameISH_NSE_IKSB_EEEE5valueEiE4typeELi0EEESH_SH_
22 608 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00608 __assert_fail
19 637 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00637 _ZN8nlohmann14adl_serializerINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEvE9from_jsonIRKNS_10basic_jsonINS1_3mapES2_S8_blmdS6_S0_EESA_EEDTcmclL_ZNS_12_GLOBAL__N_19from_jsonEEclsr3stdE7forwardIT_Efp_Efp0_Ecvv_EEOSJ_RT0_
12 672 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00672 _ZN8nlohmann14adl_serializerINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEvE9from_jsonIRKNS_10basic_jsonINS1_3mapENS1_6vectorES7_blmdS5_S0_EES7_EEDTcmclL_ZNS_12_GLOBAL__N_19from_jsonEEclsr3stdE7forwardIT_Efp_Efp0_Ecvv_EEOSH_RT0_
9 595 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00595 __cxa_allocate_exception
5 663 validateErrorsToMonitor(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00663 __cxa_allocate_exception
2 2 LLVMFuzzerTestOneInput call site: 00002 close
2 6 LLVMFuzzerTestOneInput call site: 00006
2 633 parseFiles(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&) call site: 00633
1 660 validateErrorsToMonitor(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&) call site: 00660

Runtime coverage analysis

Covered functions
3
Functions that are reachable but not covered
415
Reachable functions
420
Percentage of reachable functions covered
1.19%
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/target_parser_fuzzer.cpp 1
/src/phosphor-state-manager/systemd_target_parser.cpp 2
/src/mock_includes/phosphor-logging/lg2.hpp 3
/usr/include/nlohmann/detail/input/input_adapters.hpp 3
/usr/include/nlohmann/json.hpp 50
/usr/include/nlohmann/detail/exceptions.hpp 25
/usr/local/bin/../include/c++/v1/__exception/exception.h 2
/usr/include/nlohmann/detail/input/parser.hpp 7
/usr/include/nlohmann/detail/input/lexer.hpp 23
/usr/include/nlohmann/detail/input/json_sax.hpp 44
/usr/include/nlohmann/detail/iterators/iter_impl.hpp 14
/usr/include/nlohmann/detail/iterators/primitive_iterator.hpp 6
/usr/include/nlohmann/detail/input/position_t.hpp 1
/usr/include/nlohmann/adl_serializer.hpp 7
/usr/include/nlohmann/detail/conversions/to_json.hpp 15
/src/phosphor-state-manager/systemd_target_parser.hpp 3
/usr/include/nlohmann/detail/conversions/from_json.hpp 5
/usr/local/bin/../include/c++/v1/stdexcept 2

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/phosphor-state-manager/systemd_target_parser.cpp ['target_parser_fuzzer'] ['target_parser_fuzzer']
/usr/include/nlohmann/detail/input/input_adapters.hpp ['target_parser_fuzzer'] []
/usr/local/bin/../include/c++/v1/string [] []
/usr/local/bin/../include/c++/v1/__exception/exception.h ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/iterators/iter_impl.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/conversions/from_json.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/input/json_sax.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/input/lexer.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/input/position_t.hpp ['target_parser_fuzzer'] []
/src/phosphor-state-manager/systemd_target_parser.hpp ['target_parser_fuzzer'] []
/src/target_parser_fuzzer.cpp ['target_parser_fuzzer'] ['target_parser_fuzzer']
/src/mock_includes/phosphor-logging/lg2.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/iterators/primitive_iterator.hpp ['target_parser_fuzzer'] []
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []
/usr/include/nlohmann/detail/exceptions.hpp ['target_parser_fuzzer'] []
/usr/local/bin/../include/c++/v1/stdexcept ['target_parser_fuzzer'] []
/usr/include/nlohmann/adl_serializer.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/input/parser.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/detail/conversions/to_json.hpp ['target_parser_fuzzer'] []
/usr/include/nlohmann/json.hpp ['target_parser_fuzzer'] []

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/usr/include/nlohmann/detail/iterators/
/src/phosphor-state-manager/
/usr/include/nlohmann/detail/conversions/
/src/
/usr/include/nlohmann/detail/input/
/usr/local/bin/../include/c++/v1/__exception/
/usr/local/bin/../include/c++/v1/__iterator/
/usr/include/nlohmann/detail/
/usr/include/nlohmann/
/src/mock_includes/phosphor-logging/