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

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 67 19.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 1 0.29%
lawngreen 50+ 275 80.1%
All colors 343 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
127 127 1 :

['phmap::priv::raw_hash_set , phmap::Hash , phmap::EqualTo , std::__1::allocator > >::drop_deletes_without_resize()']

127 127 phmap::priv::raw_hash_set ,phmap::Hash ,phmap::EqualTo ,std::__1::allocator >>::rehash_and_grow_if_necessary() call site: 00000 /src/parallel-hashmap/./parallel_hashmap/phmap.h:2147
127 127 1 :

['phmap::priv::raw_hash_set , phmap::Hash , phmap::EqualTo , std::__1::allocator > >::drop_deletes_without_resize()']

127 127 boolphmap::priv::raw_hash_set ,phmap::Hash ,phmap::EqualTo ,std::__1::allocator >>::phmap_load (phmap::BinaryInputArchive&) call site: 00000 /src/parallel-hashmap/./parallel_hashmap/phmap_dump.h:94
0 4 1 :

['void phmap::priv::SanitizerPoisonObject >(phmap::priv::map_slot_type const*)']

0 4 phmap::priv::raw_hash_set ,phmap::Hash ,phmap::EqualTo ,std::__1::allocator >>::set_ctrl(unsignedlong,signedchar) call site: 00000 /src/parallel-hashmap/./parallel_hashmap/phmap.h:2301
0 0 None 7 47 phmap::priv::raw_hash_set ,std::__1::allocator >,std::__1::basic_string ,std::__1::allocator >>,phmap::priv::StringHashEqT ::Hash,phmap::priv::StringHashEqT ::Eq,std::__1::allocator ,std::__1::allocator >const,std::__1::basic_string ,std::__1::allocator >>>>::destroy_slots() call site: 00000 /src/parallel-hashmap/./parallel_hashmap/phmap.h:2030
0 0 1 :

['_ZNSt3__14swapB8ne180100IPKN5phmap4priv12raw_hash_setINS2_17FlatHashMapPolicyIjiEENS1_4HashIjEENS1_7EqualToIjEENS_9allocatorINS_4pairIKjiEEEEEEEENS_9enable_ifIXaasr21is_move_constructibleIT_EE5valuesr18is_move_assignableISJ_EE5valueEvE4typeERSJ_SM_']

0 139 phmap::priv::operator==(phmap::priv::raw_hash_set ,phmap::Hash ,phmap::EqualTo ,std::__1::allocator >>const&,phmap::priv::raw_hash_set ,phmap::Hash ,phmap::EqualTo ,std::__1::allocator >>const&) call site: 00000 /src/parallel-hashmap/./parallel_hashmap/phmap.h:1834

Runtime coverage analysis

Covered functions
171
Functions that are reachable but not covered
42
Reachable functions
370
Percentage of reachable functions covered
88.65%
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/phashmap_fuzz.cc 3
/src/parallel-hashmap/./parallel_hashmap/phmap.h 135
/src/parallel-hashmap/./parallel_hashmap/phmap_base.h 48
/src/parallel-hashmap/./parallel_hashmap/phmap_utils.h 2
/src/parallel-hashmap/./parallel_hashmap/phmap_bits.h 1
/src/parallel-hashmap/./parallel_hashmap/phmap_dump.h 8

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/phashmap_fuzz.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=['phmap::priv::raw_hash_set, phmap::Hash, phmap::EqualTo, std::__1::allocator > >::rehash_and_grow_if_necessary()', 'phmap::priv::raw_hash_set, std::__1::allocator >, std::__1::basic_string, std::__1::allocator > >, phmap::priv::StringHashEqT::Hash, phmap::priv::StringHashEqT::Eq, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > >::~raw_hash_set()', 'phmap::priv::internal_layout::LayoutImpl, std::__1::allocator >, std::__1::basic_string, std::__1::allocator > > >, phmap::integer_sequence, phmap::integer_sequence >::AllocSize() const', 'void phmap::priv::SanitizerUnpoisonObject >(phmap::priv::map_slot_type const*)', 'serialise_test(unsigned char const*, unsigned long)', 'test_assignments(unsigned char const*, unsigned long)', 'test_assignments(unsigned char const*, unsigned long)', 'phmap::priv::Layout, std::__1::allocator >, std::__1::basic_string, std::__1::allocator > > >::Layout(unsigned long, unsigned long)', 'phmap::priv::raw_hash_map, phmap::Hash, phmap::EqualTo, std::__1::allocator > >::raw_hash_map()', 'phmap::priv::raw_hash_set, phmap::Hash, phmap::EqualTo, std::__1::allocator > >::swap(phmap::priv::raw_hash_set, phmap::Hash, phmap::EqualTo, std::__1::allocator > >&)']