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: speex_encode_fuzzer_float

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 6 13.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 40 86.9%
All colors 46 100

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
10 10 3 :

['speex_notify', 'speex_realloc', 'speex_warning']

10 10 speex_bits_pack call site: 00021 /src/speex/libspeex/bits.c:233
0 0 None 16 335 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:592
0 0 None 16 335 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:598
0 0 None 16 232 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:755
0 0 None 12 198 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:908
0 0 None 10 10 vbr_analysis call site: 00000 /src/speex/libspeex/vbr.c:238
0 0 None 2 226 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:626
0 0 None 2 226 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:647
0 0 None 2 226 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:653
0 0 None 2 2 vbr_analysis call site: 00000 /src/speex/libspeex/vbr.c:247
0 0 None 0 163 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:838
0 0 None 0 163 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:840

Runtime coverage analysis

Covered functions
77
Functions that are reachable but not covered
6
Reachable functions
23
Percentage of reachable functions covered
73.91%
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
speex/contrib/oss-fuzz/speexenc_fuzzer.cc 1
speex/libspeex/modes_wb.c 1
speex/libspeex/speex.c 4
speex/libspeex/bits.c 7
speex/libspeex/./os_support.h 5
speex/libspeex/stereo.c 1
speex/libspeex/vq.c 1

Fuzzer: speex_encode_fuzzer_fixed

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 6 12.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 41 87.2%
All colors 47 100

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
10 10 3 :

['speex_notify', 'speex_realloc', 'speex_warning']

10 10 speex_bits_pack call site: 00021 /src/speex/libspeex/bits.c:233
0 0 None 16 335 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:592
0 0 None 16 335 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:598
0 0 None 16 232 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:755
0 0 None 12 198 nb_encode call site: 00000 /src/speex/libspeex/nb_celp.c:908
0 0 None 10 10 vbr_analysis call site: 00000 /src/speex/libspeex/vbr.c:238
0 0 None 4 10 open_loop_nbest_pitch call site: 00000 /src/speex/libspeex/ltp.c:237
0 0 None 2 226 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:647
0 0 None 2 226 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:653
0 0 None 2 2 vbr_analysis call site: 00000 /src/speex/libspeex/vbr.c:247
0 0 None 0 163 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:838
0 0 None 0 163 sb_encode call site: 00000 /src/speex/libspeex/sb_celp.c:840

Runtime coverage analysis

Covered functions
76
Functions that are reachable but not covered
5
Reachable functions
23
Percentage of reachable functions covered
78.26%
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
speex/contrib/oss-fuzz/speexenc_fuzzer.cc 1
speex/libspeex/modes_wb.c 1
speex/libspeex/speex.c 4
speex/libspeex/bits.c 7
speex/libspeex/./os_support.h 5
speex/libspeex/stereo.c 1
speex/libspeex/./math_approx.h 1
speex/libspeex/vq.c 1

Fuzzer: speex_decode_fuzzer_fixed

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 13 11.9%
gold [1:9] 5 4.58%
yellow [10:29] 0 0.0%
greenyellow [30:49] 2 1.83%
lawngreen 50+ 89 81.6%
All colors 109 100

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
2 14 2 :

['realloc', 'ogg_stream_clear']

2 14 _os_body_expand call site: 00047 /src/ogg/src/framing.c:185
2 2 1 :

['realloc']

2 6 ogg_sync_buffer call site: 00008 /src/ogg/src/framing.c:609
2 2 1 :

['speex_warning']

2 2 speex_bits_read_from call site: 00096 /src/speex/libspeex/bits.c:119
0 7 1 :

['compute_rms16']

0 36 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1729
0 2 1 :

['bw_lpc']

0 21 sb_decode_lost call site: 00000 /src/speex/libspeex/sb_celp.c:1178
0 0 None 18 251 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1365
0 0 None 18 193 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1359
0 0 None 18 172 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1487
0 0 None 14 148 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1581
0 0 None 4 127 sb_decode call site: 00000 /src/speex/libspeex/sb_celp.c:1246
0 0 None 4 60 sb_decode call site: 00000 /src/speex/libspeex/sb_celp.c:1390
0 0 None 2 8 _os_lacing_expand call site: 00043 /src/ogg/src/framing.c:216

Runtime coverage analysis

Covered functions
89
Functions that are reachable but not covered
5
Reachable functions
57
Percentage of reachable functions covered
91.23%
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
speex/contrib/oss-fuzz/speexdec_fuzzer.cc 3
oggframing.c 27
speex/libspeex/bits.c 5
speex/libspeex/./os_support.h 5
speex/libspeex/speex.c 4
speex/libspeex/speex_header.c 2
speex/libspeex/modes_wb.c 1
speex/libspeex/stereo.c 2
speex/libspeex/./math_approx.h 2

Fuzzer: speex_decode_fuzzer_float

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 13 12.2%
gold [1:9] 5 4.71%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 88 83.0%
All colors 106 100

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
2 14 2 :

['realloc', 'ogg_stream_clear']

2 14 _os_body_expand call site: 00047 /src/ogg/src/framing.c:185
2 2 1 :

['realloc']

2 6 ogg_sync_buffer call site: 00008 /src/ogg/src/framing.c:609
2 2 1 :

['speex_warning']

2 2 speex_bits_read_from call site: 00096 /src/speex/libspeex/bits.c:119
0 7 1 :

['compute_rms16']

0 36 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1729
0 2 1 :

['bw_lpc']

0 21 sb_decode_lost call site: 00000 /src/speex/libspeex/sb_celp.c:1178
0 0 None 18 251 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1365
0 0 None 18 193 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1359
0 0 None 18 172 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1487
0 0 None 14 148 nb_decode call site: 00000 /src/speex/libspeex/nb_celp.c:1581
0 0 None 4 127 sb_decode call site: 00000 /src/speex/libspeex/sb_celp.c:1246
0 0 None 4 60 sb_decode call site: 00000 /src/speex/libspeex/sb_celp.c:1390
0 0 None 2 8 _os_lacing_expand call site: 00043 /src/ogg/src/framing.c:216

Runtime coverage analysis

Covered functions
87
Functions that are reachable but not covered
6
Reachable functions
55
Percentage of reachable functions covered
89.09%
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
speex/contrib/oss-fuzz/speexdec_fuzzer.cc 3
oggframing.c 27
speex/libspeex/bits.c 5
speex/libspeex/./os_support.h 5
speex/libspeex/speex.c 4
speex/libspeex/speex_header.c 2
speex/libspeex/modes_wb.c 1
speex/libspeex/stereo.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
nb_encode /src/speex/libspeex/nb_celp.c 3 ['N/A', 'N/A', 'N/A'] 3 0 2908 340 109 42 0 299 275
nb_decode /src/speex/libspeex/nb_celp.c 3 ['N/A', 'N/A', 'N/A'] 4 0 2346 284 97 27 0 219 165
split_cb_search_shape_sign /src/speex/libspeex/cb_search.c 13 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'int', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'int'] 4 0 1239 133 37 18 0 124 89
sb_encode /src/speex/libspeex/sb_celp.c 3 ['N/A', 'N/A', 'N/A'] 3 0 2222 205 63 34 0 182 72
sb_decode /src/speex/libspeex/sb_celp.c 3 ['N/A', 'N/A', 'N/A'] 3 0 1143 93 30 21 0 102 50
pitch_search_3tap /src/speex/libspeex/ltp.c 20 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'int', 'float', 'int', 'int', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'int', 'int', 'N/A'] 3 0 421 31 11 18 0 101 43

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

Functions statically reachable by fuzzers
60.0%
119 / 199
Cyclomatic complexity statically reachable by fuzzers
71.0%
944 / 1329

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.

speex/contrib/oss-fuzz/speexenc_fuzzer.cc

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=['speex_encode_stereo_int', 'LLVMFuzzerTestOneInput']

speex/contrib/oss-fuzz/speexenc_fuzzer.cc

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=['speex_encode_stereo_int', 'LLVMFuzzerTestOneInput']

speex/contrib/oss-fuzz/speexdec_fuzzer.cc

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=['ogg_sync_buffer', 'ogg_stream_pagein', 'speex_realloc', 'LLVMFuzzerTestOneInput', '_os_lacing_expand', 'process_header(ogg_packet*, int, int*, int*, int*, int*, int*, SpeexStereoState*, int*)']

speex/contrib/oss-fuzz/speexdec_fuzzer.cc

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=['ogg_sync_buffer', 'ogg_stream_pagein', 'speex_realloc', 'LLVMFuzzerTestOneInput', '_os_lacing_expand', 'process_header(ogg_packet*, int, int*, int*, int*, int*, int*, SpeexStereoState*, int*)']

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/speex/libspeex/bits.c ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/speex.c ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/./ltp_sse.h [] []
/src/speex/libspeex/speex_header.c ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/lsp.c [] []
/src/speex/contrib/oss-fuzz/speexdec_fuzzer.cc ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/vq.c ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed']
/src/speex/libspeex/./filters_sse.h [] []
/src/speex/libspeex/lpc.c [] []
/src/speex/libspeex/modes_wb.c ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/modes.c [] []
/src/speex/libspeex/sb_celp.c [] []
/src/speex/libspeex/filters.c [] []
/src/speex/contrib/oss-fuzz/speexenc_fuzzer.cc ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed']
/src/speex/libspeex/stereo.c ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/vbr.c [] []
/src/speex/libspeex/ltp.c [] []
/src/speex/libspeex/quant_lsp.c [] []
/src/speex/libspeex/cb_search.c [] []
/src/speex/libspeex/./vq_sse.h [] []
/src/speex/libspeex/./math_approx.h ['speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed'] []
/src/speex/libspeex/speex_callbacks.c [] []
/src/ogg/src/framing.c ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] ['speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float']
/src/speex/libspeex/./os_support.h ['speex_encode_fuzzer_float', 'speex_encode_fuzzer_fixed', 'speex_decode_fuzzer_fixed', 'speex_decode_fuzzer_float'] []
/src/speex/libspeex/nb_celp.c [] []
/src/speex/libspeex/./cb_search_sse.h [] []

Directories in report

Directory
/src/speex/libspeex/./
/src/speex/libspeex/
/src/speex/contrib/oss-fuzz/
/src/ogg/src/