Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues
Report generation date: 2026-12-01

Project overview: lz4

High level conclusions

Reachability and coverage overview

Functions statically reachable by fuzzers
71.0%
268 / 377
Cyclomatic complexity statically reachable by fuzzers
63.0%
6551 / 10319
Runtime code coverage of functions
74.0%
279 / 377

Warning: The number of runtime covered functions are larger than the number of reachable functions. This means that Fuzz Introspector found there are more functions covered at runtime than what is considered reachable based on the static analysis. This is a limitation in the analysis as anything covered at runtime is by definition reachable by the fuzzers.
This is likely due to a limitation in the static analysis. In this case, the count of functions covered at runtime is the true value, which means this is what should be considered "achieved" by the fuzzer.

Use the project functions table below to query all functions that were not covered at runtime.

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: round_trip_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 208 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 208 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
207 0 EP call site: 00000 LZ4_compress_default

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
38
Reachable functions
38
Percentage of reachable functions covered
0.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
ossfuzz/round_trip_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 5
lib/lz4.c 28

Fuzzer: round_trip_frame_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 589 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 589 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
588 0 EP call site: 00000 FUZZ_decompressFrame

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
167
Reachable functions
167
Percentage of reachable functions covered
0.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
ossfuzz/round_trip_frame_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 8
ossfuzz/lz4_helpers.c 2
lib/lz4.c 25
lib/lz4frame.c 95
lib/lz4hc.c 20
lib/./lz4.c 3
lib/xxhash.c 11

Fuzzer: round_trip_frame_uncompressed_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 598 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 598 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
597 0 EP call site: 00000 compress_round_trip

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
167
Reachable functions
167
Percentage of reachable functions covered
0.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
ossfuzz/round_trip_frame_uncompressed_fuzzer.c 3
ossfuzz/fuzz_data_producer.c 8
lib/lz4.c 25
lib/lz4frame.c 95
lib/lz4hc.c 20
lib/./lz4.c 3
lib/xxhash.c 11

Fuzzer: decompress_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 28 29.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 67 70.5%
All colors 95 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
9 52 LZ4_decompress_safe_partial_usingDict call site: 00052 LZ4_decompress_safe_partial_withPrefix64k
8 17 LZ4_readLE16 call site: 00017 LZ4_copyMatchExact
4 33 LZ4_decompress_safe_usingDict call site: 00033 LZ4_decompress_safe_withSmallPrefix
4 79 LZ4_decompress_incomplete_withPrefix call site: 00079 LZ4_decompress_incomplete_extDict
2 26 LZ4_decompress_safe call site: 00026 __assert_fail
1 13 LZ4_decompress_safe call site: 00013 __assert_fail

Runtime coverage analysis

Covered functions
29
Functions that are reachable but not covered
9
Reachable functions
29
Percentage of reachable functions covered
68.97%
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
ossfuzz/decompress_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 5
lib/lz4.c 18

Fuzzer: compress_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 85 58.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 61 41.7%
All colors 146 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
47 50 LZ4_NbCommonBytes call site: 00050 LZ4_compress_resumeWithPrefix
22 22 LZ4_compress_fast_extState_fastReset call site: 00022 LZ4_writeLE16
8 108 LZ4_readLE16 call site: 00108 LZ4_copyMatchExact
3 98 LZ4_compress_fast_extState_fastReset call site: 00098 LZ4_compress_resumeWithPrefix
2 46 LZ4_writeLE16 call site: 00046 LZ4_NbCommonBytes
2 117 LZ4_decompress_safe call site: 00117 __assert_fail
1 104 LZ4_decompress_safe call site: 00104 __assert_fail

Runtime coverage analysis

Covered functions
48
Functions that are reachable but not covered
6
Reachable functions
35
Percentage of reachable functions covered
82.86%
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
ossfuzz/compress_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 5
lib/lz4.c 25

Fuzzer: round_trip_hc_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 121 53.0%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.43%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 106 46.4%
All colors 228 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
27 133 LZ4HC_reverseCountPattern call site: 00133 LZ4HC_countPattern
25 99 LZ4HC_compress_generic_internal call site: 00099 LZ4HC_countPattern
17 165 LZ4HC_compress_optimal call site: 00165 LZ4HC_countPattern
17 184 LZ4HC_compress_optimal call site: 00184 LZ4HC_compress_generic_dictCtx
8 210 LZ4_readLE16 call site: 00210 LZ4_copyMatchExact
5 127 LZ4HC_countPattern call site: 00127 LZ4HC_countPattern
4 56 LZ4MID_compress call site: 00056 LZ4_NbCommonBytes
4 76 LZ4_writeLE16 call site: 00076 LZ4HC_encodeLastSequence_fillOutput
3 89 LZ4MID_compress call site: 00089 LZ4MID_hash8Ptr
2 49 LZ4MID_compress call site: 00049 LZ4_NbCommonBytes
2 53 LZ4_NbCommonBytes call site: 00053 LZ4_read32
2 219 LZ4_decompress_safe call site: 00219 __assert_fail

Runtime coverage analysis

Covered functions
73
Functions that are reachable but not covered
11
Reachable functions
56
Percentage of reachable functions covered
80.36%
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
ossfuzz/round_trip_hc_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 6
lib/lz4.c 7
lib/lz4hc.c 32
lib/./lz4.c 8

Fuzzer: compress_hc_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 110 45.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 132 54.5%
All colors 242 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
27 133 LZ4HC_reverseCountPattern call site: 00133 LZ4HC_countPattern
25 99 LZ4HC_compress_generic_internal call site: 00099 LZ4HC_countPattern
17 165 LZ4HC_compress_optimal call site: 00165 LZ4HC_countPattern
14 188 LZ4HC_compress_generic_internal call site: 00188 LZ4HC_compress_generic
8 208 LZ4_readLE16 call site: 00208 LZ4_copyMatchExact
5 127 LZ4HC_countPattern call site: 00127 LZ4HC_countPattern
4 56 LZ4MID_compress call site: 00056 LZ4_NbCommonBytes
2 49 LZ4MID_compress call site: 00049 LZ4_NbCommonBytes
2 53 LZ4_NbCommonBytes call site: 00053 LZ4_read32
2 217 LZ4_decompress_safe call site: 00217 __assert_fail
1 25 LZ4HC_init_internal call site: 00025 LZ4HC_clearTables
1 36 LZ4MID_compress call site: 00036 LZ4HC_getCLevelParams

Runtime coverage analysis

Covered functions
75
Functions that are reachable but not covered
10
Reachable functions
57
Percentage of reachable functions covered
82.46%
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
ossfuzz/compress_hc_fuzzer.c 1
ossfuzz/fuzz_data_producer.c 5
lib/lz4hc.c 34
lib/./lz4.c 8
lib/lz4.c 7

Fuzzer: decompress_frame_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 31 13.4%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.43%
greenyellow [30:49] 1 0.43%
lawngreen 50+ 197 85.6%
All colors 230 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
8 133 LZ4_readLE16 call site: 00133 LZ4_copyMatchExact
6 185 LZ4_XXH32 call site: 00185 XXH_read32
2 69 LZ4_XXH32_update call site: 00069 XXH_read32
2 72 LZ4_XXH32_update call site: 00072 XXH_memcpy
2 142 LZ4_decompress_incomplete_withPrefix call site: 00142 __assert_fail
2 182 LZ4_XXH32 call site: 00182 XXH_read32
2 192 LZ4_XXH32 call site: 00192 XXH32_finalize
1 18 LZ4F_calloc call site: 00018 LZ4F_returnErrorCode
1 32 LZ4F_decompress call site: 00032 LZ4F_returnErrorCode
1 47 LZ4F_decodeHeader call site: 00047 LZ4F_returnErrorCode
1 56 LZ4F_decompress call site: 00056 LZ4F_returnErrorCode
1 59 LZ4F_decompress call site: 00059 LZ4F_returnErrorCode

Runtime coverage analysis

Covered functions
71
Functions that are reachable but not covered
5
Reachable functions
62
Percentage of reachable functions covered
91.94%
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
ossfuzz/decompress_frame_fuzzer.c 2
ossfuzz/fuzz_data_producer.c 6
ossfuzz/lz4_helpers.c 1
lib/lz4frame.c 25
lib/xxhash.c 11
lib/lz4.c 13

Fuzzer: compress_frame_stream_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 115 16.1%
gold [1:9] 0 0.0%
yellow [10:29] 3 0.42%
greenyellow [30:49] 1 0.14%
lawngreen 50+ 592 83.2%
All colors 711 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
11 617 LZ4_readLE16 call site: 00617 LZ4_copyMatchExact
8 180 LZ4_loadDict_internal call site: 00180 LZ4_loadDictHC
7 306 LZ4F_mt_submit_internal call site: 00306 LZ4F_mt_hashJob
7 350 LZ4F_mt_acquireInBuff call site: 00350 LZ4F_invalidateFrame
6 6 LZ4_XXH32 call site: 00006 XXH_read32
5 169 LZ4F_initLZ4State call site: 00169 LZ4F_digestRawDict
5 219 LZ4F_startStream call site: 00219 LZ4_attach_dictionary
5 256 LZ4F_mt_begin call site: 00256 LZ4F_mt_allocState
5 599 LZ4F_updateDict call site: 00599 LZ4F_moveDictBeforeTmpOut
4 611 LZ4F_decodeBlock call site: 00611 LZ4_decompress_incomplete
4 682 LZ4F_decompress call site: 00682 LZ4F_moveDictBeforeTmpOut
3 504 checkInvalidated call site: 00504 LZ4F_getErrorCode

Runtime coverage analysis

Covered functions
231
Functions that are reachable but not covered
21
Reachable functions
174
Percentage of reachable functions covered
87.93%
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
ossfuzz/compress_frame_stream_fuzzer.c 7
ossfuzz/./fuzz_helpers.h 3
lib/xxhash.c 11
ossfuzz/lz4_helpers.c 4
lib/lz4frame.c 100
lib/lz4.c 24
lib/lz4hc.c 20
lib/./lz4.c 3

Fuzzer: compress_frame_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 49.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 4 0.66%
lawngreen 50+ 301 50.0%
All colors 602 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
46 277 LZ4_XXH32_update call site: 00277 LZ4F_mt_submitLast
33 193 LZ4F_calloc call site: 00193 LZ4F_mt_allocState
25 72 LZ4F_initLZ4State call site: 00072 LZ4F_digestRawDict
24 333 LZ4F_st_update call site: 00333 LZ4F_flushBlock
19 253 LZ4F_compressBlocks_internal call site: 00253 LZ4F_mt_runJob
14 229 LZ4F_compressFrame_usingCDict call site: 00229 LZ4F_mt_update
11 499 LZ4_readLE16 call site: 00499 LZ4_copyMatchExact
10 47 LZ4F_invalidateFrame call site: 00047 LZ4F_mt_retireOldest
8 184 XXH32_finalize call site: 00184 LZ4F_mt_begin
8 378 LZ4F_flushBlockPartial call site: 00378 LZ4F_flushBlock
8 414 LZ4F_compressFrame call site: 00414 LZ4F_mt_abort
7 390 LZ4F_emitPending call site: 00390 LZ4F_invalidateFrame

Runtime coverage analysis

Covered functions
177
Functions that are reachable but not covered
65
Reachable functions
167
Percentage of reachable functions covered
61.08%
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
ossfuzz/compress_frame_fuzzer.c 2
ossfuzz/fuzz_data_producer.c 8
lib/lz4frame.c 96
lib/lz4.c 24
lib/lz4hc.c 20
lib/./lz4.c 3
lib/xxhash.c 11
ossfuzz/lz4_helpers.c 1

Fuzzer: round_trip_stream_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 35 39.7%
gold [1:9] 0 0.0%
yellow [10:29] 1 1.13%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 52 59.0%
All colors 88 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
20 20 XXH32_finalize call site: 00020 XXH_read32
6 6 LZ4_XXH32 call site: 00006 XXH_read32
4 13 LZ4_XXH32 call site: 00013 XXH_read32
2 3 LZ4_XXH32 call site: 00003 XXH_read32
2 42 XXH32_finalize call site: 00042 XXH32_finalize
1 73 LZ4_resetStreamHC_fast call site: 00073 LZ4_setStreamDecode

Runtime coverage analysis

Covered functions
140
Functions that are reachable but not covered
7
Reachable functions
36
Percentage of reachable functions covered
80.56%
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
ossfuzz/round_trip_stream_fuzzer.c 7
ossfuzz/./fuzz_helpers.h 3
lib/xxhash.c 7
lib/lz4.c 10
lib/lz4hc.c 4

Fuzzer: file_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 287 38.0%
gold [1:9] 1 0.13%
yellow [10:29] 6 0.79%
greenyellow [30:49] 1 0.13%
lawngreen 50+ 459 60.8%
All colors 754 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
62 552 LZ4F_compressBlocks_internal call site: 00552 LZ4F_mt_submitLast
30 489 LZ4F_headerChecksum call site: 00489 LZ4F_mt_begin
27 351 LZ4F_freeCompressionContext call site: 00351 LZ4F_mt_abort
25 417 LZ4F_initLZ4State call site: 00417 LZ4F_digestRawDict
14 528 LZ4F_write call site: 00528 LZ4F_mt_update
11 157 LZ4_readLE16 call site: 00157 LZ4_copyMatchExact
8 675 LZ4F_flushBlockPartial call site: 00675 LZ4F_flushBlock
7 687 LZ4F_emitPending call site: 00687 LZ4F_invalidateFrame
6 209 LZ4_XXH32 call site: 00209 XXH_read32
5 150 LZ4F_decodeBlock call site: 00150 LZ4_decompress_incomplete
5 337 LZ4F_compressBound call site: 00337 LZ4F_mtCompressBound
5 467 LZ4F_startStream call site: 00467 LZ4_attach_dictionary

Runtime coverage analysis

Covered functions
211
Functions that are reachable but not covered
69
Reachable functions
202
Percentage of reachable functions covered
65.84%
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
ossfuzz/file_fuzzer.c 5
ossfuzz/fuzz_data_producer.c 8
lib/lz4file.c 24
lib/lz4frame.c 97
lib/xxhash.c 11
lib/lz4.c 24
lib/lz4hc.c 20
lib/./lz4.c 3

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
state_loadDictRoundTrip /src/lz4/ossfuzz/round_trip_stream_fuzzer.c 1 ['N/A'] 5 0 39 3 2 38 0 3196 2552
LZ4_compress_forceExtDict /src/lz4/lib/lz4.c 4 ['N/A', 'N/A', 'N/A', 'int'] 3 0 19340 2598 683 13 0 880 683
LZ4_XXH64 /src/lz4/lib/xxhash.c 3 ['N/A', 'size_t', 'size_t'] 2 0 750 90 31 10 0 133 125
LZ4_XXH64_update /src/lz4/lib/xxhash.c 3 ['N/A', 'N/A', 'size_t'] 1 0 1498 184 63 5 0 73 63
LZ4_decompress_fast_continue /src/lz4/lib/lz4.c 4 ['N/A', 'N/A', 'N/A', 'int'] 3 0 526 61 20 7 0 61 52

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
77.0%
292 / 377
Cyclomatic complexity statically reachable by fuzzers
97.0%
10026 / 10319

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

ossfuzz/round_trip_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


ossfuzz/round_trip_frame_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


ossfuzz/round_trip_frame_uncompressed_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


ossfuzz/decompress_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4_decompress_safe_partial_usingDict', 'LZ4_readLE16', 'LZ4_decompress_safe_usingDict', 'LZ4_decompress_incomplete_withPrefix', 'LZ4_decompress_safe']

ossfuzz/compress_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4_NbCommonBytes', 'LZ4_compress_fast_extState_fastReset', 'LZ4_readLE16', 'LZ4_writeLE16', 'LZ4_decompress_safe']

ossfuzz/round_trip_hc_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4HC_reverseCountPattern', 'LZ4HC_compress_generic_internal', 'LZ4HC_compress_optimal', 'LZ4_readLE16', 'LZ4HC_countPattern', 'LZ4MID_compress', 'LZ4_writeLE16']

ossfuzz/compress_hc_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4HC_reverseCountPattern', 'LZ4HC_compress_generic_internal', 'LZ4HC_compress_optimal', 'LZ4_readLE16', 'LZ4HC_countPattern', 'LZ4MID_compress', 'LZ4_NbCommonBytes', 'LZ4_decompress_safe']

ossfuzz/decompress_frame_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4_readLE16', 'LZ4_XXH32', 'LZ4_XXH32_update', 'LZ4_decompress_incomplete_withPrefix', 'LZ4F_calloc', 'LZ4F_decompress', 'LZ4F_decodeHeader']

ossfuzz/compress_frame_stream_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4_readLE16', 'LZ4_loadDict_internal', 'LZ4F_mt_submit_internal', 'LZ4F_mt_acquireInBuff', 'LZ4_XXH32', 'LZ4F_initLZ4State', 'LZ4F_startStream', 'LZ4F_mt_begin', 'LZ4F_updateDict', 'LZ4F_decodeBlock']

ossfuzz/compress_frame_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4_XXH32_update', 'LZ4F_calloc', 'LZ4F_initLZ4State', 'LZ4F_st_update', 'LZ4F_compressBlocks_internal', 'LZ4F_compressFrame_usingCDict', 'LZ4_readLE16', 'LZ4F_invalidateFrame', 'XXH32_finalize', 'LZ4F_flushBlockPartial']

ossfuzz/round_trip_stream_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['XXH32_finalize', 'LZ4_XXH32', 'LZ4_resetStreamHC_fast']

ossfuzz/file_fuzzer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['LZ4F_compressBlocks_internal', 'LZ4F_headerChecksum', 'LZ4F_freeCompressionContext', 'LZ4F_initLZ4State', 'LZ4F_write', 'LZ4_readLE16', 'LZ4F_flushBlockPartial', 'LZ4F_emitPending', 'LZ4_XXH32', 'LZ4F_decodeBlock']

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/lz4/lib/lz4hc.c ['round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer'] ['round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer']
/src/lz4/lib/lz4file.c ['file_fuzzer'] ['file_fuzzer']
/src/lz4/ossfuzz/decompress_frame_fuzzer.c ['decompress_frame_fuzzer'] ['decompress_frame_fuzzer']
/src/lz4/lib/lz4frame.c ['round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'file_fuzzer'] ['decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'file_fuzzer']
/src/lz4/ossfuzz/fuzz_data_producer.c ['round_trip_fuzzer', 'round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'decompress_fuzzer', 'compress_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_fuzzer', 'file_fuzzer'] ['decompress_fuzzer', 'compress_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_fuzzer', 'file_fuzzer']
/src/lz4/lib/lz4.c ['round_trip_fuzzer', 'round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'decompress_fuzzer', 'compress_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer'] ['decompress_fuzzer', 'compress_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer']
/src/lz4/lib/xxhash.c ['round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer'] ['decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer']
/src/lz4/ossfuzz/./fuzz_helpers.h ['compress_frame_stream_fuzzer', 'round_trip_stream_fuzzer'] []
/src/lz4/lib/./lz4.c ['round_trip_frame_fuzzer', 'round_trip_frame_uncompressed_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'file_fuzzer'] ['decompress_fuzzer', 'compress_fuzzer', 'round_trip_hc_fuzzer', 'compress_hc_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer', 'round_trip_stream_fuzzer', 'file_fuzzer']
/src/lz4/ossfuzz/round_trip_fuzzer.c ['round_trip_fuzzer'] []
/src/lz4/ossfuzz/compress_fuzzer.c ['compress_fuzzer'] ['compress_fuzzer']
/src/lz4/ossfuzz/compress_frame_stream_fuzzer.c ['compress_frame_stream_fuzzer'] ['compress_frame_stream_fuzzer']
/src/lz4/ossfuzz/round_trip_frame_fuzzer.c ['round_trip_frame_fuzzer'] []
/src/lz4/ossfuzz/round_trip_frame_uncompressed_fuzzer.c ['round_trip_frame_uncompressed_fuzzer'] []
/src/lz4/ossfuzz/round_trip_hc_fuzzer.c ['round_trip_hc_fuzzer'] ['round_trip_hc_fuzzer']
/src/lz4/ossfuzz/lz4_helpers.c ['round_trip_frame_fuzzer', 'decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer'] ['decompress_frame_fuzzer', 'compress_frame_stream_fuzzer', 'compress_frame_fuzzer']
/src/lz4/ossfuzz/file_fuzzer.c ['file_fuzzer'] ['file_fuzzer']
/src/lz4/ossfuzz/round_trip_stream_fuzzer.c ['round_trip_stream_fuzzer'] ['round_trip_stream_fuzzer']
/src/lz4/ossfuzz/decompress_fuzzer.c ['decompress_fuzzer'] ['decompress_fuzzer']
/src/lz4/ossfuzz/compress_hc_fuzzer.c ['compress_hc_fuzzer'] ['compress_hc_fuzzer']
/src/lz4/ossfuzz/compress_frame_fuzzer.c ['compress_frame_fuzzer'] ['compress_frame_fuzzer']

Directories in report

Directory
/src/lz4/ossfuzz/
/src/lz4/lib/
/src/lz4/ossfuzz/./
/src/lz4/lib/./

Metadata section

This sections shows the raw data that is used to produce this report. This is mainly used for further processing and developer debugging.

Fuzzer Calltree file Program data file Coverage file
round_trip_fuzzer fuzzerLogFile-0-2fb9wYrLWB.data fuzzerLogFile-0-2fb9wYrLWB.data.yaml round_trip_fuzzer.covreport
round_trip_frame_fuzzer fuzzerLogFile-0-kly9E8S2vT.data fuzzerLogFile-0-kly9E8S2vT.data.yaml round_trip_frame_fuzzer.covreport
round_trip_frame_uncompressed_fuzzer fuzzerLogFile-0-Ba0qMHKt3s.data fuzzerLogFile-0-Ba0qMHKt3s.data.yaml round_trip_frame_uncompressed_fuzzer.covreport
decompress_fuzzer fuzzerLogFile-0-CRkmGAzV2o.data fuzzerLogFile-0-CRkmGAzV2o.data.yaml decompress_fuzzer.covreport
compress_fuzzer fuzzerLogFile-0-EpyZHhsxF0.data fuzzerLogFile-0-EpyZHhsxF0.data.yaml compress_fuzzer.covreport
round_trip_hc_fuzzer fuzzerLogFile-0-3ZkL2WvY9Z.data fuzzerLogFile-0-3ZkL2WvY9Z.data.yaml round_trip_hc_fuzzer.covreport
compress_hc_fuzzer fuzzerLogFile-0-bUIBoI4dI5.data fuzzerLogFile-0-bUIBoI4dI5.data.yaml compress_hc_fuzzer.covreport
decompress_frame_fuzzer fuzzerLogFile-0-Z1YY8KIDQ0.data fuzzerLogFile-0-Z1YY8KIDQ0.data.yaml decompress_frame_fuzzer.covreport
compress_frame_stream_fuzzer fuzzerLogFile-0-GHZI4cIGnT.data fuzzerLogFile-0-GHZI4cIGnT.data.yaml compress_frame_stream_fuzzer.covreport
compress_frame_fuzzer fuzzerLogFile-0-bF2moRiUYb.data fuzzerLogFile-0-bF2moRiUYb.data.yaml compress_frame_fuzzer.covreport
round_trip_stream_fuzzer fuzzerLogFile-0-JxwW3h3KPr.data fuzzerLogFile-0-JxwW3h3KPr.data.yaml round_trip_stream_fuzzer.covreport
file_fuzzer fuzzerLogFile-0-x7yYbCORVi.data fuzzerLogFile-0-x7yYbCORVi.data.yaml file_fuzzer.covreport