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/libsndfile-1.0.28/CMake/compiler_is_gcc.c
Examining data/libsndfile-1.0.28/CMake/have_decl_s_irgrp.c
Examining data/libsndfile-1.0.28/examples/make_sine.c
Examining data/libsndfile-1.0.28/examples/list_formats.c
Examining data/libsndfile-1.0.28/examples/sndfile-to-text.c
Examining data/libsndfile-1.0.28/examples/sndfilehandle.cc
Examining data/libsndfile-1.0.28/examples/sfprocess.c
Examining data/libsndfile-1.0.28/examples/generate.c
Examining data/libsndfile-1.0.28/examples/sndfile-loopify.c
Examining data/libsndfile-1.0.28/Octave/sndfile.cc
Examining data/libsndfile-1.0.28/src/test_log_printf.c
Examining data/libsndfile-1.0.28/src/dwd.c
Examining data/libsndfile-1.0.28/src/nist.c
Examining data/libsndfile-1.0.28/src/sfconfig.h
Examining data/libsndfile-1.0.28/src/float32.c
Examining data/libsndfile-1.0.28/src/dither.c
Examining data/libsndfile-1.0.28/src/sf_unistd.h
Examining data/libsndfile-1.0.28/src/w64.c
Examining data/libsndfile-1.0.28/src/audio_detect.c
Examining data/libsndfile-1.0.28/src/id3.c
Examining data/libsndfile-1.0.28/src/test_conversions.c
Examining data/libsndfile-1.0.28/src/interleave.c
Examining data/libsndfile-1.0.28/src/ima_oki_adpcm.h
Examining data/libsndfile-1.0.28/src/ima_oki_adpcm.c
Examining data/libsndfile-1.0.28/src/test_strncpy_crlf.c
Examining data/libsndfile-1.0.28/src/xi.c
Examining data/libsndfile-1.0.28/src/raw.c
Examining data/libsndfile-1.0.28/src/ogg_pcm.c
Examining data/libsndfile-1.0.28/src/sfendian.h
Examining data/libsndfile-1.0.28/src/ogg_opus.c
Examining data/libsndfile-1.0.28/src/G72x/g723_16.c
Examining data/libsndfile-1.0.28/src/G72x/g723_40.c
Examining data/libsndfile-1.0.28/src/G72x/g72x_test.c
Examining data/libsndfile-1.0.28/src/G72x/g721.c
Examining data/libsndfile-1.0.28/src/G72x/g723_24.c
Examining data/libsndfile-1.0.28/src/G72x/g72x_priv.h
Examining data/libsndfile-1.0.28/src/G72x/g72x.c
Examining data/libsndfile-1.0.28/src/G72x/g72x.h
Examining data/libsndfile-1.0.28/src/sds.c
Examining data/libsndfile-1.0.28/src/GSM610/code.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm_decode.c
Examining data/libsndfile-1.0.28/src/GSM610/short_term.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm_option.c
Examining data/libsndfile-1.0.28/src/GSM610/long_term.c
Examining data/libsndfile-1.0.28/src/GSM610/table.c
Examining data/libsndfile-1.0.28/src/GSM610/add.c
Examining data/libsndfile-1.0.28/src/GSM610/rpe.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm_destroy.c
Examining data/libsndfile-1.0.28/src/GSM610/preprocess.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm610_priv.h
Examining data/libsndfile-1.0.28/src/GSM610/gsm_create.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm_encode.c
Examining data/libsndfile-1.0.28/src/GSM610/lpc.c
Examining data/libsndfile-1.0.28/src/GSM610/config.h
Examining data/libsndfile-1.0.28/src/GSM610/decode.c
Examining data/libsndfile-1.0.28/src/GSM610/gsm.h
Examining data/libsndfile-1.0.28/src/chanmap.c
Examining data/libsndfile-1.0.28/src/chanmap.h
Examining data/libsndfile-1.0.28/src/test_ima_oki_adpcm.c
Examining data/libsndfile-1.0.28/src/txw.c
Examining data/libsndfile-1.0.28/src/gsm610.c
Examining data/libsndfile-1.0.28/src/ogg.h
Examining data/libsndfile-1.0.28/src/dwvw.c
Examining data/libsndfile-1.0.28/src/caf.c
Examining data/libsndfile-1.0.28/src/test_broadcast_var.c
Examining data/libsndfile-1.0.28/src/pvf.c
Examining data/libsndfile-1.0.28/src/cart.c
Examining data/libsndfile-1.0.28/src/paf.c
Examining data/libsndfile-1.0.28/src/mat4.c
Examining data/libsndfile-1.0.28/src/test_main.h
Examining data/libsndfile-1.0.28/src/ogg_speex.c
Examining data/libsndfile-1.0.28/src/broadcast.c
Examining data/libsndfile-1.0.28/src/htk.c
Examining data/libsndfile-1.0.28/src/test_audio_detect.c
Examining data/libsndfile-1.0.28/src/ircam.c
Examining data/libsndfile-1.0.28/src/ogg_vorbis.c
Examining data/libsndfile-1.0.28/src/test_cart_var.c
Examining data/libsndfile-1.0.28/src/wavlike.h
Examining data/libsndfile-1.0.28/src/avr.c
Examining data/libsndfile-1.0.28/src/windows.c
Examining data/libsndfile-1.0.28/src/ALAC/ALACAudioTypes.h
Examining data/libsndfile-1.0.28/src/ALAC/dplib.h
Examining data/libsndfile-1.0.28/src/ALAC/ALACBitUtilities.c
Examining data/libsndfile-1.0.28/src/ALAC/ag_dec.c
Examining data/libsndfile-1.0.28/src/ALAC/ag_enc.c
Examining data/libsndfile-1.0.28/src/ALAC/aglib.h
Examining data/libsndfile-1.0.28/src/ALAC/dp_enc.c
Examining data/libsndfile-1.0.28/src/ALAC/alac_codec.h
Examining data/libsndfile-1.0.28/src/ALAC/alac_decoder.c
Examining data/libsndfile-1.0.28/src/ALAC/alac_encoder.c
Examining data/libsndfile-1.0.28/src/ALAC/ALACBitUtilities.h
Examining data/libsndfile-1.0.28/src/ALAC/shift.h
Examining data/libsndfile-1.0.28/src/ALAC/EndianPortable.h
Examining data/libsndfile-1.0.28/src/ALAC/matrixlib.h
Examining data/libsndfile-1.0.28/src/ALAC/matrix_enc.c
Examining data/libsndfile-1.0.28/src/ALAC/dp_dec.c
Examining data/libsndfile-1.0.28/src/ALAC/matrix_dec.c
Examining data/libsndfile-1.0.28/src/wve.c
Examining data/libsndfile-1.0.28/src/test_main.c
Examining data/libsndfile-1.0.28/src/mat5.c
Examining data/libsndfile-1.0.28/src/ms_adpcm.c
Examining data/libsndfile-1.0.28/src/ima_adpcm.c
Examining data/libsndfile-1.0.28/src/g72x.c
Examining data/libsndfile-1.0.28/src/file_io.c
Examining data/libsndfile-1.0.28/src/strings.c
Examining data/libsndfile-1.0.28/src/macos.c
Examining data/libsndfile-1.0.28/src/chunk.c
Examining data/libsndfile-1.0.28/src/mpc2k.c
Examining data/libsndfile-1.0.28/src/au.c
Examining data/libsndfile-1.0.28/src/test_float.c
Examining data/libsndfile-1.0.28/src/test_binheader_writef.c
Examining data/libsndfile-1.0.28/src/pcm.c
Examining data/libsndfile-1.0.28/src/alac.c
Examining data/libsndfile-1.0.28/src/test_file_io.c
Examining data/libsndfile-1.0.28/src/rx2.c
Examining data/libsndfile-1.0.28/src/voc.c
Examining data/libsndfile-1.0.28/src/vox_adpcm.c
Examining data/libsndfile-1.0.28/src/command.c
Examining data/libsndfile-1.0.28/src/test_endswap.c
Examining data/libsndfile-1.0.28/src/svx.c
Examining data/libsndfile-1.0.28/src/sd2.c
Examining data/libsndfile-1.0.28/src/common.h
Examining data/libsndfile-1.0.28/src/sndfile.c
Examining data/libsndfile-1.0.28/src/flac.c
Examining data/libsndfile-1.0.28/src/aiff.c
Examining data/libsndfile-1.0.28/src/common.c
Examining data/libsndfile-1.0.28/src/rf64.c
Examining data/libsndfile-1.0.28/src/ogg.c
Examining data/libsndfile-1.0.28/src/wavlike.c
Examining data/libsndfile-1.0.28/src/alaw.c
Examining data/libsndfile-1.0.28/src/ulaw.c
Examining data/libsndfile-1.0.28/src/double64.c
Examining data/libsndfile-1.0.28/src/wav.c
Examining data/libsndfile-1.0.28/regtest/checksum.c
Examining data/libsndfile-1.0.28/regtest/database.c
Examining data/libsndfile-1.0.28/regtest/regtest.h
Examining data/libsndfile-1.0.28/regtest/sndfile-regtest.c
Examining data/libsndfile-1.0.28/tests/ulaw_test.c
Examining data/libsndfile-1.0.28/tests/scale_clip_test.c
Examining data/libsndfile-1.0.28/tests/chunk_test.c
Examining data/libsndfile-1.0.28/tests/dft_cmp.c
Examining data/libsndfile-1.0.28/tests/external_libs_test.c
Examining data/libsndfile-1.0.28/tests/utils.c
Examining data/libsndfile-1.0.28/tests/benchmark.c
Examining data/libsndfile-1.0.28/tests/format_check_test.c
Examining data/libsndfile-1.0.28/tests/misc_test.c
Examining data/libsndfile-1.0.28/tests/peak_chunk_test.c
Examining data/libsndfile-1.0.28/tests/lossy_comp_test.c
Examining data/libsndfile-1.0.28/tests/virtual_io_test.c
Examining data/libsndfile-1.0.28/tests/dwvw_test.c
Examining data/libsndfile-1.0.28/tests/multi_file_test.c
Examining data/libsndfile-1.0.28/tests/pcm_test.c
Examining data/libsndfile-1.0.28/tests/string_test.c
Examining data/libsndfile-1.0.28/tests/aiff_rw_test.c
Examining data/libsndfile-1.0.28/tests/stdin_test.c
Examining data/libsndfile-1.0.28/tests/long_read_write_test.c
Examining data/libsndfile-1.0.28/tests/sfversion.c
Examining data/libsndfile-1.0.28/tests/headerless_test.c
Examining data/libsndfile-1.0.28/tests/rdwr_test.c
Examining data/libsndfile-1.0.28/tests/command_test.c
Examining data/libsndfile-1.0.28/tests/generate.c
Examining data/libsndfile-1.0.28/tests/checksum_test.c
Examining data/libsndfile-1.0.28/tests/channel_test.c
Examining data/libsndfile-1.0.28/tests/cpp_test.cc
Examining data/libsndfile-1.0.28/tests/stdout_test.c
Examining data/libsndfile-1.0.28/tests/largefile_test.c
Examining data/libsndfile-1.0.28/tests/raw_test.c
Examining data/libsndfile-1.0.28/tests/pipe_test.c
Examining data/libsndfile-1.0.28/tests/win32_ordinal_test.c
Examining data/libsndfile-1.0.28/tests/ogg_test.c
Examining data/libsndfile-1.0.28/tests/dither_test.c
Examining data/libsndfile-1.0.28/tests/error_test.c
Examining data/libsndfile-1.0.28/tests/write_read_test.c
Examining data/libsndfile-1.0.28/tests/fix_this.c
Examining data/libsndfile-1.0.28/tests/win32_test.c
Examining data/libsndfile-1.0.28/tests/generate.h
Examining data/libsndfile-1.0.28/tests/alaw_test.c
Examining data/libsndfile-1.0.28/tests/floating_point_test.c
Examining data/libsndfile-1.0.28/tests/dft_cmp.h
Examining data/libsndfile-1.0.28/tests/utils.h
Examining data/libsndfile-1.0.28/tests/stdio_test.c
Examining data/libsndfile-1.0.28/tests/header_test.c
Examining data/libsndfile-1.0.28/tests/compression_size_test.c
Examining data/libsndfile-1.0.28/tests/locale_test.c
Examining data/libsndfile-1.0.28/programs/sndfile-salvage.c
Examining data/libsndfile-1.0.28/programs/sndfile-play.c
Examining data/libsndfile-1.0.28/programs/sndfile-metadata-set.c
Examining data/libsndfile-1.0.28/programs/sndfile-concat.c
Examining data/libsndfile-1.0.28/programs/sndfile-cmp.c
Examining data/libsndfile-1.0.28/programs/sndfile-info.c
Examining data/libsndfile-1.0.28/programs/sndfile-metadata-get.c
Examining data/libsndfile-1.0.28/programs/sndfile-interleave.c
Examining data/libsndfile-1.0.28/programs/common.h
Examining data/libsndfile-1.0.28/programs/sndfile-play-beos.cpp
Examining data/libsndfile-1.0.28/programs/common.c
Examining data/libsndfile-1.0.28/programs/sndfile-convert.c
Examining data/libsndfile-1.0.28/programs/sndfile-deinterleave.c
Examining data/libsndfile-1.0.28/Win32/testprog.c

FINAL RESULTS:

data/libsndfile-1.0.28/tests/misc_test.c:335:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	{	chmod (filename, S_IWUSR) ;
data/libsndfile-1.0.28/tests/misc_test.c:347:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod (filename, S_IRUSR | S_IRGRP))
data/libsndfile-1.0.28/tests/misc_test.c:371:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod (filename, S_IWUSR | S_IWGRP))
data/libsndfile-1.0.28/programs/sndfile-play.c:840:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access ("/proc/asound/cards", R_OK) == 0)
data/libsndfile-1.0.28/src/ALAC/alac_encoder.c:28:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DebugMsg			printf
data/libsndfile-1.0.28/src/common.c:387:2:  [4] (format) vsnprintf:
  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.
	vsnprintf (start, maxlen, format, argptr) ;
data/libsndfile-1.0.28/src/common.c:1179:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		{	printf (m == 8 ? " %02X " : "%02X ", data [k + m] & 0xFF) ;
data/libsndfile-1.0.28/src/common.c:1415:3:  [4] (format) vsnprintf:
  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.
		vsnprintf (dest + len, maxlen - len, fmt, ap) ;
data/libsndfile-1.0.28/src/common.c:1731:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (tmpdir && access (tmpdir, R_OK | W_OK | X_OK) == 0)
data/libsndfile-1.0.28/src/test_conversions.c:38:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	{	printf (str, line, ival, tval) ; \
data/libsndfile-1.0.28/src/test_endswap.c:51:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (FMT_SHORT, data [k]) ;
data/libsndfile-1.0.28/src/test_endswap.c:111:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (FMT_INT, data [k]) ;
data/libsndfile-1.0.28/src/test_endswap.c:171:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (FMT_INT64, data [k]) ;
data/libsndfile-1.0.28/src/test_log_printf.c:33:3:  [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.
		snprintf (buffer, sizeof (buffer), (fmt)) ;	\
data/libsndfile-1.0.28/src/test_log_printf.c:40:3:  [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.
		snprintf (buffer, sizeof (buffer), (fmt), (a), (a)) ;	\
data/libsndfile-1.0.28/src/test_log_printf.c:47:3:  [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.
		snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a)) ;	\
data/libsndfile-1.0.28/src/test_log_printf.c:54:3:  [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.
		snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a), (a)) ;	\
data/libsndfile-1.0.28/src/test_log_printf.c:61:3:  [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.
		snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a), (a), (a)) ;	\
data/libsndfile-1.0.28/tests/misc_test.c:334:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (filename, F_OK) == 0)
data/libsndfile-1.0.28/tests/pipe_test.c:143:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((retval = system (buffer)) != 0)
data/libsndfile-1.0.28/tests/pipe_test.c:164:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((retval = system (buffer)))
data/libsndfile-1.0.28/tests/pipe_test.c:494:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			if ((retval = system (buffer)) == 0)
data/libsndfile-1.0.28/tests/stdio_test.c:96:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((retval = system (buffer)))
data/libsndfile-1.0.28/tests/stdio_test.c:109:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((retval = system (buffer)))
data/libsndfile-1.0.28/tests/stdio_test.c:116:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((retval = system (buffer)))
data/libsndfile-1.0.28/tests/utils.c:167:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	{	printf (__FILE__ ": bad test of filename parameter.\n") ;
data/libsndfile-1.0.28/tests/utils.h:64:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ ((format (printf, 2, 3))) ;
data/libsndfile-1.0.28/tests/utils.h:73:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf (format, argptr) ;
data/libsndfile-1.0.28/tests/win32_ordinal_test.c:116:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf (buffer, "%s @%d", func_name, &ordinal) != 2)
data/libsndfile-1.0.28/tests/win32_test.c:144:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	assert (system (data) >= 0) ;
data/libsndfile-1.0.28/tests/win32_test.c:205:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	assert (system (data) >= 0) ;
data/libsndfile-1.0.28/programs/sndfile-play.c:527:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection (&audio_data->mutex) ;
data/libsndfile-1.0.28/programs/sndfile-play.c:559:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	{	EnterCriticalSection (&audio_data->mutex) ;
data/libsndfile-1.0.28/programs/sndfile-play.c:589:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection (&audio_data.mutex) ;
data/libsndfile-1.0.28/src/common.c:1725:12:  [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.
		tmpdir = getenv ("TEMP") ;
data/libsndfile-1.0.28/src/common.c:1727:13:  [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.
	{	tmpdir = getenv ("TMPDIR") ;
data/libsndfile-1.0.28/src/test_file_io.c:421:2:  [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 (seed * 3333333 + 14756123) ;
data/libsndfile-1.0.28/tests/dwvw_test.c:62:2:  [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 (123456) ;
data/libsndfile-1.0.28/tests/win32_ordinal_test.c:103:25:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		if ((hmod = (HMODULE) LoadLibrary (buffer)) != NULL)
data/libsndfile-1.0.28/Octave/sndfile.cc:38:3:  [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 [256] ;
data/libsndfile-1.0.28/Octave/sndfile.cc:398:2:  [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 [64] ;
data/libsndfile-1.0.28/Win32/testprog.c:11:10:  [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 strbuffer [256] ;
data/libsndfile-1.0.28/examples/sndfile-to-text.c:141: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).
	if ((outfile = fopen (outfilename, "w")) == NULL)
data/libsndfile-1.0.28/programs/common.c:166:4:  [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 (binfo.coding_history + slen, info->coding_history, sizeof (binfo.coding_history) - slen) ;
data/libsndfile-1.0.28/programs/common.c:172:4:  [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 (binfo.coding_history, info->coding_history, slen) ;
data/libsndfile-1.0.28/programs/common.c:214:35:  [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.
sfe_apply_metadata_changes (const char * filenames [2], const METADATA_INFO * info)
data/libsndfile-1.0.28/programs/common.c:325:3:  [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 [16], *cptr ;
data/libsndfile-1.0.28/programs/common.h:63:40:  [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.
void sfe_apply_metadata_changes (const char * filenames [2], const METADATA_INFO * info) ;
data/libsndfile-1.0.28/programs/sndfile-cmp.c:53:3:  [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 [128] ;
data/libsndfile-1.0.28/programs/sndfile-convert.c:238:27:  [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).
			override_sample_rate = atoi (ptr) ;
data/libsndfile-1.0.28/programs/sndfile-deinterleave.c:70:2:  [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 pathname [512], ext [32], *cptr ;
data/libsndfile-1.0.28/programs/sndfile-deinterleave.c:114: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 filename [520] ;
data/libsndfile-1.0.28/programs/sndfile-info.c:183:10:  [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 str [128] ;
data/libsndfile-1.0.28/programs/sndfile-info.c:219:10:  [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	strbuffer [BUFFER_LEN] ;
data/libsndfile-1.0.28/programs/sndfile-metadata-set.c:59: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.
	const char * filenames [2] = { NULL, NULL } ;
data/libsndfile-1.0.28/programs/sndfile-metadata-set.c:60:2:  [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 date [128], time [128] ;
data/libsndfile-1.0.28/programs/sndfile-metadata-set.c:277:4:  [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 (timedata, tmptr, sizeof (struct tm)) ;
data/libsndfile-1.0.28/programs/sndfile-play.c:427:12:  [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).
	if ((fd = open ("/dev/dsp", O_WRONLY, 0)) == -1 &&
data/libsndfile-1.0.28/programs/sndfile-play.c:428:9:  [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).
		(fd = open ("/dev/sound/dsp", O_WRONLY, 0)) == -1)
data/libsndfile-1.0.28/programs/sndfile-play.c:756:19:  [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).
		if ((audio_fd = open ("/dev/audio", O_WRONLY | O_NONBLOCK)) < 0)
data/libsndfile-1.0.28/programs/sndfile-salvage.c:97:12:  [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).
	if ((fd = open (broken_wav, O_RDONLY)) < 0)
data/libsndfile-1.0.28/programs/sndfile-salvage.c:208:3:  [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 [8192], *cptr ;
data/libsndfile-1.0.28/regtest/database.c:43:2:  [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 filename [256] ;
data/libsndfile-1.0.28/regtest/database.c:44:2:  [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 pathname [512] ;
data/libsndfile-1.0.28/regtest/database.c:47:2:  [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 cmdbuf [1 << 15] ;
data/libsndfile-1.0.28/regtest/database.c:50:2:  [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 logbuf [1 << 14] ;
data/libsndfile-1.0.28/regtest/sndfile-regtest.c:104:3:  [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 version [64] ;
data/libsndfile-1.0.28/src/ALAC/alac_encoder.c:1155: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 (theCookiePointer, &theConfig, sizeof (ALACSpecificConfig)) ;
data/libsndfile-1.0.28/src/ALAC/alac_encoder.c:1160:4:  [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 (theCookiePointer, theChannelAtom, kChannelAtomSize) ;
data/libsndfile-1.0.28/src/ALAC/alac_encoder.c:1162:4:  [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 (theCookiePointer, &theChannelLayout, sizeof (ALACAudioChannelLayout)) ;
data/libsndfile-1.0.28/src/ALAC/dp_dec.c:69:4:  [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 (&out [1], &pc1 [1], (num - 1) * sizeof (int32_t)) ;
data/libsndfile-1.0.28/src/ALAC/dp_enc.c:91:4:  [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 (&pc1 [1], &in [1], (num - 1) * sizeof (int32_t)) ;
data/libsndfile-1.0.28/src/G72x/g72x_test.c:190:16:  [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).
	if (! (file = fopen ("error.dat", "w")))
data/libsndfile-1.0.28/src/GSM610/add.c:99:17:  [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 unsigned char const bitoff [256] = {
data/libsndfile-1.0.28/src/GSM610/code.c:84:2:  [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 ((char *) State->dp0, (char *) (State->dp0 + 160),
data/libsndfile-1.0.28/src/aiff.c:132:2:  [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			zero_bytes [2] ;
data/libsndfile-1.0.28/src/aiff.c:1915: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 (psf->channel_map, map_info->channel_map, chanmap_size) ;
data/libsndfile-1.0.28/src/alac.c:61:2:  [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 enctmpname [512] ;
data/libsndfile-1.0.28/src/alac.c:975:10:  [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 errstr [128] ;
data/libsndfile-1.0.28/src/alaw.c:119:10:  [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 alaw_encode [2048 + 1] =
data/libsndfile-1.0.28/src/avr.c:44:2:  [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	name [8] ;	/* null-padded sample name */
data/libsndfile-1.0.28/src/avr.c:62:2:  [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	ext [20] ;	/* Additional filename space, used if (name[7] != 0) */
data/libsndfile-1.0.28/src/avr.c:63:2:  [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	user [64] ; /* User defined. Typically ASCII message */
data/libsndfile-1.0.28/src/broadcast.c:69:2:  [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 (psf->broadcast_16k, info, offsetof (SF_BROADCAST_INFO, coding_history)) ;
data/libsndfile-1.0.28/src/broadcast.c:78: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 added_history [256] ;
data/libsndfile-1.0.28/src/broadcast.c:105:2:  [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 (data, psf->broadcast_16k, size) ;
data/libsndfile-1.0.28/src/broadcast.c:115:3:  [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 chnstr [16] ;
data/libsndfile-1.0.28/src/caf.c:820: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 (psf->channel_map, map_info->channel_map, chanmap_size) ;
data/libsndfile-1.0.28/src/caf.c:908:2:  [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 s [16 * 1024] ;
data/libsndfile-1.0.28/src/cart.c:70:2:  [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 (psf->cart_16k, info, offsetof (SF_CART_INFO, tag_text)) ;
data/libsndfile-1.0.28/src/cart.c:96:2:  [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 (data, psf->cart_16k, size) ;
data/libsndfile-1.0.28/src/chunk.c:66: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 str [5] ;
data/libsndfile-1.0.28/src/chunk.c:77: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 (psf->iterator->id, marker_str, marker_len) ;
data/libsndfile-1.0.28/src/chunk.c:149:2:  [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 (rchunk.id, &marker, rchunk.id_size) ;
data/libsndfile-1.0.28/src/chunk.c:160:3:  [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 str [5] ;
data/libsndfile-1.0.28/src/chunk.c:197:3:  [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 str [5] ;
data/libsndfile-1.0.28/src/chunk.c:212:2:  [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 (rchunk.id, marker_str, rchunk.id_size) ;
data/libsndfile-1.0.28/src/chunk.c:221:3:  [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 str [5] ;
data/libsndfile-1.0.28/src/command.c:109:2:  [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 (data, &(simple_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ;
data/libsndfile-1.0.28/src/command.c:165:2:  [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 (data, &(major_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ;
data/libsndfile-1.0.28/src/command.c:229:2:  [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 (data, &(subtype_formats [indx]), sizeof (SF_FORMAT_INFO)) ;
data/libsndfile-1.0.28/src/command.c:246:6:  [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 (data, &(major_formats [k]), sizeof (SF_FORMAT_INFO)) ;
data/libsndfile-1.0.28/src/command.c:256:6:  [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 (data, &(subtype_formats [k]), sizeof (SF_FORMAT_INFO)) ;
data/libsndfile-1.0.28/src/common.c:102:2:  [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		c, *strptr, istr [5], lead_char, sign_char ;
data/libsndfile-1.0.28/src/common.c:687:6:  [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 (&(psf->header.ptr [psf->header.indx]), strptr, size) ;
data/libsndfile-1.0.28/src/common.c:706:6:  [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 (&(psf->header.ptr [psf->header.indx]), strptr, size + 1) ;
data/libsndfile-1.0.28/src/common.c:725:6:  [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 (&(psf->header.ptr [psf->header.indx]), strptr, size) ;
data/libsndfile-1.0.28/src/common.c:737:6:  [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 (&(psf->header.ptr [psf->header.indx]), bindata, size) ;
data/libsndfile-1.0.28/src/common.c:758:6:  [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 (&(psf->header.ptr [psf->header.indx]), bindata, 16) ;
data/libsndfile-1.0.28/src/common.c:856:2:  [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 (ptr, psf->header.ptr + psf->header.indx, bytes) ;
data/libsndfile-1.0.28/src/common.c:947:11:  [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	*ucptr, sixteen_bytes [16] ;
data/libsndfile-1.0.28/src/common.c:1165:2:  [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	ascii [17] ;
data/libsndfile-1.0.28/src/common.c:1256:2:  [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 (pnew, pcues, SF_CUES_VAR_SIZE (pcues->cue_count)) ;
data/libsndfile-1.0.28/src/common.c:1267: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 (data, psf->cues, SF_CUES_VAR_SIZE (cue_count)) ;
data/libsndfile-1.0.28/src/common.c:1733: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).
		if ((file = fopen (fname, "wb+")) != NULL)
data/libsndfile-1.0.28/src/common.c:1738: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).
	if ((file = fopen (fname, "wb+")) != NULL)
data/libsndfile-1.0.28/src/common.h:246:2:  [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		id [64] ;
data/libsndfile-1.0.28/src/common.h:274:2:  [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		id [64] ;
data/libsndfile-1.0.28/src/common.h:303:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy (mem, src, n) ;
data/libsndfile-1.0.28/src/common.h:324: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		c [SF_FILENAME_LEN] ;
data/libsndfile-1.0.28/src/common.h:329: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		c [SF_FILENAME_LEN] ;
data/libsndfile-1.0.28/src/common.h:334: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		c [SF_FILENAME_LEN / 4] ;
data/libsndfile-1.0.28/src/common.h:367:2:  [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			cbuf	[SF_BUFFER_LEN / sizeof (char)] ;
data/libsndfile-1.0.28/src/common.h:368:9:  [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.
	signed char		scbuf	[SF_BUFFER_LEN / sizeof (signed char)] ;
data/libsndfile-1.0.28/src/common.h:369:11:  [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	ucbuf	[SF_BUFFER_LEN / sizeof (signed char)] ;
data/libsndfile-1.0.28/src/common.h:380:3:  [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 c [16] ;
data/libsndfile-1.0.28/src/common.h:385:2:  [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			syserr		[SF_SYSERR_LEN] ;
data/libsndfile-1.0.28/src/common.h:391: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			buf	[SF_PARSELOG_LEN] ;
data/libsndfile-1.0.28/src/double64.c:461: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	c [8] ;
data/libsndfile-1.0.28/src/double64.c:879: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 (ptr + total, ubuf.dbuf, bufferlen * sizeof (double)) ;
data/libsndfile-1.0.28/src/double64.c:909: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 (ptr + total, ubuf.dbuf, readcount * sizeof (double)) ;
data/libsndfile-1.0.28/src/double64.c:1030: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 (ubuf.dbuf, ptr + total, bufferlen * sizeof (double)) ;
data/libsndfile-1.0.28/src/dwvw.c:46: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	buffer [256] ;
data/libsndfile-1.0.28/src/file_io.c:575:8:  [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).
		fd = open (pfile->path.c, oflag) ;
data/libsndfile-1.0.28/src/file_io.c:577:8:  [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).
		fd = open (pfile->path.c, oflag, mode) ;
data/libsndfile-1.0.28/src/file_io.c:1218:23:  [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).
		psf->file.filedes = open (pathname, oflag) ;
data/libsndfile-1.0.28/src/file_io.c:1220:23:  [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).
		psf->file.filedes = open (pathname, oflag, mode) ;
data/libsndfile-1.0.28/src/flac.c:206:4:  [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 (pflac->rbuffer [i], buffer [i], frame->header.blocksize * sizeof (int32_t)) ;
data/libsndfile-1.0.28/src/float32.c:413: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	c [4] ;
data/libsndfile-1.0.28/src/float32.c:832: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 (ptr + total, ubuf.fbuf, bufferlen * sizeof (float)) ;
data/libsndfile-1.0.28/src/float32.c:953: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 (ubuf.fbuf, ptr + total, bufferlen * sizeof (float)) ;
data/libsndfile-1.0.28/src/g72x.c:44:11:  [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	block	[G72x_BLOCK_SIZE] ;
data/libsndfile-1.0.28/src/g72x.c:218: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 (&(ptr [indx]), &(pg72x->samples [pg72x->sample_curr]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/g72x.c:457: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 (&(pg72x->samples [pg72x->sample_curr]), &(ptr [indx]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/gsm610.c:44:11:  [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	block [WAVLIKE_GSM610_BLOCKSIZE] ;
data/libsndfile-1.0.28/src/gsm610.c:256: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 (&(ptr [indx]), &(pgsm610->samples [pgsm610->samplecount]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/gsm610.c:483: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 (&(pgsm610->samples [pgsm610->samplecount]), &(ptr [indx]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/id3.c:32: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	buf [10] ;
data/libsndfile-1.0.28/src/ima_adpcm.c:596: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 (&(ptr [indx]), &(pima->samples [pima->samplecount * pima->channels]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/ima_adpcm.c:877: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 (&(pima->samples [pima->samplecount * pima->channels]), &(ptr [total]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/ima_oki_adpcm.c:244:2:  [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 (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ;
data/libsndfile-1.0.28/src/ima_oki_adpcm.c:268:2:  [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 (adpcm.codes, test_codes, sizeof (adpcm.codes [0]) * ARRAY_LEN (test_codes)) ;
data/libsndfile-1.0.28/src/ima_oki_adpcm.h:39:11:  [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	codes [IMA_OKI_ADPCM_CODE_LEN] ;
data/libsndfile-1.0.28/src/macos.c:33:10:  [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 rsrc_name [1024] ;
data/libsndfile-1.0.28/src/mat4.c:206:3:  [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 [256] ;
data/libsndfile-1.0.28/src/mat4.c:211:2:  [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	name [64] ;
data/libsndfile-1.0.28/src/mat4.c:368:10:  [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 str [32] ;
data/libsndfile-1.0.28/src/mat5.c:69:2:  [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		name [32] ;
data/libsndfile-1.0.28/src/mat5.c:160:2:  [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 [256] ;
data/libsndfile-1.0.28/src/mat5.c:261:3:  [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 [256], name [32] ;
data/libsndfile-1.0.28/src/mpc2k.c:106:3:  [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 sample_name [HEADER_NAME_LEN + 1] ;
data/libsndfile-1.0.28/src/mpc2k.c:160:3:  [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 sample_name [HEADER_NAME_LEN + 1] ;
data/libsndfile-1.0.28/src/mpc2k.c:161:11:  [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 bytes [4] ;
data/libsndfile-1.0.28/src/ms_adpcm.c:330: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 (&(ptr [indx]), &(pms->samples [pms->samplecount * pms->channels]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/ms_adpcm.c:650: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 (&(pms->samples [pms->samplecount * pms->channels]), &(ptr [total]), count * sizeof (short)) ;
data/libsndfile-1.0.28/src/nist.c:121:3:  [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	psf_header [NIST_HEADER_LENGTH + 2] ;
data/libsndfile-1.0.28/src/nist.c:124:2:  [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 	str [64], *cptr ;
data/libsndfile-1.0.28/src/ogg.c:134:2:  [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 (buffer, psf->header.ptr, psf->header.indx) ;
data/libsndfile-1.0.28/src/ogg_vorbis.c:158:2:  [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 (buffer, psf->header.ptr, psf->header.indx) ;
data/libsndfile-1.0.28/src/paf.c:529: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 (&(ptr [total]), &(ppaf24->samples [ppaf24->read_count * ppaf24->channels]), count * sizeof (int)) ;
data/libsndfile-1.0.28/src/paf.c:695: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 (&(ppaf24->samples [ppaf24->write_count * ppaf24->channels]), &(ptr [total]), count * sizeof (int)) ;
data/libsndfile-1.0.28/src/pvf.c:136:3:  [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 [32] ;
data/libsndfile-1.0.28/src/rx2.c:78:16:  [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 const char *marker_type [4] =
data/libsndfile-1.0.28/src/sd2.c:80:2:  [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 name [32] ;
data/libsndfile-1.0.28/src/sd2.c:81:2:  [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 value [32] ;
data/libsndfile-1.0.28/src/sd2.c:511:3:  [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 name [32], value [32] ;
data/libsndfile-1.0.28/src/sds.c:55:11:  [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 read_data [SDS_BLOCK_SIZE] ;
data/libsndfile-1.0.28/src/sds.c:60:11:  [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 write_data [SDS_BLOCK_SIZE] ;
data/libsndfile-1.0.28/src/sds.c:673: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 (&(ptr [total]), &(psds->read_samples [psds->read_count]), count * sizeof (int)) ;
data/libsndfile-1.0.28/src/sds.c:1012: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 (&(psds->write_samples [psds->write_count]), &(ptr [total]), count * sizeof (int)) ;
data/libsndfile-1.0.28/src/sndfile.c:295: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	sf_parselog [SF_BUFFER_LEN] = { 0 } ;
data/libsndfile-1.0.28/src/sndfile.c:296: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	sf_syserr [SF_SYSERR_LEN] = { 0 } ;
data/libsndfile-1.0.28/src/sndfile.c:966:4:  [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 (data, &psf->sf, sizeof (SF_INFO)) ;
data/libsndfile-1.0.28/src/sndfile.c:1190:4:  [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 (data, psf->loop_info, sizeof (SF_LOOP_INFO)) ;
data/libsndfile-1.0.28/src/sndfile.c:1296:4:  [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 (data, psf->instrument, sizeof (SF_INSTRUMENT)) ;
data/libsndfile-1.0.28/src/sndfile.c:1314:4:  [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 (psf->instrument, data, sizeof (SF_INSTRUMENT)) ;
data/libsndfile-1.0.28/src/sndfile.c:1329:4:  [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 (data, psf->channel_map, datasize) ;
data/libsndfile-1.0.28/src/sndfile.c:1358:4:  [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 (psf->channel_map, data, datasize) ;
data/libsndfile-1.0.28/src/sndfile.c:2612:2:  [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 [16] ;
data/libsndfile-1.0.28/src/sndfile.c:2945:2:  [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 (&psf->sf, sfinfo, sizeof (SF_INFO)) ;
data/libsndfile-1.0.28/src/sndfile.c:3235:2:  [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 (sfinfo, &psf->sf, sizeof (SF_INFO)) ;
data/libsndfile-1.0.28/src/strings.c:32:3:  [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	new_str [128] ;
data/libsndfile-1.0.28/src/strings.c:146:2:  [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 (psf->strings.storage + psf->strings.storage_used, str, str_len) ;
data/libsndfile-1.0.28/src/test_binheader_writef.c:33:3:  [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 [18] ;
data/libsndfile-1.0.28/src/test_cart_var.c:78: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 (ci.post_timers, &timer, sizeof (timer)) ;
data/libsndfile-1.0.28/src/test_conversions.c:48:2:  [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 format_str [16] ;
data/libsndfile-1.0.28/src/test_conversions.c:49:2:  [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 test_name [64] ;
data/libsndfile-1.0.28/src/test_file_io.c:268:11:  [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 buffer [256] ;
data/libsndfile-1.0.28/src/test_float.c:44: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 bytes [4] ;
data/libsndfile-1.0.28/src/test_float.c:81: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 bytes [8] ;
data/libsndfile-1.0.28/src/test_ima_oki_adpcm.c:108:2:  [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 (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ;
data/libsndfile-1.0.28/src/test_ima_oki_adpcm.c:131:2:  [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 (adpcm.codes, test_codes, sizeof (adpcm.codes [0]) * ARRAY_LEN (test_codes)) ;
data/libsndfile-1.0.28/src/test_log_printf.c:83:10:  [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 buffer [2048] ;
data/libsndfile-1.0.28/src/ulaw.c:108:10:  [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 ulaw_encode [8193] =
data/libsndfile-1.0.28/src/voc.c:159:2:  [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	creative [20] ;
data/libsndfile-1.0.28/src/voc.c:202: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 header [256] ;
data/libsndfile-1.0.28/src/vox_adpcm.c:142: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 (&(ptr [indx]), pvox->pcm, pvox->pcm_count * sizeof (short)) ;
data/libsndfile-1.0.28/src/vox_adpcm.c:274: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 (pvox->pcm, &(ptr [indx]), pvox->pcm_count * sizeof (short)) ;
data/libsndfile-1.0.28/src/w64.c:47:20:  [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 unsigned char name [16] = { (x0), (x1), (x2), (x3), (x4), (x5), \
data/libsndfile-1.0.28/src/wav.c:1241:3:  [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 [512] ;
data/libsndfile-1.0.28/src/wav.c:1409:3:  [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 [512] ;
data/libsndfile-1.0.28/src/wavlike.c:280:7:  [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 [128] ;
data/libsndfile-1.0.28/src/wavlike.c:324:7:  [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 [512] ;
data/libsndfile-1.0.28/src/wavlike.c:490: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 buffer [4096] ;
data/libsndfile-1.0.28/src/wavlike.c:898:2:  [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 [2048] ;
data/libsndfile-1.0.28/src/wavlike.c:1140:3:  [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 [256] ;
data/libsndfile-1.0.28/src/wavlike.c:1221:2:  [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 buf [4096] ;
data/libsndfile-1.0.28/src/wavlike.h:270:2:  [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			esf_field4 [8] ;
data/libsndfile-1.0.28/src/wavlike.h:295:2:  [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				padding [512] ;
data/libsndfile-1.0.28/src/windows.c:42:2:  [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 utf8name [512] ;
data/libsndfile-1.0.28/src/xi.c:40:2:  [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	filename [22] ;
data/libsndfile-1.0.28/src/xi.c:41:2:  [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	software [20] ;
data/libsndfile-1.0.28/src/xi.c:42:2:  [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	sample_name [22] ;
data/libsndfile-1.0.28/src/xi.c:335:3:  [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 [64], name [32] ;
data/libsndfile-1.0.28/tests/alaw_test.c:39:17:  [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	unsigned char	alaw_buffer [BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/benchmark.c:87:2:  [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 [256] = "Benchmarking " ;
data/libsndfile-1.0.28/tests/benchmark.c:159:14:  [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).
	{	if ((fd = open (filename, WRITE_FLAGS, WRITE_PERMS)) < 0)
data/libsndfile-1.0.28/tests/benchmark.c:191:14:  [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).
	{	if ((fd = open (filename, READ_FLAGS)) < 0)
data/libsndfile-1.0.28/tests/channel_test.c:69:3:  [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	filename [256] ;
data/libsndfile-1.0.28/tests/chunk_test.c:321:2:  [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 filename [256] ;
data/libsndfile-1.0.28/tests/chunk_test.c:322:2:  [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 chunk_data [10240] ;
data/libsndfile-1.0.28/tests/chunk_test.c:336:2:  [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 (chunk_data, &value, sizeof (value)) ;
data/libsndfile-1.0.28/tests/chunk_test.c:338:2:  [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 (chunk_data + 4, &value, sizeof (value)) ;
data/libsndfile-1.0.28/tests/chunk_test.c:340:2:  [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 (chunk_data + 8, &value, sizeof (value)) ;
data/libsndfile-1.0.28/tests/chunk_test.c:391:2:  [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 chunk_data [20002] ;
data/libsndfile-1.0.28/tests/command_test.c:98: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 [128] ;
data/libsndfile-1.0.28/tests/command_test.c:546:2:  [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		label [128] ;
data/libsndfile-1.0.28/tests/compression_size_test.c:112:2:  [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 q3_fname [64] ;
data/libsndfile-1.0.28/tests/compression_size_test.c:113:2:  [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 q6_fname [64] ;
data/libsndfile-1.0.28/tests/compression_size_test.c:114:2:  [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 test_name [64] ;
data/libsndfile-1.0.28/tests/error_test.c:70:19:  [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 unsigned char aiff_data [0x1b0] =
data/libsndfile-1.0.28/tests/error_test.c:131:9:  [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).
	file = fopen (filename, "w") ;
data/libsndfile-1.0.28/tests/error_test.c:158: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).
	if ((file = fopen (filename, "w")) == NULL)
data/libsndfile-1.0.28/tests/error_test.c:189: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).
	if ((file = fopen (filename, "w")) == NULL)
data/libsndfile-1.0.28/tests/format_check_test.c:100: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 filename [128] ;
data/libsndfile-1.0.28/tests/locale_test.c:134:2:  [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 utf8_locname [32] ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:80:2:  [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	c [BUFFER_SIZE + 1] ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1413:2:  [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 (smooth, orig, datalen * sizeof (short)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1456:4:  [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 (smooth, orig + m * datalen / 7, datalen / 7 * sizeof (short)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1617:2:  [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 (smooth, orig, datalen * sizeof (int)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1663:4:  [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 (smooth, orig + m * datalen / 7, datalen / 7 * sizeof (int)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1816:2:  [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 (smooth, orig, datalen * sizeof (float)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:1860:4:  [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 (smooth, orig + m * datalen / 7, datalen / 7 * sizeof (float)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:2009:2:  [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 (smooth, orig, datalen * sizeof (double)) ;
data/libsndfile-1.0.28/tests/lossy_comp_test.c:2052:4:  [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 (smooth, orig + m * datalen / 7, datalen / 7 * sizeof (double)) ;
data/libsndfile-1.0.28/tests/misc_test.c:339:18:  [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).
	if ((textfile = fopen (filename, "w")) == NULL)
data/libsndfile-1.0.28/tests/multi_file_test.c:141:12:  [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).
	if ((fd = open (filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0)
data/libsndfile-1.0.28/tests/peak_chunk_test.c:48: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	log_buffer [LOG_BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/pipe_test.c:121:9:  [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 buffer [256] ;
data/libsndfile-1.0.28/tests/pipe_test.c:122:9:  [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 filename [256] ;
data/libsndfile-1.0.28/tests/pipe_test.c:157:10:  [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 buffer [256] ;
data/libsndfile-1.0.28/tests/pipe_test.c:478:11:  [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 buffer [256] ;
data/libsndfile-1.0.28/tests/raw_test.c:159:18:  [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).
	if ((textfile = fopen (filename, "w")) == NULL)
data/libsndfile-1.0.28/tests/rdwr_test.c:210:11:  [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 buffer [160] ;
data/libsndfile-1.0.28/tests/sfversion.c:31:10:  [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	strbuffer [BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/stdio_test.c:89:10:  [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 buffer [256] ;
data/libsndfile-1.0.28/tests/string_test.c:478:9:  [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 buffer [2048] ;
data/libsndfile-1.0.28/tests/string_test.c:677:3:  [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 sfname [64] = "" ;
data/libsndfile-1.0.28/tests/ulaw_test.c:39:17:  [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	unsigned char	ulaw_buffer [BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/utils.c:128:19:  [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 unsigned char buf [4096] ;
data/libsndfile-1.0.28/tests/utils.c:136: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).
	if ((file = fopen (filename, "rb")) == NULL)
data/libsndfile-1.0.28/tests/utils.c:191: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).
	if ((file = fopen (filename, "wb")) == NULL)
data/libsndfile-1.0.28/tests/utils.c:215:16:  [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).
	if (! (file = fopen (octfilename, "w")))
data/libsndfile-1.0.28/tests/utils.c:244:16:  [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).
	if (! (file = fopen (octfilename, "w")))
data/libsndfile-1.0.28/tests/utils.c:273:16:  [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).
	if (! (file = fopen (octfilename, "w")))
data/libsndfile-1.0.28/tests/utils.c:302:16:  [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).
	if (! (file = fopen (octfilename, "w")))
data/libsndfile-1.0.28/tests/utils.c:330:10:  [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	buffer [LOG_BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/utils.c:369:10:  [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	buffer [LOG_BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/utils.c:390:2:  [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 [16] ;
data/libsndfile-1.0.28/tests/utils.c:398: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).
	if ((file = fopen (filename, "r")) == NULL)
data/libsndfile-1.0.28/tests/utils.c:440:10:  [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	buffer [LOG_BUFFER_SIZE] ;
data/libsndfile-1.0.28/tests/utils.c:514:23:  [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).
		fd = (omode == 0) ? open (filename, oflags) : open (filename, oflags, omode) ;
data/libsndfile-1.0.28/tests/utils.c:514:49:  [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).
		fd = (omode == 0) ? open (filename, oflags) : open (filename, oflags, omode) ;
data/libsndfile-1.0.28/tests/utils.c:1011:3:  [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 rsrc_name [512], *fname ;
data/libsndfile-1.0.28/tests/virtual_io_test.c:52:11:  [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 [16 * 1024] ;
data/libsndfile-1.0.28/tests/virtual_io_test.c:96:2:  [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 (ptr, vf->data + vf->offset, count) ;
data/libsndfile-1.0.28/tests/virtual_io_test.c:116:2:  [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 (vf->data + vf->offset, ptr, (size_t) count) ;
data/libsndfile-1.0.28/tests/win32_ordinal_test.c:84:10:  [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 buffer [1024] ;
data/libsndfile-1.0.28/tests/win32_ordinal_test.c:85:9:  [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 func_name [1024] ;
data/libsndfile-1.0.28/tests/win32_ordinal_test.c:92: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).
		if ((file = fopen (buffer, "r")) != NULL)
data/libsndfile-1.0.28/tests/win32_test.c:104:9:  [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 data [256] ;
data/libsndfile-1.0.28/tests/win32_test.c:119:12:  [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).
	if ((fd = open (filename, mode, flags)) < 0)
data/libsndfile-1.0.28/tests/win32_test.c:129:12:  [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).
	if ((fd = open (filename, mode, flags)) < 0)
data/libsndfile-1.0.28/tests/win32_test.c:169:9:  [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 data [256] ;
data/libsndfile-1.0.28/tests/win32_test.c:179:12:  [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).
	if ((fd = open (filename, mode, flags)) < 0)
data/libsndfile-1.0.28/tests/win32_test.c:189:12:  [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).
	if ((fd = open (filename, mode, flags)) < 0)
data/libsndfile-1.0.28/tests/win32_test.c:227:9:  [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 data [256] ;
data/libsndfile-1.0.28/tests/win32_test.c:240:12:  [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).
	if ((fd = open (filename, mode, flags)) < 0)
data/libsndfile-1.0.28/tests/win32_test.c:288: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).
	if ((file = fopen (filename, "w")) == NULL)
data/libsndfile-1.0.28/tests/write_read_test.c:57:2:  [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 c [DATA_LENGTH] ;
data/libsndfile-1.0.28/tests/write_read_test.c:4486:16:  [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).
	if (! (file = fopen (filename, "w")))
data/libsndfile-1.0.28/examples/generate.c:96:11:  [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).
	k = 16 - strlen (outfilename) ;
data/libsndfile-1.0.28/examples/sndfile-loopify.c:86:6:  [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 (infilename) > 1 && infilename [0] == '-')
data/libsndfile-1.0.28/examples/sndfilehandle.cc:63:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read (buffer, BUFFER_LEN) ;
data/libsndfile-1.0.28/programs/common.c:140:35:  [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).
			memcpy (binfo.x, info->x, MIN (strlen (info->x), sizeof (binfo.x))) ; \
data/libsndfile-1.0.28/programs/common.c:161: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).
		{	int slen = strlen (binfo.coding_history) ;
data/libsndfile-1.0.28/programs/common.c:169:24:  [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).
		{	size_t slen = MIN (strlen (info->coding_history), sizeof (binfo.coding_history)) ;
data/libsndfile-1.0.28/programs/common.c:333:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, cptr + 1, 15) ;
data/libsndfile-1.0.28/programs/sndfile-convert.c:146:6:  [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 (infilename) > 1 && infilename [0] == '-')
data/libsndfile-1.0.28/programs/sndfile-convert.c:237: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).
			ptr = argv [k] + strlen ("-override-sample-rate=") ;
data/libsndfile-1.0.28/programs/sndfile-play.c:800:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
					usleep (delay_time) ;
data/libsndfile-1.0.28/programs/sndfile-salvage.c:230: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).
	slen = strlen (target) ;
data/libsndfile-1.0.28/programs/sndfile-salvage.c:236:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((rlen = read (fd, buffer, sizeof (buffer))) < 0)
data/libsndfile-1.0.28/programs/sndfile-salvage.c:261:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (NOT (done) && (readlen = read (fd, buffer, bufferlen)) >= 0)
data/libsndfile-1.0.28/regtest/database.c:191:6:  [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 (db->cmdbuf) >= sizeof (db->cmdbuf) - 1)
data/libsndfile-1.0.28/regtest/database.c:423:10:  [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).
		slen = strlen (db->pathname) ;
data/libsndfile-1.0.28/src/aiff.c:1451: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).
		{	stringLength = strlen (psf->cues->cue_points [idx].name) + 1 ; /* We'll count the first byte also of every pascal string */
data/libsndfile-1.0.28/src/aiff.c:1587: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).
		{	stringLength = strlen (psf->cues->cue_points [idx].name) + 1 ; /* We'll count the first byte also of every pascal string */
data/libsndfile-1.0.28/src/aiff.c:1681: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).
				slen = strlen (psf->strings.storage + psf->strings.data [k].offset) ;
data/libsndfile-1.0.28/src/broadcast.c:72: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).
	len = strlen (psf->broadcast_16k->coding_history) ;
data/libsndfile-1.0.28/src/broadcast.c:85: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).
	len = strlen (psf->broadcast_16k->coding_history) ;
data/libsndfile-1.0.28/src/caf.c:855: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).
	{	value = key + strlen (key) + 1 ;
data/libsndfile-1.0.28/src/caf.c:898: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).
		key = value + strlen (value) + 1 ;
data/libsndfile-1.0.28/src/caf.c:915: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).
	if (buf->index + strlen (key) + strlen (value) + 2 > sizeof (buf->s))
data/libsndfile-1.0.28/src/caf.c:915:34:  [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 (buf->index + strlen (key) + strlen (value) + 2 > sizeof (buf->s))
data/libsndfile-1.0.28/src/cart.c:73: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).
	len = strlen (psf->cart_16k->tag_text) ;
data/libsndfile-1.0.28/src/cart.c:79: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).
	len = strlen (psf->cart_16k->tag_text) ;
data/libsndfile-1.0.28/src/chunk.c:71: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).
		marker_len = strlen (marker_str) ;
data/libsndfile-1.0.28/src/chunk.c:165: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).
	hash = strlen (marker_str) > 4 ? hash_of_str (marker_str) : u.marker ;
data/libsndfile-1.0.28/src/chunk.c:204: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).
	marker_len = strlen (marker_str) ;
data/libsndfile-1.0.28/src/chunk.c:246:35:  [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).
	pchk->chunks [pchk->used].hash = strlen (chunk_info->id) > 4 ? hash_of_str (chunk_info->id) : u.marker ;
data/libsndfile-1.0.28/src/common.c:159:13:  [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).
					slen = strlen (strptr) ;
data/libsndfile-1.0.28/src/common.c:382:11:  [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).
	maxlen = strlen ((char*) psf->header.ptr) ;
data/libsndfile-1.0.28/src/common.c:393: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).
	psf->header.indx = strlen ((char*) psf->header.ptr) ;
data/libsndfile-1.0.28/src/common.c:677:13:  [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).
					size = strlen (strptr) + 1 ;
data/libsndfile-1.0.28/src/common.c:699:13:  [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).
					size = strlen (strptr) ;
data/libsndfile-1.0.28/src/common.c:717:13:  [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).
					size = strlen (strptr) ;
data/libsndfile-1.0.28/src/common.c:1409: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).
{	size_t len = strlen (dest) ;
data/libsndfile-1.0.28/src/common.h:976:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
{	strncat (dest, src, n - strlen (dest) - 1) ;
data/libsndfile-1.0.28/src/common.h:976:27:  [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).
{	strncat (dest, src, n - strlen (dest) - 1) ;
data/libsndfile-1.0.28/src/common.h:982:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
{	strncpy (dest, src, n - 1) ;
data/libsndfile-1.0.28/src/file_io.c:321:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ;
data/libsndfile-1.0.28/src/file_io.c:333:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read (psf->file.filedes, ((char*) ptr) + total, (size_t) count) ;
data/libsndfile-1.0.28/src/file_io.c:439:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	{	count = read (psf->file.filedes, &(buffer [k]), 1) ;
data/libsndfile-1.0.28/src/file_io.c:954:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ;
data/libsndfile-1.0.28/src/file_io.c:1288:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ;
data/libsndfile-1.0.28/src/file_io.c:1300:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read (psf->file.filedes, ((char*) ptr) + total, (size_t) count) ;
data/libsndfile-1.0.28/src/file_io.c:1396:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	{	count = read (psf->file.filedes, &(buffer [k]), 1) ;
data/libsndfile-1.0.28/src/mat5.c:209:45:  [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).
	psf_binheader_writef (psf, "bb", filename, strlen (filename), buffer, strlen (buffer) + 1) ;
data/libsndfile-1.0.28/src/mat5.c:209:72:  [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).
	psf_binheader_writef (psf, "bb", filename, strlen (filename), buffer, strlen (buffer) + 1) ;
data/libsndfile-1.0.28/src/mat5.c:223:53:  [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).
	psf_binheader_writef (psf, "44b", MAT5_TYPE_SCHAR, strlen (sr_name), sr_name, make_size_t (16)) ;
data/libsndfile-1.0.28/src/mat5.c:237:53:  [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).
	psf_binheader_writef (psf, "44b", MAT5_TYPE_SCHAR, strlen (wd_name), wd_name, strlen (wd_name)) ;
data/libsndfile-1.0.28/src/mat5.c:237:80:  [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).
	psf_binheader_writef (psf, "44b", MAT5_TYPE_SCHAR, strlen (wd_name), wd_name, strlen (wd_name)) ;
data/libsndfile-1.0.28/src/mat5.c:271:6:  [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 (buffer) >= 124)
data/libsndfile-1.0.28/src/nist.c:135: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).
	{	cptr += strlen ("end_head") + 1 ;
data/libsndfile-1.0.28/src/nist.c:158:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	{	sscanf (cptr, "sample_coding -s%d %63s", &count, str) ;
data/libsndfile-1.0.28/src/nist.c:193:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		&& sscanf (cptr, "sample_byte_format -s%u %8s", &bytes, str) == 2)
data/libsndfile-1.0.28/src/nist.c:195: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).
		if (bytes != strlen (str))
data/libsndfile-1.0.28/src/pvf.c:118: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).
	psf->header.indx = strlen ((char*) psf->header.ptr) ;
data/libsndfile-1.0.28/src/sd2.c:220:30:  [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).
		{	str_rsrc [k].value_len = strlen (str_rsrc [k].value) ;
data/libsndfile-1.0.28/src/sd2.c:225:27:  [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).
		str_rsrc [k].name [0] = strlen (str_rsrc [k].name) - 1 ;
data/libsndfile-1.0.28/src/sd2.c:282: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).
		str_offset += strlen (str_rsrc [k].name) ;
data/libsndfile-1.0.28/src/sd2.c:283: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).
		next_str += strlen (str_rsrc [k].name) ;
data/libsndfile-1.0.28/src/sndfile.c:907:11:  [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).
			return strlen (data) ;
data/libsndfile-1.0.28/src/sndfile.c:952:10:  [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).
		return strlen (data) ;
data/libsndfile-1.0.28/src/sndfile.c:2619:6:  [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 (cptr) > sizeof (buffer) - 1)
data/libsndfile-1.0.28/src/sndfile.c:2840:6:  [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 (path) > 1 && strlen (path) - 1 >= sizeof (psf->file.path.c))
data/libsndfile-1.0.28/src/sndfile.c:2840:27:  [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 (path) > 1 && strlen (path) - 1 >= sizeof (psf->file.path.c))
data/libsndfile-1.0.28/src/strings.c:39: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).
	str_len = strlen (str) ;
data/libsndfile-1.0.28/src/strings.c:97:11:  [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 (str) == 0)
data/libsndfile-1.0.28/src/strings.c:126: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).
	str_len = strlen (str) + 1 ;
data/libsndfile-1.0.28/src/svx.c:243:10:  [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 (psf->file.name.c) != chunk_size)
data/libsndfile-1.0.28/src/test_broadcast_var.c:54: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).
	for (k = 0 ; strlen (bi->coding_history) < bi->coding_history_size - 1 ; k ++)
data/libsndfile-1.0.28/src/test_cart_var.c:54: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).
	for (k = 0 ; strlen (ci->tag_text) < ci->tag_text_size - 1 ; k ++)
data/libsndfile-1.0.28/src/wavlike.c:352: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).
					bit = strlen (buffer) ;
data/libsndfile-1.0.28/src/wavlike.c:1271:43:  [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 (marker == emdl_MARKER && dword == strlen (buf) /* should be >= strlen+1*/)
data/libsndfile-1.0.28/src/windows.c:71:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy (psf->file.path.wc, wpath, ARRAY_LEN (psf->file.path.wc)) ;
data/libsndfile-1.0.28/src/windows.c:78:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy (psf->file.name.wc, cwcptr, ARRAY_LEN (psf->file.name.wc)) ;
data/libsndfile-1.0.28/src/windows.c:82:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy (psf->file.dir.wc, wpath, ARRAY_LEN (psf->file.dir.wc)) ;
data/libsndfile-1.0.28/src/xi.c:288:42:  [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).
	psf_binheader_writef (psf, "b", string, strlen (string)) ;
data/libsndfile-1.0.28/src/xi.c:311:74:  [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).
	psf_binheader_writef (psf, "111111", 128, 0, pxi->sample_flags, 128, 0, strlen (pxi->sample_name)) ;
data/libsndfile-1.0.28/tests/benchmark.c:95: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).
	sf_command (NULL, SFC_GET_LIB_VERSION, buffer + strlen (buffer), sizeof (buffer) - strlen (buffer)) ;
data/libsndfile-1.0.28/tests/benchmark.c:95:85:  [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).
	sf_command (NULL, SFC_GET_LIB_VERSION, buffer + strlen (buffer), sizeof (buffer) - strlen (buffer)) ;
data/libsndfile-1.0.28/tests/benchmark.c:98:23:  [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).
	memset (buffer, '-', strlen (buffer)) ;
data/libsndfile-1.0.28/tests/benchmark.c:198:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		{	if ((retval = read (fd, data, byte_count)) != byte_count)
data/libsndfile-1.0.28/tests/chunk_test.c:134:23:  [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).
	chunk_info.datalen = strlen (chunk_info.data) ;
data/libsndfile-1.0.28/tests/chunk_test.c:225:24:  [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).
		chunk_info.datalen = strlen (chunk_info.data) ;
data/libsndfile-1.0.28/tests/command_test.c:103:7:  [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 (buffer) < 1)
data/libsndfile-1.0.28/tests/command_test.c:1291:36:  [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 (bc_read.coding_history_size < strlen (default_history) || memcmp (bc_read.coding_history, default_history, strlen (default_history)) != 0)
data/libsndfile-1.0.28/tests/command_test.c:1291:113:  [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 (bc_read.coding_history_size < strlen (default_history) || memcmp (bc_read.coding_history, default_history, strlen (default_history)) != 0)
data/libsndfile-1.0.28/tests/command_test.c:1298:33:  [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).
	bc_write.coding_history_size = strlen (supplied_history) ;
data/libsndfile-1.0.28/tests/command_test.c:1370:34:  [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).
		bc_write.coding_history_size = strlen (bc_write.coding_history) ;
data/libsndfile-1.0.28/tests/command_test.c:1439:27:  [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).
	ca_write.tag_text_size = strlen (ca_write.tag_text) ;
data/libsndfile-1.0.28/tests/command_test.c:1598:24:  [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).
	cinfo.tag_text_size = strlen (cinfo.tag_text) ;
data/libsndfile-1.0.28/tests/cpp_test.cc:176:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read (sbuffer, ARRAY_LEN (sbuffer)) ;
data/libsndfile-1.0.28/tests/cpp_test.cc:177:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read (ibuffer, ARRAY_LEN (ibuffer)) ;
data/libsndfile-1.0.28/tests/cpp_test.cc:178:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read (fbuffer, ARRAY_LEN (fbuffer)) ;
data/libsndfile-1.0.28/tests/cpp_test.cc:179:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read (dbuffer, ARRAY_LEN (dbuffer)) ;
data/libsndfile-1.0.28/tests/cpp_test.cc:194:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = file.read (sbuffer, ARRAY_LEN (sbuffer)) ;
data/libsndfile-1.0.28/tests/peak_chunk_test.c:196:6:  [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 (log_buffer) == 0)
data/libsndfile-1.0.28/tests/peak_chunk_test.c:238:6:  [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 (log_buffer) == 0)
data/libsndfile-1.0.28/tests/utils.c:171:26:  [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 (filename == NULL || strlen (filename) == 0)
data/libsndfile-1.0.28/tests/utils.c:177: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).
		count = 24 - strlen (filename) ;
data/libsndfile-1.0.28/tests/utils.c:447:6:  [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 (buffer) < 1)
data/libsndfile-1.0.28/tests/utils.c:1031: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).
	memmove (fname + 2, fname, strlen (fname) + 1) ;
data/libsndfile-1.0.28/tests/win32_test.c:140:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (data, dir_cmd, sizeof (data) - 1) ;
data/libsndfile-1.0.28/tests/win32_test.c:141:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:141:42:  [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).
	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:142:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:142:47:  [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).
	strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:201:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (data, dir_cmd, sizeof (data) - 1) ;
data/libsndfile-1.0.28/tests/win32_test.c:202:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:202:42:  [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).
	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:203:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;
data/libsndfile-1.0.28/tests/win32_test.c:203:47:  [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).
	strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;

ANALYSIS SUMMARY:

Hits = 415
Lines analyzed = 86178 in approximately 2.50 seconds (34441 lines/second)
Physical Source Lines of Code (SLOC) = 58804
Hits@level = [0] 2047 [1] 114 [2] 262 [3]   8 [4]  28 [5]   3
Hits@level+ = [0+] 2462 [1+] 415 [2+] 301 [3+]  39 [4+]  31 [5+]   3
Hits/KSLOC@level+ = [0+] 41.8679 [1+] 7.05734 [2+] 5.1187 [3+] 0.66322 [4+] 0.527175 [5+] 0.0510169
Dot directories skipped = 1 (--followdotdir overrides)
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.