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/sweep-0.9.3/plugins/normalise/normalise.c
Examining data/sweep-0.9.3/plugins/fade/fade.c
Examining data/sweep-0.9.3/plugins/example/example.c
Examining data/sweep-0.9.3/plugins/reverse/reverse.c
Examining data/sweep-0.9.3/plugins/byenergy/byenergy.c
Examining data/sweep-0.9.3/plugins/echo/echo.c
Examining data/sweep-0.9.3/plugins/ladspa/ladspameta.c
Examining data/sweep-0.9.3/plugins/ladspa/ladspa.h
Examining data/sweep-0.9.3/include/sweep/sweep_version.h
Examining data/sweep-0.9.3/include/sweep/sweep_typeconvert.h
Examining data/sweep-0.9.3/include/sweep/sweep_sounddata.h
Examining data/sweep-0.9.3/include/sweep/sweep_filter.h
Examining data/sweep-0.9.3/include/sweep/sweep_i18n.h
Examining data/sweep-0.9.3/include/sweep/sweep.h
Examining data/sweep-0.9.3/include/sweep/sweep_selection.h
Examining data/sweep-0.9.3/include/sweep/sweep_sample.h
Examining data/sweep-0.9.3/include/sweep/sweep_undo.h
Examining data/sweep-0.9.3/include/sweep/sweep_types.h
Examining data/sweep-0.9.3/src/channelops.c
Examining data/sweep-0.9.3/src/param.c
Examining data/sweep-0.9.3/src/head.h
Examining data/sweep-0.9.3/src/driver_oss.c
Examining data/sweep-0.9.3/src/pixmaps.h
Examining data/sweep-0.9.3/src/param.h
Examining data/sweep-0.9.3/src/view_pixmaps.h
Examining data/sweep-0.9.3/src/plugin.c
Examining data/sweep-0.9.3/src/paste_dialogs.h
Examining data/sweep-0.9.3/src/view.h
Examining data/sweep-0.9.3/src/sweep_undo.c
Examining data/sweep-0.9.3/src/sweep_sample.c
Examining data/sweep-0.9.3/src/file_vorbis.c
Examining data/sweep-0.9.3/src/tdb/tdb.h
Examining data/sweep-0.9.3/src/tdb/tdb.c
Examining data/sweep-0.9.3/src/tdb/spinlock.h
Examining data/sweep-0.9.3/src/tdb/spinlock.c
Examining data/sweep-0.9.3/src/about_dialog.c
Examining data/sweep-0.9.3/src/db_ruler.h
Examining data/sweep-0.9.3/src/channelops.h
Examining data/sweep-0.9.3/src/play.h
Examining data/sweep-0.9.3/src/preferences.c
Examining data/sweep-0.9.3/src/format.c
Examining data/sweep-0.9.3/src/record.c
Examining data/sweep-0.9.3/src/pcmio.h
Examining data/sweep-0.9.3/src/undo_dialog.h
Examining data/sweep-0.9.3/src/record.h
Examining data/sweep-0.9.3/src/sweep_app.h
Examining data/sweep-0.9.3/src/db_slider.h
Examining data/sweep-0.9.3/src/db_slider.c
Examining data/sweep-0.9.3/src/time_ruler.h
Examining data/sweep-0.9.3/src/levelmeter.h
Examining data/sweep-0.9.3/src/question_dialogs.c
Examining data/sweep-0.9.3/src/file_mad.c
Examining data/sweep-0.9.3/src/sample.h
Examining data/sweep-0.9.3/src/file_speex.c
Examining data/sweep-0.9.3/src/sample-display.c
Examining data/sweep-0.9.3/src/paste_dialogs.c
Examining data/sweep-0.9.3/src/levelmeter.c
Examining data/sweep-0.9.3/src/plugin.h
Examining data/sweep-0.9.3/src/file_dialogs.h
Examining data/sweep-0.9.3/src/head.c
Examining data/sweep-0.9.3/src/sweep_typeconvert.c
Examining data/sweep-0.9.3/src/print.h
Examining data/sweep-0.9.3/src/sample-display.h
Examining data/sweep-0.9.3/src/cursors.h
Examining data/sweep-0.9.3/src/sweep_compat.h
Examining data/sweep-0.9.3/src/edit.h
Examining data/sweep-0.9.3/src/about_dialog.h
Examining data/sweep-0.9.3/src/print.c
Examining data/sweep-0.9.3/src/timeouts.c
Examining data/sweep-0.9.3/src/file_dialogs.c
Examining data/sweep-0.9.3/src/db_ruler.c
Examining data/sweep-0.9.3/src/cursors.c
Examining data/sweep-0.9.3/src/question_dialogs.h
Examining data/sweep-0.9.3/src/sweep_sounddata.c
Examining data/sweep-0.9.3/src/sweep_selection.c
Examining data/sweep-0.9.3/src/interface.c
Examining data/sweep-0.9.3/src/file_sndfile.h
Examining data/sweep-0.9.3/src/driver.c
Examining data/sweep-0.9.3/src/preferences.h
Examining data/sweep-0.9.3/src/callbacks.c
Examining data/sweep-0.9.3/src/play.c
Examining data/sweep-0.9.3/src/driver.h
Examining data/sweep-0.9.3/src/sweep_filter.c
Examining data/sweep-0.9.3/src/notes.h
Examining data/sweep-0.9.3/src/driver_solaris.c
Examining data/sweep-0.9.3/src/notes.c
Examining data/sweep-0.9.3/src/interface.h
Examining data/sweep-0.9.3/src/format.h
Examining data/sweep-0.9.3/src/file_sndfile1.c
Examining data/sweep-0.9.3/src/driver_alsa.c
Examining data/sweep-0.9.3/src/undo_dialog.c
Examining data/sweep-0.9.3/src/callbacks.h
Examining data/sweep-0.9.3/src/samplerate.c
Examining data/sweep-0.9.3/src/view.c
Examining data/sweep-0.9.3/src/sw_chooser.c
Examining data/sweep-0.9.3/src/sw_chooser.h
Examining data/sweep-0.9.3/src/main.c
Examining data/sweep-0.9.3/src/edit.c
Examining data/sweep-0.9.3/src/time_ruler.c
Examining data/sweep-0.9.3/intl/vasnprintf.c
Examining data/sweep-0.9.3/intl/gmo.h
Examining data/sweep-0.9.3/intl/explodename.c
Examining data/sweep-0.9.3/intl/os2compat.h
Examining data/sweep-0.9.3/intl/intl-compat.c
Examining data/sweep-0.9.3/intl/ngettext.c
Examining data/sweep-0.9.3/intl/wprintf-parse.h
Examining data/sweep-0.9.3/intl/printf-parse.h
Examining data/sweep-0.9.3/intl/vasnwprintf.h
Examining data/sweep-0.9.3/intl/localename.c
Examining data/sweep-0.9.3/intl/loadinfo.h
Examining data/sweep-0.9.3/intl/os2compat.c
Examining data/sweep-0.9.3/intl/gettextP.h
Examining data/sweep-0.9.3/intl/printf-args.h
Examining data/sweep-0.9.3/intl/plural-exp.c
Examining data/sweep-0.9.3/intl/printf-parse.c
Examining data/sweep-0.9.3/intl/langprefs.c
Examining data/sweep-0.9.3/intl/plural.c
Examining data/sweep-0.9.3/intl/localcharset.h
Examining data/sweep-0.9.3/intl/dcgettext.c
Examining data/sweep-0.9.3/intl/eval-plural.h
Examining data/sweep-0.9.3/intl/relocatable.c
Examining data/sweep-0.9.3/intl/l10nflist.c
Examining data/sweep-0.9.3/intl/dngettext.c
Examining data/sweep-0.9.3/intl/log.c
Examining data/sweep-0.9.3/intl/finddomain.c
Examining data/sweep-0.9.3/intl/xsize.h
Examining data/sweep-0.9.3/intl/vasnprintf.h
Examining data/sweep-0.9.3/intl/bindtextdom.c
Examining data/sweep-0.9.3/intl/textdomain.c
Examining data/sweep-0.9.3/intl/localcharset.c
Examining data/sweep-0.9.3/intl/printf-args.c
Examining data/sweep-0.9.3/intl/osdep.c
Examining data/sweep-0.9.3/intl/loadmsgcat.c
Examining data/sweep-0.9.3/intl/dcngettext.c
Examining data/sweep-0.9.3/intl/dcigettext.c
Examining data/sweep-0.9.3/intl/printf.c
Examining data/sweep-0.9.3/intl/gettext.c
Examining data/sweep-0.9.3/intl/dgettext.c
Examining data/sweep-0.9.3/intl/localealias.c
Examining data/sweep-0.9.3/intl/plural-exp.h
Examining data/sweep-0.9.3/intl/relocatable.h
Examining data/sweep-0.9.3/intl/hash-string.h

FINAL RESULTS:

data/sweep-0.9.3/src/preferences.c:81:11:  [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 (prefs_path, DIR_MODE) == -1) {
data/sweep-0.9.3/src/preferences.c:99:11:  [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 (prefs_path, FILE_MODE) == -1) {
data/sweep-0.9.3/intl/langprefs.c:107:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy (p, buf);
data/sweep-0.9.3/intl/localcharset.c:200:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/sweep-0.9.3/intl/localcharset.c:201:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1), buf2);
data/sweep-0.9.3/intl/localename.c:911:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (name, legacy_table[i1].unixy);
data/sweep-0.9.3/intl/localename.c:935:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (name, langtag_table[i1].unixy);
data/sweep-0.9.3/intl/localename.c:955:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (name + 3, script_table[i1].unixy);
data/sweep-0.9.3/intl/log.c:78:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (last_logfilename, logfilename);
data/sweep-0.9.3/intl/os2compat.c:97:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (libintl_nl_default_dirname, _nlos2_localedir);
data/sweep-0.9.3/intl/plural.c:525:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/sweep-0.9.3/intl/printf.c:83:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf (stream, format, args);
data/sweep-0.9.3/intl/printf.c:139:28:  [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.
#  define system_vsnprintf vsnprintf
data/sweep-0.9.3/intl/printf.c:235:28:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define system_vswprintf vswprintf
data/sweep-0.9.3/intl/printf.c:243:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfwprintf (stream, format, args);
data/sweep-0.9.3/intl/relocatable.c:440:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (result + curr_prefix_len, pathname_tail);
data/sweep-0.9.3/intl/vasnprintf.c:96:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/sweep-0.9.3/intl/vasnprintf.c:107:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF _snprintf
data/sweep-0.9.3/intl/vasnprintf.c:110:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/sweep-0.9.3/intl/vasnprintf.h:37:22:  [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 __printf__ printf
data/sweep-0.9.3/plugins/echo/echo.c:33:20:  [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.
and your operating system and compiler.
data/sweep-0.9.3/plugins/example/example.c:31:20:  [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.
and your operating system and compiler.
data/sweep-0.9.3/src/about_dialog.c:47:3:  [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.
  system ("gnome-moz-remote http://sweep.sourceforge.net/");
data/sweep-0.9.3/src/file_dialogs.c:255: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.
    } else if (access(pathname, R_OK) == -1) {
data/sweep-0.9.3/src/file_dialogs.c:809:11:  [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, W_OK) == -1) {
data/sweep-0.9.3/src/preferences.c:78: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 (prefs_path, W_OK) == -1) {
data/sweep-0.9.3/src/preferences.c:96: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 (prefs_path, R_OK | W_OK) == -1) {
data/sweep-0.9.3/src/question_dialogs.c:222: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 (buf, BUF_LEN, fmt, ap);
data/sweep-0.9.3/src/question_dialogs.c:273: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 (buf, BUF_LEN, fmt, ap);
data/sweep-0.9.3/src/sweep_sample.c:1284: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 (buf, BUF_LEN, fmt, ap);
data/sweep-0.9.3/src/view.c:217:5:  [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.
    sscanf (_(((sw_procedure *)plugins->data)->name), "%s", first_name);
data/sweep-0.9.3/src/view.c:236:2:  [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.
	sscanf (_(proc->name), "%s", first_name);
data/sweep-0.9.3/src/view.c:249:5:  [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.
    sscanf (_(proc->name), "%s", last_name);
data/sweep-0.9.3/src/view.c:3441:5:  [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(buf, BUF_LEN,
data/sweep-0.9.3/src/view.c:3454:5:  [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(buf, BUF_LEN,
data/sweep-0.9.3/intl/dcigettext.c:148:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/sweep-0.9.3/intl/dcigettext.c:149:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/sweep-0.9.3/intl/dcigettext.c:705:33:  [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.
      const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
data/sweep-0.9.3/intl/dcigettext.c:1183:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  language = getenv ("LANGUAGE");
data/sweep-0.9.3/intl/loadmsgcat.c:830:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      outcharset = getenv ("OUTPUT_CHARSET");
data/sweep-0.9.3/intl/localcharset.c:125: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.
      dir = getenv ("CHARSETALIASDIR");
data/sweep-0.9.3/intl/localcharset.c:308:16:  [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.
      locale = getenv ("LC_ALL");
data/sweep-0.9.3/intl/localcharset.c:311: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.
	  locale = getenv ("LC_CTYPE");
data/sweep-0.9.3/intl/localcharset.c:313:15:  [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.
	    locale = getenv ("LANG");
data/sweep-0.9.3/intl/localcharset.c:341: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.
  locale = getenv ("LC_ALL");
data/sweep-0.9.3/intl/localcharset.c:344:16:  [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.
      locale = getenv ("LC_CTYPE");
data/sweep-0.9.3/intl/localcharset.c:346:11:  [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.
	locale = getenv ("LANG");
data/sweep-0.9.3/intl/localename.c:998: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.
  retval = getenv ("LC_ALL");
data/sweep-0.9.3/intl/localename.c:1002: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.
  retval = getenv (categoryname);
data/sweep-0.9.3/intl/localename.c:1006: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.
  retval = getenv ("LANG");
data/sweep-0.9.3/intl/os2compat.c:51:16:  [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.
  char *root = getenv ("UNIXROOT");
data/sweep-0.9.3/intl/os2compat.c:52:24:  [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.
  char *gnulocaledir = getenv ("GNULOCALEDIR");
data/sweep-0.9.3/intl/os2compat.h:43:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv _nl_getenv
data/sweep-0.9.3/plugins/ladspa/ladspameta.c:770:17:  [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.
  ladspa_path = getenv ("LADSPA_PATH");
data/sweep-0.9.3/src/callbacks.c:98:18:  [3] (random) random:
  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.
    ns->color = (random()) % VIEW_COLOR_MAX;
data/sweep-0.9.3/src/driver_alsa.c:105:15:  [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.
  if ((name = getenv ("SWEEP_ALSA_PCM")) != 0) {
data/sweep-0.9.3/src/edit.c:67:11:  [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/sweep-0.9.3/src/file_speex.c:1143:64:  [3] (random) random:
  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.
  if (serialno == LONG_MIN || serialno == LONG_MAX) serialno = random ();
data/sweep-0.9.3/src/file_speex.c:1506:38:  [3] (random) random:
  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.
  new_text = g_strdup_printf ("%ld", random ());
data/sweep-0.9.3/src/file_vorbis.c:778:64:  [3] (random) random:
  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.
  if (serialno == LONG_MIN || serialno == LONG_MAX) serialno = random ();
data/sweep-0.9.3/src/file_vorbis.c:1025:38:  [3] (random) random:
  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.
  new_text = g_strdup_printf ("%ld", random ());
data/sweep-0.9.3/src/interface.c:95:25:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  accels_path = (char *)g_get_home_dir ();
data/sweep-0.9.3/src/interface.c:106:25:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  accels_path = (char *)g_get_home_dir ();
data/sweep-0.9.3/src/main.c:221:3:  [3] (random) srandom:
  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.
  srandom ((unsigned int)time(NULL));
data/sweep-0.9.3/src/preferences.c:54:16:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  prefs_path = g_get_home_dir ();
data/sweep-0.9.3/src/sample-display.c:1982:18:  [3] (random) random:
  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.
  value = 2.0 * (random() - RAND_MAX/2) / (sw_audio_t)RAND_MAX;
data/sweep-0.9.3/src/sweep_sample.c:182:20:  [3] (random) random:
  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.
  s->color = ((int)random()) % VIEW_COLOR_MAX;
data/sweep-0.9.3/intl/bindtextdom.c:157: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 (result, dirname, len);
data/sweep-0.9.3/intl/bindtextdom.c:195:7:  [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 (result, codeset, len);
data/sweep-0.9.3/intl/bindtextdom.c:231:7:  [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 (new_binding->domainname, domainname, len);
data/sweep-0.9.3/intl/bindtextdom.c:256:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (result, dirname, len);
data/sweep-0.9.3/intl/bindtextdom.c:287:8:  [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 (result, codeset, len);
data/sweep-0.9.3/intl/dcigettext.c:240: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 msgid[ZERO];
data/sweep-0.9.3/intl/dcigettext.c:367: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 data[ZERO];
data/sweep-0.9.3/intl/dcigettext.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 (search->msgid, msgid1, msgid_len);
data/sweep-0.9.3/intl/dcigettext.c:657: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.
		      memcpy (newp->domainname, domainname, domainname_len + 1);
data/sweep-0.9.3/intl/dcigettext.c:1220:29:  [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 (void *) ((char *) memcpy (dest, src, n) + n);
data/sweep-0.9.3/intl/finddomain.c:130:7:  [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 (locale, alias_value, len);
data/sweep-0.9.3/intl/gettextP.h:145: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 domainname[ZERO];
data/sweep-0.9.3/intl/l10nflist.c:219:7:  [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 (cp, dirlist, dirlist_len);
data/sweep-0.9.3/intl/langprefs.c:62:6:  [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[256];
data/sweep-0.9.3/intl/loadmsgcat.c:460:10:  [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).
# define open   __open
data/sweep-0.9.3/intl/loadmsgcat.c:817: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 (charset, charsetstr, len);
data/sweep-0.9.3/intl/loadmsgcat.c:864:8:  [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 (tmp, outcharset, len);
data/sweep-0.9.3/intl/loadmsgcat.c:865:8:  [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 (tmp + len, "//TRANSLIT", 10 + 1);
data/sweep-0.9.3/intl/loadmsgcat.c:940: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 (domain_file->filename, O_RDONLY | O_BINARY);
data/sweep-0.9.3/intl/loadmsgcat.c:1293:10:  [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 (mem, static_segments, segsize);
data/sweep-0.9.3/intl/loadmsgcat.c:1302: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 (mem, sysdep_segment_values[sysdepref], n);
data/sweep-0.9.3/intl/localcharset.c:137: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 (file_name, dir, dir_len);
data/sweep-0.9.3/intl/localcharset.c:140: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 (file_name + dir_len + add_slash, base, base_len + 1);
data/sweep-0.9.3/intl/localcharset.c:144:38:  [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_name == NULL || (fp = fopen (file_name, "r")) == NULL)
data/sweep-0.9.3/intl/localcharset.c:156: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.
	      char buf1[50+1];
data/sweep-0.9.3/intl/localcharset.c:157: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.
	      char buf2[50+1];
data/sweep-0.9.3/intl/localcharset.c:326: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 buf[2 + 10 + 1];
data/sweep-0.9.3/intl/localcharset.c:335: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 buf[2 + 10 + 1];
data/sweep-0.9.3/intl/localcharset.c:364:8:  [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 (buf, dot, modifier - dot);
data/sweep-0.9.3/intl/localealias.c:229: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 (full_fname, fname, fname_len);
data/sweep-0.9.3/intl/localealias.c:230: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/sweep-0.9.3/intl/localealias.c:233:8:  [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).
  fp = fopen (relocate (full_fname), "r");
data/sweep-0.9.3/intl/localealias.c:253: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 buf[400];
data/sweep-0.9.3/intl/localealias.c:333:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].alias = memcpy (&string_space[string_space_act],
data/sweep-0.9.3/intl/localealias.c:337:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].value = memcpy (&string_space[string_space_act],
data/sweep-0.9.3/intl/localename.c:716:26:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/sweep-0.9.3/intl/localename.c:716:51:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/sweep-0.9.3/intl/localename.c:854:26:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/sweep-0.9.3/intl/localename.c:854:51:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/sweep-0.9.3/intl/localename.c:884:26:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/sweep-0.9.3/intl/localename.c:884:50:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/sweep-0.9.3/intl/localename.c:1047: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 namebuf[256];
data/sweep-0.9.3/intl/log.c:79:22:  [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).
      last_logfile = fopen (logfilename, "a");
data/sweep-0.9.3/intl/os2compat.c:42:1:  [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 libintl_nl_default_dirname[MAXPATHLEN+1];
data/sweep-0.9.3/intl/os2compat.c:61:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir, root, sl);
data/sweep-0.9.3/intl/os2compat.c:62:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/sweep-0.9.3/intl/os2compat.c:75:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath, root, sl);
data/sweep-0.9.3/intl/os2compat.c:76:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/sweep-0.9.3/intl/os2compat.c:89:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir, root, sl);
data/sweep-0.9.3/intl/os2compat.c:90:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/sweep-0.9.3/intl/printf.c:158:8:  [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 (resultbuf, result, maxlength - 1);
data/sweep-0.9.3/intl/printf.c:312:8:  [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 (resultbuf, result, (maxlength - 1) * sizeof (wchar_t));
data/sweep-0.9.3/intl/relocatable.c:124: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 (memory, orig_prefix_arg, orig_prefix_len + 1);
data/sweep-0.9.3/intl/relocatable.c:127: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 (memory, curr_prefix_arg, curr_prefix_len + 1);
data/sweep-0.9.3/intl/relocatable.c:208:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (q, curr_pathname, p - curr_pathname);
data/sweep-0.9.3/intl/relocatable.c:268:7:  [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 (curr_prefix, curr_installdir, curr_prefix_len);
data/sweep-0.9.3/intl/relocatable.c:295:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char location[MAX_PATH];
data/sweep-0.9.3/intl/relocatable.c:321:8:  [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).
  fp = fopen ("/proc/self/maps", "r");
data/sweep-0.9.3/intl/relocatable.c:439:8:  [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 (result, curr_prefix, curr_prefix_len);
data/sweep-0.9.3/intl/textdomain.c:115: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 (new_domain, domainname, len);
data/sweep-0.9.3/intl/vasnprintf.c:208: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 (memory, result, length * sizeof (CHAR_T));		     \
data/sweep-0.9.3/intl/vasnprintf.c:220: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 (result + length, cp, n * sizeof (CHAR_T));
data/sweep-0.9.3/intl/vasnprintf.c:293:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->width_start, n * sizeof (CHAR_T));
data/sweep-0.9.3/intl/vasnprintf.c:299:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->precision_start, n * sizeof (CHAR_T));
data/sweep-0.9.3/plugins/ladspa/ladspameta.c:516: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 (input_buffers[0], pcmdata, length_b);
data/sweep-0.9.3/plugins/reverse/reverse.c:45:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (t, d, sw);
data/sweep-0.9.3/plugins/reverse/reverse.c:46:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (d, e, sw);
data/sweep-0.9.3/plugins/reverse/reverse.c:47:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (e, t, sw);
data/sweep-0.9.3/plugins/reverse/reverse.c:103: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 (t, d, sw);
data/sweep-0.9.3/plugins/reverse/reverse.c:104: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 (d, e, sw);
data/sweep-0.9.3/plugins/reverse/reverse.c:105: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 (e, t, sw);
data/sweep-0.9.3/src/channelops.c:143: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 buf[BUF_LEN];
data/sweep-0.9.3/src/channelops.c:641: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 buf[BUF_LEN];
data/sweep-0.9.3/src/cursors.c:57: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 pixmap_buffer [(32 * 32)/8];
data/sweep-0.9.3/src/cursors.c:58: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 mask_buffer [(32 * 32)/8];
data/sweep-0.9.3/src/driver.c:666:13:  [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 (pref->open)
data/sweep-0.9.3/src/driver.c:667:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return pref->open (cueing, flags);
data/sweep-0.9.3/src/driver.h:43:17:  [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).
  sw_handle * (*open) (int cueing, int flags);
data/sweep-0.9.3/src/driver_oss.c:114:17:  [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((dev_dsp = open(dev_name, flags, 0)) == -1) {
data/sweep-0.9.3/src/driver_solaris.c:58: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((dev_audio = open(DEV_AUDIO, O_WRONLY, 0)) == -1) {
data/sweep-0.9.3/src/edit.c:78:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(template);
data/sweep-0.9.3/src/edit.c:128: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, data, len);
data/sweep-0.9.3/src/edit.c:142:13:  [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/zero", O_RDWR)) == -1) {
data/sweep-0.9.3/src/edit.c:447:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy ((gpointer)(s->sounddata->data + offset), er->data, len);
data/sweep-0.9.3/src/edit.c:706:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (d, er->data, len);
data/sweep-0.9.3/src/edit.c:723:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (d, er->data, len);
data/sweep-0.9.3/src/edit.c:805:7:  [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 (d, er1->data, byte_len1);
data/sweep-0.9.3/src/edit.c:810:7:  [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 ((gpointer)(d + frames_to_bytes (f, er->start)),
data/sweep-0.9.3/src/edit.c:818:7:  [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 ((gpointer)(d + frames_to_bytes (f, er->start)),
data/sweep-0.9.3/src/edit.c:824:7:  [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 ((gpointer)(d + o_byte_length + byte_len1), er2->data, byte_len2);
data/sweep-0.9.3/src/edit.c:828:7:  [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 ((gpointer)(d + frames_to_bytes (f, er->start)),
data/sweep-0.9.3/src/edit.c:836:7:  [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 ((gpointer)(d + frames_to_bytes (f, er->start)),
data/sweep-0.9.3/src/edit.c:1079:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (d, er->data, len);
data/sweep-0.9.3/src/edit.c:1139:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy ((gpointer)(sample->sounddata->data + offset), er->data, len);
data/sweep-0.9.3/src/file_dialogs.c:148: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_dialogs.c:365: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_dialogs.c:698: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_dialogs.c:878: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_mad.c:94: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[BUF_LEN];
data/sweep-0.9.3/src/file_mad.c:97: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 (pathname, O_RDONLY);
data/sweep-0.9.3/src/file_mad.c:176:7:  [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 (info->end_buffer, info->start + info->offset, info->remaining);
data/sweep-0.9.3/src/file_mad.c:315: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 (sample->pathname, O_RDONLY);
data/sweep-0.9.3/src/file_mad.c:382: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_mad.c:391: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 (pathname, O_RDONLY);
data/sweep-0.9.3/src/file_sndfile1.c:82: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_sndfile1.c:159: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 (&tmp_sfinfo, so->sfinfo, sizeof (SF_INFO));
data/sweep-0.9.3/src/file_sndfile1.c:674: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_sndfile1.c:996: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_speex.c:183: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 (pathname, O_RDONLY);
data/sweep-0.9.3/src/file_speex.c:374: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 (sample->pathname, O_RDONLY);
data/sweep-0.9.3/src/file_speex.c:531: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_speex.c:644:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p+4, vendor_string, vendor_length);
data/sweep-0.9.3/src/file_speex.c:663:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if(tag) memcpy(p+*length+4, tag, tag_len);  /* comment */
data/sweep-0.9.3/src/file_speex.c:664:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p+*length+4+tag_len, val, val_len);  /* comment */
data/sweep-0.9.3/src/file_speex.c:755:19:  [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 (pathname, "w"))) {
data/sweep-0.9.3/src/file_speex.c:895: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 (input, d, sizeof (sw_audio_t) * len * format->channels);
data/sweep-0.9.3/src/file_speex.c:993:5:  [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 time_buf[BUF_LEN], bytes_buf[BUF_LEN];
data/sweep-0.9.3/src/file_speex.c:1024:5:  [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 time_buf[BUF_LEN], bytes_buf[BUF_LEN];
data/sweep-0.9.3/src/file_speex.c:1072: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_vorbis.c:255: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 buf[BUF_LEN];
data/sweep-0.9.3/src/file_vorbis.c:261:7:  [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).
  f = fopen (pathname, "r");
data/sweep-0.9.3/src/file_vorbis.c:335:5:  [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[BUF_LEN];
data/sweep-0.9.3/src/file_vorbis.c:449:19:  [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 (pathname, "w"))) {
data/sweep-0.9.3/src/file_vorbis.c:620:5:  [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 time_buf[BUF_LEN], bytes_buf[BUF_LEN];
data/sweep-0.9.3/src/file_vorbis.c:651:5:  [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 time_buf[BUF_LEN], bytes_buf[BUF_LEN];
data/sweep-0.9.3/src/file_vorbis.c:700: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 buf[BUF_LEN];
data/sweep-0.9.3/src/head.c:237: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 buf[BUF_LEN];
data/sweep-0.9.3/src/notes.c:51: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 [5];
data/sweep-0.9.3/src/notes.c:54: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 accel_basename [4];
data/sweep-0.9.3/src/param.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 (p2, p1, sizeof (sw_param));
data/sweep-0.9.3/src/paste_dialogs.c:218: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 buf[BUF_LEN];
data/sweep-0.9.3/src/question_dialogs.c:219: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 buf[BUF_LEN];
data/sweep-0.9.3/src/question_dialogs.c:270: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 buf[BUF_LEN];
data/sweep-0.9.3/src/samplerate.c:232: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 buf[BUF_LEN];
data/sweep-0.9.3/src/sw_chooser.c:149: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 buf[BUF_LEN];
data/sweep-0.9.3/src/sw_chooser.c:243:12:  [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).
  number = atoi (text);
data/sweep-0.9.3/src/sweep_sample.c:215: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(sn->sounddata->data, s->sounddata->data,
data/sweep-0.9.3/src/sweep_sample.c:306: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 buf[BUF_LEN];
data/sweep-0.9.3/src/sweep_sample.c:1281: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 buf[BUF_LEN];
data/sweep-0.9.3/src/sweep_sample.c:1806: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 rate_buf[RATE_BUF_LEN];
data/sweep-0.9.3/src/sweep_sample.c:1809: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 chan_buf[CHAN_BUF_LEN];
data/sweep-0.9.3/src/sweep_sample.c:1812: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 byte_buf[BYTE_BUF_LEN];
data/sweep-0.9.3/src/sweep_sample.c:1815: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 time_buf[TIME_BUF_LEN];
data/sweep-0.9.3/src/sweep_undo.c:318: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 buf[BUF_LEN];
data/sweep-0.9.3/src/tdb/tdb.c:404: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(off + (char *)tdb->map_ptr, buf, len);
data/sweep-0.9.3/src/tdb/tdb.c:427: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(buf, off + (char *)tdb->map_ptr, len);
data/sweep-0.9.3/src/tdb/tdb.c:755: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[1024];
data/sweep-0.9.3/src/tdb/tdb.c:996: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(newdb->magic_food, TDB_MAGIC_FOOD, strlen(TDB_MAGIC_FOOD)+1);
data/sweep-0.9.3/src/tdb/tdb.c:1525: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(p, key.dptr, key.dsize);
data/sweep-0.9.3/src/tdb/tdb.c:1527:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize);
data/sweep-0.9.3/src/tdb/tdb.c:1636: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(p, key.dptr, key.dsize);
data/sweep-0.9.3/src/tdb/tdb.c:1645:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p+key.dsize+rec.data_len, new_dbuf.dptr, new_dbuf.dsize);
data/sweep-0.9.3/src/tdb/tdb.c:1778:17:  [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 ((tdb->fd = open(name, open_flags, mode)) == -1) {
data/sweep-0.9.3/src/tdb/tdb.c:2021: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).
	tdb->fd = open(tdb->name, tdb->open_flags & ~(O_CREAT|O_TRUNC), 0);
data/sweep-0.9.3/src/tdb/tdb.h: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 magic_food[32]; /* for /etc/magic */
data/sweep-0.9.3/src/view.c:1458: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 buf[BUF_LEN];
data/sweep-0.9.3/src/view.c:3271: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 buf[BUF_LEN];
data/sweep-0.9.3/src/view.c:3396: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 buf[BUF_LEN];
data/sweep-0.9.3/src/view.c:3438: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 buf[BUF_LEN];
data/sweep-0.9.3/src/view.c:3479: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 byte_buf[BYTE_BUF_LEN];
data/sweep-0.9.3/src/view.c:3482: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 time_buf[TIME_BUF_LEN];
data/sweep-0.9.3/src/view.c:3485: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 chan_buf[CHAN_BUF_LEN];
data/sweep-0.9.3/src/view.c:3488: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 buf [BUF_LEN];
data/sweep-0.9.3/intl/bindtextdom.c:154:22:  [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 (dirname) + 1;
data/sweep-0.9.3/intl/bindtextdom.c:192: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).
		  size_t len = strlen (codeset) + 1;
data/sweep-0.9.3/intl/bindtextdom.c:224: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).
      size_t len = strlen (domainname) + 1;
data/sweep-0.9.3/intl/bindtextdom.c:252: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).
		  size_t len = strlen (dirname) + 1;
data/sweep-0.9.3/intl/bindtextdom.c:283: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).
	      size_t len = strlen (codeset) + 1;
data/sweep-0.9.3/intl/dcigettext.c:477: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).
  msgid_len = strlen (msgid1) + 1;
data/sweep-0.9.3/intl/dcigettext.c:531:28:  [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 dirname_len = strlen (binding->dirname) + 1;
data/sweep-0.9.3/intl/dcigettext.c:564: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).
  domainname_len = strlen (domainname);
data/sweep-0.9.3/intl/dcigettext.c:565: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).
  xdomainname = (char *) alloca (strlen (categoryname)
data/sweep-0.9.3/intl/dcigettext.c:574: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).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/sweep-0.9.3/intl/dcigettext.c:745: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).
      nls_uint32 len = strlen (msgid);
data/sweep-0.9.3/intl/eval-plural.h:88:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      case equal:
data/sweep-0.9.3/intl/finddomain.c:89: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/sweep-0.9.3/intl/finddomain.c:125: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).
      size_t len = strlen (alias_value) + 1;
data/sweep-0.9.3/intl/finddomain.c:144: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).
			       strlen (dirname) + 1, mask, language, territory,
data/sweep-0.9.3/intl/l10nflist.c:93:25:  [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 part_len = strlen (argz);
data/sweep-0.9.3/intl/l10nflist.c:116:25:  [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 part_len = strlen (argz);
data/sweep-0.9.3/intl/l10nflist.c:192: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).
				  + strlen (language)
data/sweep-0.9.3/intl/l10nflist.c:194: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).
				     ? strlen (territory) + 1 : 0)
data/sweep-0.9.3/intl/l10nflist.c:196: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).
				     ? strlen (codeset) + 1 : 0)
data/sweep-0.9.3/intl/l10nflist.c:198: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).
				     ? strlen (normalized_codeset) + 1 : 0)
data/sweep-0.9.3/intl/l10nflist.c:201: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).
				     ? strlen (modifier) + 1 : 0)
data/sweep-0.9.3/intl/l10nflist.c:203: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).
				     ? strlen (special) + 1 : 0)
data/sweep-0.9.3/intl/l10nflist.c:207: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).
					     ? strlen (sponsor) : 0)
data/sweep-0.9.3/intl/l10nflist.c:209: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).
					   ? strlen (revision) + 1 : 0)) : 0)
data/sweep-0.9.3/intl/l10nflist.c:210: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).
				  + 1 + strlen (filename) + 1);
data/sweep-0.9.3/intl/l10nflist.c:346: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).
		= _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
data/sweep-0.9.3/intl/langprefs.c:76: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).
		    size += strlen (buf) + 1;
data/sweep-0.9.3/intl/langprefs.c:108: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).
			    p += strlen (buf);
data/sweep-0.9.3/intl/loadmsgcat.c:462:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read   __read
data/sweep-0.9.3/intl/loadmsgcat.c:810: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).
	  charsetstr += strlen ("charset=");
data/sweep-0.9.3/intl/loadmsgcat.c:862:14:  [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 (outcharset);
data/sweep-0.9.3/intl/loadmsgcat.c:988:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/sweep-0.9.3/intl/loadmsgcat.c:1166: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).
			      need += strlen (sysdep_segment_values[sysdepref]);
data/sweep-0.9.3/intl/loadmsgcat.c:1301: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).
					n = strlen (sysdep_segment_values[sysdepref]);
data/sweep-0.9.3/intl/localcharset.c:90:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/sweep-0.9.3/intl/localcharset.c:91:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/sweep-0.9.3/intl/localcharset.c:131: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).
	size_t dir_len = strlen (dir);
data/sweep-0.9.3/intl/localcharset.c:132: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).
	size_t base_len = strlen (base);
data/sweep-0.9.3/intl/localcharset.c:161:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = getc (fp);
data/sweep-0.9.3/intl/localcharset.c:170:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    c = getc (fp);
data/sweep-0.9.3/intl/localcharset.c:177:12:  [1] (buffer) fscanf:
  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.
	      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/sweep-0.9.3/intl/localcharset.c:179: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).
	      l1 = strlen (buf1);
data/sweep-0.9.3/intl/localcharset.c:180: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).
	      l2 = strlen (buf2);
data/sweep-0.9.3/intl/localcharset.c:394: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/sweep-0.9.3/intl/localcharset.c:394:52:  [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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/sweep-0.9.3/intl/localcharset.c:398:22:  [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).
	codeset = aliases + strlen (aliases) + 1;
data/sweep-0.9.3/intl/localealias.c:305: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).
	      alias_len = strlen (alias) + 1;
data/sweep-0.9.3/intl/localealias.c:306: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).
	      value_len = strlen (value) + 1;
data/sweep-0.9.3/intl/localename.c:917: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 (name) == 7 && name[2] == '-')
data/sweep-0.9.3/intl/log.c:75: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).
      last_logfilename = (char *) malloc (strlen (logfilename) + 1);
data/sweep-0.9.3/intl/os2compat.c:59: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).
          size_t sl = strlen (root);
data/sweep-0.9.3/intl/os2compat.c:60:49:  [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).
          _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
data/sweep-0.9.3/intl/os2compat.c:62: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).
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/sweep-0.9.3/intl/os2compat.c:73: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).
          size_t sl = strlen (root);
data/sweep-0.9.3/intl/os2compat.c:74:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
data/sweep-0.9.3/intl/os2compat.c:76:67:  [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 (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/sweep-0.9.3/intl/os2compat.c:87: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).
          size_t sl = strlen (root);
data/sweep-0.9.3/intl/os2compat.c:88:52:  [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).
          _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
data/sweep-0.9.3/intl/os2compat.c:90: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).
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/sweep-0.9.3/intl/os2compat.c:96: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 (_nlos2_localedir) <= MAXPATHLEN)
data/sweep-0.9.3/intl/plural-exp.h:54:5:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    equal,			/* Comparison for equality.  */
data/sweep-0.9.3/intl/plural.c:564: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).
#   define yystrlen strlen
data/sweep-0.9.3/intl/plural.c:1385:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	  lval->op = equal;
data/sweep-0.9.3/intl/relocatable.c:117:25:  [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).
      orig_prefix_len = strlen (orig_prefix_arg);
data/sweep-0.9.3/intl/relocatable.c:118:25:  [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).
      curr_prefix_len = strlen (curr_prefix_arg);
data/sweep-0.9.3/intl/relocatable.c:184: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).
  if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))
data/sweep-0.9.3/intl/relocatable.c:188:38:  [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).
  rel_installdir = orig_installdir + strlen (orig_installprefix);
data/sweep-0.9.3/intl/relocatable.c:193:37:  [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).
    const char *p = curr_pathname + strlen (curr_pathname);
data/sweep-0.9.3/intl/relocatable.c:216:39:  [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).
    const char *rp = rel_installdir + strlen (rel_installdir);
data/sweep-0.9.3/intl/relocatable.c:217:40:  [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).
    const char *cp = curr_installdir + strlen (curr_installdir);
data/sweep-0.9.3/intl/relocatable.c:335:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      while (c = getc (fp), c != EOF && c != '\n' && c != '/')
data/sweep-0.9.3/intl/relocatable.c:354:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while (c = getc (fp), c != EOF && c != '\n')
data/sweep-0.9.3/intl/relocatable.c:433: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).
	    (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
data/sweep-0.9.3/intl/textdomain.c:112: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).
      size_t len = strlen (domainname) + 1;
data/sweep-0.9.3/intl/vasnprintf.c:62:24:  [1] (buffer) wcslen:
  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).
#  define local_wcslen wcslen
data/sweep-0.9.3/src/driver.c:691:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (pref->read)
data/sweep-0.9.3/src/driver.c:692:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return pref->read (handle, buf, count);
data/sweep-0.9.3/src/driver.h:46:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t (*read) (sw_handle * handle, sw_audio_t * buf, size_t count);
data/sweep-0.9.3/src/driver_oss.c:271:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes_read = read (handle->driver_fd, bbuf, byte_count);
data/sweep-0.9.3/src/edit.c:72: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).
	template_len = strlen(tmpdir) + strlen("/") + strlen(filename_template) + 1;
data/sweep-0.9.3/src/edit.c:72: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).
	template_len = strlen(tmpdir) + strlen("/") + strlen(filename_template) + 1;
data/sweep-0.9.3/src/edit.c:72:48:  [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).
	template_len = strlen(tmpdir) + strlen("/") + strlen(filename_template) + 1;
data/sweep-0.9.3/src/file_mad.c:100:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read (fd, buf, BUF_LEN);
data/sweep-0.9.3/src/file_speex.c:191:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((nread = read (fd, ogg_data, READ_SIZE)) <= 0) goto out_false_sync;
data/sweep-0.9.3/src/file_speex.c:401:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      nread = read (fd, ogg_data, n);
data/sweep-0.9.3/src/file_speex.c:637:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int vendor_length=strlen(vendor_string);
data/sweep-0.9.3/src/file_speex.c:654:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int tag_len=(tag?strlen(tag):0);
data/sweep-0.9.3/src/file_speex.c:655:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int val_len=strlen(val);
data/sweep-0.9.3/src/preferences.c:145: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:159: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:184: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:203: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:232: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:256: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:293: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:313: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:328: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).
  key_data.dsize = strlen (key);
data/sweep-0.9.3/src/preferences.c:331: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).
  val_data.dsize = strlen (val) + 1;
data/sweep-0.9.3/src/tdb/tdb.c:432:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		 || read(tdb->fd, buf, len) != (ssize_t)len) {
data/sweep-0.9.3/src/tdb/tdb.c:996:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(newdb->magic_food, TDB_MAGIC_FOOD, strlen(TDB_MAGIC_FOOD)+1);
data/sweep-0.9.3/src/tdb/tdb.c:1803:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(tdb->fd, &tdb->header, sizeof(tdb->header)) != sizeof(tdb->header)
data/sweep-0.9.3/src/time_ruler.c:249: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).
 text_width = strlen (unit_str) * digit_height + 1;

ANALYSIS SUMMARY:

Hits = 333
Lines analyzed = 52731 in approximately 1.14 seconds (46314 lines/second)
Physical Source Lines of Code (SLOC) = 36274
Hits@level = [0] 184 [1] 103 [2] 163 [3]  32 [4]  33 [5]   2
Hits@level+ = [0+] 517 [1+] 333 [2+] 230 [3+]  67 [4+]  35 [5+]   2
Hits/KSLOC@level+ = [0+] 14.2526 [1+] 9.18013 [2+] 6.34063 [3+] 1.84705 [4+] 0.964878 [5+] 0.0551359
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.