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

Fuzzer details

Fuzzer: SnappyStreamFuzzer

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 34 53.9%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 29 46.0%
All colors 63 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 40 [org.xerial.snappy.SnappyOutputStream].close() call site: 00040
15 11 [org.xerial.snappy.SnappyOutputStream].dumpOutput() call site: 00011
2 29 [org.xerial.snappy.SnappyOutputStream].compressInput() call site: 00029
1 38 [org.xerial.snappy.SnappyOutputStream].flush() call site: 00038

Runtime coverage analysis

Covered functions
55
Functions that are reachable but not covered
93
Reachable functions
108
Percentage of reachable functions covered
13.89%
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
SnappyStreamFuzzer 1
org.xerial.snappy.SnappyOutputStream 10
org.xerial.snappy.SnappyHadoopCompatibleOutputStream 2
org.xerial.snappy.SnappyCodec 1
org.xerial.snappy.Snappy 4
org.xerial.snappy.SnappyNative 3
org.xerial.snappy.SnappyFramedOutputStream 7
org.xerial.snappy.SnappyFramed 2
org.xerial.snappy.PureJavaCrc32C 3
org.xerial.snappy.pool.QuiescentBufferPool 2
org.xerial.snappy.pool.CachingBufferPool 3
org.xerial.snappy.pool.DirectByteBuffers 1
org.xerial.snappy.pool.DirectByteBuffers$2 1
org.xerial.snappy.buffer.CachedBufferAllocator 1
org.xerial.snappy.buffer.DefaultBufferAllocator 1

Fuzzer: BitShuffleFuzzer

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 31 100.%
All colors 31 100

Runtime coverage analysis

Covered functions
52
Functions that are reachable but not covered
31
Reachable functions
48
Percentage of reachable functions covered
35.42%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
BitShuffleFuzzer 4
org.xerial.snappy.BitShuffle 6
org.xerial.snappy.BitShuffleNative 2
org.xerial.snappy.Snappy 7
org.xerial.snappy.SnappyNative 4

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
org.xerial.snappy.OSInfo [] []
org.xerial.snappy.SnappyOutputStream ['SnappyStreamFuzzer'] []
org.xerial.snappy.Snappy ['SnappyStreamFuzzer', 'BitShuffleFuzzer'] []
org.xerial.snappy.pool.DirectByteBuffers$1 [] []
org.xerial.snappy.BitShuffleNative ['BitShuffleFuzzer'] []
org.xerial.snappy.SnappyFramed$lambda_static_0__1 [] []
org.xerial.snappy.pool.CachingBufferPool$IntFunction [] []
org.xerial.snappy.pool.DirectByteBuffers$2 ['SnappyStreamFuzzer'] []
org.xerial.snappy.SnappyFramed ['SnappyStreamFuzzer'] []
org.xerial.snappy.PureJavaCrc32C ['SnappyStreamFuzzer'] []
org.xerial.snappy.pool.CachingBufferPool ['SnappyStreamFuzzer'] []
org.xerial.snappy.buffer.BufferAllocator [] []
SnappyStreamFuzzer ['SnappyStreamFuzzer'] []
org.xerial.snappy.buffer.BufferAllocatorFactory [] []
org.xerial.snappy.SnappyFramedInputStream$FrameAction [] []
org.xerial.snappy.SnappyError [] []
org.xerial.snappy.pool.CachingBufferPool$2 [] []
org.xerial.snappy.BitShuffleType [] []
org.xerial.snappy.SnappyErrorCode [] []
org.xerial.snappy.pool.BufferPool [] []
org.xerial.snappy.SnappyFramedInputStream [] []
org.xerial.snappy.pool.DirectByteBuffers ['SnappyStreamFuzzer'] []
org.xerial.snappy.pool.DefaultPoolFactory [] []
org.xerial.snappy.buffer.CachedBufferAllocator$1 [] []
org.xerial.snappy.SnappyNative ['SnappyStreamFuzzer', 'BitShuffleFuzzer'] []
org.xerial.snappy.pool.QuiescentBufferPool ['SnappyStreamFuzzer'] []
org.xerial.snappy.SnappyLoader [] []
org.xerial.snappy.BitShuffle ['BitShuffleFuzzer'] []
org.xerial.snappy.SnappyApi [] []
org.xerial.snappy.buffer.CachedBufferAllocator ['SnappyStreamFuzzer'] []
org.xerial.snappy.SnappyHadoopCompatibleOutputStream ['SnappyStreamFuzzer'] []
org.xerial.snappy.buffer.DefaultBufferAllocator$1 [] []
org.xerial.snappy.SnappyInputStream [] []
org.xerial.snappy.buffer.DefaultBufferAllocator ['SnappyStreamFuzzer'] []
org.xerial.snappy.SnappyBundleActivator [] []
org.xerial.snappy.SnappyException [] []
org.xerial.snappy.SnappyFramed$init__2 [] []
BitShuffleFuzzer ['BitShuffleFuzzer'] []
org.xerial.snappy.SnappyIOException [] []
java.lang.System [] []
org.xerial.snappy.pool.CachingBufferPool$1 [] []
java.lang.Runtime [] []
org.xerial.snappy.SnappyFramedOutputStream ['SnappyStreamFuzzer'] []
org.xerial.snappy.SnappyCodec ['SnappyStreamFuzzer'] []

Directories in report

Directory

Function call coverage

This section shows a chosen list of functions / methods calls and their relative coverage information. By static analysis of the target project code, all of these function call and their caller information, including the source file or class and line number that initiate the call are captured. Column 1 is the function name of that selected functions or methods. Column 2 of each row indicate if the target function covered by any fuzzer calltree information. Column 3 lists all fuzzers (or no fuzzers at all) that have coered that particular function call dynamically. Column 4 shows list of parent function for the specific function call, while column 5 shows possible blocker functions that make the fuzzers fail to reach the specific functions. Both column 4 and 5 will only show information if none of the fuzzers cover the target function calls.

Function in each files in report

Target sink Callsite location Reached by fuzzer Function call path Covered by fuzzer Possible branch blockers
[java.lang.Runtime].exec(java.lang.String[]) Not in fuzzer provided call tree []
Parent functions Callpaths
[org.xerial.snappy.OSInfo].resolveArmArchType()
in org.xerial.snappy.OSInfo:157
Path 1
0
Blocker function Arguments type Return type Constants touched
[org.xerial.snappy.OSInfo].getArchName()
in org.xerial.snappy.OSInfo:207
[] java.lang.String []
[java.lang.System].setProperty(java.lang.String,java.lang.String) Not in fuzzer provided call tree []
Parent functions Callpaths
[org.xerial.snappy.SnappyLoader].loadSnappySystemProperties()
in org.xerial.snappy.SnappyLoader:118
Path 1
0
Blocker function Arguments type Return type Constants touched
[org.xerial.snappy.SnappyLoader].loadSnappySystemProperties()
in org.xerial.snappy.SnappyLoader:118
[] void []
[java.lang.System].load(java.lang.String) Not in fuzzer provided call tree []
Parent functions Callpaths
[org.xerial.snappy.SnappyLoader].loadNativeLibrary()
in org.xerial.snappy.SnappyLoader:174
Path 1
0
Blocker function Arguments type Return type Constants touched
[org.xerial.snappy.SnappyLoader].loadNativeLibrary()
in org.xerial.snappy.SnappyLoader:174
[] void []
[java.lang.System].loadLibrary(java.lang.String) Not in fuzzer provided call tree []
Parent functions Callpaths
[org.xerial.snappy.SnappyLoader].loadNativeLibrary()
in org.xerial.snappy.SnappyLoader:174
Path 1
0
Blocker function Arguments type Return type Constants touched
[org.xerial.snappy.SnappyLoader].loadNativeLibrary()
in org.xerial.snappy.SnappyLoader:174
[] void []