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 117 32.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 246 67.7%
All colors 363 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
36 180 ov_open_callbacks call site: 00180 _open_seekable2
26 218 _decode_clear call site: 00218 ov_clear
11 262 _vds_shared_init call site: 00262 vorbis_book_init_encode
9 274 _float32_unpack call site: 00274 _vp_psy_init
9 350 ov_read_filter call site: 00350 vorbis_fpu_setround
5 54 ogg_stream_pagein call site: 00054 ogg_stream_clear
3 311 _make_decode_ready call site: 00311 oggpack_writeinit
3 344 ov_read_filter call site: 00344 vorbis_fpu_setround
2 7 ogg_sync_buffer call site: 00007 ogg_sync_wrote
2 163 ov_clear call site: 00163 _ve_envelope_clear
2 339 _fetch_and_process_packet call site: 00339 ogg_stream_reset_serialno
1 3 _ov_open1 call site: 00003 ogg_sync_buffer

Runtime coverage analysis

Covered functions
134
Functions that are reachable but not covered
31
Reachable functions
119
Percentage of reachable functions covered
73.95%
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 11
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

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 398
ov_time_seek_lap /src/vorbis/lib/vorbisfile.c 2 ['N/A', 'double'] 9 0 18 3 2 119 0 991 169
drft_backward /src/vorbis/lib/smallft.c 2 ['N/A', 'N/A'] 2 0 48 6 3 5 0 80 80
vorbis_analysis_blockout /src/vorbis/lib/block.c 2 ['N/A', 'N/A'] 7 0 626 58 21 17 0 106 70
vorbis_analysis_headerout /src/vorbis/lib/info.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 344 42 16 13 0 93 57
res0_inverse /src/vorbis/lib/res0.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 4 0 88 13 5 8 0 63 57
vorbis_bitrate_addblock /src/vorbis/lib/bitrate.c 1 ['N/A'] 2 0 891 123 43 5 0 65 45
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_analysis_wrote /src/vorbis/lib/block.c 2 ['N/A', 'int'] 2 0 284 27 10 5 0 44 42
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
63.0%
212 / 335
Cyclomatic complexity statically reachable by fuzzers
75.0%
1935 / 2594

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

Directories in report

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