Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/speex-1.2~rc1.2/include/speex/speex.h
Examining data/speex-1.2~rc1.2/include/speex/speex_bits.h
Examining data/speex-1.2~rc1.2/include/speex/speex_buffer.h
Examining data/speex-1.2~rc1.2/include/speex/speex_callbacks.h
Examining data/speex-1.2~rc1.2/include/speex/speex_echo.h
Examining data/speex-1.2~rc1.2/include/speex/speex_header.h
Examining data/speex-1.2~rc1.2/include/speex/speex_jitter.h
Examining data/speex-1.2~rc1.2/include/speex/speex_preprocess.h
Examining data/speex-1.2~rc1.2/include/speex/speex_resampler.h
Examining data/speex-1.2~rc1.2/include/speex/speex_stereo.h
Examining data/speex-1.2~rc1.2/include/speex/speex_types.h
Examining data/speex-1.2~rc1.2/libspeex/_kiss_fft_guts.h
Examining data/speex-1.2~rc1.2/libspeex/arch.h
Examining data/speex-1.2~rc1.2/libspeex/bits.c
Examining data/speex-1.2~rc1.2/libspeex/buffer.c
Examining data/speex-1.2~rc1.2/libspeex/cb_search.c
Examining data/speex-1.2~rc1.2/libspeex/cb_search.h
Examining data/speex-1.2~rc1.2/libspeex/cb_search_arm4.h
Examining data/speex-1.2~rc1.2/libspeex/cb_search_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/cb_search_sse.h
Examining data/speex-1.2~rc1.2/libspeex/exc_10_16_table.c
Examining data/speex-1.2~rc1.2/libspeex/exc_10_32_table.c
Examining data/speex-1.2~rc1.2/libspeex/exc_20_32_table.c
Examining data/speex-1.2~rc1.2/libspeex/exc_5_256_table.c
Examining data/speex-1.2~rc1.2/libspeex/exc_5_64_table.c
Examining data/speex-1.2~rc1.2/libspeex/exc_8_128_table.c
Examining data/speex-1.2~rc1.2/libspeex/fftwrap.c
Examining data/speex-1.2~rc1.2/libspeex/fftwrap.h
Examining data/speex-1.2~rc1.2/libspeex/filterbank.c
Examining data/speex-1.2~rc1.2/libspeex/filterbank.h
Examining data/speex-1.2~rc1.2/libspeex/filters.c
Examining data/speex-1.2~rc1.2/libspeex/filters.h
Examining data/speex-1.2~rc1.2/libspeex/filters_arm4.h
Examining data/speex-1.2~rc1.2/libspeex/filters_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/filters_sse.h
Examining data/speex-1.2~rc1.2/libspeex/fixed_arm4.h
Examining data/speex-1.2~rc1.2/libspeex/fixed_arm5e.h
Examining data/speex-1.2~rc1.2/libspeex/fixed_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/fixed_debug.h
Examining data/speex-1.2~rc1.2/libspeex/fixed_generic.h
Examining data/speex-1.2~rc1.2/libspeex/gain_table.c
Examining data/speex-1.2~rc1.2/libspeex/gain_table_lbr.c
Examining data/speex-1.2~rc1.2/libspeex/hexc_10_32_table.c
Examining data/speex-1.2~rc1.2/libspeex/hexc_table.c
Examining data/speex-1.2~rc1.2/libspeex/high_lsp_tables.c
Examining data/speex-1.2~rc1.2/libspeex/jitter.c
Examining data/speex-1.2~rc1.2/libspeex/kiss_fft.c
Examining data/speex-1.2~rc1.2/libspeex/kiss_fft.h
Examining data/speex-1.2~rc1.2/libspeex/kiss_fftr.c
Examining data/speex-1.2~rc1.2/libspeex/kiss_fftr.h
Examining data/speex-1.2~rc1.2/libspeex/lpc.c
Examining data/speex-1.2~rc1.2/libspeex/lpc.h
Examining data/speex-1.2~rc1.2/libspeex/lpc_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/lsp.c
Examining data/speex-1.2~rc1.2/libspeex/lsp.h
Examining data/speex-1.2~rc1.2/libspeex/lsp_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c
Examining data/speex-1.2~rc1.2/libspeex/ltp.c
Examining data/speex-1.2~rc1.2/libspeex/ltp.h
Examining data/speex-1.2~rc1.2/libspeex/ltp_arm4.h
Examining data/speex-1.2~rc1.2/libspeex/ltp_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/ltp_sse.h
Examining data/speex-1.2~rc1.2/libspeex/math_approx.h
Examining data/speex-1.2~rc1.2/libspeex/mdf.c
Examining data/speex-1.2~rc1.2/libspeex/misc_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/modes.c
Examining data/speex-1.2~rc1.2/libspeex/modes.h
Examining data/speex-1.2~rc1.2/libspeex/modes_wb.c
Examining data/speex-1.2~rc1.2/libspeex/nb_celp.c
Examining data/speex-1.2~rc1.2/libspeex/nb_celp.h
Examining data/speex-1.2~rc1.2/libspeex/os_support.h
Examining data/speex-1.2~rc1.2/libspeex/preprocess.c
Examining data/speex-1.2~rc1.2/libspeex/pseudofloat.h
Examining data/speex-1.2~rc1.2/libspeex/quant_lsp.c
Examining data/speex-1.2~rc1.2/libspeex/quant_lsp.h
Examining data/speex-1.2~rc1.2/libspeex/quant_lsp_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/resample_sse.h
Examining data/speex-1.2~rc1.2/libspeex/sb_celp.c
Examining data/speex-1.2~rc1.2/libspeex/sb_celp.h
Examining data/speex-1.2~rc1.2/libspeex/scal.c
Examining data/speex-1.2~rc1.2/libspeex/smallft.c
Examining data/speex-1.2~rc1.2/libspeex/smallft.h
Examining data/speex-1.2~rc1.2/libspeex/speex.c
Examining data/speex-1.2~rc1.2/libspeex/speex_callbacks.c
Examining data/speex-1.2~rc1.2/libspeex/stack_alloc.h
Examining data/speex-1.2~rc1.2/libspeex/stereo.c
Examining data/speex-1.2~rc1.2/libspeex/testdenoise.c
Examining data/speex-1.2~rc1.2/libspeex/testecho.c
Examining data/speex-1.2~rc1.2/libspeex/testenc.c
Examining data/speex-1.2~rc1.2/libspeex/testenc_uwb.c
Examining data/speex-1.2~rc1.2/libspeex/testenc_wb.c
Examining data/speex-1.2~rc1.2/libspeex/testjitter.c
Examining data/speex-1.2~rc1.2/libspeex/vbr.c
Examining data/speex-1.2~rc1.2/libspeex/vbr.h
Examining data/speex-1.2~rc1.2/libspeex/vorbis_psy.h
Examining data/speex-1.2~rc1.2/libspeex/vq.c
Examining data/speex-1.2~rc1.2/libspeex/vq.h
Examining data/speex-1.2~rc1.2/libspeex/vq_arm4.h
Examining data/speex-1.2~rc1.2/libspeex/vq_bfin.h
Examining data/speex-1.2~rc1.2/libspeex/vq_sse.h
Examining data/speex-1.2~rc1.2/libspeex/window.c
Examining data/speex-1.2~rc1.2/libspeex/resample.c
Examining data/speex-1.2~rc1.2/libspeex/speex_header.c
Examining data/speex-1.2~rc1.2/src/getopt.c
Examining data/speex-1.2~rc1.2/src/getopt1.c
Examining data/speex-1.2~rc1.2/src/getopt_win.h
Examining data/speex-1.2~rc1.2/src/skeleton.c
Examining data/speex-1.2~rc1.2/src/skeleton.h
Examining data/speex-1.2~rc1.2/src/speexdec.c
Examining data/speex-1.2~rc1.2/src/speexenc.c
Examining data/speex-1.2~rc1.2/src/wav_io.c
Examining data/speex-1.2~rc1.2/src/wav_io.h
Examining data/speex-1.2~rc1.2/src/wave_out.c
Examining data/speex-1.2~rc1.2/src/wave_out.h
Examining data/speex-1.2~rc1.2/symbian/config.h
Examining data/speex-1.2~rc1.2/ti/config.h
Examining data/speex-1.2~rc1.2/ti/os_support_custom.h
Examining data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c
Examining data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c
Examining data/speex-1.2~rc1.2/win32/config.h

FINAL RESULTS:

data/speex-1.2~rc1.2/src/skeleton.h:14:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/speex-1.2~rc1.2/src/skeleton.h:14:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/speex-1.2~rc1.2/src/getopt.c:206:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/speex-1.2~rc1.2/src/getopt.c:207:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/speex-1.2~rc1.2/src/getopt.c:399:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/speex-1.2~rc1.2/src/getopt.c:964:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/speex-1.2~rc1.2/src/getopt.c:994:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/speex-1.2~rc1.2/src/getopt1.c:67:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (argc, argv, options, long_options, opt_index)
data/speex-1.2~rc1.2/src/getopt1.c:123:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/speex-1.2~rc1.2/src/getopt_win.h:134:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
data/speex-1.2~rc1.2/src/getopt_win.h:136:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/speex-1.2~rc1.2/src/getopt_win.h:140:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
data/speex-1.2~rc1.2/src/getopt_win.h:153:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/speex-1.2~rc1.2/src/getopt_win.h:155:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/speex-1.2~rc1.2/src/speexdec.c:484:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hvV",
data/speex-1.2~rc1.2/src/speexenc.c:347:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "nwuhvV",
data/speex-1.2~rc1.2/src/speexenc.c:501:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand(time(NULL));
data/speex-1.2~rc1.2/src/wave_out.c:77:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection ( &cs );
data/speex-1.2~rc1.2/src/wave_out.c:90:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection ( &cs );
data/speex-1.2~rc1.2/src/wave_out.c:141:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection ( &cs );
data/speex-1.2~rc1.2/src/wave_out.c:189:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection ( &cs );
data/speex-1.2~rc1.2/include/speex/speex_header.h:60:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char speex_string[SPEEX_HEADER_STRING_LENGTH];   /**< Identifies a Speex bit-stream, always set to "Speex   " */
data/speex-1.2~rc1.2/include/speex/speex_header.h:61:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char speex_version[SPEEX_HEADER_VERSION_LENGTH]; /**< Speex version */ 
data/speex-1.2~rc1.2/libspeex/exc_10_16_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_10_16_table[160] = {
data/speex-1.2~rc1.2/libspeex/exc_10_32_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_10_32_table[320] = {
data/speex-1.2~rc1.2/libspeex/exc_20_32_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_20_32_table[640] = {
data/speex-1.2~rc1.2/libspeex/exc_5_256_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_5_256_table[1280] = {
data/speex-1.2~rc1.2/libspeex/exc_5_64_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_5_64_table[320]={
data/speex-1.2~rc1.2/libspeex/exc_8_128_table.c:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char exc_8_128_table[1024] = {
data/speex-1.2~rc1.2/libspeex/gain_table.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char gain_cdbk_nb[512] = {
data/speex-1.2~rc1.2/libspeex/gain_table_lbr.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char gain_cdbk_lbr[128] = {
data/speex-1.2~rc1.2/libspeex/hexc_10_32_table.c:33:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char hexc_10_32_table[320] = {
data/speex-1.2~rc1.2/libspeex/hexc_table.c:33:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char hexc_table[1024] = {
data/speex-1.2~rc1.2/libspeex/high_lsp_tables.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char high_lsp_cdbk[512]={
data/speex-1.2~rc1.2/libspeex/high_lsp_tables.c:99:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char high_lsp_cdbk2[512]={
data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char cdbk_nb[640]={
data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c:98:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char cdbk_nb_low1[320]={
data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c:164:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char cdbk_nb_low2[320]={
data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c:230:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char cdbk_nb_high1[320]={
data/speex-1.2~rc1.2/libspeex/lsp_tables_nb.c:296:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char cdbk_nb_high2[320]={
data/speex-1.2~rc1.2/libspeex/mdf.c:419:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   rFile = fopen("aec_rec.sw", "wb");
data/speex-1.2~rc1.2/libspeex/mdf.c:420:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   pFile = fopen("aec_play.sw", "wb");
data/speex-1.2~rc1.2/libspeex/mdf.c:421:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   oFile = fopen("aec_out.sw", "wb");
data/speex-1.2~rc1.2/libspeex/os_support.h:95:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SPEEX_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
data/speex-1.2~rc1.2/libspeex/testecho.c:30:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   echo_fd = fopen(argv[2], "rb");
data/speex-1.2~rc1.2/libspeex/testecho.c:31:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   ref_fd  = fopen(argv[1],  "rb");
data/speex-1.2~rc1.2/libspeex/testecho.c:32:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   e_fd    = fopen(argv[3], "wb");
data/speex-1.2~rc1.2/libspeex/testenc.c:23:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[200];
data/speex-1.2~rc1.2/libspeex/testenc.c:73:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/libspeex/testenc.c:75:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/speex-1.2~rc1.2/libspeex/testenc.c:79:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fbits = fopen(bitsFile, "wb");
data/speex-1.2~rc1.2/libspeex/testenc_uwb.c:25:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[200];
data/speex-1.2~rc1.2/libspeex/testenc_uwb.c:72:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/libspeex/testenc_uwb.c:74:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/speex-1.2~rc1.2/libspeex/testenc_uwb.c:78:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fbits = fopen(bitsFile, "wb");
data/speex-1.2~rc1.2/libspeex/testenc_wb.c:24:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[200];
data/speex-1.2~rc1.2/libspeex/testenc_wb.c:76:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/libspeex/testenc_wb.c:78:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/speex-1.2~rc1.2/libspeex/testenc_wb.c:82:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fbits = fopen(bitsFile, "wb");
data/speex-1.2~rc1.2/libspeex/testjitter.c:10:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[4];
data/speex-1.2~rc1.2/libspeex/testjitter.c:26:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[65536];
data/speex-1.2~rc1.2/libspeex/testjitter.c:51:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[65536];
data/speex-1.2~rc1.2/src/skeleton.c:55:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (op.packet, FISHEAD_IDENTIFIER, 8); /* identifier */
data/speex-1.2~rc1.2/src/skeleton.c:83:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (op.packet, FISBONE_IDENTIFIER, 8); /* identifier */
data/speex-1.2~rc1.2/src/skeleton.c:92:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((op.packet+FISBONE_SIZE), fp->message_header_fields, fp->current_header_size);
data/speex-1.2~rc1.2/src/skeleton.c:115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(fp.UTC, op->packet+44, 20);
data/speex-1.2~rc1.2/src/skeleton.c:136:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(fp.message_header_fields, op->packet+FISBONE_SIZE, fp.current_header_size);
data/speex-1.2~rc1.2/src/skeleton.h:38:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char UTC[20];
data/speex-1.2~rc1.2/src/speexdec.c:152:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      audio_fd=open("/dev/dsp", O_WRONLY);
data/speex-1.2~rc1.2/src/speexdec.c:194:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      audio_fd = open("/dev/audio", O_WRONLY);
data/speex-1.2~rc1.2/src/speexdec.c:241:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         fout = fopen(outFile, "wb");
data/speex-1.2~rc1.2/src/speexdec.c:538:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            rate=atoi (optarg);
data/speex-1.2~rc1.2/src/speexdec.c:585:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/src/speexenc.c:86:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char in[MAX_FRAME_BYTES*2];
data/speex-1.2~rc1.2/src/speexenc.c:273:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[MAX_FRAME_BYTES];
data/speex-1.2~rc1.2/src/speexenc.c:325:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char vendor_string[64];
data/speex-1.2~rc1.2/src/speexenc.c:332:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char first_bytes[12];
data/speex-1.2~rc1.2/src/speexenc.c:369:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            vbr_max=atoi(optarg);
data/speex-1.2~rc1.2/src/speexenc.c:377:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            abr_enabled=atoi(optarg);
data/speex-1.2~rc1.2/src/speexenc.c:391:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            quality = atoi (optarg);
data/speex-1.2~rc1.2/src/speexenc.c:395:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            bitrate = atoi (optarg);
data/speex-1.2~rc1.2/src/speexenc.c:398:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            nframes = atoi (optarg);
data/speex-1.2~rc1.2/src/speexenc.c:405:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            complexity = atoi (optarg);
data/speex-1.2~rc1.2/src/speexenc.c:447:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            rate=atoi (optarg);
data/speex-1.2~rc1.2/src/speexenc.c:524:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/src/speexenc.c:642:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fout = fopen(outFile, "wb");
data/speex-1.2~rc1.2/src/speexenc.c:967:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p+4, vendor_string, vendor_length);
data/speex-1.2~rc1.2/src/speexenc.c:988:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if(tag) memcpy(p+*length+4, tag, tag_len);  /* comment */
data/speex-1.2~rc1.2/src/speexenc.c:989:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p+*length+4+tag_len, val, val_len);  /* comment */
data/speex-1.2~rc1.2/src/wav_io.c:45:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[5];
data/speex-1.2~rc1.2/src/wav_io.c:192:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[5];
data/speex-1.2~rc1.2/src/wave_out.c:168:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory ( allocptr, data, len );                         // Here we can call any modification output functions we want....
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char spxHeap[SPEEX_PERSIST_STACK_SIZE];
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:81:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char spxScratch[SPEEX_SCRATCH_STACK_SIZE];
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:134:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[TESTENC_BYTES_PER_FRAME/2 + 2];  /* temp store for encoded data */
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:201:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fbits = fopen(bitsFile, "rb");
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:204:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fbits = fopen(bitsFile, "wb");
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:208:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/ti/testenc-TI-C5x.c:211:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:75:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char spxHeap[SPEEX_PERSIST_STACK_SIZE];
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char spxScratch[SPEEX_SCRATCH_STACK_SIZE];
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:103:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cbits[200];
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:163:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fbits = fopen(bitsFile, "rb");
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:166:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fbits = fopen(bitsFile, "wb");
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:170:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/speex-1.2~rc1.2/ti/testenc-TI-C64x.c:173:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/speex-1.2~rc1.2/libspeex/kiss_fft.h:28:33:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
data/speex-1.2~rc1.2/src/getopt.c:229:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/speex-1.2~rc1.2/src/getopt.c:232:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern int strlen (const char *);
data/speex-1.2~rc1.2/src/getopt.c:430:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/speex-1.2~rc1.2/src/getopt.c:651:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/speex-1.2~rc1.2/src/getopt.c:675:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:707:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:723:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:728:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:839:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/speex-1.2~rc1.2/src/getopt.c:862:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:882:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:896:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/getopt.c:900:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/speex-1.2~rc1.2/src/skeleton.c:29:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int this_message_size = strlen(header_key) + strlen(header_value) + 4;
data/speex-1.2~rc1.2/src/skeleton.c:29:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int this_message_size = strlen(header_key) + strlen(header_value) + 4;
data/speex-1.2~rc1.2/src/speexdec.c:148:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(outFile)==0)
data/speex-1.2~rc1.2/src/speexdec.c:247:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if (strcmp(outFile+strlen(outFile)-4,".wav")==0 || strcmp(outFile+strlen(outFile)-4,".WAV")==0)
data/speex-1.2~rc1.2/src/speexdec.c:247:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if (strcmp(outFile+strlen(outFile)-4,".wav")==0 || strcmp(outFile+strlen(outFile)-4,".WAV")==0)
data/speex-1.2~rc1.2/src/speexdec.c:572:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   wav_format = strlen(outFile)>=4 && (
data/speex-1.2~rc1.2/src/speexdec.c:573:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       strcmp(outFile+strlen(outFile)-4,".wav")==0
data/speex-1.2~rc1.2/src/speexdec.c:574:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       || strcmp(outFile+strlen(outFile)-4,".WAV")==0);
data/speex-1.2~rc1.2/src/speexdec.c:715:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if (strlen(outFile)!=0)
data/speex-1.2~rc1.2/src/speexdec.c:747:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if (strlen(outFile)==0)
data/speex-1.2~rc1.2/src/speexdec.c:798:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(outFile)==0)
data/speex-1.2~rc1.2/src/speexenc.c:958:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int vendor_length=strlen(vendor_string);
data/speex-1.2~rc1.2/src/speexenc.c:977:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int tag_len=(tag?strlen(tag):0);
data/speex-1.2~rc1.2/src/speexenc.c:978:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int val_len=strlen(val);
data/speex-1.2~rc1.2/src/wav_io.c:80:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         fgetc(file);
data/speex-1.2~rc1.2/src/wav_io.c:158:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         fgetc(file);
data/speex-1.2~rc1.2/src/wav_io.c:169:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         fgetc(file);

ANALYSIS SUMMARY:

Hits = 137
Lines analyzed = 33204 in approximately 0.98 seconds (33713 lines/second)
Physical Source Lines of Code (SLOC) = 23100
Hits@level = [0] 335 [1]  31 [2]  85 [3]  19 [4]   2 [5]   0
Hits@level+ = [0+] 472 [1+] 137 [2+] 106 [3+]  21 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 20.4329 [1+] 5.93074 [2+] 4.58874 [3+] 0.909091 [4+] 0.0865801 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.