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_fru_area

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 2 2.56%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 76 97.4%
All colors 78 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
1 9 ipmi::fru::appendChassisType(std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > > const&, std::__1::vector >&) call site: 00009
1 44 ipmi::fru::appendChassisType(std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > > const&, std::__1::vector >&) call site: 00044 __cxa_begin_catch

Runtime coverage analysis

Covered functions
43
Functions that are reachable but not covered
10
Reachable functions
68
Percentage of reachable functions covered
85.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/phosphor-host-ipmid/build/../test/fuzz_fru_area.cpp 2
/src/phosphor-host-ipmid/build/../ipmi_fru_info_area.cpp 13
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2.hpp 3
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/conversion.hpp 7
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/header.hpp 1
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/flags.hpp 11

Fuzzer: fuzz_sensor_utils

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 12 14.6%
gold [1:9] 21 25.6%
yellow [10:29] 30 36.5%
greenyellow [30:49] 4 4.87%
lawngreen 50+ 15 18.2%
All colors 82 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
6 61 LLVMFuzzerTestOneInput call site: 00061 __cxa_allocate_exception
1 2 ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&) call site: 00002
1 14 ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&) call site: 00014
1 50 ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&) call site: 00050
1 68 LLVMFuzzerTestOneInput call site: 00068 __cxa_end_catch
1 77 ipmi::getScaledIPMIValue(double, double, double) call site: 00077 __cxa_begin_catch
1 80 LLVMFuzzerTestOneInput call site: 00080 __cxa_end_catch

Runtime coverage analysis

Covered functions
65
Functions that are reachable but not covered
18
Reachable functions
96
Percentage of reachable functions covered
81.25%
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/phosphor-host-ipmid/build/../test/fuzz_sensor_utils.cpp 1
/src/phosphor-host-ipmid/build/../dbus-sdr/sensorutils.cpp 6
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2.hpp 9
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/conversion.hpp 14
/src/phosphor-host-ipmid/build/../test/lg2_stub.cpp 1
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/header.hpp 1
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/flags.hpp 20
/usr/local/bin/../include/c++/v1/stdexcept 1

Fuzzer: fuzz_payload_unpack

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 503 97.4%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.19%
greenyellow [30:49] 4 0.77%
lawngreen 50+ 8 1.55%
All colors 516 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
325 108 LLVMFuzzerTestOneInput call site: 00108 __cxa_allocate_exception
78 437 void lg2::details::log_conversion::done<>(lg2::level, std::__1::source_location const&, char const*) call site: 00437 _ZN4ipmi12SecureBufferCI2NSt3__16vectorIhNS_15SecureAllocatorIhEEEEIPKhTnNS1_9enable_ifIXaasr31__has_forward_iterator_categoryIT_EE5valuesr16is_constructibleIhNS1_15iterator_traitsIS8_E9referenceEEE5valueEiE4typeELi0EEES8_S8_
69 7 LLVMFuzzerTestOneInput call site: 00007 __clang_call_terminate
20 77 lg2::log<(lg2::level)3, char const (&) [9], unsigned long>::log(char const*, lg2::details::header_str const&, unsigned long&&, std::__1::source_location const&) call site: 00077 _ZN3lg27detailsL11log_convertITpTkNS0_9log_flagsEJETkNS0_29unsigned_integral_except_boolEmEEDaPKcNS0_8log_flagIJDpT_EEET0_
5 99 LLVMFuzzerTestOneInput call site: 00099
4 2 LLVMFuzzerTestOneInput call site: 00002
2 105 LLVMFuzzerTestOneInput call site: 00105

Runtime coverage analysis

Covered functions
95
Functions that are reachable but not covered
676
Reachable functions
713
Percentage of reachable functions covered
5.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/phosphor-host-ipmid/build/../test/fuzz_payload_unpack.cpp 1
/src/phosphor-host-ipmid/build/../include/ipmid/types.hpp 5
/src/phosphor-host-ipmid/build/../include/ipmid/message.hpp 64
/usr/include/boost/multiprecision/number.hpp 64
/usr/include/boost/multiprecision/cpp_int.hpp 81
/src/phosphor-host-ipmid/build/../include/ipmid/message/unpack.hpp 37
/usr/include/boost/multiprecision/detail/number_base.hpp 5
/usr/include/boost/multiprecision/cpp_int/bitwise.hpp 6
/usr/include/boost/multiprecision/cpp_int/checked.hpp 1
/usr/include/boost/multiprecision/cpp_int/misc.hpp 6
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2.hpp 6
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/conversion.hpp 6
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/header.hpp 1
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/flags.hpp 11
/usr/include/boost/multiprecision/detail/no_et_ops.hpp 4
/usr/include/boost/multiprecision/detail/default_ops.hpp 5
/usr/local/bin/../include/c++/v1/stdexcept 2
/usr/include/boost/assert/source_location.hpp 5
/usr/include/boost/throw_exception.hpp 5
/usr/include/boost/exception/exception.hpp 12
/usr/include/boost/exception/info.hpp 7
/src/phosphor-host-ipmid/build/../include/ipmid/message/pack.hpp 22
/src/phosphor-host-ipmid/build/../test/lg2_stub.cpp 1

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/phosphor-host-ipmid/build/../test/fuzz_fru_area.cpp

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=['ipmi::fru::appendChassisType(std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&, std::__1::vector >&)', 'ipmi::fru::appendChassisType(std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&, std::__1::vector >&)']

/src/phosphor-host-ipmid/build/../test/fuzz_sensor_utils.cpp

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=['LLVMFuzzerTestOneInput', 'ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&)', 'ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&)', 'ipmi::getSensorAttributes(double, double, short&, signed char&, short&, signed char&, bool&)', 'ipmi::getScaledIPMIValue(double, double, double)']

/src/phosphor-host-ipmid/build/../test/fuzz_payload_unpack.cpp

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=['LLVMFuzzerTestOneInput', 'void lg2::details::log_conversion::done<>(lg2::level, std::__1::source_location const&, char const*)', 'lg2::log<(lg2::level)3, char const (&) [9], unsigned long>::log(char const*, lg2::details::header_str const&, unsigned long&&, std::__1::source_location const&)']

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-host-ipmid/build/../test/fuzz_fru_area.cpp ['fuzz_fru_area'] []
/usr/include/boost/multiprecision/detail/no_et_ops.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp [] []
/usr/include/boost/asio/error.hpp [] []
/src/phosphor-host-ipmid/build/../include/ipmid/message/pack.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/system/detail/error_category.hpp [] []
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/conversion.hpp ['fuzz_fru_area', 'fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/usr/include/boost/asio/execution_context.hpp [] []
/usr/include/boost/asio/detail/null_tss_ptr.hpp [] []
/usr/include/boost/system/detail/system_category.hpp [] []
/src/phosphor-host-ipmid/build/../test/lg2_stub.cpp ['fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/usr/include/boost/system/detail/interop_category.hpp [] []
/usr/include/boost/system/detail/generic_category_message.hpp [] []
/usr/local/bin/../include/c++/v1/stdexcept ['fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/usr/include/boost/assert/source_location.hpp ['fuzz_payload_unpack'] ['fuzz_payload_unpack']
/usr/include/boost/system/detail/error_category_impl.hpp [] []
/src/phosphor-host-ipmid/build/../include/ipmid/types.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/multiprecision/cpp_int/bitwise.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/system/detail/generic_category.hpp [] []
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/header.hpp ['fuzz_fru_area', 'fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/usr/include/boost/system/detail/error_code.hpp [] []
/src/phosphor-host-ipmid/build/../ipmi_fru_info_area.cpp ['fuzz_fru_area'] []
/usr/include/boost/exception/detail/exception_ptr.hpp [] []
/usr/include/boost/asio/detail/noncopyable.hpp [] []
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/flags.hpp ['fuzz_fru_area', 'fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/usr/include/boost/smart_ptr/detail/shared_count.hpp [] []
/usr/include/boost/exception/exception.hpp ['fuzz_payload_unpack'] ['fuzz_payload_unpack']
/usr/include/boost/asio/impl/error.ipp [] []
/usr/include/boost/system/detail/error_condition.hpp [] []
/usr/include/boost/multiprecision/detail/number_base.hpp ['fuzz_payload_unpack'] []
/usr/local/bin/../include/c++/v1/__new/exceptions.h [] []
/usr/include/boost/exception/info.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/asio/detail/tss_ptr.hpp [] []
/usr/include/boost/multiprecision/cpp_int.hpp ['fuzz_payload_unpack'] []
/src/phosphor-host-ipmid/build/../test/fuzz_payload_unpack.cpp ['fuzz_payload_unpack'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/usr/local/bin/../include/c++/v1/optional [] []
/usr/local/bin/../include/c++/v1/string [] []
/src/phosphor-host-ipmid/build/../include/ipmid/message/unpack.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/system/detail/system_category_impl.hpp [] []
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp [] []
/src/phosphor-host-ipmid/build/../test/fuzz_sensor_utils.cpp ['fuzz_sensor_utils'] []
/usr/include/boost/system/detail/system_category_message.hpp [] []
/usr/include/boost/multiprecision/cpp_int/checked.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/system/detail/snprintf.hpp [] []
/usr/include/boost/multiprecision/cpp_int/misc.hpp ['fuzz_payload_unpack'] []
/src/phosphor-host-ipmid/build/../dbus-sdr/sensorutils.cpp ['fuzz_sensor_utils'] []
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2.hpp ['fuzz_fru_area', 'fuzz_sensor_utils', 'fuzz_payload_unpack'] []
/src/phosphor-host-ipmid/build/../include/ipmid/message.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/multiprecision/number.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/core/checked_delete.hpp [] []
/usr/include/boost/multiprecision/detail/default_ops.hpp ['fuzz_payload_unpack'] []
/usr/include/boost/throw_exception.hpp ['fuzz_payload_unpack'] ['fuzz_payload_unpack']
/usr/include/boost/smart_ptr/shared_ptr.hpp [] []

Directories in report

Directory
/usr/include/boost/multiprecision/
/usr/include/boost/exception/detail/
/usr/include/boost/exception/
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/lg2/
/usr/include/boost/smart_ptr/detail/
/usr/include/boost/multiprecision/detail/
/usr/local/bin/../include/c++/v1/__exception/
/src/phosphor-host-ipmid/build/../subprojects/phosphor-logging/lib/include/phosphor-logging/
/usr/local/bin/../include/c++/v1/__new/
/src/phosphor-host-ipmid/build/../
/src/phosphor-host-ipmid/build/../test/
/usr/include/boost/smart_ptr/
/src/phosphor-host-ipmid/build/../dbus-sdr/
/usr/include/boost/
/usr/include/boost/asio/detail/
/usr/include/boost/system/detail/
/usr/include/boost/asio/
/src/phosphor-host-ipmid/build/../include/ipmid/message/
/src/phosphor-host-ipmid/build/../include/ipmid/
/usr/include/boost/core/
/usr/include/boost/asio/impl/
/usr/include/boost/assert/
/usr/include/boost/multiprecision/cpp_int/
/usr/local/bin/../include/c++/v1/