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 11 4.47%
gold [1:9] 0 0.0%
yellow [10:29] 7 2.84%
greenyellow [30:49] 1 0.40%
lawngreen 50+ 227 92.2%
All colors 246 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
3 81 snappy::SnappyDecompressor::RefillTag() call site: 00081 __asan_report_load8
2 86 snappy::SnappyDecompressor::RefillTag() call site: 00086 __asan_report_store8
2 176 void snappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyArrayWriter*) call site: 00176 __asan_report_store8
1 0 EP call site: 00000 __asan_stack_malloc_2
1 2 LLVMFuzzerTestOneInput call site: 00002 __asan_stack_malloc_0
1 16 snappy::Uncompress(char const*, unsigned long, std::__1::basic_string , std::__1::allocator >*) call site: 00016 __asan_stack_malloc_1
1 244 snappy::RawUncompress(char const*, unsigned long, char*) call site: 00244

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.30%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.16%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 535 90.5%
All colors 591 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
11 366 snappy::SnappyDecompressor::RefillTag() call site: 00366 __asan_memmove
10 79 snappy::InternalCompress(snappy::Source*, snappy::Sink*, snappy::CompressionOptions, snappy::internal::WorkingMemory*) call site: 00079 __asan_report_load8
9 65 snappy::Varint::Encode32(char*, unsigned int) call site: 00065 __asan_report_store1
5 439 snappy::SnappyDecompressionValidator::Append(char const*, unsigned long, unsigned long*) call site: 00439 __asan_report_load8
4 543 void snappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyArrayWriter*) call site: 00543 __asan_report_load8
3 425 void snappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyDecompressionValidator*) call site: 00425 __asan_handle_no_return
2 450 void snappy::SnappyDecompressor::DecompressAllTags (snappy::SnappyDecompressionValidator*) call site: 00450
2 486 snappy::Varint::Parse32WithLimit(char const*, char const*, unsigned int*) call site: 00486 __asan_report_load1
2 572 snappy::(anonymous namespace)::IncrementalCopy(char const*, char*, char*, char*) call site: 00572 __asan_report_store8
1 0 EP call site: 00000 __asan_stack_malloc_2
1 6 LLVMFuzzerTestOneInput call site: 00006 __asan_stack_malloc_0
1 12 snappy::Compress(char const*, unsigned long, std::__1::basic_string , std::__1::allocator >*, snappy::CompressionOptions) call site: 00012 __asan_stack_malloc_1

Runtime coverage analysis

Covered functions
109
Functions that are reachable but not covered
25
Reachable functions
226
Percentage of reachable functions covered
88.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 76
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::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::InternalCompress(snappy::Source*, snappy::Sink*, snappy::CompressionOptions, snappy::internal::WorkingMemory*)', '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.cc ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']
/src/snappy/snappy-sinksource.h ['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_compress_fuzzer.cc ['snappy_compress_fuzzer'] ['snappy_compress_fuzzer']
/src/snappy/snappy-internal.h ['snappy_compress_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-sinksource.cc ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer'] ['snappy_uncompress_fuzzer', 'snappy_compress_fuzzer']
/src/snappy/snappy.h ['snappy_compress_fuzzer'] ['snappy_compress_fuzzer']

Directories in report

Directory
/src/snappy/