Fuzz introspector: inspector/light/source_fileszlib_uncompress2_fuzzer.cc
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

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: 00013 /src/zlib/crc32.c:731
7 7 1 :

['_tr_align']

7 31 deflate call site: 00000 /src/zlib/deflate.c:1212
0 474 6 :

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

0 474 inflate call site: 00036 /src/zlib/inflate.c:817
0 21 1 :

['crc32']

451 630 deflate call site: 00000 /src/zlib/deflate.c:1160
0 21 1 :

['deflateEnd']

0 21 deflateInit2_ call site: 00000 /src/zlib/deflate.c:499
0 21 1 :

['crc32']

0 21 read_buf call site: 00000 /src/zlib/deflate.c:227
0 17 2 :

['_tr_stored_block', 'flush_pending']

0 17 deflate_stored call site: 00000 /src/zlib/deflate.c:1800
0 7 1 :

['_tr_stored_block']

0 14 _tr_flush_block call site: 00000 /src/zlib/trees.c:1047
0 0 None 451 879 deflate call site: 00000 /src/zlib/deflate.c:974
0 0 None 451 869 deflate call site: 00000 /src/zlib/deflate.c:1009
0 0 None 451 869 deflate call site: 00000 /src/zlib/deflate.c:1011
0 0 None 451 869 deflate call site: 00000 /src/zlib/deflate.c:1013

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 uncompress2 [function] [call site] 00001
2 inflateInit_ [function] [call site] 00002
3 inflateInit2_ [function] [call site] 00003
4 inflateReset2 [function] [call site] 00004
5 inflateStateCheck [function] [call site] 00005
5 inflateReset [function] [call site] 00006
6 inflateStateCheck [function] [call site] 00007
6 inflateResetKeep [function] [call site] 00008
7 inflateStateCheck [function] [call site] 00009
2 inflate [function] [call site] 00010
2 inflateEnd [function] [call site] 00048
3 inflateStateCheck [function] [call site] 00049