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

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 ['void*', 'void*', 'SpeexBits*'] 5 0 362 54 108 113 0 517 512
nb_decode /src/speex/libspeex/nb_celp.c 3 ['void*', 'SpeexBits*', 'void*'] 4 0 264 49 79 67 0 186 112
test_pack /src/ogg/src/framing.c 5 ['int*', 'int**', 'int', 'int', 'int'] 5 0 121 22 33 41 1 170 86
split_cb_search_shape_sign /src/speex/libspeex/cb_search.c 13 ['spx_word16_t[]', 'spx_coef_t[]', 'spx_coef_t[]', 'spx_coef_t[]', 'void*', 'int', 'int', 'spx_sig_t*', 'spx_word16_t*', 'SpeexBits*', 'char*', 'int', 'int'] 5 0 164 12 40 32 0 110 78
sb_encode /src/speex/libspeex/sb_celp.c 3 ['void*', 'void*', 'SpeexBits*'] 4 0 257 34 62 70 0 181 69
kf_work /src/speex/libspeex/kiss_fft.c 9 ['kiss_fft_cpx*', 'kiss_fft_cpx*', 'size_t', 'int', 'int*', 'kiss_fft_cfg', 'int', 'int', 'int'] 3 0 57 13 18 27 11 83 67
sb_encoder_ctl /src/speex/libspeex/sb_celp.c 3 ['void*', 'int', 'void*'] 2 0 209 55 64 9 0 68 64
nb_encoder_ctl /src/speex/libspeex/nb_celp.c 3 ['void*', 'int', 'void*'] 3 0 173 51 59 11 0 64 59
cliptest /src/ogg/src/bitwise.c 5 ['unsigned long*', 'int', 'int', 'int*', 'int'] 3 0 33 11 14 17 0 57 57
cliptestB /src/ogg/src/bitwise.c 5 ['unsigned long*', 'int', 'int', 'int*', 'int'] 3 0 33 11 14 21 0 57 54

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

Functions statically reachable by fuzzers
37.0%
221 / 605
Cyclomatic complexity statically reachable by fuzzers
56.9%
1272 / 2232

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 driver synthesis

New fuzzers

The below fuzzers are templates and suggestions for how to target the set of optimal functions above

nb_celp.c

Target file: /src/speex/libspeex/nb_celp.c
Target functions: nb_encode, nb_decode, nb_encoder_ctl
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target nb_encode */
  UNKNOWN_TYPE unknown_0;
  UNKNOWN_TYPE unknown_1;
  UNKNOWN_TYPE unknown_2;
  nb_encode(unknown_0, unknown_1, unknown_2);

  /* target nb_decode */
  UNKNOWN_TYPE unknown_3;
  UNKNOWN_TYPE unknown_4;
  UNKNOWN_TYPE unknown_5;
  nb_decode(unknown_3, unknown_4, unknown_5);

  /* target nb_encoder_ctl */
  UNKNOWN_TYPE unknown_39;
  int new_var40 = ada_safe_get_int();
  UNKNOWN_TYPE unknown_41;
  nb_encoder_ctl(unknown_39, new_var40, unknown_41);

  af_safe_gb_cleanup();
}

framing.c

Target file: /src/ogg/src/framing.c
Target functions: test_pack
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target test_pack */
  int *new_var6 = af_get_int_p();
  UNKNOWN_TYPE unknown_7;
  int new_var8 = ada_safe_get_int();
  int new_var9 = ada_safe_get_int();
  int new_var10 = ada_safe_get_int();
  test_pack(new_var6, unknown_7, new_var8, new_var9, new_var10);

  af_safe_gb_cleanup();
}

cb_search.c

Target file: /src/speex/libspeex/cb_search.c
Target functions: split_cb_search_shape_sign
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target split_cb_search_shape_sign */
  UNKNOWN_TYPE unknown_11;
  UNKNOWN_TYPE unknown_12;
  UNKNOWN_TYPE unknown_13;
  UNKNOWN_TYPE unknown_14;
  UNKNOWN_TYPE unknown_15;
  int new_var16 = ada_safe_get_int();
  int new_var17 = ada_safe_get_int();
  UNKNOWN_TYPE unknown_18;
  UNKNOWN_TYPE unknown_19;
  UNKNOWN_TYPE unknown_20;
  char *new_var21 = ada_safe_get_char_p();
  int new_var22 = ada_safe_get_int();
  int new_var23 = ada_safe_get_int();
  split_cb_search_shape_sign(unknown_11, unknown_12, unknown_13, unknown_14, unknown_15, new_var16, new_var17, unknown_18, unknown_19, unknown_20, new_var21, new_var22, new_var23);

  af_safe_gb_cleanup();
}

sb_celp.c

Target file: /src/speex/libspeex/sb_celp.c
Target functions: sb_encode, sb_encoder_ctl
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target sb_encode */
  UNKNOWN_TYPE unknown_24;
  UNKNOWN_TYPE unknown_25;
  UNKNOWN_TYPE unknown_26;
  sb_encode(unknown_24, unknown_25, unknown_26);

  /* target sb_encoder_ctl */
  UNKNOWN_TYPE unknown_36;
  int new_var37 = ada_safe_get_int();
  UNKNOWN_TYPE unknown_38;
  sb_encoder_ctl(unknown_36, new_var37, unknown_38);

  af_safe_gb_cleanup();
}

kiss_fft.c

Target file: /src/speex/libspeex/kiss_fft.c
Target functions: kf_work
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target kf_work */
  UNKNOWN_TYPE unknown_27;
  UNKNOWN_TYPE unknown_28;
  UNKNOWN_TYPE unknown_29;
  int new_var30 = ada_safe_get_int();
  int *new_var31 = af_get_int_p();
  UNKNOWN_TYPE unknown_32;
  int new_var33 = ada_safe_get_int();
  int new_var34 = ada_safe_get_int();
  int new_var35 = ada_safe_get_int();
  kf_work(unknown_27, unknown_28, unknown_29, new_var30, new_var31, unknown_32, new_var33, new_var34, new_var35);

  af_safe_gb_cleanup();
}

bitwise.c

Target file: /src/ogg/src/bitwise.c
Target functions: cliptest, cliptestB
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target cliptest */
  UNKNOWN_TYPE unknown_42;
  int new_var43 = ada_safe_get_int();
  int new_var44 = ada_safe_get_int();
  int *new_var45 = af_get_int_p();
  int new_var46 = ada_safe_get_int();
  cliptest(unknown_42, new_var43, new_var44, new_var45, new_var46);

  /* target cliptestB */
  UNKNOWN_TYPE unknown_47;
  int new_var48 = ada_safe_get_int();
  int new_var49 = ada_safe_get_int();
  int *new_var50 = af_get_int_p();
  int new_var51 = ada_safe_get_int();
  cliptestB(unknown_47, new_var48, new_var49, new_var50, new_var51);

  af_safe_gb_cleanup();
}

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/ltp.c [] []
/src/speex/src/speexdec.c ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc'] []
/src/speex/libspeex/speex_header.c [] []
/src/speex/contrib/oss-fuzz/speexenc_fuzzer.cc ['speex/contrib/oss-fuzz/speexenc_fuzzer.cc'] []
/src/speex/tmv/lsp_tm.h [] []
/src/ogg/src/bitwise.c [] []
/src/speex/libspeex/filters.h [] []
/src/speex/libspeex/vq_bfin.h [] []
/src/speex/libspeex/filters_sse.h [] []
/src/speex/tmv/filters_tm.h [] []
/src/speex/libspeex/kiss_fft.c [] []
/src/speex/tmv/vq_tm.h [] []
/src/speex/libspeex/cb_search.c [] []
/src/ogg/src/framing.c ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc'] []
/src/speex/src/getopt.c [] []
/src/speex/tmv/profile_tm.h [] []
/src/speex/libspeex/filters_bfin.h [] []
/src/speex/libspeex/cb_search_sse.h [] []
/src/speex/libspeex/bits.c ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc', 'speex/contrib/oss-fuzz/speexenc_fuzzer.cc'] []
/src/speex/tmv/_kiss_fft_guts_tm.h [] []
/src/speex/tmv/speex_config_types.h [] []
/src/speex/src/speexenc.c [] []
/src/speex/libspeex/cb_search_bfin.h [] []
/src/speex/src/wave_out.h [] []
/src/speex/libspeex/kiss_fft.h [] []
/src/speex/libspeex/fixed_bfin.h [] []
/src/speex/libspeex/quant_lsp.c [] []
/src/speex/libspeex/stereo.c ['speex/contrib/oss-fuzz/speexenc_fuzzer.cc'] []
/src/speex/tmv/filterbank_tm.h [] []
/src/speex/libspeex/fixed_generic.h [] []
/src/speex/libspeex/vorbis_psy.h [] []
/src/speex/libspeex/smallft.c [] []
/src/speex/libspeex/ltp_sse.h [] []
/src/speex/libspeex/fftwrap.c [] []
/src/speex/tmv/fixed_tm.h [] []
/src/speex/ti/testenc-TI-C5x.c [] []
/src/speex/libspeex/filters.c [] []
/src/speex/libspeex/misc_bfin.h [] []
/src/speex/libspeex/stack_alloc.h [] []
/src/speex/src/wav_io.h [] []
/src/speex/libspeex/os_support.h ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc', 'speex/contrib/oss-fuzz/speexenc_fuzzer.cc'] []
/src/speex/libspeex/speex.c ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc', 'speex/contrib/oss-fuzz/speexenc_fuzzer.cc'] []
/src/speex/libspeex/lpc.c [] []
/src/speex/src/wave_out.c [] []
/src/speex/tmv/kiss_fftr_tm.h [] []
/src/speex/libspeex/kiss_fftr.c [] []
/src/speex/src/skeleton.c [] []
/src/speex/libspeex/lsp.c [] []
/src/speex/ti/os_support_custom.h [] []
/src/speex/libspeex/fixed_debug.h [] []
/src/speex/src/wav_io.c [] []
/src/speex/libspeex/arch.h [] []
/src/speex/libspeex/math_approx.h [] []
/src/speex/libspeex/vorbis_psy.c [] []
/src/speex/libspeex/_kiss_fft_guts.h [] []
/src/speex/libspeex/sb_celp.c [] []
/src/speex/libspeex/modes.c [] []
/src/speex/tmv/fftwrap_tm.h [] []
/src/speex/speexclient/alsa_device.c [] []
/src/speex/libspeex/vq.c [] []
/src/speex/libspeex/modes_wb.c [] []
/src/speex/speexclient/speex_jitter_buffer.c [] []
/src/speex/libspeex/nb_celp.c [] []
/src/speex/libspeex/ltp_bfin.h [] []
/src/speex/libspeex/speex_callbacks.c [] []
/src/speex/libspeex/ltp.h [] []
/src/speex/libspeex/vbr.c [] []
/src/speex/contrib/oss-fuzz/speexdec_fuzzer.cc ['speex/contrib/oss-fuzz/speexdec_fuzzer.cc'] []

Directories in report

Directory
/src/ogg/src/
/src/speex/speexclient/
/src/speex/src/
/src/speex/tmv/
/src/speex/libspeex/
/src/speex/contrib/oss-fuzz/
/src/speex/ti/