Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

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 32 22.2%
gold [1:9] 29 20.1%
yellow [10:29] 28 19.4%
greenyellow [30:49] 29 20.1%
lawngreen 50+ 26 18.0%
All colors 144 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
140 140 2 :

['highwayhash::HighwayHash<2u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const', 'highwayhash::HighwayHash<1u>::operator()(unsigned long const (&) [4], char const*, unsigned long, unsigned long*) const']

140 140 unsignedinthighwayhash::InstructionSets::Run (unsignedlongconst(&)[4],charconst*&&,unsignedlong&,unsignedlong*&&) call site: 00000 /src/highwayhash/highwayhash/instruction_sets.h:59
0 0 None 0 0 highwayhash::InstructionSets::Supported() call site: 00000 /src/highwayhash/highwayhash/instruction_sets.cc:114
0 0 None 0 0 highwayhash::InstructionSets::Supported() call site: 00000 /src/highwayhash/highwayhash/instruction_sets.cc:119

Runtime coverage analysis

Covered functions
59
Functions that are reachable but not covered
121
Reachable functions
228
Percentage of reachable functions covered
46.93%
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 16
/src/highwayhash/highwayhash/highwayhash.h 1
/src/highwayhash/highwayhash/vector128.h 17
/src/highwayhash/highwayhash/hh_buffer.h 2
/src/highwayhash/highwayhash/load3.h 4
/src/highwayhash/highwayhash/endianess.h 1
/src/highwayhash/highwayhash/hh_sse41.h 3
/src/highwayhash/highwayhash/hh_portable.h 7

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 ['struct.std::__1::integral_constant.12 *', 'N/A', 'struct.highwayhash::StringView *', 'size_t ', 'N/A'] 5 0 64 7 3 147 0 159 77
highwayhash::HighwayHashCat<2u>::operator()(unsignedlongconst(&)[4],highwayhash::StringViewconst*,unsignedlong,unsignedlong(*)[4])const /src/highwayhash/highwayhash/highwayhash_target.cc 5 ['struct.std::__1::integral_constant.12 *', 'N/A', 'struct.highwayhash::StringView *', 'size_t ', 'N/A'] 4 0 64 7 3 100 0 115 43

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

Functions statically reachable by fuzzers
72.0%
173 / 240
Cyclomatic complexity statically reachable by fuzzers
68.0%
402 / 590

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 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/highwayhash/highwayhash/endianess.h ['sip_hash_fuzzer', 'highwayhash_fuzzer'] ['sip_hash_fuzzer', 'highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_avx2.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_portable.h ['highwayhash_fuzzer'] []
/src/highwayhash/highwayhash/hh_sse41.h ['highwayhash_fuzzer'] []
/src/highwayhash/highwayhash/load3.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/os_specific.cc [] []
/src/highwayhash/highwayhash/vector256.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/highwayhash_target.cc ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/build/../highwayhash/sip_hash_fuzzer.cc ['sip_hash_fuzzer'] []
/src/highwayhash/highwayhash/vector128.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/highwayhash.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/hh_buffer.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/instruction_sets.h ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/highwayhash/instruction_sets.cc ['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/arch_specific.cc ['highwayhash_fuzzer'] ['highwayhash_fuzzer']
/src/highwayhash/build/../highwayhash/highwayhash_fuzzer.cc ['highwayhash_fuzzer'] []
/src/highwayhash/highwayhash/sip_hash.h ['sip_hash_fuzzer'] ['sip_hash_fuzzer']

Directories in report

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