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

Fuzzer details

Fuzzer: spng_read_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 34 7.43%
gold [1:9] 3 0.65%
yellow [10:29] 10 2.18%
greenyellow [30:49] 4 0.87%
lawngreen 50+ 406 88.8%
All colors 457 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
14 14 2 :

['byte_swap', 'crc_word_big']

14 14 crc32_z call site: 00024 /src/zlib/crc32.c:788
2 2 1 :

['memcmp']

2 2 trns_row call site: 00421 /src/libspng/spng/spng.c:1822
0 474 6 :

['adler32', 'inflate_fast', 'crc32', 'updatewindow', 'inflate_table', 'fixedtables']

0 474 inflate call site: 00170 /src/zlib/inflate.c:855
0 36 2 :

['crc32', 'adler32']

0 36 inflate call site: 00179 /src/zlib/inflate.c:1293
0 4 2 :

['spng__iter_init', 'get_sample']

0 4 trns_row call site: 00424 /src/libspng/spng/spng.c:1843
0 2 1 :

['get_sample']

0 2 unpack_scanline call site: 00413 /src/libspng/spng/spng.c:2011
0 0 None 0 474 inflate call site: 00158 /src/zlib/inflate.c:661
0 0 None 0 474 inflate call site: 00158 /src/zlib/inflate.c:667
0 0 None 0 474 inflate call site: 00160 /src/zlib/inflate.c:676
0 0 None 0 474 inflate call site: 00160 /src/zlib/inflate.c:694
0 0 None 0 474 inflate call site: 00176 /src/zlib/inflate.c:1227
0 0 None 0 474 inflate call site: 00178 /src/zlib/inflate.c:1231

Runtime coverage analysis

Covered functions
124
Functions that are reachable but not covered
20
Reachable functions
145
Percentage of reachable functions covered
86.21%
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/libspng/tests/spng_read_fuzzer.c 2
/src/libspng/spng/spng.c 105
/src/zlib/crc32.c 5
/src/zlib/inflate.c 10
/src/zlib/zutil.c 2
/src/zlib/adler32.c 2
/src/zlib/inftrees.c 1
/src/zlib/inffast.c 1
/src/zlib/deflate.c 2

Fuzzer: spng_write_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 317 57.2%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.18%
greenyellow [30:49] 8 1.44%
lawngreen 50+ 228 41.1%
All colors 554 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
968 968 5 :

['read_non_idat_chunks', 'is_critical_chunk', 'read_ihdr', 'decode_err', 'discard_chunk_bytes']

968 968 read_chunks call site: 00011 /src/libspng/spng/spng.c:3108
471 471 2 :

['compressBound', 'compress2']

520 2548 write_chunks_before_idat call site: 00311 /src/libspng/spng/spng.c:4069
37 681 8 :

['finish_chunk', 'spng__free', 'write_header', 'spng__deflate_init', 'deflateBound', 'spng__malloc', 'deflate', 'strlen']

45 932 write_chunks_before_idat call site: 00448 /src/libspng/spng/spng.c:4333
14 14 2 :

['byte_swap', 'crc_word_big']

14 14 crc32_z call site: 00018 /src/zlib/crc32.c:788
8 8 1 :

['write_s32']

8 251 write_chunks_before_idat call site: 00467 /src/libspng/spng/spng.c:4454
7 14 2 :

['_tr_stored_block', '_tr_align']

7 38 deflate call site: 00394 /src/zlib/deflate.c:1075
4 454 3 :

['write_header', 'encode_err', 'deflate']

4 583 finish_idat call site: 00517 /src/libspng/spng/spng.c:4536
2 2 1 :

['encode_err']

2 2 write_data call site: 00280 /src/libspng/spng/spng.c:863
0 79 1 :

['write_chunk']

0 164 write_chunks_before_idat call site: 00471 /src/libspng/spng/spng.c:4464
0 21 1 :

['crc32']

557 629 deflate call site: 00350 /src/zlib/deflate.c:1024
0 21 1 :

['deflateEnd']

0 21 deflateInit2_ call site: 00318 /src/zlib/deflate.c:365
0 21 1 :

['crc32']

0 21 read_buf call site: 00358 /src/zlib/deflate.c:1228

Runtime coverage analysis

Covered functions
105
Functions that are reachable but not covered
56
Reachable functions
160
Percentage of reachable functions covered
65.0%
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/libspng/tests/spng_write_fuzzer.c 2
/src/libspng/spng/spng.c 91
/src/zlib/crc32.c 5
/src/zlib/inflate.c 10
/src/zlib/zutil.c 2
/src/zlib/adler32.c 2
/src/zlib/inftrees.c 1
/src/zlib/inffast.c 1
/src/zlib/compress.c 2
/src/zlib/deflate.c 17
/src/zlib/trees.c 20

Fuzzer: spng_read_fuzzer_structure_aware

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 7.43%
gold [1:9] 3 0.65%
yellow [10:29] 15 3.28%
greenyellow [30:49] 3 0.65%
lawngreen 50+ 402 87.9%
All colors 457 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
14 14 2 :

['byte_swap', 'crc_word_big']

14 14 crc32_z call site: 00024 /src/zlib/crc32.c:788
2 2 1 :

['memcmp']

2 2 trns_row call site: 00421 /src/libspng/spng/spng.c:1822
0 474 6 :

['adler32', 'inflate_fast', 'crc32', 'updatewindow', 'inflate_table', 'fixedtables']

0 474 inflate call site: 00170 /src/zlib/inflate.c:855
0 36 2 :

['crc32', 'adler32']

0 36 inflate call site: 00179 /src/zlib/inflate.c:1293
0 4 2 :

['spng__iter_init', 'get_sample']

0 4 trns_row call site: 00424 /src/libspng/spng/spng.c:1843
0 2 1 :

['get_sample']

0 2 unpack_scanline call site: 00413 /src/libspng/spng/spng.c:2011
0 0 None 0 474 inflate call site: 00158 /src/zlib/inflate.c:661
0 0 None 0 474 inflate call site: 00158 /src/zlib/inflate.c:667
0 0 None 0 474 inflate call site: 00160 /src/zlib/inflate.c:676
0 0 None 0 474 inflate call site: 00160 /src/zlib/inflate.c:694
0 0 None 0 474 inflate call site: 00176 /src/zlib/inflate.c:1227
0 0 None 0 474 inflate call site: 00178 /src/zlib/inflate.c:1231

Runtime coverage analysis

Covered functions
124
Functions that are reachable but not covered
20
Reachable functions
145
Percentage of reachable functions covered
86.21%
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/libspng/tests/spng_read_fuzzer.c 2
/src/libspng/spng/spng.c 105
/src/zlib/crc32.c 5
/src/zlib/inflate.c 10
/src/zlib/zutil.c 2
/src/zlib/adler32.c 2
/src/zlib/inftrees.c 1
/src/zlib/inffast.c 1
/src/zlib/deflate.c 2

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/zlib/compress.c ['spng_write_fuzzer'] []
/src/zlib/zutil.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] []
/src/zlib/adler32.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware']
/src/zlib/trees.c ['spng_write_fuzzer'] ['spng_write_fuzzer']
/src/libspng/tests/spng_write_fuzzer.c ['spng_write_fuzzer'] ['spng_write_fuzzer']
/src/zlib/inffast.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_read_fuzzer_structure_aware']
/usr/local/bin/../include/c++/v1/iosfwd [] []
/src/zlib/inftrees.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_read_fuzzer_structure_aware']
/src/libspng/tests/spng_read_fuzzer.c ['spng_read_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_read_fuzzer_structure_aware']
/src/zlib/deflate.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_write_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/zlib/uncompr.c [] []
/src/libspng/spng/spng.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware']
/src/zlib/inflate.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware']
/src/fuzzer-test-suite/libpng-1.2.56/png_mutator.h [] []
/src/zlib/crc32.c ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware'] ['spng_read_fuzzer', 'spng_write_fuzzer', 'spng_read_fuzzer_structure_aware']

Directories in report

Directory
/src/libspng/spng/
/usr/local/bin/../include/c++/v1/
/src/zlib/
/src/fuzzer-test-suite/libpng-1.2.56/
/src/libspng/tests/