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: snappy_uncompress_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 13 5.28%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.40%
greenyellow [30:49] 5 2.03%
lawngreen 50+ 227 92.2%
All colors 246 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
0 0 None 102 474 voidsnappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyArrayWriter*) call site: 00000 /src/snappy/snappy.cc:1642
0 0 None 22 22 snappy::SnappyDecompressor::RefillTag() call site: 00000 /src/snappy/snappy.cc:1742
0 0 None 0 283 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2241
0 0 None 0 0 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2246

Runtime coverage analysis

Covered functions
51
Functions that are reachable but not covered
18
Reachable functions
107
Percentage of reachable functions covered
83.18%
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
snappy_uncompress_fuzzer.cc 1
snappy.cc 37
snappy-stubs-internal.h 4
snappy-sinksource.h 2
snappy-sinksource.cc 2

Fuzzer: snappy_compress_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 55 9.53%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.17%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 521 90.2%
All colors 577 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
4 4 3 :

['__asan_handle_no_return', '__asan_memcpy', 'unsigned long const& std::__1::min[abi:nn180100] (unsigned long const&, unsigned long const&)']

34 34 snappy::SnappyDecompressor::RefillTag() call site: 00000 /src/snappy/snappy.cc:1731
4 4 1 :

['__asan_report_load1']

6 6 snappy::Varint::Parse32WithLimit(charconst*,charconst*,unsignedint*) call site: 00000 /src/snappy/snappy-stubs-internal.h:466
0 0 None 58 327 voidsnappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyDecompressionValidator*) call site: 00000 /src/snappy/snappy.cc:1615
0 0 None 48 283 snappy::Compress(snappy::Source*,snappy::Sink*,snappy::CompressionOptions) call site: 00000 /src/snappy/snappy.cc:1824
0 0 None 0 283 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2241
0 0 None 0 0 snappy::GetUncompressedLength(charconst*,unsignedlong,unsignedlong*) call site: 00000 /src/snappy/snappy.cc:729
0 0 None 0 0 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2246

Runtime coverage analysis

Covered functions
106
Functions that are reachable but not covered
25
Reachable functions
220
Percentage of reachable functions covered
88.64%
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
snappy_compress_fuzzer.cc 1
snappy.h 3
snappy.cc 73
snappy-stubs-internal.h 11
snappy-sinksource.h 5
snappy-internal.h 4
snappy-sinksource.cc 4

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.

snappy_uncompress_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=['snappy::SnappyDecompressor::RefillTag()', 'void snappy::SnappyDecompressor::DecompressAllTags(snappy::SnappyArrayWriter*)', 'LLVMFuzzerTestOneInput', 'snappy::Uncompress(char const*, unsigned long, std::__1::basic_string, std::__1::allocator >*)', 'snappy::RawUncompress(char const*, unsigned long, char*)']

snappy_compress_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=['snappy::SnappyDecompressor::RefillTag()', 'snappy::Compress(snappy::Source*, snappy::Sink*, snappy::CompressionOptions)', 'snappy::Varint::Encode32(char*, unsigned int)', 'snappy::SnappyDecompressionValidator::Append(char const*, unsigned long, unsigned long*)', 'void snappy::SnappyDecompressor::DecompressAllTags(snappy::SnappyArrayWriter*)', 'void snappy::SnappyDecompressor::DecompressAllTags(snappy::SnappyDecompressionValidator*)', 'void snappy::SnappyDecompressor::DecompressAllTags(snappy::SnappyDecompressionValidator*)', 'snappy::Varint::Parse32WithLimit(char const*, char const*, unsigned int*)', 'snappy::(anonymous namespace)::IncrementalCopy(char const*, char*, char*, char*)']

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/snappy/snappy-internal.h ['snappy_compress_fuzzer'] ['snappy_compress_fuzzer']
/src/snappy/snappy_uncompress_fuzzer.cc ['snappy_uncompress_fuzzer'] ['snappy_uncompress_fuzzer']
/src/snappy/snappy-stubs-internal.h ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']
/src/snappy/snappy_compress_fuzzer.cc ['snappy_compress_fuzzer'] ['snappy_compress_fuzzer']
/src/snappy/snappy-sinksource.h ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']
/src/snappy/snappy-sinksource.cc ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']
/src/snappy/snappy.h ['snappy_compress_fuzzer'] ['snappy_compress_fuzzer']
/src/snappy/snappy.cc ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']

Directories in report

Directory
/src/snappy/