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

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: decode_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 119 33.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 241 66.9%
All colors 360 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
35 180 ov_open_callbacks call site: 00180 _open_seekable2
26 217 _decode_clear call site: 00217 ov_clear
11 261 _vds_shared_init call site: 00261 vorbis_book_init_encode
9 273 _float32_unpack call site: 00273 _vp_psy_init
9 347 ov_read_filter call site: 00347 vorbis_fpu_setround
5 54 ogg_stream_pagein call site: 00054 ogg_stream_clear
3 308 _make_decode_ready call site: 00308 oggpack_writeinit
3 341 ov_read_filter call site: 00341 vorbis_fpu_setround
2 7 ogg_sync_buffer call site: 00007 ogg_sync_wrote
2 88 _vorbis_unpack_info call site: 00088 vorbis_staticbook_destroy
2 163 ov_clear call site: 00163 _ve_envelope_clear
2 336 _fetch_and_process_packet call site: 00336 ogg_stream_reset_serialno

Runtime coverage analysis

Covered functions
133
Functions that are reachable but not covered
34
Reachable functions
121
Percentage of reachable functions covered
71.9%
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
vorbis/contrib/oss-fuzz/decode_fuzzer.cc 1
vorbis/lib/vorbisfile.c 24
oggframing.c 26
vorbis/lib/info.c 10
oggbitwise.c 5
vorbis/lib/sharedbook.c 13
vorbis/lib/psy.c 8
vorbis/lib/codebook.c 1
vorbis/lib/block.c 11
vorbis/lib/envelope.c 1
vorbis/lib/mdct.c 2
vorbis/lib/bitrate.c 1
vorbis/lib/smallft.c 4
vorbis/lib/synthesis.c 3
vorbis/lib/window.c 1
vorbis/lib/./os.h 3

Fuzzer: encode_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 50 15.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 267 84.2%
All colors 317 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
17 95 setup_tone_curves call site: 00095 vorbis_book_init_decode
11 289 vorbis_bitrate_addblock call site: 00289 oggpack_write
5 234 ogg_stream_iovecin call site: 00234 ogg_stream_clear
3 115 _vds_shared_init call site: 00115 vorbis_dsp_clear
3 284 vorbis_analysis call site: 00284 vorbis_bitrate_managed
2 46 vorbis_encode_map_n_res_setup call site: 00046 book_dup_or_new
1 6 vorbis_encode_setup_vbr call site: 00006 vorbis_info_clear
1 9 vorbis_info_clear call site: 00009 vorbis_decbook_clear
1 51 vorbis_encode_setup_init call site: 00051 vorbis_info_clear
1 141 LLVMFuzzerTestOneInput call site: 00141 ogg_stream_clear
1 147 oggpack_write call site: 00147 oggpack_writeclear
1 173 _vorbis_pack_comment call site: 00173 oggpack_write

Runtime coverage analysis

Covered functions
158
Functions that are reachable but not covered
14
Reachable functions
122
Percentage of reachable functions covered
88.52%
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
vorbis/contrib/oss-fuzz/encode_fuzzer.cc 1
vorbis/lib/info.c 11
vorbis/lib/vorbisenc.c 19
vorbis/lib/sharedbook.c 13
vorbis/lib/psy.c 10
vorbis/lib/block.c 11
vorbis/lib/mdct.c 10
vorbis/lib/smallft.c 4
vorbis/lib/envelope.c 6
vorbis/lib/bitrate.c 5
oggbitwise.c 7
oggframing.c 13
vorbis/lib/codebook.c 1
vorbis/lib/lpc.c 2
vorbis/lib/./scales.h 1
vorbis/lib/analysis.c 1

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
mapping0_forward /src/vorbis/lib/mapping0.c 1 ['N/A'] 5 0 1132 76 23 47 0 411 356
ov_time_seek_lap /src/vorbis/lib/vorbisfile.c 2 ['N/A', 'double'] 10 0 18 3 2 122 0 1049 174
drft_backward /src/vorbis/lib/smallft.c 2 ['N/A', 'N/A'] 2 0 48 6 3 5 0 80 80
res0_inverse /src/vorbis/lib/res0.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 4 0 88 13 5 8 0 67 61
vorbis_encode_ctl /src/vorbis/lib/vorbisenc.c 3 ['N/A', 'int', 'N/A'] 2 0 740 87 29 3 1 76 58
res2_forward /src/vorbis/lib/res0.c 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'N/A', 'int'] 4 0 139 17 6 8 0 70 44
vorbis_lpc_to_lsp /src/vorbis/lib/lsp.c 3 ['N/A', 'N/A', 'int'] 1 0 363 40 12 5 0 37 35

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

Functions statically reachable by fuzzers
69.0%
249 / 362
Cyclomatic complexity statically reachable by fuzzers
79.0%
2237 / 2845

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

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/vorbis/lib/floor1.c [] []
/src/vorbis/lib/psy.c ['decode_fuzzer', 'encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/lib/analysis.c ['encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/lib/./os.h ['decode_fuzzer'] []
/src/vorbis/lib/vorbisfile.c ['decode_fuzzer'] ['decode_fuzzer']
/src/vorbis/lib/window.c ['decode_fuzzer'] ['decode_fuzzer']
/src/vorbis/contrib/oss-fuzz/encode_fuzzer.cc ['encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/lib/floor0.c [] []
/src/vorbis/lib/mapping0.c [] []
/src/vorbis/lib/bitrate.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/block.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/codebook.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/lpc.c ['encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/lib/smallft.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/mdct.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/info.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/res0.c [] []
/src/vorbis/lib/./scales.h ['encode_fuzzer'] []
/src/ogg/src/bitwise.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/ogg/src/framing.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']
/src/vorbis/lib/lsp.c [] []
/src/vorbis/lib/vorbisenc.c ['encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/contrib/oss-fuzz/decode_fuzzer.cc ['decode_fuzzer'] ['decode_fuzzer']
/src/vorbis/lib/synthesis.c ['decode_fuzzer'] ['decode_fuzzer']
/src/vorbis/lib/envelope.c ['decode_fuzzer', 'encode_fuzzer'] ['encode_fuzzer']
/src/vorbis/lib/sharedbook.c ['decode_fuzzer', 'encode_fuzzer'] ['decode_fuzzer', 'encode_fuzzer']

Directories in report

Directory
/src/vorbis/lib/
/src/vorbis/lib/./
/src/ogg/src/
/src/vorbis/contrib/oss-fuzz/