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

Fuzzer details

Fuzzer: zip_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 297 62.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 3 0.62%
lawngreen 50+ 177 37.1%
All colors 477 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
687 754 5 :

['mz_stream_seek', 'mz_stream_copy', 'mz_zip_recover_cd', 'mz_stream_set_prop_int64', 'mz_zip_read_cd']

687 1263 mz_zip_open call site: 00030 /src/minizip-ng/mz_zip.c:1444
136 136 1 :

['mz_zip_entry_read_close']

136 136 mz_zip_entry_close_raw call site: 00305 /src/minizip-ng/mz_zip.c:2278
60 131 3 :

['mz_stream_write_uint64', 'mz_stream_write_int64', 'mz_stream_tell']

62 525 mz_zip_write_cd call site: 00361 /src/minizip-ng/mz_zip.c:1138
24 24 3 :

['mz_stream_wzaes_create', 'mz_stream_wzaes_set_strength', 'mz_stream_wzaes_set_password']

29 98 mz_zip_entry_open_int call site: 00430 /src/minizip-ng/mz_zip.c:1734
2 14 2 :

['mz_stream_write', 'strlen']

2 516 mz_zip_entry_write_open call site: 00416 /src/minizip-ng/mz_zip.c:1963
2 2 1 :

['strlen']

2 34 mz_zip_write_cd call site: 00386 /src/minizip-ng/mz_zip.c:1221
0 479 1 :

['mz_zip_close']

0 479 mz_zip_open call site: 00300 /src/minizip-ng/mz_zip.c:1481
0 427 1 :

['mz_zip_entry_close']

4 1110 mz_zip_entry_write_open call site: 00402 /src/minizip-ng/mz_zip.c:1932
0 427 1 :

['mz_zip_entry_close']

0 562 mz_zip_close call site: 00302 /src/minizip-ng/mz_zip.c:1515
0 126 6 :

['mz_stream_seek', 'mz_stream_copy', 'mz_stream_write_uint16', 'mz_stream_mem_seek', 'mz_stream_read_uint16', 'mz_stream_mem_delete']

0 138 mz_zip_entry_write_header call site: 00277 /src/minizip-ng/mz_zip.c:886
0 10 1 :

['mz_stream_get_prop_int64']

0 47 mz_zip_entry_open_int call site: 00451 /src/minizip-ng/mz_zip.c:1810
0 10 1 :

['mz_zip_entry_close_int']

0 10 mz_zip_entry_open_int call site: 00461 /src/minizip-ng/mz_zip.c:1854

Runtime coverage analysis

Covered functions
86
Functions that are reachable but not covered
45
Reachable functions
109
Percentage of reachable functions covered
58.72%
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
test/fuzz/zip_fuzzer.c 1
mz_strm_mem.c 12
mz_strm.c 29
mz_zip.c 47
mz_strm_wzaes.c 3
mz_crypt_openssl.c 4
mz_strm_pkcrypt.c 3
mz_strm_zlib.c 1
mz_crypt.c 1

Fuzzer: unzip_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 102 22.1%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.21%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 357 77.6%
All colors 460 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
365 365 1 :

['mz_zip_entry_write_close']

365 365 mz_zip_entry_close_raw call site: 00290 /src/minizip-ng/mz_zip.c:2278
6 6 1 :

['mz_zip_attrib_posix_to_win32']

6 6 mz_zip_attrib_convert call site: 00186 /src/minizip-ng/mz_zip.c:2527
5 17 2 :

['mz_crypt_rand', 'mz_stream_write']

5 41 mz_stream_pkcrypt_open call site: 00000 /src/minizip-ng/mz_strm_pkcrypt.c:129
5 5 1 :

['mz_crypt_rand']

7 241 mz_stream_wzaes_open call site: 00000 /src/minizip-ng/mz_strm_wzaes.c:88
2 2 1 :

['EVP_sha256']

8 8 mz_crypt_hmac_init call site: 00000 /src/minizip-ng/mz_crypt_openssl.c:557
0 427 1 :

['mz_zip_entry_close']

102 562 mz_zip_close call site: 00287 /src/minizip-ng/mz_zip.c:1515
0 34 1 :

['mz_zip_attrib_is_dir']

0 34 mz_zip_entry_needs_zip64 call site: 00183 /src/minizip-ng/mz_zip.c:575
0 24 1 :

['mz_stream_write']

0 24 mz_stream_wzaes_open call site: 00000 /src/minizip-ng/mz_strm_wzaes.c:116
0 5 1 :

['mz_stream_set_prop_int64']

0 935 mz_zip_recover_cd call site: 00066 /src/minizip-ng/mz_zip.c:1264
0 0 None 102 565 mz_zip_close call site: 00286 /src/minizip-ng/mz_zip.c:1510
0 0 None 10 21 mz_crypt_hmac_init call site: 00000 /src/minizip-ng/mz_crypt_openssl.c:549
0 0 None 9 254 mz_stream_wzaes_open call site: 00000 /src/minizip-ng/mz_strm_wzaes.c:76

Runtime coverage analysis

Covered functions
148
Functions that are reachable but not covered
14
Reachable functions
120
Percentage of reachable functions covered
88.33%
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
test/fuzz/unzip_fuzzer.c 1
mz_strm_mem.c 10
mz_zip.c 59
mz_strm.c 29
mz_strm_wzaes.c 3
mz_crypt_openssl.c 4
mz_strm_pkcrypt.c 3
mz_strm_zlib.c 1
mz_crypt.c 1

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/minizip-ng/mz_zip.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/mz_crypt.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/test/fuzz/unzip_fuzzer.c ['unzip_fuzzer'] ['unzip_fuzzer']
/src/minizip-ng/mz_crypt_openssl.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/mz_strm_zlib.c ['zip_fuzzer', 'unzip_fuzzer'] []
/src/minizip-ng/mz_strm.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/mz_strm_wzaes.c ['zip_fuzzer', 'unzip_fuzzer'] ['unzip_fuzzer']
/src/minizip-ng/mz_strm_mem.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/mz_strm_pkcrypt.c ['zip_fuzzer', 'unzip_fuzzer'] ['zip_fuzzer', 'unzip_fuzzer']
/src/minizip-ng/test/fuzz/zip_fuzzer.c ['zip_fuzzer'] ['zip_fuzzer']

Directories in report

Directory
/src/minizip-ng/
/src/minizip-ng/test/fuzz/