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: croaring_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 82 18.8%
gold [1:9] 6 1.38%
yellow [10:29] 0 0.0%
greenyellow [30:49] 2 0.46%
lawngreen 50+ 344 79.2%
All colors 434 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
16 67 roaring_bitmap_set_copy_on_write call site: 00067 roaring_unshare_all
6 155 array_container_try_add call site: 00155 bitset_container_from_array
6 215 art_node_child_at call site: 00215 art_node_prev_child
5 114 avx2_harley_seal_popcount256 call site: 00114 _scalar_bitset_container_compute_cardinality
5 420 containerptr_roaring64_bitmap_add call site: 00420 container_free
4 58 run_container_free call site: 00058 shared_container_free
4 363 roaring64_bitmap_internal_validate call site: 00363 roaring_malloc
3 90 bitset_container_compute_cardinality call site: 00090 avx512_vpopcount
3 135 roaring_bitmap_contains call site: 00135 array_container_contains
2 43 array_container_grow call site: 00043 roaring_free
2 166 makeRoomAtIndex call site: 00166 container_free
2 177 bitmap32 call site: 00177 printf

Runtime coverage analysis

Covered functions
186
Functions that are reachable but not covered
37
Reachable functions
218
Percentage of reachable functions covered
83.03%
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/croaring_fuzzer.c 3
/src/croaring/src/roaring.c 7
/src/croaring/src/memory.c 6
/src/croaring/src/roaring_array.c 9
/src/croaring/src/containers/bitset.c 10
/src/croaring/src/isadetection.c 5
/src/croaring/src/containers/run.c 11
/src/croaring/include/roaring/containers/run.h 6
/src/croaring/src/containers/array.c 9
/src/croaring/include/roaring/containers/array.h 6
/src/croaring/src/containers/containers.c 5
/src/croaring/include/roaring/portability.h 5
/src/croaring/include/roaring/roaring.h 3
/src/croaring/include/roaring/containers/containers.h 5
/src/croaring/include/roaring/bitset_util.h 6
/src/croaring/include/roaring/roaring_array.h 6
/src/croaring/include/roaring/array_util.h 1
/src/croaring/include/roaring/containers/bitset.h 3
/src/croaring/src/containers/convert.c 1
/src/croaring/src/roaring64.c 28
/src/croaring/src/art/art.c 78
/usr/include/x86_64-linux-gnu/bits/byteswap.h 1

Fuzzer: croaring_fuzzer_cc

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 491 28.4%
gold [1:9] 15 0.87%
yellow [10:29] 17 0.98%
greenyellow [30:49] 26 1.50%
lawngreen 50+ 1174 68.1%
All colors 1723 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
22 573 container_and call site: 00573 bitset_bitset_container_intersection
18 903 union_vector16 call site: 00903 avx512_union_uint16
15 732 container_andnot call site: 00732 bitset_bitset_container_andnot
15 1023 container_xor call site: 01023 bitset_bitset_container_xor
14 399 container_select call site: 00399 bitset_container_select
13 660 avx2_harley_seal_popcount256 call site: 00660 array_container_from_bitset
12 466 container_and_cardinality call site: 00466 bitset_container_and_justcard
12 858 container_or call site: 00858 bitset_container_or
11 146 convert_run_optimize call site: 00146 run_container_create_given_capacity
10 1266 roaring_inplace_merge_bulk call site: 01266 container_ior
10 1348 container_iandnot call site: 01348 run_bitset_container_iandnot
10 1407 bitset_container_equals call site: 01407 run_container_equals_bitset

Runtime coverage analysis

Covered functions
469
Functions that are reachable but not covered
111
Reachable functions
631
Percentage of reachable functions covered
82.41%
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/croaring_fuzzer_cc.cc 2
/src/croaring/cpp/roaring/roaring.hh 61
/src/croaring/include/roaring/roaring.h 7
/src/croaring/src/roaring.c 65
/src/croaring/src/roaring_array.c 26
/src/croaring/src/memory.c 5
/src/croaring/include/roaring/roaring_array.h 8
/src/croaring/include/roaring/array_util.h 5
/src/croaring/include/roaring/portability.h 6
/src/croaring/include/roaring/containers/containers.h 39
/src/croaring/src/containers/containers.c 7
/src/croaring/src/containers/bitset.c 47
/src/croaring/src/isadetection.c 5
/src/croaring/src/containers/array.c 26
/src/croaring/src/containers/run.c 28
/src/croaring/include/roaring/containers/bitset.h 9
/src/croaring/include/roaring/containers/array.h 18
/src/croaring/src/containers/convert.c 10
/src/croaring/include/roaring/containers/run.h 27
/src/croaring/include/roaring/bitset_util.h 20
/src/croaring/include/roaring/memory.h 1
/src/croaring/src/bitset_util.c 23
/src/croaring/src/array_util.c 42
/src/croaring/src/containers/mixed_intersection.c 12
/src/croaring/src/containers/mixed_andnot.c 19
/src/croaring/src/containers/mixed_union.c 6
/src/croaring/src/containers/mixed_xor.c 16
/src/croaring/src/containers/mixed_equal.c 3
/src/croaring/src/containers/mixed_subset.c 5
/src/croaring/src/containers/mixed_negation.c 9

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
roaring64_bitmap_add_offset_signed /src/croaring/src/roaring64.c 3 ['N/A', 'bool', 'size_t'] 12 0 297 56 21 203 0 946 162
roaring64_bitmap_xor_inplace /src/croaring/src/roaring64.c 2 ['N/A', 'N/A'] 15 0 122 26 10 227 0 982 138
roaring64_bitmap_shrink_to_fit /src/croaring/src/roaring64.c 1 ['N/A'] 6 0 127 21 8 62 0 307 127
roaring_bitmap_or_many /src/croaring/src/roaring.c 2 ['size_t', 'N/A'] 12 0 58 14 6 142 0 659 90
roaring64_bitmap_to_uint64_array /src/croaring/src/roaring64.c 2 ['N/A', 'N/A'] 8 0 326 67 21 62 0 289 89
roaring64_bitmap_portable_deserialize_frozen /src/croaring/src/roaring64.c 2 ['N/A', 'size_t'] 10 0 207 47 21 100 0 415 88
roaring_bitmap_xor_many /src/croaring/src/roaring.c 2 ['size_t', 'N/A'] 12 0 58 14 6 146 0 662 84
roaring_bitmap_flip /src/croaring/src/roaring.c 3 ['N/A', 'size_t', 'size_t'] 12 0 40 9 4 104 0 507 63
roaring_bitmap_range_uint32_array /src/croaring/src/roaring.c 4 ['N/A', 'size_t', 'size_t', 'N/A'] 4 0 19 3 2 12 0 82 53
roaring_bitmap_rank_many /src/croaring/src/roaring.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 167 28 11 17 0 124 41

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

Functions statically reachable by fuzzers
74.0%
787 / 1059
Cyclomatic complexity statically reachable by fuzzers
76.0%
4711 / 6199

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

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/croaring/include/roaring/containers/containers.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/bitset/bitset.h [] []
/src/croaring/src/array_util.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/bitset_util.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/containers/convert.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring_fuzzer_cc.cc ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/roaring64.c ['croaring_fuzzer'] ['croaring_fuzzer']
/src/croaring/src/bitset.c [] []
/src/croaring/include/roaring/containers/run.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/containers/mixed_intersection.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/cpp/roaring/roaring.hh ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/croaring/src/containers/mixed_xor.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/include/roaring/roaring.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/containers/bitset.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/containers/bitset.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/memory.h ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/containers/mixed_union.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/memory.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/portability.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['croaring_fuzzer'] []
/src/croaring/src/containers/mixed_negation.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/containers/containers.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/containers/mixed_subset.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/containers/mixed_andnot.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/roaring.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/roaring_array.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring_fuzzer.c ['croaring_fuzzer'] ['croaring_fuzzer']
/src/croaring/src/containers/run.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/roaring64.h [] []
/src/croaring/src/roaring_array.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/array_util.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/isadetection.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/include/roaring/containers/array.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/containers/mixed_equal.c ['croaring_fuzzer_cc'] ['croaring_fuzzer_cc']
/src/croaring/src/containers/array.c ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']
/src/croaring/src/art/art.c ['croaring_fuzzer'] ['croaring_fuzzer']
/src/croaring/include/roaring/bitset_util.h ['croaring_fuzzer', 'croaring_fuzzer_cc'] ['croaring_fuzzer', 'croaring_fuzzer_cc']

Directories in report

Directory
/src/croaring/include/roaring/containers/
/src/croaring/include/roaring/bitset/
/src/croaring/cpp/roaring/
/src/
/src/croaring/include/roaring/
/usr/include/x86_64-linux-gnu/bits/
/src/croaring/src/
/usr/local/bin/../include/c++/v1/
/src/croaring/src/art/
/src/croaring/src/containers/