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: sip_hash_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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 8 44.4%
lawngreen 50+ 10 55.5%
All colors 18 100

Runtime coverage analysis

Covered functions
16
Functions that are reachable but not covered
0
Reachable functions
31
Percentage of reachable functions covered
100.0%
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/highwayhash/build/../highwayhash/sip_hash_fuzzer.cc 1
/src/highwayhash/highwayhash/sip_hash.h 12
/src/highwayhash/highwayhash/state_helpers.h 2
/src/highwayhash/highwayhash/endianess.h 1

Fuzzer: highwayhash_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 135 40.1%
gold [1:9] 39 11.6%
yellow [10:29] 58 17.2%
greenyellow [30:49] 66 19.6%
lawngreen 50+ 38 11.3%
All colors 336 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
46 186 highwayhash::HighwayHash<2u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const call site: 00186
18 234 highwayhash::SSE41::HHStateSSE41::UpdateRemainder(char const*, unsigned long) call site: 00234
16 253 highwayhash::SSE41::HHStateSSE41::UpdateRemainder(char const*, unsigned long) call site: 00253
13 303 highwayhash::HighwayHash<1u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const call site: 00303
8 327 highwayhash::Portable::HHStatePortable::UpdateRemainder(char const*, unsigned long) call site: 00327
7 295 highwayhash::HighwayHash<1u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const call site: 00295
5 156 highwayhash::HighwayHash<2u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const call site: 00156
4 166 highwayhash::SSE41::HHStateSSE41::Reset(unsigned long const*) call site: 00166
3 112 highwayhash::AVX2::HHStateAVX2::Update(highwayhash::AVX2::V128 const&, highwayhash::AVX2::V128 const&) call site: 00112
3 283 highwayhash::SSE41::HHStateSSE41::Finalize(unsigned long*) call site: 00283
2 36 highwayhash::AVX2::HHStateAVX2::Reset(unsigned long const*) call site: 00036
2 174 highwayhash::SSE41::HHStateSSE41::Reset(unsigned long const*) call site: 00174

Runtime coverage analysis

Covered functions
59
Functions that are reachable but not covered
89
Reachable functions
243
Percentage of reachable functions covered
63.37%
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/highwayhash/build/../highwayhash/highwayhash_fuzzer.cc 1
/src/highwayhash/highwayhash/instruction_sets.h 1
/src/highwayhash/highwayhash/instruction_sets.cc 3
/src/highwayhash/highwayhash/arch_specific.cc 1
/src/highwayhash/highwayhash/highwayhash_target.cc 3
/src/highwayhash/highwayhash/hh_avx2.h 13
/src/highwayhash/highwayhash/vector256.h 22
/src/highwayhash/highwayhash/highwayhash.h 3
/src/highwayhash/highwayhash/vector128.h 30
/src/highwayhash/highwayhash/hh_buffer.h 2
/src/highwayhash/highwayhash/load3.h 12
/src/highwayhash/highwayhash/endianess.h 2
/src/highwayhash/highwayhash/hh_sse41.h 12
/src/highwayhash/highwayhash/hh_portable.h 17

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
highwayhash::HighwayHashCat<4u>::operator()(unsignedlongconst(&)[4],highwayhash::StringViewconst*,unsignedlong,unsignedlong(*)[4])const /src/highwayhash/highwayhash/highwayhash_target.cc 5 ['N/A', 'N/A', 'N/A', 'size_t', 'N/A'] 6 0 57 7 3 162 0 181 85
highwayhash::HighwayHashCat<2u>::operator()(unsignedlongconst(&)[4],highwayhash::StringViewconst*,unsignedlong,unsignedlong(*)[4])const /src/highwayhash/highwayhash/highwayhash_target.cc 5 ['N/A', 'N/A', 'N/A', 'size_t', 'N/A'] 6 0 57 7 3 102 0 117 39

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

Functions statically reachable by fuzzers
77.0%
185 / 241
Cyclomatic complexity statically reachable by fuzzers
72.0%
427 / 593

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

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/highwayhash/build/../highwayhash/sip_hash_fuzzer.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


/src/highwayhash/build/../highwayhash/highwayhash_fuzzer.cc

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=['highwayhash::HighwayHash<2u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const', 'highwayhash::SSE41::HHStateSSE41::UpdateRemainder(char const*, unsigned long)', 'highwayhash::SSE41::HHStateSSE41::UpdateRemainder(char const*, unsigned long)', 'highwayhash::HighwayHash<1u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const', 'highwayhash::Portable::HHStatePortable::UpdateRemainder(char const*, unsigned long)', 'highwayhash::HighwayHash<1u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const', 'highwayhash::HighwayHash<2u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const', 'highwayhash::SSE41::HHStateSSE41::Reset(unsigned long const*)', 'highwayhash::AVX2::HHStateAVX2::Update(highwayhash::AVX2::V128 const&, highwayhash::AVX2::V128 const&)', 'highwayhash::SSE41::HHStateSSE41::Finalize(unsigned long*)']

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/highwayhash/build/../highwayhash/highwayhash_fuzzer.cc ['highwayhash_fuzzer'] []
/src/highwayhash/highwayhash/load3.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_buffer.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_avx2.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/highwayhash_target.cc ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/arch_specific.cc ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_portable.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/sip_hash.h ['sip_hash_fuzzer'] ['sip_hash_fuzzer']
/src/highwayhash/build/../highwayhash/sip_hash_fuzzer.cc ['sip_hash_fuzzer'] []
/src/highwayhash/highwayhash/vector256.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_sse41.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/instruction_sets.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/vector128.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/os_specific.cc [] []
/src/highwayhash/highwayhash/instruction_sets.cc ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/highwayhash.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/highwayhash/highwayhash/state_helpers.h ['sip_hash_fuzzer'] ['sip_hash_fuzzer']
/src/highwayhash/highwayhash/endianess.h ['sip_hash_fuzzer', 'highwayhash_fuzzer'] ['sip_hash_fuzzer', 'highwayhash_fuzzer']

Directories in report

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