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

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 24 10.2%
gold [1:9] 1 0.42%
yellow [10:29] 6 2.55%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 204 86.8%
All colors 235 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 136 594 voidsnappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyArrayWriter*) call site: 00000 /src/snappy/snappy.cc:1641
0 0 None 30 30 snappy::SnappyDecompressor::RefillTag() call site: 00000 /src/snappy/snappy.cc:1740
0 0 None 4 321 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2234
0 0 None 0 0 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2239

Runtime coverage analysis

Covered functions
51
Functions that are reachable but not covered
20
Reachable functions
108
Percentage of reachable functions covered
81.48%
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 36
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 87 17.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 407 82.3%
All colors 494 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', 'unsigned int const& std::__1::min (unsigned int const&, unsigned int const&)', '__asan_memcpy']

42 42 snappy::SnappyDecompressor::RefillTag() call site: 00000 /src/snappy/snappy.cc:1729
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 92 431 voidsnappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyDecompressionValidator*) call site: 00000 /src/snappy/snappy.cc:1614
0 0 None 78 357 snappy::Compress(snappy::Source*,snappy::Sink*,snappy::CompressionOptions) call site: 00000 /src/snappy/snappy.cc:1817
0 0 None 4 321 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2234
0 0 None 0 0 snappy::GetUncompressedLength(charconst*,unsignedlong,unsignedlong*) call site: 00000 /src/snappy/snappy.cc:728
0 0 None 0 0 snappy::Uncompress(charconst*,unsignedlong,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/snappy/snappy.cc:2239

Runtime coverage analysis

Covered functions
106
Functions that are reachable but not covered
29
Reachable functions
222
Percentage of reachable functions covered
86.94%
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 55
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()', 'snappy::RawUncompress(snappy::Source*, char*)', 'snappy::(anonymous namespace)::IncrementalCopy(char const*, char*, char*, char*)', 'snappy::MemCopy64(char*, void const*, unsigned long)', 'void snappy::SnappyDecompressor::DecompressAllTags(snappy::SnappyArrayWriter*)', 'snappy::SnappyDecompressor::ReadUncompressedLength(unsigned int*)', 'snappy::SnappyDecompressor::RefillTag()', 'snappy::SnappyDecompressor::RefillTag()', 'std::__1::pair snappy::DecompressBranchless(unsigned char const*, unsigned char const*, long, char*, long)']

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*)', 'char* snappy::EmitCopyAtMost64(char*, unsigned long, unsigned long)', 'snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)', 'LLVMFuzzerTestOneInput', 'snappy::RawUncompress(snappy::Source*, char*)', 'snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)', 'snappy::internal::CompressFragment(char const*, unsigned long, char*, unsigned short*, int)']

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

Directories in report

Directory
/src/snappy/