Project: zstd

Language c++
OSS-Fuzz project link
Project repository link
Build status: Fuzzers succeeding: Build log
Build status: Code coverage succeeding: Build log
Build status: Fuzz Introspector succeeding: Build log
Fuzzer count 21
Lines of code 37875
Lines covered 29612
Code coverage 78.18%
Code coverage report Report link
Static reachability 31.69%
Fuzz Introspector report Report link (from 2025-03-27)
Fuzzer Code coverage (lines) Latest Report Comments
block_decompress 7.0% (avg: 7.0%, max: 7.01%) 2025-03-27
block_round_trip 20.43% (avg: 20.42%, max: 20.43%) 2025-03-27
decompress_cross_format 9.8% (avg: 9.8%, max: 9.8%) 2025-03-27
decompress_dstSize_tooSmall 17.15% (avg: 17.14%, max: 17.15%) 2025-03-27
dictionary_decompress 47.98% (avg: 47.98%, max: 47.98%) 2025-03-27
dictionary_loader 21.54% (avg: 21.54%, max: 21.54%) 2025-03-27
dictionary_round_trip 41.6% (avg: 41.62%, max: 41.66%) 2025-03-27
dictionary_stream_round_trip 40.91% (avg: 40.89%, max: 40.91%) 2025-03-27
fse_read_ncount 0.92% (avg: 0.92%, max: 0.93%) 2025-03-27
generate_sequences 27.97% (avg: 27.96%, max: 27.97%) 2025-03-27
huf_decompress 4.56% (avg: 4.56%, max: 4.56%) 2025-03-27
huf_round_trip 7.69% (avg: 7.69%, max: 7.7%) 2025-03-27
raw_dictionary_round_trip 37.67% (avg: 37.67%, max: 37.72%) 2025-03-27
seekable_roundtrip 26.99% (avg: 26.98%, max: 27.01%) 2025-03-27
sequence_compression_api 19.31% (avg: 19.31%, max: 19.31%) 2025-03-27
simple_compress 17.22% (avg: 17.21%, max: 17.22%) 2025-03-27
simple_decompress 35.4% (avg: 35.41%, max: 35.42%) 2025-03-27
simple_round_trip 33.69% (avg: 33.71%, max: 33.74%) 2025-03-27
stream_decompress 40.53% (avg: 40.54%, max: 40.55%) 2025-03-27
stream_round_trip 35.5% (avg: 35.51%, max: 35.54%) 2025-03-27
zstd_frame_info 2.69% (avg: 2.69%, max: 2.69%) 2025-03-27

Historical Progression

Per Fuzzer Progression

Functions of interest to fuzz

This section outlines functions that may be of interest to fuzz. They are based on ranking functions that have a lot of complexity but currently exhibit low code coverage. The complexity is calculated based on the function itself as well as the functions called by the given function, i.e. the tree of code that the function triggers.


This is only a minor amount of introspection information available for this project. Please consult the Fuzz Introspector report for more information, e.g. the introspection table of all functions in the target project available here.

Function name Function source file Accumulated cyclomatic complexity Code coverage
ZDICT_trainFromBuffer_legacy /src/zstd/lib/dictBuilder/zdict.c 3787 0.0%
ZDICT_trainFromBuffer_unsafe_legacy /src/zstd/lib/dictBuilder/zdict.c 3781 0.0%
compress /src/zstd/tests/fuzz/dictionary_loader.c 3722 0.0%
ZSTD_flushStream /src/zstd/lib/compress/zstd_compress.c 3649 0.0%
ZDICT_optimizeTrainFromBuffer_cover /src/zstd/lib/dictBuilder/cover.c 3481 0.0%
ZDICT_trainFromBuffer /src/zstd/lib/dictBuilder/zdict.c 3454 0.0%
ZDICT_optimizeTrainFromBuffer_fastCover /src/zstd/lib/dictBuilder/fastcover.c 3452 0.0%
COVER_tryParameters /src/zstd/lib/dictBuilder/cover.c 3318 0.0%
ZDICT_trainFromBuffer_cover /src/zstd/lib/dictBuilder/cover.c 3306 0.0%
FASTCOVER_tryParameters /src/zstd/lib/dictBuilder/fastcover.c 3295 0.0%