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] 0 0.0%
lawngreen 50+ 276 80.4%
All colors 343 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
39 146 phmap::priv::raw_hash_set , phmap::Hash , phmap::EqualTo , std::__1::allocator > >::rehash_and_grow_if_necessary() call site: 00146 _ZN5phmap4priv18hash_policy_traitsINS0_17FlatHashMapPolicyIjiEEvE5applyINS0_12raw_hash_setIS3_NS_4HashIjEENS_7EqualToIjEENSt3__19allocatorINSB_4pairIKjiEEEEE11HashElementEJRSF_ES3_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSL_DpOSM_
8 324 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() call site: 00324 _ZN5phmap16allocator_traitsINSt3__19allocatorINS1_4pairIKNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEES8_EEEEE12destroy_implISB_NS3_IS8_S8_EEEEDTclsr3std16allocator_traitsIT_EE7destroyfp0_fp1_EEiRSF_PT0_
5 337 phmap::priv::internal_layout::LayoutImpl , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > > >, phmap::integer_sequence , phmap::integer_sequence >::AllocSize() const call site: 00337 _ZNK5phmap4priv15internal_layout10LayoutImplINSt3__15tupleIJaNS0_13map_slot_typeINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_EEEEENS_16integer_sequenceImJLm0ELm1EEEESF_E6OffsetILm0ETnNS3_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv
2 122 void phmap::priv::SanitizerUnpoisonObject >(phmap::priv::map_slot_type const*) call site: 00122
2 298 serialise_test(unsigned char const*, unsigned long) call site: 00298
2 316 test_assignments(unsigned char const*, unsigned long) call site: 00316
2 321 test_assignments(unsigned char const*, unsigned long) call site: 00321
2 334 phmap::priv::Layout , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > > >::Layout(unsigned long, unsigned long) call site: 00334
1 4 phmap::priv::raw_hash_map , phmap::Hash , phmap::EqualTo , std::__1::allocator > >::raw_hash_map() call site: 00004
1 224 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 > >&) call site: 00224 __cxa_begin_catch
1 243 bool phmap::priv::raw_hash_set , phmap::Hash , phmap::EqualTo , std::__1::allocator > >::phmap_load (phmap::BinaryInputArchive&) call site: 00243
1 306 phmap::priv::raw_hash_map , 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_map() call site: 00306

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 > >&)']