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/moc-2.6.0~svn-r3005/playlist.c
Examining data/moc-2.6.0~svn-r3005/playlist.h
Examining data/moc-2.6.0~svn-r3005/tags_cache.c
Examining data/moc-2.6.0~svn-r3005/softmixer.h
Examining data/moc-2.6.0~svn-r3005/tags_cache.h
Examining data/moc-2.6.0~svn-r3005/themes.h
Examining data/moc-2.6.0~svn-r3005/themes.c
Examining data/moc-2.6.0~svn-r3005/utf8.h
Examining data/moc-2.6.0~svn-r3005/utf8.c
Examining data/moc-2.6.0~svn-r3005/alsa.c
Examining data/moc-2.6.0~svn-r3005/alsa.h
Examining data/moc-2.6.0~svn-r3005/audio.c
Examining data/moc-2.6.0~svn-r3005/audio.h
Examining data/moc-2.6.0~svn-r3005/audio_conversion.c
Examining data/moc-2.6.0~svn-r3005/audio_conversion.h
Examining data/moc-2.6.0~svn-r3005/common.c
Examining data/moc-2.6.0~svn-r3005/common.h
Examining data/moc-2.6.0~svn-r3005/compat.c
Examining data/moc-2.6.0~svn-r3005/compat.h
Examining data/moc-2.6.0~svn-r3005/compiler.h
Examining data/moc-2.6.0~svn-r3005/decoder.c
Examining data/moc-2.6.0~svn-r3005/decoder.h
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/modplug/modplug.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/xing.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/xing.h
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.h
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/timidity/timidity.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c
Examining data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c
Examining data/moc-2.6.0~svn-r3005/equalizer.c
Examining data/moc-2.6.0~svn-r3005/equalizer.h
Examining data/moc-2.6.0~svn-r3005/fifo_buf.c
Examining data/moc-2.6.0~svn-r3005/fifo_buf.h
Examining data/moc-2.6.0~svn-r3005/files.c
Examining data/moc-2.6.0~svn-r3005/files.h
Examining data/moc-2.6.0~svn-r3005/interface.c
Examining data/moc-2.6.0~svn-r3005/interface.h
Examining data/moc-2.6.0~svn-r3005/interface_elements.c
Examining data/moc-2.6.0~svn-r3005/interface_elements.h
Examining data/moc-2.6.0~svn-r3005/io.c
Examining data/moc-2.6.0~svn-r3005/io.h
Examining data/moc-2.6.0~svn-r3005/io_curl.c
Examining data/moc-2.6.0~svn-r3005/io_curl.h
Examining data/moc-2.6.0~svn-r3005/jack.c
Examining data/moc-2.6.0~svn-r3005/jack.h
Examining data/moc-2.6.0~svn-r3005/keys.h
Examining data/moc-2.6.0~svn-r3005/lists.c
Examining data/moc-2.6.0~svn-r3005/lists.h
Examining data/moc-2.6.0~svn-r3005/log.c
Examining data/moc-2.6.0~svn-r3005/log.h
Examining data/moc-2.6.0~svn-r3005/lyrics.c
Examining data/moc-2.6.0~svn-r3005/lyrics.h
Examining data/moc-2.6.0~svn-r3005/main.c
Examining data/moc-2.6.0~svn-r3005/md5.c
Examining data/moc-2.6.0~svn-r3005/md5.h
Examining data/moc-2.6.0~svn-r3005/menu.c
Examining data/moc-2.6.0~svn-r3005/menu.h
Examining data/moc-2.6.0~svn-r3005/null_out.c
Examining data/moc-2.6.0~svn-r3005/null_out.h
Examining data/moc-2.6.0~svn-r3005/options.h
Examining data/moc-2.6.0~svn-r3005/oss.c
Examining data/moc-2.6.0~svn-r3005/oss.h
Examining data/moc-2.6.0~svn-r3005/out_buf.c
Examining data/moc-2.6.0~svn-r3005/out_buf.h
Examining data/moc-2.6.0~svn-r3005/player.c
Examining data/moc-2.6.0~svn-r3005/player.h
Examining data/moc-2.6.0~svn-r3005/playlist_file.c
Examining data/moc-2.6.0~svn-r3005/playlist_file.h
Examining data/moc-2.6.0~svn-r3005/protocol.c
Examining data/moc-2.6.0~svn-r3005/protocol.h
Examining data/moc-2.6.0~svn-r3005/rbtree.c
Examining data/moc-2.6.0~svn-r3005/rbtree.h
Examining data/moc-2.6.0~svn-r3005/rcc.c
Examining data/moc-2.6.0~svn-r3005/rcc.h
Examining data/moc-2.6.0~svn-r3005/server.c
Examining data/moc-2.6.0~svn-r3005/server.h
Examining data/moc-2.6.0~svn-r3005/sndio_out.c
Examining data/moc-2.6.0~svn-r3005/sndio_out.h
Examining data/moc-2.6.0~svn-r3005/softmixer.c
Examining data/moc-2.6.0~svn-r3005/options.c
Examining data/moc-2.6.0~svn-r3005/keys.c

FINAL RESULTS:

data/moc-2.6.0~svn-r3005/common.c:317:8:  [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.
	len = vsnprintf (NULL, 0, format, va_copy) + 1;
data/moc-2.6.0~svn-r3005/common.c:320:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf (result, len, format, va);
data/moc-2.6.0~svn-r3005/common.h:26:51:  [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 ATTR_PRINTF(x,y) __attribute__ ((format (printf, x, y)))
data/moc-2.6.0~svn-r3005/decoder.c:534:2:  [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->type, prefix);
data/moc-2.6.0~svn-r3005/equalizer.c:559:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "eqsets/%s", de->d_name);
data/moc-2.6.0~svn-r3005/files.c:111:9:  [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.
	return access(file, R_OK) == 0;
data/moc-2.6.0~svn-r3005/files.c:583:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/%s", base_is_root ? "" : base, name);
data/moc-2.6.0~svn-r3005/files.c:712:3:  [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, tmp);
data/moc-2.6.0~svn-r3005/files.c:716:3:  [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, path);
data/moc-2.6.0~svn-r3005/interface.c:1275:3:  [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_dir, strrchr(cwd, '/') + 1);
data/moc-2.6.0~svn-r3005/interface.c:1303:3:  [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 (cwd, dir);
data/moc-2.6.0~svn-r3005/interface.c:1552: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 (path, this_cwd);
data/moc-2.6.0~svn-r3005/interface.c:2130:3:  [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 (dir, cwd);
data/moc-2.6.0~svn-r3005/interface.c:2389:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf (tmp, "%s.m3u", text);
data/moc-2.6.0~svn-r3005/interface.c:3051:4:  [4] (shell) execvp:
  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.
			execvp (args[0], args);
data/moc-2.6.0~svn-r3005/interface_elements.c:424:2:  [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 (e->title, title);
data/moc-2.6.0~svn-r3005/interface_elements.c:1123: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 (title, strrchr (lists_strs_at (dirs, i), '/') + 1);
data/moc-2.6.0~svn-r3005/interface_elements.c:1137: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 (title, conv_title);
data/moc-2.6.0~svn-r3005/interface_elements.c:1144: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 (title, strrchr (lists_strs_at (dirs, i), '/') + 1);
data/moc-2.6.0~svn-r3005/interface_elements.c:1210:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (title, "...%s", tail);
data/moc-2.6.0~svn-r3005/interface_elements.c:2519:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (b->title, "%*s", b->width, b->orig_title);
data/moc-2.6.0~svn-r3005/interface_elements.c:2521:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (b->title, "%*s", b->width - 7, b->orig_title);
data/moc-2.6.0~svn-r3005/interface_elements.c:2608:3:  [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 (new_title, b->orig_title);
data/moc-2.6.0~svn-r3005/interface_elements.c:2777:2:  [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 (w->status_msg, msg);
data/moc-2.6.0~svn-r3005/keys.c:1213:3:  [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 (help[i] + HELP_INDENT, commands[i].help);
data/moc-2.6.0~svn-r3005/keys.c:1215:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat (help[i], unassigned);
data/moc-2.6.0~svn-r3005/lists.c:271:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			rc = snprintf (ptr, len + 1, fmt, lists_strs_at (list, ix));
data/moc-2.6.0~svn-r3005/lists.c:315:3:  [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 (ptr, lists_strs_at (list, ix));
data/moc-2.6.0~svn-r3005/log.c:115:3:  [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.
		fprintf (logfp, fmt, time_str, utc_time.tv_nsec / 1000L,
data/moc-2.6.0~svn-r3005/log.c:120:8:  [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.
	len = snprintf (NULL, 0, fmt, time_str, utc_time.tv_nsec / 1000L,
data/moc-2.6.0~svn-r3005/log.c:123:2:  [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 (str, len + 1, fmt, time_str, utc_time.tv_nsec / 1000L,
data/moc-2.6.0~svn-r3005/lyrics.c:131:3:  [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[space], line);
data/moc-2.6.0~svn-r3005/lyrics.c:227: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 (new_line, this_line);
data/moc-2.6.0~svn-r3005/main.c:105:2:  [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 (sock_name.sun_path, socket_name());
data/moc-2.6.0~svn-r3005/main.c:149:38:  [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 (!S_ISDIR(file_stat.st_mode) || access (dir_name, W_OK))
data/moc-2.6.0~svn-r3005/options.c:290:2:  [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 (options[pos].name, name);
data/moc-2.6.0~svn-r3005/playlist_file.c:56:3:  [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 (buf, cwd);
data/moc-2.6.0~svn-r3005/server.c:400:2:  [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 (sock_name.sun_path, socket_name());
data/moc-2.6.0~svn-r3005/server.c:1302:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "EQ set to: %s", n);
data/moc-2.6.0~svn-r3005/server.c:1347:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "Mono-Mixing set to: %s", softmixer_is_mono()?"on":"off");
data/moc-2.6.0~svn-r3005/tags_cache.c:1055:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (fname, "%s/%s", cache_dir, MOC_VERSION_TAG);
data/moc-2.6.0~svn-r3005/tags_cache.c:1106:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (fname, "%s/%s", cache_dir, MOC_VERSION_TAG);
data/moc-2.6.0~svn-r3005/common.c:414:19:  [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.
		home = xstrdup (getenv ("HOME"));
data/moc-2.6.0~svn-r3005/interface_elements.c:2372: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.
	term = getenv ("TERM");
data/moc-2.6.0~svn-r3005/interface_elements.c:2430: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.
	term = getenv ("TERM");
data/moc-2.6.0~svn-r3005/interface_elements.c:2431: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.
	window = getenv ("WINDOW");
data/moc-2.6.0~svn-r3005/interface_elements.c:3605:6:  [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 (getenv ("ESCDELAY") == NULL) {
data/moc-2.6.0~svn-r3005/main.c:417: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.
		str = getenv ("MOCP_POPTRC");
data/moc-2.6.0~svn-r3005/main.c:421: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.
		str = getenv ("MOCP_OPTS");
data/moc-2.6.0~svn-r3005/main.c:651: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.
	env_poptrc = getenv ("MOCP_POPTRC");
data/moc-2.6.0~svn-r3005/main.c:664: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.
	env_opts = getenv ("MOCP_OPTS");
data/moc-2.6.0~svn-r3005/main.c:1056:31:  [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 (!strcmp (opt, alias) || getenv ("MOCP_OPTS"))
data/moc-2.6.0~svn-r3005/main.c:1138: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.
		str = getenv (environment_variables[ix].name);
data/moc-2.6.0~svn-r3005/main.c:1251:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand (time(NULL));
data/moc-2.6.0~svn-r3005/options.c:916:20:  [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.
		value = xstrdup (getenv (name));
data/moc-2.6.0~svn-r3005/alsa.c:65:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char alsa_buf[512 * 1024];
data/moc-2.6.0~svn-r3005/alsa.c:525: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 fmt_name[128];
data/moc-2.6.0~svn-r3005/alsa.c:762: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 (alsa_buf + alsa_buf_fill, buff + buf_pos, to_copy);
data/moc-2.6.0~svn-r3005/audio.c:190: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 fmt_name1[SFMT_STR_MAX] DEBUG_ONLY;
data/moc-2.6.0~svn-r3005/audio.c:191: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 fmt_name2[SFMT_STR_MAX] DEBUG_ONLY;
data/moc-2.6.0~svn-r3005/audio.c:720:11:  [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).
	res = hw.open (&driver_sound_params);
data/moc-2.6.0~svn-r3005/audio.c:723: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 fmt_name[SFMT_STR_MAX] LOGIT_ONLY;
data/moc-2.6.0~svn-r3005/audio.c:807: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 (equalized, buf, size);
data/moc-2.6.0~svn-r3005/audio.c:823: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 (softmixed, buf, size);
data/moc-2.6.0~svn-r3005/audio.c:932: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 fmt_name[SFMT_STR_MAX] LOGIT_ONLY;
data/moc-2.6.0~svn-r3005/audio.h:128: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).
	int (*open) (struct sound_params *sound_params);
data/moc-2.6.0~svn-r3005/audio_conversion.c:249: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 fmt_name[SFMT_STR_MAX];
data/moc-2.6.0~svn-r3005/audio_conversion.c:298: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 fmt_name[SFMT_STR_MAX];
data/moc-2.6.0~svn-r3005/audio_conversion.c:371: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 fmt_name[SFMT_STR_MAX];
data/moc-2.6.0~svn-r3005/audio_conversion.c:536: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_input_start, buf, samples * sizeof(float));
data/moc-2.6.0~svn-r3005/audio_conversion.c:569: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 (new, resample_data.data_in, sizeof(float) *
data/moc-2.6.0~svn-r3005/audio_conversion.c:596:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (stereo + (i * 2), mono + i, Bps);
data/moc-2.6.0~svn-r3005/audio_conversion.c:597: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 (stereo + (i * 2 + Bps), mono + i, Bps);
data/moc-2.6.0~svn-r3005/audio_conversion.c:641: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 (curr_sound, buf, size);
data/moc-2.6.0~svn-r3005/common.c:199: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 *err_str, err_buf[256];
data/moc-2.6.0~svn-r3005/common.c:209:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (err_buf, "Error occurred obtaining error description");
data/moc-2.6.0~svn-r3005/common.c:257: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(target + p, newstr, newstr_len);
data/moc-2.6.0~svn-r3005/common.c:350:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char fname[PATH_MAX];
data/moc-2.6.0~svn-r3005/common.c:404:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (buff, "!!!!!");
data/moc-2.6.0~svn-r3005/decoder.c:213:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[4];
data/moc-2.6.0~svn-r3005/decoder.c:216:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (buf, "NET");
data/moc-2.6.0~svn-r3005/decoder.c:311: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[8096];
data/moc-2.6.0~svn-r3005/decoder.h:74: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).
	void *(*open)(const char *uri);
data/moc-2.6.0~svn-r3005/decoder.h:220:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	void (*get_name)(const char *file, char buf[4]);
data/moc-2.6.0~svn-r3005/decoder.h:220:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	void (*get_name)(const char *file, char buf[4]);
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rbuf[BUFFER_SIZE];
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:123:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int parse_frame (const unsigned char data[6])
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:518: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 (buffer, sample_buf, count);
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:522:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (buffer, sample_buf, bytes);
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:548: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, data->overflow_buf, len);
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:582:33:  [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 void aac_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:582:59:  [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 void aac_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/aac/aac.c:584:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "AAC");
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:411: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[128];
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:478:17:  [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).
		info->track = atoi (entry->value);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:851: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[8096 + AVPROBE_PADDING_SIZE] = {0};
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:878:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data->remain_buf, buf, len);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:888:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data->remain_buf + data->remain_buf_len, buf, len);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:909: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 (buf, data->remain_buf, to_copy);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:932: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 (out, in, in_len);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:941: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 (out, in, out_len);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:1141: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 (packed + (sample * data->enc->channels + ch)
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:350:17:  [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).
		tags->track = atoi (value);
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:503: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 (buf, data->sample_buffer, to_copy);
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:536:34:  [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 void flac_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:536:60:  [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 void flac_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:538:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "FLC");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:66:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char in_buff[INPUT_BUFFER + MAD_BUFFER_GUARD];
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:688:33:  [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 void mp3_get_name (const char *file, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:688:45:  [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 void mp3_get_name (const char *file, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:692:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "MPx");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:697:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "MP3");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:699:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "MP2");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:701:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "MP1");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:703:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "MPG");
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/mp3.c:737:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[16 * 1024];
data/moc-2.6.0~svn-r3005/decoder_plugins/mp3/xing.h:31: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 toc[100];	/* 100-point seek table */
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:341: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, data->remain_buf, to_copy);
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:409: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, decode_buf, to_copy);
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:414:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (data->remain_buf, decode_buf + to_copy,
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:420: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, decode_buf, bytes_from_decoder);
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:455:38:  [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 void musepack_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:455:64:  [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 void musepack_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/musepack/musepack.c:457:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "MPC");
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:72:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info->track = atoi (comments->user_comments[i]
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:76:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info->track = atoi (comments->user_comments[i]
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:279: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[36];
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:425:34:  [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 void opus_get_name (const char *file ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:425:58:  [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 void opus_get_name (const char *file ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:427:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "OPS");
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:220: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).
    if(database->open(dbfile)<0)
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.h:90:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sidplay2_get_name (const char *file, char buf[4]);
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.h:90:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sidplay2_get_name (const char *file, char buf[4]);
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:152:7:  [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 (file, O_RDONLY);
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:257:37:  [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 void sndfile_get_name (const char *file, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:257:49:  [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 void sndfile_get_name (const char *file, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:264:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "AU");
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:266:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "SVX");
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:268:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "OGG");
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:270:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "IRC");
data/moc-2.6.0~svn-r3005/decoder_plugins/sndfile/sndfile.c:272:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (buf, "MAT");
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:203:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy (data->comment_packet,
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[36];
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:320:17:  [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).
		tags->track = atoi (str	+ strlen ("tracknumber="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:322:17:  [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).
		tags->track = atoi (str	+ strlen ("track="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:564:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (out, data->output + data->output_start,
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:656:33:  [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 void spx_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:656:59:  [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 void spx_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:658:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "SPX");
data/moc-2.6.0~svn-r3005/decoder_plugins/timidity/timidity.c:159:38:  [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 void timidity_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/timidity/timidity.c:159:64:  [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 void timidity_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/timidity/timidity.c:161:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy (buf, "MID");
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:97:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info->track = atoi (comments->user_comments[i]
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:101:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info->track = atoi (comments->user_comments[i]
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:142:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(file = fopen (file_name, "r"))) {
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:279: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[35];
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:422:36:  [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 void vorbis_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:422:62:  [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 void vorbis_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:424:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "OGG");
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:78: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 wv_error[100];
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:150: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 wv_error[100];
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:189:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info->track = atoi (tag);
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:227: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, dbuf, ret * oBps);
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:267:33:  [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 void wav_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:267:59:  [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 void wav_get_name (const char *unused ATTR_UNUSED, char buf[4])
data/moc-2.6.0~svn-r3005/decoder_plugins/wavpack/wavpack.c:269:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (buf, "WV");
data/moc-2.6.0~svn-r3005/equalizer.c:359:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *cf = fopen(sfile, "r");
data/moc-2.6.0~svn-r3005/equalizer.c:372: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 presetbuf[128];
data/moc-2.6.0~svn-r3005/equalizer.c:456:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *cf = fopen(cfname, "w");
data/moc-2.6.0~svn-r3005/equalizer.c:525: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[1024];
data/moc-2.6.0~svn-r3005/equalizer.c:567:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *f = fopen(filename, "r");
data/moc-2.6.0~svn-r3005/equalizer.c:571:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filebuffer[4096];
data/moc-2.6.0~svn-r3005/fifo_buf.c:80: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 (b->buf + write_from, data + written, to_write);
data/moc-2.6.0~svn-r3005/fifo_buf.c:108: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 (user_buf + user_buf_pos, b->buf + pos, to_copy);
data/moc-2.6.0~svn-r3005/fifo_buf.c:135: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 (user_buf + user_buf_pos, b->buf + b->pos, to_copy);
data/moc-2.6.0~svn-r3005/files.c:273: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 path[2*PATH_MAX]; /* temporary path */
data/moc-2.6.0~svn-r3005/files.c:398: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 file[PATH_MAX];
data/moc-2.6.0~svn-r3005/files.c:480: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 file[PATH_MAX];
data/moc-2.6.0~svn-r3005/files.c:699: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 tmp[2*PATH_MAX];
data/moc-2.6.0~svn-r3005/interface.c:67:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cwd[PATH_MAX] = "";
data/moc-2.6.0~svn-r3005/interface.c:530: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 (!(dir_file = fopen(create_file_name("last_directory"), "r")))
data/moc-2.6.0~svn-r3005/interface.c:1267: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 last_dir[PATH_MAX];
data/moc-2.6.0~svn-r3005/interface.c:1507: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 path[PATH_MAX + 1];   /* the playlist's directory */
data/moc-2.6.0~svn-r3005/interface.c:1530: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 this_cwd[PATH_MAX];
data/moc-2.6.0~svn-r3005/interface.c:1539: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 path[2 * PATH_MAX];
data/moc-2.6.0~svn-r3005/interface.c:2076: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 music_dir[PATH_MAX] = "/";
data/moc-2.6.0~svn-r3005/interface.c:2147: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[PATH_MAX+1];
data/moc-2.6.0~svn-r3005/interface.c:2722: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 file[PATH_MAX];
data/moc-2.6.0~svn-r3005/interface.c:3119: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 option_name[20];
data/moc-2.6.0~svn-r3005/interface.c:3123:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (option_name, "FastDir%d", num);
data/moc-2.6.0~svn-r3005/interface.c:3126: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 dir[PATH_MAX] = "/";
data/moc-2.6.0~svn-r3005/interface.c:3500:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logfp = fopen (INTERFACE_LOG, "a");
data/moc-2.6.0~svn-r3005/interface.c:3653: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 (!(dir_file = fopen(create_file_name("last_directory"), "w"))) {
data/moc-2.6.0~svn-r3005/interface.c:3753: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 path[PATH_MAX + 1];
data/moc-2.6.0~svn-r3005/interface.c:3936: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 curr_time_str[32];
data/moc-2.6.0~svn-r3005/interface.c:3937: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_left_str[32];
data/moc-2.6.0~svn-r3005/interface.c:3938: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_str[32];
data/moc-2.6.0~svn-r3005/interface.c:3991:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (curr_time_str, "00:00");
data/moc-2.6.0~svn-r3005/interface.c:4144:17:  [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).
		adjust_mixer (atoi (arg + 1));
data/moc-2.6.0~svn-r3005/interface.c:4146:17:  [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).
		adjust_mixer (atoi (arg)); /* atoi can handle '-' */
data/moc-2.6.0~svn-r3005/interface.c:4148:14:  [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).
		set_mixer (atoi (arg));
data/moc-2.6.0~svn-r3005/interface.c:4224: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 curr_time_str[32];
data/moc-2.6.0~svn-r3005/interface.c:4225: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 time_left_str[32];
data/moc-2.6.0~svn-r3005/interface.c:4226: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 time_str[32];
data/moc-2.6.0~svn-r3005/interface.c:4227: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 time_sec_str[16];
data/moc-2.6.0~svn-r3005/interface.c:4228: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 curr_time_sec_str[16];
data/moc-2.6.0~svn-r3005/interface.c:4229: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 file_bitrate_str[16];
data/moc-2.6.0~svn-r3005/interface.c:4230: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 file_rate_str[16];
data/moc-2.6.0~svn-r3005/interface.c:4311:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy (curr_time_str, "00:00");
data/moc-2.6.0~svn-r3005/interface_elements.c:142: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 title[512];	/* title with the percent value */
data/moc-2.6.0~svn-r3005/interface_elements.c:152: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 *items[HISTORY_SIZE];
data/moc-2.6.0~svn-r3005/interface_elements.c:163:2:  [2] (buffer) wchar_t:
  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.
	wchar_t text_ucs[512];	/* unicode */
data/moc-2.6.0~svn-r3005/interface_elements.c:164:2:  [2] (buffer) wchar_t:
  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.
	wchar_t saved_ucs[512];	/* unicode saved during history scrolling */
data/moc-2.6.0~svn-r3005/interface_elements.c:242: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 status_msg[26];	/* status message */
data/moc-2.6.0~svn-r3005/interface_elements.c:366: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 (text_ucs, e->text_ucs + e->display_from,
data/moc-2.6.0~svn-r3005/interface_elements.c:466:2:  [2] (buffer) wchar_t:
  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.
	wchar_t text_ucs[ARRAY_SIZE (e->text_ucs)];
data/moc-2.6.0~svn-r3005/interface_elements.c:1049: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_str[32];
data/moc-2.6.0~svn-r3005/interface_elements.c:1118:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char title[PATH_MAX];
data/moc-2.6.0~svn-r3005/interface_elements.c:1183: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 line[512];
data/moc-2.6.0~svn-r3005/interface_elements.c:1402: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_str[32];
data/moc-2.6.0~svn-r3005/interface_elements.c:2513: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 pct[8];
data/moc-2.6.0~svn-r3005/interface_elements.c:2522:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (pct, " 100%  ");
data/moc-2.6.0~svn-r3005/interface_elements.c:2881: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 time_str[32];
data/moc-2.6.0~svn-r3005/interface_elements.c:3331:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (buff, "!!!!!!!!!");
data/moc-2.6.0~svn-r3005/interface_elements.c:3339: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[48];
data/moc-2.6.0~svn-r3005/interface_elements.c:3736:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[20];
data/moc-2.6.0~svn-r3005/interface_elements.c:4337: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 layout_option[32];
data/moc-2.6.0~svn-r3005/interface_elements.c:4343:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (layout_option, "Layout%d", curr_layout);
data/moc-2.6.0~svn-r3005/io.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 (buf, (char *)s->mem + s->mem_pos, to_read);
data/moc-2.6.0~svn-r3005/io.c:389: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 read_buf[8096];
data/moc-2.6.0~svn-r3005/io.c:483:11:  [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).
		s->fd = open (file, O_RDONLY);
data/moc-2.6.0~svn-r3005/io_curl.c:65: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 (s->curl.buf + buf_start, data, data_size);
data/moc-2.6.0~svn-r3005/io_curl.c:87: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 (header, data, size * nmemb - 2);
data/moc-2.6.0~svn-r3005/io_curl.c:417: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, s->curl.buf, to_copy);
data/moc-2.6.0~svn-r3005/io_curl.c:445: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[64];
data/moc-2.6.0~svn-r3005/io_curl.c:446: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 value[256];
data/moc-2.6.0~svn-r3005/jack.c:77:41:  [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.
		jack_ringbuffer_read (ringbuffer[0], (char *)out[0],
data/moc-2.6.0~svn-r3005/jack.c:79:41:  [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.
		jack_ringbuffer_read (ringbuffer[1], (char *)out[1],
data/moc-2.6.0~svn-r3005/jack.c:212: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 fmt_name[SFMT_STR_MAX];
data/moc-2.6.0~svn-r3005/keys.c:878:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *help[COMMANDS_NUM];
data/moc-2.6.0~svn-r3005/keys.c:906:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char path[PATH_MAX];
data/moc-2.6.0~svn-r3005/keys.c:1064:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(file = fopen(file_name, "r")))
data/moc-2.6.0~svn-r3005/keys.c:1109:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char key_str[4];
data/moc-2.6.0~svn-r3005/keys.c:1128:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy (key_str, "M-");
data/moc-2.6.0~svn-r3005/keys.c:1177:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char keys[64];
data/moc-2.6.0~svn-r3005/log.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *str, time_str[20];
data/moc-2.6.0~svn-r3005/lyrics.c:65:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	lyrics_file = fopen (filename, "r");
data/moc-2.6.0~svn-r3005/main.c:734: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 (&result[iy], &opts[ix], sizeof (struct poptOption));
data/moc-2.6.0~svn-r3005/md5.c:71:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/moc-2.6.0~svn-r3005/md5.c:94: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 (cp, &v, sizeof v);
data/moc-2.6.0~svn-r3005/md5.c:129: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 (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/moc-2.6.0~svn-r3005/md5.c:240: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 (&((char *) ctx->buffer)[left_over], buffer, add);
data/moc-2.6.0~svn-r3005/md5.c:249: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 (ctx->buffer,
data/moc-2.6.0~svn-r3005/md5.c:267:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/moc-2.6.0~svn-r3005/md5.c:285: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 (&((char *) ctx->buffer)[left_over], buffer, len);
data/moc-2.6.0~svn-r3005/md5.c:291: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 (ctx->buffer, &ctx->buffer[16], left_over);
data/moc-2.6.0~svn-r3005/menu.c:36: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[32];
data/moc-2.6.0~svn-r3005/menu.c:72:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (buf, "%d", mi->queue_pos);
data/moc-2.6.0~svn-r3005/menu.h:59: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 time[FILE_TIME_STR_SZ];		/* File time string */
data/moc-2.6.0~svn-r3005/menu.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[FILE_FORMAT_SZ];		/* File format */
data/moc-2.6.0~svn-r3005/options.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[OPTION_NAME_MAX];
data/moc-2.6.0~svn-r3005/options.c:156:33:  [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.
				if (strcasecmp (str_val, (((char **) options[opt].constraints)[ix])) >= 0 &&
data/moc-2.6.0~svn-r3005/options.c:157:33:  [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.
				    strcasecmp (str_val, (((char **) options[opt].constraints)[ix + 1])) <= 0) {
data/moc-2.6.0~svn-r3005/options.c:203:33:  [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.
				if (!strcasecmp(str_val, (((char **) options[opt].constraints)[ix]))) {
data/moc-2.6.0~svn-r3005/options.c:353: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 **) options[pos].constraints)[ix] = xstrdup (va_arg (va, char *));
data/moc-2.6.0~svn-r3005/options.c:380: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 **) options[pos].constraints)[ix] = xstrdup (val);
data/moc-2.6.0~svn-r3005/options.c:382:31:  [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.
			options[pos].value.str = ((char **) options[pos].constraints)[ix];
data/moc-2.6.0~svn-r3005/options.c:411: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 **) options[pos].constraints)[ix] = xstrdup (va_arg (va, char *));
data/moc-2.6.0~svn-r3005/options.c:448:29:  [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.
		if (!strcasecmp(value, (((char **) options[opt].constraints)[ix])))
data/moc-2.6.0~svn-r3005/options.c:449:31:  [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.
			options[opt].value.str = ((char **) options[opt].constraints)[ix];
data/moc-2.6.0~svn-r3005/options.c:918:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[16];
data/moc-2.6.0~svn-r3005/options.c:1032: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 opt_name[30];
data/moc-2.6.0~svn-r3005/options.c:1033: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 opt_value[512];
data/moc-2.6.0~svn-r3005/options.c:1042:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(file = fopen(config_file, "r"))) {
data/moc-2.6.0~svn-r3005/options.c:1168:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				free (((char **) options[i].constraints)[ix]);
data/moc-2.6.0~svn-r3005/options.c:1175: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.
					free (((char **) options[i].constraints)[ix]);
data/moc-2.6.0~svn-r3005/oss.c:69:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((dsp_fd = open (options_get_str ("OSSDevice"), O_WRONLY)) == -1) {
data/moc-2.6.0~svn-r3005/oss.c:203: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).
	mixer_fd = open (options_get_str ("OSSMixerDevice"), O_RDWR);
data/moc-2.6.0~svn-r3005/oss.c:267: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 fmt_name[SFMT_STR_MAX];
data/moc-2.6.0~svn-r3005/out_buf.c:111: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 play_buf[AUDIO_MAX_PLAY_BYTES];
data/moc-2.6.0~svn-r3005/out_buf.c:248:7:  [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 ("out_test", O_CREAT | O_TRUNC | O_WRONLY, 0600);
data/moc-2.6.0~svn-r3005/player.c:75: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[2 * PCM_BUF_SIZE]; /* PCM buffer with precached data */
data/moc-2.6.0~svn-r3005/player.c:250:40:  [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).
	precache->decoder_data = precache->f->open(precache->file);
data/moc-2.6.0~svn-r3005/player.c:447: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[PCM_BUF_SIZE];
data/moc-2.6.0~svn-r3005/player.c:639: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 md5sum[MD5_DIGEST_SIZE * 2 + 1], format;
data/moc-2.6.0~svn-r3005/player.c:643:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (&md5sum[ix * 2], "%02x", md5[ix]);
data/moc-2.6.0~svn-r3005/player.c:763:21:  [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).
		decoder_data = f->open(file);
data/moc-2.6.0~svn-r3005/player.c:836: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 msg[64];
data/moc-2.6.0~svn-r3005/player.c:838:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (msg, "Prebuffering %zu/%d KB", fill / 1024U,
data/moc-2.6.0~svn-r3005/playlist.c:369: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 (plist->items, sorted, sizeof(struct plist_item) * n);
data/moc-2.6.0~svn-r3005/playlist.c:440:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char track[16];
data/moc-2.6.0~svn-r3005/playlist.c:485: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 separator, expr[256];
data/moc-2.6.0~svn-r3005/playlist.c:578: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 title[512];
data/moc-2.6.0~svn-r3005/playlist_file.c:90:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (fname, "r");
data/moc-2.6.0~svn-r3005/playlist_file.c:103:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char time_text[10] = "";
data/moc-2.6.0~svn-r3005/playlist_file.c:144:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char path[2 * PATH_MAX];
data/moc-2.6.0~svn-r3005/playlist_file.c:299:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (fname, "r");
data/moc-2.6.0~svn-r3005/playlist_file.c:323: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 key[32], path[2 * PATH_MAX];
data/moc-2.6.0~svn-r3005/playlist_file.c:325:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (key, "File%ld", i);
data/moc-2.6.0~svn-r3005/playlist_file.c:332:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (key, "Title%ld", i);
data/moc-2.6.0~svn-r3005/playlist_file.c:335:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (key, "Length%ld", i);
data/moc-2.6.0~svn-r3005/playlist_file.c:410:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (fname, "w");
data/moc-2.6.0~svn-r3005/protocol.c:256: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 (b->buf + b->len, &n, sizeof(n));
data/moc-2.6.0~svn-r3005/protocol.c:272: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 (b->buf + b->len, str, str_len * sizeof(char));
data/moc-2.6.0~svn-r3005/protocol.c:282: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 (b->buf + b->len, &n, sizeof(n));
data/moc-2.6.0~svn-r3005/server.c:102:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(fname, "w")) == NULL)
data/moc-2.6.0~svn-r3005/server.c:116:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(fname, "r")) == NULL)
data/moc-2.6.0~svn-r3005/server.c:331: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 *args[2], *err;
data/moc-2.6.0~svn-r3005/server.c:381:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			logfp = fopen (SERVER_LOG, "a");
data/moc-2.6.0~svn-r3005/server.c:1284:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[27];
data/moc-2.6.0~svn-r3005/server.c:1343:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[128];
data/moc-2.6.0~svn-r3005/softmixer.c:129:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *cf = fopen(cfname, "r");
data/moc-2.6.0~svn-r3005/softmixer.c:239:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *cf = fopen(cfname, "w");
data/moc-2.6.0~svn-r3005/tags_cache.c:269: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, &rec->mod_time, sizeof(rec->mod_time));
data/moc-2.6.0~svn-r3005/tags_cache.c:272: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, &rec->atime, sizeof(rec->atime));
data/moc-2.6.0~svn-r3005/tags_cache.c:275: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, &artist_len, sizeof(artist_len));
data/moc-2.6.0~svn-r3005/tags_cache.c:278: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, rec->tags->artist, artist_len);
data/moc-2.6.0~svn-r3005/tags_cache.c:282: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, &album_len, sizeof(album_len));
data/moc-2.6.0~svn-r3005/tags_cache.c:285: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, rec->tags->album, album_len);
data/moc-2.6.0~svn-r3005/tags_cache.c:289: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, &title_len, sizeof(title_len));
data/moc-2.6.0~svn-r3005/tags_cache.c:292: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, rec->tags->title, title_len);
data/moc-2.6.0~svn-r3005/tags_cache.c:296: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, &rec->tags->track, sizeof(rec->tags->track));
data/moc-2.6.0~svn-r3005/tags_cache.c:299: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, &rec->tags->time, sizeof(rec->tags->time));
data/moc-2.6.0~svn-r3005/tags_cache.c:340: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 (var, p, str_len); \
data/moc-2.6.0~svn-r3005/tags_cache.c:488: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 (last_referenced, key.data, key.size);
data/moc-2.6.0~svn-r3005/tags_cache.c:1049: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 disk_version_tag[VERSION_TAG_MAX];
data/moc-2.6.0~svn-r3005/tags_cache.c:1057:6:  [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 (fname, "r");
data/moc-2.6.0~svn-r3005/tags_cache.c:1069: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 *ptr, cur_version_tag[VERSION_TAG_MAX];
data/moc-2.6.0~svn-r3005/tags_cache.c:1100: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 cur_version_tag[VERSION_TAG_MAX];
data/moc-2.6.0~svn-r3005/tags_cache.c:1108:6:  [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 (fname, "w");
data/moc-2.6.0~svn-r3005/tags_cache.c:1182: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).
	ret = c->db_env->open (c->db_env, cache_dir,
data/moc-2.6.0~svn-r3005/tags_cache.c:1211:15:  [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).
	ret = c->db->open (c->db, NULL, TAGS_DB, NULL, DB_BTREE,
data/moc-2.6.0~svn-r3005/themes.c:50:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char current_theme[PATH_MAX];
data/moc-2.6.0~svn-r3005/themes.c:267:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char path[PATH_MAX];
data/moc-2.6.0~svn-r3005/themes.c:493:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(file = fopen(theme_file, "r"))) {
data/moc-2.6.0~svn-r3005/utf8.c:65: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[512];
data/moc-2.6.0~svn-r3005/audio.c:132:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 8-bit signed", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:132:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (msg, ", 8-bit signed", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:134:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 8-bit unsigned", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:134: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).
		strncat (msg, ", 8-bit unsigned", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:136:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 16-bit signed", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:136:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (msg, ", 16-bit signed", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:138:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 16-bit unsigned", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:138: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).
		strncat (msg, ", 16-bit unsigned", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:140:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 24-bit signed (as 32-bit samples)",
data/moc-2.6.0~svn-r3005/audio.c:141:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:143:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", 24-bit unsigned (as 32-bit samples)",
data/moc-2.6.0~svn-r3005/audio.c:144:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:146:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, ", float",
data/moc-2.6.0~svn-r3005/audio.c:147:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:150:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, " little-endian", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:150:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (msg, " little-endian", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:152:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, " big-endian", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:152: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).
		strncat (msg, " big-endian", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:154:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (msg, " (native)", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:154:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (msg, " (native)", buf_size - strlen(msg) - 1);
data/moc-2.6.0~svn-r3005/audio.c:158:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove (msg, msg + 2, strlen(msg) + 1);
data/moc-2.6.0~svn-r3005/common.c:240: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 oldstr_len = strlen(oldstr);
data/moc-2.6.0~svn-r3005/common.c:241: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 newstr_len = strlen(newstr);
data/moc-2.6.0~svn-r3005/common.c:242: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 target_len = strlen(target);
data/moc-2.6.0~svn-r3005/common.c:288:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (result, first, last - first);
data/moc-2.6.0~svn-r3005/common.c:338:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (candidate);
data/moc-2.6.0~svn-r3005/compat.h:31:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ((sizeof *(p)) - sizeof((p)->sun_path) + strlen ((p)->sun_path))
data/moc-2.6.0~svn-r3005/decoder.c:236: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).
			len = strlen (ext);
data/moc-2.6.0~svn-r3005/decoder.c:359:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (filename);
data/moc-2.6.0~svn-r3005/decoder.c:364:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (result, filename, len);
data/moc-2.6.0~svn-r3005/decoder.c:530: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).
		offsetof (decoder_t_preference, type) + strlen (prefix) + 1
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.c:179:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (msg);
data/moc-2.6.0~svn-r3005/decoder_plugins/ffmpeg/ffmpeg.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).
	for (len = strlen (msg); len > 0 && msg[len - 1] == '\n'; len -= 1)
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:329:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (name, (char *)comm->entry, eq - comm->entry);
data/moc-2.6.0~svn-r3005/decoder_plugins/flac/flac.c:339:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (value, (char *)(eq + 1), value_length);
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:56:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen ("title=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:58:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("title="));
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:60: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).
					"artist=", strlen ("artist=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:63:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("artist="));
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:65:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					"album=", strlen ("album=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:68:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("album="));
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:71:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen ("tracknumber=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:73:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("tracknumber="));
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:75:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					"track=", strlen ("track=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/opus/opus.c:77:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("track="));
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:371:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    && strlen(sti.infoString[STITLE])>0
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:374: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).
    info->title = trim(sti.infoString[STITLE],strlen(sti.infoString[STITLE]));
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:383:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    && strlen(sti.infoString[SAUTHOR])>0
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:386: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).
    info->artist = trim(sti.infoString[SAUTHOR],strlen(sti.infoString[SAUTHOR]));
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:396:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    && strlen(sti.infoString[SCOPY])>0
data/moc-2.6.0~svn-r3005/decoder_plugins/sidplay2/sidplay2.cc:399:46:  [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).
    info->album = trim(sti.infoString[SCOPY],strlen(sti.infoString[SCOPY]));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:313:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncasecmp(str, "title=", strlen ("title=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:314:31:  [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).
		tags->title = xstrdup(str + strlen ("title="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:315: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).
	else if (!strncasecmp(str, "artist=", strlen ("artist=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:316:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tags->artist = xstrdup (str + strlen ("artist="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:317: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).
	else if (!strncasecmp(str, "album=", strlen ("album=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:318:32:  [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).
		tags->album = xstrdup (str + strlen ("album="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:319: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).
	else if (!strncasecmp(str, "tracknumber=", strlen ("tracknumber=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:320:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tags->track = atoi (str	+ strlen ("tracknumber="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:321: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).
	else if (!strncasecmp(str, "track=", strlen ("track=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:322:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tags->track = atoi (str	+ strlen ("track="));
data/moc-2.6.0~svn-r3005/decoder_plugins/speex/speex.c:375:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (temp, c, len);
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:81:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen ("title=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:83:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("title="));
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:85: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).
					"artist=", strlen ("artist=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:88:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("artist="));
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:90:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					"album=", strlen ("album=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:93:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("album="));
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:96:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen ("tracknumber=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:98:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("tracknumber="));
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:100:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					"track=", strlen ("track=")))
data/moc-2.6.0~svn-r3005/decoder_plugins/vorbis/vorbis.c:102:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen ("track="));
data/moc-2.6.0~svn-r3005/equalizer.c:385: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(EQUALIZER_CFG_ACTIVE)
data/moc-2.6.0~svn-r3005/equalizer.c:406: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(EQUALIZER_CFG_MIXIN)
data/moc-2.6.0~svn-r3005/equalizer.c:423: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(EQUALIZER_CFG_PRESET)
data/moc-2.6.0~svn-r3005/equalizer.c:427:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      if(sscanf(linebuffer, "%*s %127s", presetbuf)>0)
data/moc-2.6.0~svn-r3005/equalizer.c:430: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).
          if(strlen(presetbuf)<127)
data/moc-2.6.0~svn-r3005/files.c:550: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).
		len = strlen(line);
data/moc-2.6.0~svn-r3005/files.c:581:5:  [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(base) + strlen(name) + 2));
data/moc-2.6.0~svn-r3005/files.c:581: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).
			(strlen(base) + strlen(name) + 2));
data/moc-2.6.0~svn-r3005/files.c:624: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).
	name_len = strlen (name);
data/moc-2.6.0~svn-r3005/files.c:662: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).
				sizeof(char) * (strlen(matching_dir) + 2));
data/moc-2.6.0~svn-r3005/files.c:663:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (matching_dir, "/");
data/moc-2.6.0~svn-r3005/files.c:706:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (tmp, cwd, sizeof(tmp));
data/moc-2.6.0~svn-r3005/files.c:711: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).
		result = (char *)xmalloc (sizeof(char) * (strlen(tmp)+1));
data/moc-2.6.0~svn-r3005/files.c:715: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).
		result = (char *)xmalloc (sizeof(char) * (strlen(path)+1));
data/moc-2.6.0~svn-r3005/interface.c:502:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy (cwd, "/"); /* for absolute path */
data/moc-2.6.0~svn-r3005/interface.c:517:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (cwd, get_home (), sizeof (cwd));
data/moc-2.6.0~svn-r3005/interface.c:528:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int read;
data/moc-2.6.0~svn-r3005/interface.c:536:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cwd[read] = 0;
data/moc-2.6.0~svn-r3005/interface.c:545:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return !strncmp(dir1, dir2, strlen(dir1)) ? 1 : 0;
data/moc-2.6.0~svn-r3005/interface.c:1276:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (last_dir, "/");
data/moc-2.6.0~svn-r3005/interface.c:1511:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy (path, "/");
data/moc-2.6.0~svn-r3005/interface.c:1545:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (path, arg, sizeof (path));
data/moc-2.6.0~svn-r3005/interface.c:1550:5:  [1] (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). Risk is low because the source is a constant character.
				strcpy (path, "/");
data/moc-2.6.0~svn-r3005/interface.c:2113:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) > 1 && str[strlen(str)-1] == '/')
data/moc-2.6.0~svn-r3005/interface.c:2113:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) > 1 && str[strlen(str)-1] == '/')
data/moc-2.6.0~svn-r3005/interface.c:2117:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (dir, get_home (), PATH_MAX);
data/moc-2.6.0~svn-r3005/interface.c:2132:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy (dir, "/");
data/moc-2.6.0~svn-r3005/interface.c:2136:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (add_slash && strlen(dir) < PATH_MAX)
data/moc-2.6.0~svn-r3005/interface.c:2137:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (dir, "/");
data/moc-2.6.0~svn-r3005/interface.c:2159:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (buf, complete_dir ? complete_dir : dir, sizeof(buf));
data/moc-2.6.0~svn-r3005/interface.c:2176: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).
				if (dir[strlen(dir)-1] == '/'
data/moc-2.6.0~svn-r3005/interface.c:2178: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).
					dir[strlen(dir)-1] = 0;
data/moc-2.6.0~svn-r3005/interface.c:2216:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen (str);
data/moc-2.6.0~svn-r3005/interface.c:2230:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (clean, str, n);
data/moc-2.6.0~svn-r3005/interface.c:2386: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).
				char *tmp = (char *)xmalloc((strlen(text) + 5) *
data/moc-2.6.0~svn-r3005/interface.c:2728: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).
		if (entry->d_name[strlen(entry->d_name)-1] == '~')
data/moc-2.6.0~svn-r3005/interface.c:2933:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen (arg) == 2 && arg[0] == '%') {
data/moc-2.6.0~svn-r3005/interface.c:3759:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (path, cwd, sizeof (path));
data/moc-2.6.0~svn-r3005/interface.c:3764:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (path, arg, sizeof (path));
data/moc-2.6.0~svn-r3005/interface_elements.c:290:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen (text) != strspn (text, " ")) {
data/moc-2.6.0~svn-r3005/interface_elements.c:310:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen (text) != strspn (text, " ") &&
data/moc-2.6.0~svn-r3005/interface_elements.c:363:8:  [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).
	len = wcslen(e->text_ucs) - e->display_from;
data/moc-2.6.0~svn-r3005/interface_elements.c:423: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).
	e->title = xmalloc (strlen (title) + 2);
data/moc-2.6.0~svn-r3005/interface_elements.c:425: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).
	if (e->title[strlen (e->title) - 1] != ':' &&
data/moc-2.6.0~svn-r3005/interface_elements.c:426: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).
	    e->title[strlen (e->title) - 1] != '?')
data/moc-2.6.0~svn-r3005/interface_elements.c:427:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (e->title, ":");
data/moc-2.6.0~svn-r3005/interface_elements.c:451:13:  [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).
	len = MIN (wcslen (text) + 1, ARRAY_SIZE (e->text_ucs));
data/moc-2.6.0~svn-r3005/interface_elements.c:456:15:  [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).
	e->cur_pos = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:483:8:  [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).
	len = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:503:14:  [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).
	int width = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:540:8:  [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).
	len = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:563:8:  [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).
	len = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:593:10:  [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).
	width = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:610:10:  [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).
	width = wcslen (e->text_ucs);
data/moc-2.6.0~svn-r3005/interface_elements.c:634: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).
	e->width = width - strlen (e->title);
data/moc-2.6.0~svn-r3005/interface_elements.c:664:40:  [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).
			wmemcpy (e->saved_ucs, e->text_ucs, wcslen (e->text_ucs) + 1);
data/moc-2.6.0~svn-r3005/interface_elements.c:1124:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat (title, "/");
data/moc-2.6.0~svn-r3005/interface_elements.c:1138:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat (title, "/");
data/moc-2.6.0~svn-r3005/interface_elements.c:1145:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat (title, "/");
data/moc-2.6.0~svn-r3005/interface_elements.c:1209:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			title = (char *)xmalloc (strlen(tail) + 4);
data/moc-2.6.0~svn-r3005/interface_elements.c:2405: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).
                soft_write (1, iconv_title, strlen(iconv_title));
data/moc-2.6.0~svn-r3005/interface_elements.c:2410: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).
                soft_write (1, title, strlen(title));
data/moc-2.6.0~svn-r3005/interface_elements.c:2462:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			soft_write (1, title, strlen(title));
data/moc-2.6.0~svn-r3005/interface_elements.c:2530:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (&b->title[b->width - 7], pct, strlen (pct));
data/moc-2.6.0~svn-r3005/interface_elements.c:2530: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).
		strncpy (&b->title[b->width - 7], pct, strlen (pct));
data/moc-2.6.0~svn-r3005/interface_elements.c:2539: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).
	assert (strlen(title) < sizeof(b->title) - 5);
data/moc-2.6.0~svn-r3005/interface_elements.c:2541:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (b->orig_title, title, b->width);
data/moc-2.6.0~svn-r3005/interface_elements.c:2775: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).
	assert (strlen(msg) < sizeof(w->status_msg));
data/moc-2.6.0~svn-r3005/interface_elements.c:3166: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).
			len = strlen (msg) + strlen (decorator) + 10;
data/moc-2.6.0~svn-r3005/interface_elements.c:3166: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).
			len = strlen (msg) + strlen (decorator) + 10;
data/moc-2.6.0~svn-r3005/io.c:129:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read (s->fd, buf, count);
data/moc-2.6.0~svn-r3005/io_curl.c:175:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (log, msg, size);
data/moc-2.6.0~svn-r3005/io_curl.c:457:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (name, t, c - t);
data/moc-2.6.0~svn-r3005/io_curl.c:480:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (value, t, MIN(c - t, ssizeof(value) - 1));
data/moc-2.6.0~svn-r3005/keys.c:912:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (path, file, sizeof(path));
data/moc-2.6.0~svn-r3005/keys.c:918:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (path, create_file_name(file), sizeof(path));
data/moc-2.6.0~svn-r3005/keys.c:939:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(symbol) == 1) {
data/moc-2.6.0~svn-r3005/keys.c:955: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(symbol) != 2)
data/moc-2.6.0~svn-r3005/keys.c:964: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(symbol) != 3)
data/moc-2.6.0~svn-r3005/keys.c:1183:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (keys, get_key_name(commands[idx].keys[i]),
data/moc-2.6.0~svn-r3005/keys.c:1184: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).
				sizeof(keys) - strlen(keys) - 1);
data/moc-2.6.0~svn-r3005/keys.c:1185:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
		strncat (keys, " ", sizeof(keys) - strlen(keys) - 1);
data/moc-2.6.0~svn-r3005/keys.c:1185: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).
		strncat (keys, " ", sizeof(keys) - strlen(keys) - 1);
data/moc-2.6.0~svn-r3005/keys.c:1191:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		keys[strlen (keys) - 1] = 0;
data/moc-2.6.0~svn-r3005/keys.c:1205: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).
		len = HELP_INDENT + strlen (commands[i].help) + 1;
data/moc-2.6.0~svn-r3005/keys.c:1207: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).
			len += strlen (unassigned);
data/moc-2.6.0~svn-r3005/keys.c:1209:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (help[i], get_command_keys(i), HELP_INDENT);
data/moc-2.6.0~svn-r3005/keys.c:1210: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(help[i]) < HELP_INDENT)
data/moc-2.6.0~svn-r3005/keys.c:1211: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).
			memset (help[i] + strlen(help[i]), ' ',
data/moc-2.6.0~svn-r3005/keys.c:1212: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).
					HELP_INDENT - strlen(help[i]));
data/moc-2.6.0~svn-r3005/lists.c:266: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).
			len += strlen (lists_strs_at (list, ix));
data/moc-2.6.0~svn-r3005/lists.c:267:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += ix * (strlen (fmt) - 2);
data/moc-2.6.0~svn-r3005/lists.c:310: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).
		size += strlen (lists_strs_at (list, ix)) + 1;
data/moc-2.6.0~svn-r3005/lists.c:317: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).
		ptr += strlen (ptr) + 1;
data/moc-2.6.0~svn-r3005/lyrics.c:124:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (line);
data/moc-2.6.0~svn-r3005/lyrics.c:136:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (result, line, max);
data/moc-2.6.0~svn-r3005/lyrics.c:139:2:  [1] (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). Risk is low because the source is a constant character.
	strcpy (&result[len], "\n");
data/moc-2.6.0~svn-r3005/lyrics.c:220: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).
		len = strlen (this_line);
data/moc-2.6.0~svn-r3005/lyrics.c:222:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy (&this_line[width - 1], "\n");
data/moc-2.6.0~svn-r3005/lyrics.c:228:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat (new_line, "\n");
data/moc-2.6.0~svn-r3005/main.c:137: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).
	dir_name[strlen(dir_name)-1] = 0;
data/moc-2.6.0~svn-r3005/main.c:203:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(notify_pipe[0], &i, sizeof(i)) != sizeof(i))
data/moc-2.6.0~svn-r3005/main.c:590:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strlen (fn))
data/moc-2.6.0~svn-r3005/main.c:613:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (home) + strlen (dot_popt) + 2;
data/moc-2.6.0~svn-r3005/main.c:613: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).
	len = strlen (home) + strlen (dot_popt) + 2;
data/moc-2.6.0~svn-r3005/main.c:665: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).
	if (env_opts && strlen (env_opts)) {
data/moc-2.6.0~svn-r3005/main.c:867: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).
			len = strlen (opt->longName) + 3;
data/moc-2.6.0~svn-r3005/main.c:869: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).
				len += strlen (arg) + 3;
data/moc-2.6.0~svn-r3005/main.c:880: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).
				len += strlen (arg) + 3;
data/moc-2.6.0~svn-r3005/main.c:938: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).
	value = trim (ptr + 1, strlen (ptr + 1));
data/moc-2.6.0~svn-r3005/main.c:943: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).
		len = strlen (value);
data/moc-2.6.0~svn-r3005/main.c:946: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 (value) < 2)
data/moc-2.6.0~svn-r3005/menu.c:73: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).
		queue_pos_len = strlen(buf) + 2;
data/moc-2.6.0~svn-r3005/menu.c:297:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new->time, mi->time, FILE_TIME_STR_SZ);
data/moc-2.6.0~svn-r3005/menu.c:298:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new->format, mi->format, FILE_FORMAT_SZ);
data/moc-2.6.0~svn-r3005/menu.c:601:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (mi->time, time, sizeof(mi->time));
data/moc-2.6.0~svn-r3005/menu.c:611:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (mi->format, format,
data/moc-2.6.0~svn-r3005/options.c:233:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str_len = strlen (va_arg (va, char *));
data/moc-2.6.0~svn-r3005/options.c:286: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).
	assert (strlen(name) < OPTION_NAME_MAX);
data/moc-2.6.0~svn-r3005/options.c:939: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).
					value[strlen (value) - 1] = 0x00;
data/moc-2.6.0~svn-r3005/options.c:1047:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(file)) != EOF) {
data/moc-2.6.0~svn-r3005/playlist.c:549: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).
				free -= strlen(dest + size - free);
data/moc-2.6.0~svn-r3005/playlist.c:555:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
					strncat(dest, h, free-1);
data/moc-2.6.0~svn-r3005/playlist.c:556: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).
					free -= strlen (h);
data/moc-2.6.0~svn-r3005/playlist_file.c:50:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (buf, path, buf_size);
data/moc-2.6.0~svn-r3005/playlist_file.c:58:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy (buf, "/");
data/moc-2.6.0~svn-r3005/playlist_file.c:121:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (time_text, line + sizeof("#EXTINF:") - 1,
data/moc-2.6.0~svn-r3005/playlist_file.c:147:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen (line) <= PATH_MAX) {
data/moc-2.6.0~svn-r3005/playlist_file.c:215: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).
	key_len = strlen (key);
data/moc-2.6.0~svn-r3005/playlist_file.c:346: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 (pls_file) <= PATH_MAX) {
data/moc-2.6.0~svn-r3005/protocol.c:67:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(socket_name) > UNIX_PATH_MAX)
data/moc-2.6.0~svn-r3005/protocol.c:185:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (str);
data/moc-2.6.0~svn-r3005/protocol.c:268:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str_len = strlen (str);
data/moc-2.6.0~svn-r3005/server.c:1288: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).
	int l = strlen(n);
data/moc-2.6.0~svn-r3005/server.c:1660:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static void add_clients_fds (fd_set *read, fd_set *write)
data/moc-2.6.0~svn-r3005/server.c:1667:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				FD_SET (clients[i].socket, read);
data/moc-2.6.0~svn-r3005/server.c:1772:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(wake_up_pipe[0], &w, sizeof(w)) < 0)
data/moc-2.6.0~svn-r3005/softmixer.c:148: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(SOFTMIXER_CFG_ACTIVE)
data/moc-2.6.0~svn-r3005/softmixer.c:169: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(SOFTMIXER_CFG_AMP)
data/moc-2.6.0~svn-r3005/softmixer.c:190: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(SOFTMIXER_CFG_VALUE)
data/moc-2.6.0~svn-r3005/softmixer.c:211: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(SOFTMIXER_CFG_MONO)
data/moc-2.6.0~svn-r3005/tags_cache.c:241: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).
	return s ? strlen (s) : 0;
data/moc-2.6.0~svn-r3005/tags_cache.c:404: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).
	key.size = strlen (file);
data/moc-2.6.0~svn-r3005/tags_cache.c:439: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).
	key.size = strlen (fname);
data/moc-2.6.0~svn-r3005/tags_cache.c:968: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).
		len = strlen (dir_path) + strlen (d->d_name) + 2;
data/moc-2.6.0~svn-r3005/tags_cache.c:968:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (dir_path) + strlen (d->d_name) + 2;
data/moc-2.6.0~svn-r3005/tags_cache.c:1054:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fname = (char *)xmalloc (strlen (cache_dir) + sizeof (MOC_VERSION_TAG) + 1);
data/moc-2.6.0~svn-r3005/tags_cache.c:1105:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fname = (char *)xmalloc (strlen (cache_dir) + sizeof (MOC_VERSION_TAG) + 1);
data/moc-2.6.0~svn-r3005/tags_cache.c:1116:32:  [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).
	rc = fwrite (cur_version_tag, strlen (cur_version_tag), 1, f);
data/moc-2.6.0~svn-r3005/themes.c:273:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (path, name, sizeof(path));
data/moc-2.6.0~svn-r3005/themes.c:295:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (path, name, sizeof(path));
data/moc-2.6.0~svn-r3005/themes.c:528:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (current_theme, find_theme_file (file), PATH_MAX);
data/moc-2.6.0~svn-r3005/themes.c:532:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (current_theme, find_theme_file (file), PATH_MAX);
data/moc-2.6.0~svn-r3005/themes.c:536:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (current_theme, find_theme_file (file), PATH_MAX);
data/moc-2.6.0~svn-r3005/themes.c:562:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (current_theme, file, PATH_MAX);
data/moc-2.6.0~svn-r3005/utf8.c:83:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	inbytesleft = strlen(inbuf);
data/moc-2.6.0~svn-r3005/utf8.c:180:17:  [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).
				converted = wcslen (dest);

ANALYSIS SUMMARY:

Hits = 565
Lines analyzed = 43235 in approximately 0.92 seconds (47109 lines/second)
Physical Source Lines of Code (SLOC) = 32572
Hits@level = [0] 157 [1] 229 [2] 281 [3]  13 [4]  42 [5]   0
Hits@level+ = [0+] 722 [1+] 565 [2+] 336 [3+]  55 [4+]  42 [5+]   0
Hits/KSLOC@level+ = [0+] 22.1663 [1+] 17.3462 [2+] 10.3156 [3+] 1.68857 [4+] 1.28945 [5+]   0
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.