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/vorbis-tools-1.4.0/intl/export.h Examining data/vorbis-tools-1.4.0/intl/gmo.h Examining data/vorbis-tools-1.4.0/intl/gettextP.h Examining data/vorbis-tools-1.4.0/intl/hash-string.h Examining data/vorbis-tools-1.4.0/intl/loadinfo.h Examining data/vorbis-tools-1.4.0/intl/plural-exp.h Examining data/vorbis-tools-1.4.0/intl/eval-plural.h Examining data/vorbis-tools-1.4.0/intl/localcharset.h Examining data/vorbis-tools-1.4.0/intl/lock.h Examining data/vorbis-tools-1.4.0/intl/relocatable.h Examining data/vorbis-tools-1.4.0/intl/tsearch.h Examining data/vorbis-tools-1.4.0/intl/tsearch.c Examining data/vorbis-tools-1.4.0/intl/xsize.h Examining data/vorbis-tools-1.4.0/intl/printf-args.h Examining data/vorbis-tools-1.4.0/intl/printf-args.c Examining data/vorbis-tools-1.4.0/intl/printf-parse.h Examining data/vorbis-tools-1.4.0/intl/wprintf-parse.h Examining data/vorbis-tools-1.4.0/intl/printf-parse.c Examining data/vorbis-tools-1.4.0/intl/vasnprintf.h Examining data/vorbis-tools-1.4.0/intl/vasnwprintf.h Examining data/vorbis-tools-1.4.0/intl/vasnprintf.c Examining data/vorbis-tools-1.4.0/intl/os2compat.h Examining data/vorbis-tools-1.4.0/intl/bindtextdom.c Examining data/vorbis-tools-1.4.0/intl/dcgettext.c Examining data/vorbis-tools-1.4.0/intl/dgettext.c Examining data/vorbis-tools-1.4.0/intl/gettext.c Examining data/vorbis-tools-1.4.0/intl/finddomain.c Examining data/vorbis-tools-1.4.0/intl/hash-string.c Examining data/vorbis-tools-1.4.0/intl/loadmsgcat.c Examining data/vorbis-tools-1.4.0/intl/localealias.c Examining data/vorbis-tools-1.4.0/intl/textdomain.c Examining data/vorbis-tools-1.4.0/intl/l10nflist.c Examining data/vorbis-tools-1.4.0/intl/explodename.c Examining data/vorbis-tools-1.4.0/intl/dcigettext.c Examining data/vorbis-tools-1.4.0/intl/dcngettext.c Examining data/vorbis-tools-1.4.0/intl/dngettext.c Examining data/vorbis-tools-1.4.0/intl/ngettext.c Examining data/vorbis-tools-1.4.0/intl/plural-exp.c Examining data/vorbis-tools-1.4.0/intl/localcharset.c Examining data/vorbis-tools-1.4.0/intl/lock.c Examining data/vorbis-tools-1.4.0/intl/relocatable.c Examining data/vorbis-tools-1.4.0/intl/langprefs.c Examining data/vorbis-tools-1.4.0/intl/localename.c Examining data/vorbis-tools-1.4.0/intl/log.c Examining data/vorbis-tools-1.4.0/intl/printf.c Examining data/vorbis-tools-1.4.0/intl/version.c Examining data/vorbis-tools-1.4.0/intl/osdep.c Examining data/vorbis-tools-1.4.0/intl/os2compat.c Examining data/vorbis-tools-1.4.0/intl/intl-exports.c Examining data/vorbis-tools-1.4.0/intl/intl-compat.c Examining data/vorbis-tools-1.4.0/intl/plural.c Examining data/vorbis-tools-1.4.0/config.h Examining data/vorbis-tools-1.4.0/include/utf8.h Examining data/vorbis-tools-1.4.0/include/getopt.h Examining data/vorbis-tools-1.4.0/include/i18n.h Examining data/vorbis-tools-1.4.0/share/getopt.c Examining data/vorbis-tools-1.4.0/share/getopt1.c Examining data/vorbis-tools-1.4.0/share/charset.c Examining data/vorbis-tools-1.4.0/share/charset.h Examining data/vorbis-tools-1.4.0/share/iconvert.c Examining data/vorbis-tools-1.4.0/share/utf8.c Examining data/vorbis-tools-1.4.0/share/charmaps.h Examining data/vorbis-tools-1.4.0/share/makemap.c Examining data/vorbis-tools-1.4.0/share/charset_test.c Examining data/vorbis-tools-1.4.0/share/charsetmap.h Examining data/vorbis-tools-1.4.0/ogg123/audio.c Examining data/vorbis-tools-1.4.0/ogg123/callbacks.c Examining data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c Examining data/vorbis-tools-1.4.0/ogg123/file_transport.c Examining data/vorbis-tools-1.4.0/ogg123/format.c Examining data/vorbis-tools-1.4.0/ogg123/http_transport.c Examining data/vorbis-tools-1.4.0/ogg123/ogg123.c Examining data/vorbis-tools-1.4.0/ogg123/oggvorbis_format.c Examining data/vorbis-tools-1.4.0/ogg123/playlist.c Examining data/vorbis-tools-1.4.0/ogg123/remote.c Examining data/vorbis-tools-1.4.0/ogg123/transport.c Examining data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c Examining data/vorbis-tools-1.4.0/ogg123/audio.h Examining data/vorbis-tools-1.4.0/ogg123/buffer.h Examining data/vorbis-tools-1.4.0/ogg123/callbacks.h Examining data/vorbis-tools-1.4.0/ogg123/compat.h Examining data/vorbis-tools-1.4.0/ogg123/cfgfile_options.h Examining data/vorbis-tools-1.4.0/ogg123/cmdline_options.h Examining data/vorbis-tools-1.4.0/ogg123/format.h Examining data/vorbis-tools-1.4.0/ogg123/ogg123.h Examining data/vorbis-tools-1.4.0/ogg123/playlist.h Examining data/vorbis-tools-1.4.0/ogg123/status.h Examining data/vorbis-tools-1.4.0/ogg123/transport.h Examining data/vorbis-tools-1.4.0/ogg123/remote.h Examining data/vorbis-tools-1.4.0/ogg123/vorbis_comments.h Examining data/vorbis-tools-1.4.0/ogg123/flac_format.c Examining data/vorbis-tools-1.4.0/ogg123/easyflac.c Examining data/vorbis-tools-1.4.0/ogg123/easyflac.h Examining data/vorbis-tools-1.4.0/ogg123/vgfilter.c Examining data/vorbis-tools-1.4.0/ogg123/vgfilter.h Examining data/vorbis-tools-1.4.0/ogg123/buffer.c Examining data/vorbis-tools-1.4.0/ogg123/cmdline_options.c Examining data/vorbis-tools-1.4.0/ogg123/status.c Examining data/vorbis-tools-1.4.0/ogg123/speex_format.c Examining data/vorbis-tools-1.4.0/oggenc/flac.c Examining data/vorbis-tools-1.4.0/oggenc/flac.h Examining data/vorbis-tools-1.4.0/oggenc/easyflac.c Examining data/vorbis-tools-1.4.0/oggenc/easyflac.h Examining data/vorbis-tools-1.4.0/oggenc/lyrics.c Examining data/vorbis-tools-1.4.0/oggenc/lyrics.h Examining data/vorbis-tools-1.4.0/oggenc/encode.c Examining data/vorbis-tools-1.4.0/oggenc/platform.c Examining data/vorbis-tools-1.4.0/oggenc/resample.c Examining data/vorbis-tools-1.4.0/oggenc/skeleton.c Examining data/vorbis-tools-1.4.0/oggenc/audio.h Examining data/vorbis-tools-1.4.0/oggenc/encode.h Examining data/vorbis-tools-1.4.0/oggenc/platform.h Examining data/vorbis-tools-1.4.0/oggenc/resample.h Examining data/vorbis-tools-1.4.0/oggenc/skeleton.h Examining data/vorbis-tools-1.4.0/oggenc/oggenc.c Examining data/vorbis-tools-1.4.0/oggenc/audio.c Examining data/vorbis-tools-1.4.0/oggdec/oggdec.c Examining data/vorbis-tools-1.4.0/ogginfo/theora.h Examining data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c Examining data/vorbis-tools-1.4.0/ogginfo/theora.c Examining data/vorbis-tools-1.4.0/vcut/vcut.h Examining data/vorbis-tools-1.4.0/vcut/vcut.c Examining data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c Examining data/vorbis-tools-1.4.0/vorbiscomment/vcedit.h Examining data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c Examining data/vorbis-tools-1.4.0/vorbiscomment/vceditaux.h FINAL RESULTS: data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:824:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod (p->infilename, st.st_mode); data/vorbis-tools-1.4.0/intl/dcigettext.c:797:9: [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_localename, localename); data/vorbis-tools-1.4.0/intl/langprefs.c:107:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, buf); data/vorbis-tools-1.4.0/intl/localcharset.c:197:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/vorbis-tools-1.4.0/intl/localcharset.c:198:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1), buf2); data/vorbis-tools-1.4.0/intl/localename.c:918:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, legacy_table[i1].unixy); data/vorbis-tools-1.4.0/intl/localename.c:942:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, langtag_table[i1].unixy); data/vorbis-tools-1.4.0/intl/localename.c:962:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name + 3, script_table[i1].unixy); data/vorbis-tools-1.4.0/intl/log.c:86:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (last_logfilename, logfilename); data/vorbis-tools-1.4.0/intl/os2compat.c:97:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (libintl_nl_default_dirname, _nlos2_localedir); data/vorbis-tools-1.4.0/intl/plural.c:748:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/vorbis-tools-1.4.0/intl/printf.c:98:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf (stream, format, args); data/vorbis-tools-1.4.0/intl/printf.c:158:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/vorbis-tools-1.4.0/intl/printf.c:198:28: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define system_vsnprintf vsnprintf data/vorbis-tools-1.4.0/intl/printf.c:309:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/vorbis-tools-1.4.0/intl/printf.c:317:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfwprintf (stream, format, args); data/vorbis-tools-1.4.0/intl/relocatable.c:459:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result + curr_prefix_len, pathname_tail); data/vorbis-tools-1.4.0/intl/vasnprintf.c:182:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/vorbis-tools-1.4.0/intl/vasnprintf.c:196:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF _snprintf data/vorbis-tools-1.4.0/intl/vasnprintf.c:199:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/vorbis-tools-1.4.0/intl/vasnprintf.c:201:10: [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. # undef snprintf data/vorbis-tools-1.4.0/intl/vasnprintf.c:205:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/vorbis-tools-1.4.0/intl/vasnprintf.c:3255:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3263:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3425:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3433:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:4095:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/vorbis-tools-1.4.0/intl/vasnprintf.c:4098:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/vorbis-tools-1.4.0/intl/vasnprintf.c:4101:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/vorbis-tools-1.4.0/intl/vasnprintf.h:37:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define __printf__ printf data/vorbis-tools-1.4.0/ogg123/callbacks.c:291:9: [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. n = vsnprintf (sm_arg->message, size, message, ap); data/vorbis-tools-1.4.0/ogg123/callbacks.c:347:9: [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. n = vsnprintf (sm_arg->message, size, message, ap); data/vorbis-tools-1.4.0/ogg123/playlist.c:148:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(nextfile, dirname); data/vorbis-tools-1.4.0/ogg123/playlist.c:150:7: [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(nextfile, entries[i]->d_name); data/vorbis-tools-1.4.0/ogg123/playlist.c:203:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(nextfile, dirname); data/vorbis-tools-1.4.0/ogg123/playlist.c:205:7: [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(nextfile, entry->d_name); data/vorbis-tools-1.4.0/ogg123/remote.c:70:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(fp, fmt, ap); data/vorbis-tools-1.4.0/ogg123/remote.c:87:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/vorbis-tools-1.4.0/ogg123/remote.c:99:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/vorbis-tools-1.4.0/ogg123/remote.c:165:9: [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((char*)arg, b+1); data/vorbis-tools-1.4.0/ogg123/status.c:61:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. cur += sprintf (cur, _("%sPrebuf to %.1f%%"), sep, data/vorbis-tools-1.4.0/ogg123/status.c:66:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. cur += sprintf (cur, _("%sPaused"), sep); data/vorbis-tools-1.4.0/ogg123/status.c:70:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. cur += sprintf (cur, _("%sEOS"), sep); data/vorbis-tools-1.4.0/ogg123/status.c:152:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(str+len, "%s", stats->formatstr); data/vorbis-tools-1.4.0/ogg123/status.c:155:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len += sprintf(str+len, stats->formatstr, stats->arg.intarg); data/vorbis-tools-1.4.0/ogg123/status.c:158:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len += sprintf(str+len, stats->formatstr, stats->arg.stringarg); data/vorbis-tools-1.4.0/ogg123/status.c:161:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len += sprintf(str+len, stats->formatstr, stats->arg.floatarg); data/vorbis-tools-1.4.0/ogg123/status.c:164:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len += sprintf(str+len, stats->formatstr, stats->arg.doublearg); data/vorbis-tools-1.4.0/ogg123/status.c:206:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, fmt, ap); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:67:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, vorbis_comment_keys[i].formatstr); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:100: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(s, vorbis_comment_keys[i].formatstr); data/vorbis-tools-1.4.0/oggenc/oggenc.c:329:17: [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(out_fn, extension); data/vorbis-tools-1.4.0/oggenc/platform.c:313:9: [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(argptr, utf8flag); data/vorbis-tools-1.4.0/oggenc/skeleton.c:25:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/vorbis-tools-1.4.0/oggenc/skeleton.c:25:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:172:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, format, ap); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:185:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, format, ap); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:196:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, format, ap); data/vorbis-tools-1.4.0/share/iconvert.c:86: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(tocode1, tocode); data/vorbis-tools-1.4.0/share/utf8.c:290: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(s, from); data/vorbis-tools-1.4.0/vcut/vcut.c:295:12: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. } else if(sscanf(argv[4], FORMAT_INT64, &seg->cutpoint) != 1) { data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:668: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(state->vendor, state->vc->vendor); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:701: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(param->outfilename, param->infilename); data/vorbis-tools-1.4.0/include/getopt.h:134:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int __argc, char *const *__argv, const char *__shortopts); data/vorbis-tools-1.4.0/include/getopt.h:136:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/vorbis-tools-1.4.0/include/getopt.h:140:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, data/vorbis-tools-1.4.0/include/getopt.h:153:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/vorbis-tools-1.4.0/include/getopt.h:155:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (); data/vorbis-tools-1.4.0/intl/dcigettext.c:149:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/vorbis-tools-1.4.0/intl/dcigettext.c:150:28: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, max) getwd (buf) data/vorbis-tools-1.4.0/intl/dcigettext.c:858:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); data/vorbis-tools-1.4.0/intl/dcigettext.c:1557:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. language = getenv ("LANGUAGE"); data/vorbis-tools-1.4.0/intl/dcigettext.c:1597:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *value = getenv ("OUTPUT_CHARSET"); data/vorbis-tools-1.4.0/intl/localcharset.c:122:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dir = getenv ("CHARSETALIASDIR"); data/vorbis-tools-1.4.0/intl/localcharset.c:309:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/vorbis-tools-1.4.0/intl/localcharset.c:312:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/vorbis-tools-1.4.0/intl/localcharset.c:314:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/vorbis-tools-1.4.0/intl/localcharset.c:360:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/vorbis-tools-1.4.0/intl/localcharset.c:363:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/vorbis-tools-1.4.0/intl/localcharset.c:365:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/vorbis-tools-1.4.0/intl/localcharset.c:393:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/vorbis-tools-1.4.0/intl/localcharset.c:396:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/vorbis-tools-1.4.0/intl/localcharset.c:398:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/vorbis-tools-1.4.0/intl/localename.c:1005:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv ("LC_ALL"); data/vorbis-tools-1.4.0/intl/localename.c:1009:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv (categoryname); data/vorbis-tools-1.4.0/intl/localename.c:1013:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv ("LANG"); data/vorbis-tools-1.4.0/intl/lock.c:525:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:543:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:654:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:675:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:705:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:728:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:757:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:771:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:828:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:850:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/vorbis-tools-1.4.0/intl/lock.c:891:4: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/vorbis-tools-1.4.0/intl/lock.c:892:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/vorbis-tools-1.4.0/intl/lock.c:911:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/vorbis-tools-1.4.0/intl/os2compat.c:51:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *root = getenv ("UNIXROOT"); data/vorbis-tools-1.4.0/intl/os2compat.c:52:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *gnulocaledir = getenv ("GNULOCALEDIR"); data/vorbis-tools-1.4.0/intl/os2compat.h:43:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #define getenv _nl_getenv data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:449: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. char *homedir = getenv("HOME"); data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:75:23: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while (-1 != (ret = getopt_long(argc, argv, "b:c::d:f:hl:k:K:o:p:qrRvVx:y:zZ@:", data/vorbis-tools-1.4.0/ogg123/ogg123.c:483:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL)); data/vorbis-tools-1.4.0/ogg123/ogg123.c:486:23: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. int j = i + random() % (items - i); data/vorbis-tools-1.4.0/oggdec/oggdec.c:79:18: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((ret = getopt_long(argc, argv, "QhVb:e:Rs:o:", data/vorbis-tools-1.4.0/oggenc/oggenc.c:150:17: [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) ^ getpid()); data/vorbis-tools-1.4.0/oggenc/oggenc.c:703:18: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((ret = getopt_long(argc, argv, "a:b:B:c:C:d:G:hkl:L:m:M:n:N:o:P:q:QrR:s:t:VX:Y:", data/vorbis-tools-1.4.0/oggenc/platform.c:227:18: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((ret = getopt_long(argc, argv, "A:a:b:B:c:C:d:G:hkl:m:M:n:N:o:P:q:QrR:s:t:vX:", data/vorbis-tools-1.4.0/oggenc/platform.c:277:16: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. hLib = LoadLibrary("shell32.dll"); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:1259:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((ret = getopt(argc, argv, "hqvV")) >= 0) { data/vorbis-tools-1.4.0/share/getopt.c:206:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #ifndef getenv data/vorbis-tools-1.4.0/share/getopt.c:207:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/vorbis-tools-1.4.0/share/getopt.c:399:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT"); data/vorbis-tools-1.4.0/share/getopt.c:964:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt (argc, argv, optstring) data/vorbis-tools-1.4.0/share/getopt.c:994:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/vorbis-tools-1.4.0/share/getopt1.c:67:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (argc, argv, options, long_options, opt_index) data/vorbis-tools-1.4.0/share/getopt1.c:123:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "abc:d:0123456789", data/vorbis-tools-1.4.0/share/utf8.c:239: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. charset = getenv("CHARSET"); data/vorbis-tools-1.4.0/vcut/vcut.c:309: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) ^ getpid()); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:639:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ret = getopt_long(argc, argv, "alwhqVc:t:Re", data/vorbis-tools-1.4.0/intl/bindtextdom.c:138:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/vorbis-tools-1.4.0/intl/bindtextdom.c:176:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/vorbis-tools-1.4.0/intl/bindtextdom.c:211:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_binding->domainname, domainname, len); data/vorbis-tools-1.4.0/intl/bindtextdom.c:236:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/vorbis-tools-1.4.0/intl/bindtextdom.c:265:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/vorbis-tools-1.4.0/intl/dcigettext.c:272:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgid[ZERO]; data/vorbis-tools-1.4.0/intl/dcigettext.c:421:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[ZERO]; data/vorbis-tools-1.4.0/intl/dcigettext.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 (search->msgid, msgid1, msgid_len); data/vorbis-tools-1.4.0/intl/dcigettext.c:794:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_domainname, domainname, domainname_len + 1); data/vorbis-tools-1.4.0/intl/dcigettext.c:1122:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (charset, charsetstr, len); data/vorbis-tools-1.4.0/intl/dcigettext.c:1160: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 (tmp, outcharset, len); data/vorbis-tools-1.4.0/intl/dcigettext.c:1161: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 (tmp + len, "//TRANSLIT", 10 + 1); data/vorbis-tools-1.4.0/intl/dcigettext.c:1605: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 (value_copy, value, len); data/vorbis-tools-1.4.0/intl/dcigettext.c:1647:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (void *) ((char *) memcpy (dest, src, n) + n); data/vorbis-tools-1.4.0/intl/finddomain.c:139:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (locale, alias_value, len); data/vorbis-tools-1.4.0/intl/gettextP.h:217:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char domainname[ZERO]; data/vorbis-tools-1.4.0/intl/l10nflist.c:215:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, dirlist, dirlist_len); data/vorbis-tools-1.4.0/intl/langprefs.c:62:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/vorbis-tools-1.4.0/intl/loadmsgcat.c:468:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open(name, flags) open_not_cancel_2 (name, flags) data/vorbis-tools-1.4.0/intl/loadmsgcat.c:828:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (domain_file->filename, O_RDONLY | O_BINARY); data/vorbis-tools-1.4.0/intl/loadmsgcat.c:1180:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, static_segments, segsize); data/vorbis-tools-1.4.0/intl/loadmsgcat.c:1189:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, sysdep_segment_values[sysdepref], n); data/vorbis-tools-1.4.0/intl/localcharset.c:134:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name, dir, dir_len); data/vorbis-tools-1.4.0/intl/localcharset.c:137:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name + dir_len + add_slash, base, base_len + 1); data/vorbis-tools-1.4.0/intl/localcharset.c:141:38: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/vorbis-tools-1.4.0/intl/localcharset.c:153:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[50+1]; data/vorbis-tools-1.4.0/intl/localcharset.c:154:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[50+1]; data/vorbis-tools-1.4.0/intl/localcharset.c:307:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/vorbis-tools-1.4.0/intl/localcharset.c:333:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/vorbis-tools-1.4.0/intl/localcharset.c:341:7: [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, "CP%u", GetACP ()); data/vorbis-tools-1.4.0/intl/localcharset.c:378:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/vorbis-tools-1.4.0/intl/localcharset.c:381: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, "CP%u", GetACP ()); data/vorbis-tools-1.4.0/intl/localcharset.c:387:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/vorbis-tools-1.4.0/intl/localcharset.c:416:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/vorbis-tools-1.4.0/intl/localcharset.c:432:4: [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, "CP%u", cp[0]); data/vorbis-tools-1.4.0/intl/localealias.c:230:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (full_fname, fname, fname_len); data/vorbis-tools-1.4.0/intl/localealias.c:231:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); data/vorbis-tools-1.4.0/intl/localealias.c:237:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "rc"); data/vorbis-tools-1.4.0/intl/localealias.c:239:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "r"); data/vorbis-tools-1.4.0/intl/localealias.c:260:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[400]; data/vorbis-tools-1.4.0/intl/localealias.c:353:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/vorbis-tools-1.4.0/intl/localealias.c:358:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/vorbis-tools-1.4.0/intl/localename.c:723:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/vorbis-tools-1.4.0/intl/localename.c:723:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/vorbis-tools-1.4.0/intl/localename.c:861:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/vorbis-tools-1.4.0/intl/localename.c:861:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/vorbis-tools-1.4.0/intl/localename.c:891:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/vorbis-tools-1.4.0/intl/localename.c:891:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/vorbis-tools-1.4.0/intl/localename.c:1054:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[256]; data/vorbis-tools-1.4.0/intl/log.c:87:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). last_logfile = fopen (logfilename, "a"); data/vorbis-tools-1.4.0/intl/os2compat.c:42:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char libintl_nl_default_dirname[MAXPATHLEN+1]; data/vorbis-tools-1.4.0/intl/os2compat.c:61:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir, root, sl); data/vorbis-tools-1.4.0/intl/os2compat.c:62:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:75:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath, root, sl); data/vorbis-tools-1.4.0/intl/os2compat.c:76:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:89:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir, root, sl); data/vorbis-tools-1.4.0/intl/os2compat.c:90:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/vorbis-tools-1.4.0/intl/plural.c:1045: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/vorbis-tools-1.4.0/intl/plural.c:1062: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 yyformat[sizeof yyunexpected data/vorbis-tools-1.4.0/intl/plural.c:1230: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 yymsgbuf[128]; data/vorbis-tools-1.4.0/intl/printf.c:217:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, result, pruned_length); data/vorbis-tools-1.4.0/intl/printf.c:391:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); data/vorbis-tools-1.4.0/intl/relocatable.c:122:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); data/vorbis-tools-1.4.0/intl/relocatable.c:125:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); data/vorbis-tools-1.4.0/intl/relocatable.c:206:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q, curr_pathname, p - curr_pathname); data/vorbis-tools-1.4.0/intl/relocatable.c:269:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (curr_prefix, curr_installdir, curr_prefix_len); data/vorbis-tools-1.4.0/intl/relocatable.c:296:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location[MAX_PATH]; data/vorbis-tools-1.4.0/intl/relocatable.c:310: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 location_as_posix_path[2 * MAX_PATH]; data/vorbis-tools-1.4.0/intl/relocatable.c:340:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ("/proc/self/maps", "r"); data/vorbis-tools-1.4.0/intl/relocatable.c:458:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, curr_prefix, curr_prefix_len); data/vorbis-tools-1.4.0/intl/textdomain.c:101:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_domain, domainname, len); data/vorbis-tools-1.4.0/intl/vasnprintf.c:170:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define DCHAR_CPY memcpy data/vorbis-tools-1.4.0/intl/vasnprintf.c:222: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 pointbuf[5]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:223: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 (pointbuf, "%#.0f", 1.0); data/vorbis-tools-1.4.0/intl/vasnprintf.c:447: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:554: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2302:7: [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 ((char *) p, "%+d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2308: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 expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:2310:7: [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 (expbuf, "%+d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2453:7: [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 ((char *) p, "%+d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2459: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 expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:2461:7: [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 (expbuf, "%+d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2526:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2887:9: [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 ((char *) p, "%+.2d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2893: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 expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:2895:9: [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 (expbuf, "%+.2d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3044:10: [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 ((char *) p, "%+.2d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3050:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:3052:10: [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 (expbuf, "%+.2d", exponent); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3261: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. char expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:3431: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. char expbuf[6 + 1]; data/vorbis-tools-1.4.0/intl/vasnprintf.c:3556:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3937:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3958:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/vorbis-tools-1.4.0/intl/vasnprintf.c:4595:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/vorbis-tools-1.4.0/ogg123/buffer.c:335: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(buf->buffer + buf_write_pos, data, write_size); data/vorbis-tools-1.4.0/ogg123/buffer.c:408: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). debugfile = fopen ("/tmp/bufferdebug", "w"); data/vorbis-tools-1.4.0/ogg123/buffer.c:600:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, buf->buffer + buf->start, write_amount); data/vorbis-tools-1.4.0/ogg123/buffer.h:72:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1]; /* The buffer itself. It's more than one byte. */ data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:373:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen (filename, "r"); data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:448:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[FILENAME_MAX]; data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:455:5: [2] (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 string. strcat(filename, "/.ogg123rc"); data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:81:38: [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). ogg123_opts->buffer_size = 1024 * atoi(optarg); data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:88:35: [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). ogg123_opts->input_buffer_size = atoi(optarg) * 1024; data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:157:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ogg123_opts->delay = atoi(optarg); data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:206:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ogg123_opts->nth = atoi(optarg); data/vorbis-tools-1.4.0/ogg123/cmdline_options.c:214:24: [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). ogg123_opts->ntimes = atoi(optarg); data/vorbis-tools-1.4.0/ogg123/file_transport.c:73: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). private->fp = fopen(source_string, "r"); data/vorbis-tools-1.4.0/ogg123/flac_format.c:105: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[4]; data/vorbis-tools-1.4.0/ogg123/flac_format.c:119: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[36]; data/vorbis-tools-1.4.0/ogg123/http_transport.c:53:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[CURL_ERROR_SIZE]; data/vorbis-tools-1.4.0/ogg123/ogg123.c:61:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char convbuffer[AUDIO_CHUNK_SIZE]; data/vorbis-tools-1.4.0/ogg123/ogg123.c:565:29: [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 ( (source = transport->open(source_string, &options)) == NULL ) { data/vorbis-tools-1.4.0/ogg123/playlist.c:130: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 nextfile[NAME_MAX + 1]; data/vorbis-tools-1.4.0/ogg123/playlist.c:184: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 nextfile[NAME_MAX + 1]; data/vorbis-tools-1.4.0/ogg123/playlist.c:240:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[NAME_MAX+1]; data/vorbis-tools-1.4.0/ogg123/playlist.c:248:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(playlist_filename, "r"); data/vorbis-tools-1.4.0/ogg123/remote.c:68: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). fp=fopen(LOGFILE,"a"); data/vorbis-tools-1.4.0/ogg123/remote.c:132: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[MAXBUF+1]; data/vorbis-tools-1.4.0/ogg123/remote.c:255:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[MAXBUF+1]; data/vorbis-tools-1.4.0/ogg123/speex_format.c:102: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[36]; data/vorbis-tools-1.4.0/ogg123/speex_format.c:587: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(priv->comment_packet, priv->op.packet, data/vorbis-tools-1.4.0/ogg123/status.c:38:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_buffer[200]; data/vorbis-tools-1.4.0/ogg123/status.c:88:10: [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. return sprintf (dest, "%02li:%05.2f", min, sec); data/vorbis-tools-1.4.0/ogg123/transport.h:48: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). data_source_t* (* open) (char *source_string, ogg123_options_t *ogg123_opts); data/vorbis-tools-1.4.0/oggdec/oggdec.c:47:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char headbuf[44]; /* The whole buffer */ data/vorbis-tools-1.4.0/oggdec/oggdec.c:96:24: [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). sign = atoi(optarg); data/vorbis-tools-1.4.0/oggdec/oggdec.c:99:24: [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). bits = atoi(optarg); data/vorbis-tools-1.4.0/oggdec/oggdec.c:106:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). endian = atoi(optarg); data/vorbis-tools-1.4.0/oggdec/oggdec.c:141:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(headbuf, "RIFF", 4); data/vorbis-tools-1.4.0/oggdec/oggdec.c:143:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(headbuf+8, "WAVE", 4); data/vorbis-tools-1.4.0/oggdec/oggdec.c:144:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(headbuf+12, "fmt ", 4); data/vorbis-tools-1.4.0/oggdec/oggdec.c:152:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(headbuf+36, "data", 4); data/vorbis-tools-1.4.0/oggdec/oggdec.c:194: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). in = fopen(infile, "rb"); data/vorbis-tools-1.4.0/oggdec/oggdec.c:216: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). out = fopen(outfile, "wb"); data/vorbis-tools-1.4.0/oggdec/oggdec.c:253:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8192], outbuf[8192]; data/vorbis-tools-1.4.0/oggdec/oggdec.c:457:25: [2] (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 string. strcat(out, ".raw"); data/vorbis-tools-1.4.0/oggdec/oggdec.c:459:25: [2] (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 string. strcat(out, ".wav"); data/vorbis-tools-1.4.0/oggenc/audio.c:105:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[1024]; data/vorbis-tools-1.4.0/oggenc/audio.c:123:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8]; data/vorbis-tools-1.4.0/oggenc/audio.c:152:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8]; data/vorbis-tools-1.4.0/oggenc/audio.c:250:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[22]; data/vorbis-tools-1.4.0/oggenc/audio.c:251:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf2[8]; data/vorbis-tools-1.4.0/oggenc/audio.c:364:13: [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(aiff->channel_permute, aiff_permute_matrix[aiff->channels-1], data/vorbis-tools-1.4.0/oggenc/audio.c:416:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[40]; data/vorbis-tools-1.4.0/oggenc/audio.c:590:13: [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(wav->channel_permute, wav_permute_matrix[wav->channels-1], data/vorbis-tools-1.4.0/oggenc/audio.c:670:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (((unsigned char *)buf)[i*3*f->channels + 3*ch_permute[j] + 1] << 8) | data/vorbis-tools-1.4.0/oggenc/audio.c:671:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (((unsigned char *)buf)[i*3*f->channels + 3*ch_permute[j]] & 0xff)) data/vorbis-tools-1.4.0/oggenc/flac.c:86:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(flac->oldbuf, oldbuf, buflen); data/vorbis-tools-1.4.0/oggenc/flac.c:253:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + i, flac->oldbuf, copy); data/vorbis-tools-1.4.0/oggenc/lyrics.c:114: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. static char text[4096]; data/vorbis-tools-1.4.0/oggenc/lyrics.c:115: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. static char str[4096]; data/vorbis-tools-1.4.0/oggenc/lyrics.c:314:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[4096]; data/vorbis-tools-1.4.0/oggenc/lyrics.c:315:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lyrics_line[4096]=""; data/vorbis-tools-1.4.0/oggenc/lyrics.c:386:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[4096]; data/vorbis-tools-1.4.0/oggenc/lyrics.c:413:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[4096]; data/vorbis-tools-1.4.0/oggenc/lyrics.c:423:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/vorbis-tools-1.4.0/oggenc/platform.c:141:5: [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 seg[MAX_PATH+1]; data/vorbis-tools-1.4.0/oggenc/platform.c:153:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(segment, fn, end-fn); data/vorbis-tools-1.4.0/oggenc/platform.c:158:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, segment, -1, seg, MAX_PATH+1); data/vorbis-tools-1.4.0/oggenc/platform.c:211:9: [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 wfn[MAX_PATH+1]; data/vorbis-tools-1.4.0/oggenc/platform.c:212:9: [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 wmode[32]; data/vorbis-tools-1.4.0/oggenc/platform.c:213:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, fn, -1, wfn, MAX_PATH+1); data/vorbis-tools-1.4.0/oggenc/platform.c:214:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, mode, -1, wmode, 32); data/vorbis-tools-1.4.0/oggenc/platform.c:217: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). return fopen(fn, mode); data/vorbis-tools-1.4.0/oggenc/platform.h:39:29: [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). #define oggenc_fopen(x,y,z) fopen(x,y) data/vorbis-tools-1.4.0/oggenc/skeleton.c:115:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (op->packet, FISHEAD_IDENTIFIER, 8); /* identifier */ data/vorbis-tools-1.4.0/oggenc/skeleton.c:148:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (op->packet, FISBONE_IDENTIFIER, 8); /* identifier */ data/vorbis-tools-1.4.0/oggenc/skeleton.c:157:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((op->packet+FISBONE_SIZE), fp->message_header_fields, fp->current_header_size); data/vorbis-tools-1.4.0/oggenc/skeleton.h:32:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char UTC[20]; data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:134: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 language[16]; data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:135: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 category[16]; data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:717:17: [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(inf->language, inf->ki.language, 16); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:719:17: [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(inf->category, inf->ki.category, 16); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:725:17: [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(inf->language, packet.packet+32, 16); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:727:17: [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(inf->category, packet.packet+48, 16); data/vorbis-tools-1.4.0/ogginfo/ogginfo2.c:1126:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(filename, "rb"); data/vorbis-tools-1.4.0/ogginfo/theora.c:161: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 id[6]; data/vorbis-tools-1.4.0/share/charset.c:312: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 first[256]; data/vorbis-tools-1.4.0/share/charset.c:313: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 next[256]; data/vorbis-tools-1.4.0/share/charset.c:327: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 used[256]; data/vorbis-tools-1.4.0/share/charset_test.c:31: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 s[2]; data/vorbis-tools-1.4.0/share/charset_test.c:69:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[8]; data/vorbis-tools-1.4.0/share/charset_test.c:122: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(s, "......."); data/vorbis-tools-1.4.0/share/charset_test.c:153: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 s[3]; data/vorbis-tools-1.4.0/share/charset_test.c:164: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(s, ".."); data/vorbis-tools-1.4.0/share/charset_test.c:175: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 s[3]; data/vorbis-tools-1.4.0/share/charset_test.c:185: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(s, ".."); data/vorbis-tools-1.4.0/share/charset_test.c:195: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 s[3]; data/vorbis-tools-1.4.0/share/charset_test.c:206: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(s, ".."); data/vorbis-tools-1.4.0/share/charset_test.c:217: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 s[256]; data/vorbis-tools-1.4.0/share/iconvert.c:61: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 tbuf[2048]; data/vorbis-tools-1.4.0/share/iconvert.c:87:5: [2] (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 string. strcat(tocode1, "//TRANSLIT"); data/vorbis-tools-1.4.0/share/makemap.c:33:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c, buf[4]; data/vorbis-tools-1.4.0/share/utf8.c:140:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). wchars = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, from, data/vorbis-tools-1.4.0/share/utf8.c:156:8: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). err = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, from, data/vorbis-tools-1.4.0/vcut/vcut.c:81: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->packet, packet->packet, p->length); data/vorbis-tools-1.4.0/vcut/vcut.c:222:34: [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). s->out = fopen(filename, "wb"); data/vorbis-tools-1.4.0/vcut/vcut.c:271:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). state.in = fopen(argv[1], "rb"); data/vorbis-tools-1.4.0/vcut/vcut.c:275:28: [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). state.in = fopen(argv[1], "rb"); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:61: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->data + buffer->data_len, og->header, data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:64: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->data + buffer->data_len, og->body, data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:380: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(op->packet, opb.buffer, oggpack_bytes(&opb)); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:601: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(state->mainbuf, header_main.packet, header_main.bytes); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:647: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(state->bookbuf, header->packet, data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:702:4: [2] (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 string. strcat(param->outfilename, ".vctemp"); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:728: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). p->in = fopen(p->infilename, "rb"); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:748:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). p->out = fopen(p->outfilename, "wb"); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:763:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). p->com = fopen(p->commentfilename, "r"); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:780:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). p->com = fopen(p->commentfilename, "w"); data/vorbis-tools-1.4.0/intl/bindtextdom.c:135:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dirname) + 1; data/vorbis-tools-1.4.0/intl/bindtextdom.c:173:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (codeset) + 1; data/vorbis-tools-1.4.0/intl/bindtextdom.c:204:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (domainname) + 1; data/vorbis-tools-1.4.0/intl/bindtextdom.c:232:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dirname) + 1; data/vorbis-tools-1.4.0/intl/bindtextdom.c:261:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (codeset) + 1; data/vorbis-tools-1.4.0/intl/dcigettext.c:542:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msgid_len = strlen (msgid1) + 1; data/vorbis-tools-1.4.0/intl/dcigettext.c:636:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dirname_len = strlen (dirname) + 1; data/vorbis-tools-1.4.0/intl/dcigettext.c:678:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). domainname_len = strlen (domainname); data/vorbis-tools-1.4.0/intl/dcigettext.c:679:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdomainname = (char *) alloca (strlen (categoryname) data/vorbis-tools-1.4.0/intl/dcigettext.c:688:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). single_locale = (char *) alloca (strlen (categoryvalue) + 1); data/vorbis-tools-1.4.0/intl/dcigettext.c:782:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen (localename) + 1; data/vorbis-tools-1.4.0/intl/dcigettext.c:911:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nls_uint32 len = strlen (msgid); data/vorbis-tools-1.4.0/intl/dcigettext.c:1115: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). charsetstr += strlen ("charset="); data/vorbis-tools-1.4.0/intl/dcigettext.c:1158: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 (outcharset); data/vorbis-tools-1.4.0/intl/dcigettext.c:1601:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (value) + 1; data/vorbis-tools-1.4.0/intl/eval-plural.h:88:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. case equal: data/vorbis-tools-1.4.0/intl/finddomain.c:94:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (dirname) + 1, 0, locale, NULL, NULL, data/vorbis-tools-1.4.0/intl/finddomain.c:134:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (alias_value) + 1; data/vorbis-tools-1.4.0/intl/finddomain.c:157:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (dirname) + 1, mask, language, territory, data/vorbis-tools-1.4.0/intl/l10nflist.c:98:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/vorbis-tools-1.4.0/intl/l10nflist.c:123:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/vorbis-tools-1.4.0/intl/l10nflist.c:197:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen (language) data/vorbis-tools-1.4.0/intl/l10nflist.c:199:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (territory) + 1 : 0) data/vorbis-tools-1.4.0/intl/l10nflist.c:201:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (codeset) + 1 : 0) data/vorbis-tools-1.4.0/intl/l10nflist.c:203:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (normalized_codeset) + 1 : 0) data/vorbis-tools-1.4.0/intl/l10nflist.c:205:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (modifier) + 1 : 0) data/vorbis-tools-1.4.0/intl/l10nflist.c:206:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + 1 + strlen (filename) + 1); data/vorbis-tools-1.4.0/intl/l10nflist.c:326:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, data/vorbis-tools-1.4.0/intl/langprefs.c:76:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen (buf) + 1; data/vorbis-tools-1.4.0/intl/langprefs.c:108:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (buf); data/vorbis-tools-1.4.0/intl/loadmsgcat.c:470:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read(fd, buf, n) read_not_cancel (fd, buf, n) data/vorbis-tools-1.4.0/intl/loadmsgcat.c:874:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long int nb = (long int) read (fd, read_ptr, to_read); data/vorbis-tools-1.4.0/intl/loadmsgcat.c:1053:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). need += strlen (sysdep_segment_values[sysdepref]); data/vorbis-tools-1.4.0/intl/loadmsgcat.c:1188:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = strlen (sysdep_segment_values[sysdepref]); data/vorbis-tools-1.4.0/intl/localcharset.c:87:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/vorbis-tools-1.4.0/intl/localcharset.c:88:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/vorbis-tools-1.4.0/intl/localcharset.c:128:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_len = strlen (dir); data/vorbis-tools-1.4.0/intl/localcharset.c:129:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t base_len = strlen (base); data/vorbis-tools-1.4.0/intl/localcharset.c:158:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/vorbis-tools-1.4.0/intl/localcharset.c:167:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/vorbis-tools-1.4.0/intl/localcharset.c:174:12: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/vorbis-tools-1.4.0/intl/localcharset.c:176:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l1 = strlen (buf1); data/vorbis-tools-1.4.0/intl/localcharset.c:177:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l2 = strlen (buf2); data/vorbis-tools-1.4.0/intl/localcharset.c:446:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/vorbis-tools-1.4.0/intl/localcharset.c:446:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/vorbis-tools-1.4.0/intl/localcharset.c:450:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). codeset = aliases + strlen (aliases) + 1; data/vorbis-tools-1.4.0/intl/localealias.c:324: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). alias_len = strlen (alias) + 1; data/vorbis-tools-1.4.0/intl/localealias.c:325: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). value_len = strlen (value) + 1; data/vorbis-tools-1.4.0/intl/localename.c:924:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (name) == 7 && name[2] == '-') data/vorbis-tools-1.4.0/intl/log.c:83:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). last_logfilename = (char *) malloc (strlen (logfilename) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:59:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sl = strlen (root); data/vorbis-tools-1.4.0/intl/os2compat.c:60:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:62:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:73:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sl = strlen (root); data/vorbis-tools-1.4.0/intl/os2compat.c:74:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:76:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:87:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sl = strlen (root); data/vorbis-tools-1.4.0/intl/os2compat.c:88:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:90:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/vorbis-tools-1.4.0/intl/os2compat.c:96:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (_nlos2_localedir) <= MAXPATHLEN) data/vorbis-tools-1.4.0/intl/plural-exp.h:53:3: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal, /* Comparison for equality. */ data/vorbis-tools-1.4.0/intl/plural.c:926:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/vorbis-tools-1.4.0/intl/plural.c:1839:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. lval->op = equal; data/vorbis-tools-1.4.0/intl/relocatable.c:115:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). orig_prefix_len = strlen (orig_prefix_arg); data/vorbis-tools-1.4.0/intl/relocatable.c:116:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). curr_prefix_len = strlen (curr_prefix_arg); data/vorbis-tools-1.4.0/intl/relocatable.c:182:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/vorbis-tools-1.4.0/intl/relocatable.c:186:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rel_installdir = orig_installdir + strlen (orig_installprefix); data/vorbis-tools-1.4.0/intl/relocatable.c:191:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *p = curr_pathname + strlen (curr_pathname); data/vorbis-tools-1.4.0/intl/relocatable.c:214:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *rp = rel_installdir + strlen (rel_installdir); data/vorbis-tools-1.4.0/intl/relocatable.c:215:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *cp = curr_installdir + strlen (curr_installdir); data/vorbis-tools-1.4.0/intl/relocatable.c:317: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 (location_as_posix_path) >= MAX_PATH - 1) data/vorbis-tools-1.4.0/intl/relocatable.c:354:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/vorbis-tools-1.4.0/intl/relocatable.c:373:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/vorbis-tools-1.4.0/intl/relocatable.c:452:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/vorbis-tools-1.4.0/intl/textdomain.c:98:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (domainname) + 1; data/vorbis-tools-1.4.0/intl/vasnprintf.c:128:24: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define local_wcslen wcslen data/vorbis-tools-1.4.0/intl/vasnprintf.c:2778: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2838: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:2950: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3134: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3191: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3316: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). ndigits = strlen (digits); data/vorbis-tools-1.4.0/intl/vasnprintf.c:3820: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). tmp_length = strlen (a.arg[dp->arg_index].a.a_string); data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:118:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (opt->name) + 1; data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:126:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (opt->desc) + 1; data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:257: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(line) == 0) data/vorbis-tools-1.4.0/ogg123/cfgfile_options.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 (value); data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:283: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). if (value != NULL || strlen(value) > 0) data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:308: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(value) != 1) data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:387:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((thischar = fgetc(file)) != EOF) { data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:452: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 (homedir && strlen(homedir) < FILENAME_MAX - 10) { data/vorbis-tools-1.4.0/ogg123/cfgfile_options.c:454:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, homedir, FILENAME_MAX); data/vorbis-tools-1.4.0/ogg123/easyflac.c:94:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (*e_decoder->callbacks.read)(e_decoder, buffer, bytes, e_decoder->callbacks.client_data); data/vorbis-tools-1.4.0/ogg123/easyflac.c:128:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (*e_decoder->callbacks.read)(e_decoder, buffer, bytes, e_decoder->callbacks.client_data); data/vorbis-tools-1.4.0/ogg123/easyflac.h:98:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EasyFLAC__StreamDecoderReadCallback read; data/vorbis-tools-1.4.0/ogg123/flac_format.c:463:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read = e_decoder->source->transport->read(e_decoder->source, buffer, data/vorbis-tools-1.4.0/ogg123/flac_format.c:466:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *bytes = read; data/vorbis-tools-1.4.0/ogg123/flac_format.c:467:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). priv->bytes_read += read; data/vorbis-tools-1.4.0/ogg123/flac_format.c:626:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, f_comments->comments[i].entry, data/vorbis-tools-1.4.0/ogg123/format.h:67:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (* read) (decoder_t *decoder, void *ptr, int nbytes, int *eos, data/vorbis-tools-1.4.0/ogg123/http_transport.c:176: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). tmp + 2 < strlen(source_string) && data/vorbis-tools-1.4.0/ogg123/ogg123.c:660:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = format->read(decoder, convbuffer, convsize, &eos, &new_audio_fmt); data/vorbis-tools-1.4.0/ogg123/oggvorbis_format.c:317:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return decoder->source->transport->read(decoder->source, ptr, size, nmemb); data/vorbis-tools-1.4.0/ogg123/oggvorbis_format.c:396:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, vc->user_comments[i], vc->comment_lengths[i]); data/vorbis-tools-1.4.0/ogg123/playlist.c:126: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). int dir_len = strlen(dirname); data/vorbis-tools-1.4.0/ogg123/playlist.c:139: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). int sub_len = strlen(entries[i]->d_name); data/vorbis-tools-1.4.0/ogg123/playlist.c:149:7: [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(nextfile, "/"); data/vorbis-tools-1.4.0/ogg123/playlist.c:181: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). int dir_len = strlen(dirname); data/vorbis-tools-1.4.0/ogg123/playlist.c:194: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). int sub_len = strlen(entry->d_name); data/vorbis-tools-1.4.0/ogg123/playlist.c:204:7: [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(nextfile, "/"); data/vorbis-tools-1.4.0/ogg123/playlist.c:259: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). length = strlen(filename); data/vorbis-tools-1.4.0/ogg123/remote.c:153: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). buf[strlen(buf)-1] = 0; data/vorbis-tools-1.4.0/ogg123/speex_format.c:265:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nb_read = trans->read(decoder->source, data, sizeof(char), 200); data/vorbis-tools-1.4.0/ogg123/speex_format.c:412:3: [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/vorbis-tools-1.4.0/ogg123/speex_format.c:452:5: [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/vorbis-tools-1.4.0/ogg123/speex_format.c:528:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nb_read = trans->read(decoder->source, data, sizeof(char), 200); data/vorbis-tools-1.4.0/ogg123/status.c:74:12: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. cur += sprintf (cur, ")"); data/vorbis-tools-1.4.0/ogg123/status.c:148:14: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. len += sprintf(str+len, " "); data/vorbis-tools-1.4.0/ogg123/status.c:193:10: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. len += sprintf(str+len, "\r"); data/vorbis-tools-1.4.0/ogg123/transport.h:50:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (* read) (data_source_t *source, void *ptr, size_t size, size_t nmemb); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:59: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). strlen(vorbis_comment_keys[i].key)) ) { data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:61: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). *offset = strlen(vorbis_comment_keys[i].key); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:62: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). s = malloc(strlen(vorbis_comment_keys[i].formatstr) + 1); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:82:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, comment, j); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:83: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(s + j, ":"); data/vorbis-tools-1.4.0/ogg123/vorbis_comments.c:95: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). s = malloc(strlen(vorbis_comment_keys[i].formatstr) + 1); data/vorbis-tools-1.4.0/oggdec/oggdec.c:451: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). end = end?end:(argv[i] + strlen(argv[i]) + 1); data/vorbis-tools-1.4.0/oggdec/oggdec.c:453: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). out = malloc(strlen(argv[i]) + 10); data/vorbis-tools-1.4.0/oggdec/oggdec.c:454:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out, argv[i], end-argv[i]); data/vorbis-tools-1.4.0/oggenc/easyflac.c:95:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (*e_decoder->callbacks.read)(e_decoder, buffer, bytes, e_decoder->callbacks.client_data); data/vorbis-tools-1.4.0/oggenc/easyflac.c:129:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (*e_decoder->callbacks.read)(e_decoder, buffer, bytes, e_decoder->callbacks.client_data); data/vorbis-tools-1.4.0/oggenc/easyflac.h:98:49: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EasyFLAC__StreamDecoderReadCallback read; data/vorbis-tools-1.4.0/oggenc/encode.c:592:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = kate_ogg_encode_text(&k, item->t0, item->t1, item->text, strlen(item->text)+1, &kate_op); data/vorbis-tools-1.4.0/oggenc/flac.c:373:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(comment, f_comments->comments[i].entry, f_comments->comments[i].length); data/vorbis-tools-1.4.0/oggenc/lyrics.c:76: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(utf8); data/vorbis-tools-1.4.0/oggenc/lyrics.c:150:13: [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(text,""); data/vorbis-tools-1.4.0/oggenc/lyrics.c:182:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len=strlen(text); data/vorbis-tools-1.4.0/oggenc/lyrics.c:183: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 (len+strlen(str) >= sizeof(text)) { data/vorbis-tools-1.4.0/oggenc/lyrics.c:186:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(text+len,str,sizeof(text)-len); data/vorbis-tools-1.4.0/oggenc/lyrics.c:276: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). memmove(start,end+1,strlen(end+1)+1); data/vorbis-tools-1.4.0/oggenc/lyrics.c:305:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). add_kate_karaoke_tag(km,end_time-current_time,str,strlen(str),line); data/vorbis-tools-1.4.0/oggenc/lyrics.c:370:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lyrics_line,str+offset,sizeof(lyrics_line)); data/vorbis-tools-1.4.0/oggenc/oggenc.c:324: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). end = end?end:(start + strlen(infiles[i])+1); data/vorbis-tools-1.4.0/oggenc/oggenc.c:327:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out_fn, start, end-start); data/vorbis-tools-1.4.0/oggenc/oggenc.c:603:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, len-1); data/vorbis-tools-1.4.0/oggenc/oggenc.c:605: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). return strlen(dst); data/vorbis-tools-1.4.0/oggenc/oggenc.c:608:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). drop_margin = remove_list + (replace_list == NULL?0:strlen(replace_list)); data/vorbis-tools-1.4.0/oggenc/oggenc.c:981: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 (strlen(opt->lyrics_language[opt->lyrics_language_count - 1]) > 15) { data/vorbis-tools-1.4.0/oggenc/platform.c:139:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *segment = malloc(strlen(fn)+1); data/vorbis-tools-1.4.0/oggenc/platform.c:146: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) >= 3 && isalpha(fn[0]) && fn[1]==':') data/vorbis-tools-1.4.0/oggenc/platform.c:296: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). sizeofargs += strlen(utf8flag) + 1; data/vorbis-tools-1.4.0/oggenc/platform.c:312: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). count = strlen(utf8flag) + 1; data/vorbis-tools-1.4.0/oggenc/skeleton.c:87:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int this_message_size = strlen(header_key) + strlen(header_value) + 4; data/vorbis-tools-1.4.0/oggenc/skeleton.c:87:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int this_message_size = strlen(header_key) + strlen(header_value) + 4; data/vorbis-tools-1.4.0/share/getopt.c:229:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # if (!defined __STDC__ || !__STDC__) && !defined strlen data/vorbis-tools-1.4.0/share/getopt.c:232:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extern int strlen (const char *); data/vorbis-tools-1.4.0/share/getopt.c:430:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = nonoption_flags_max_len = strlen (orig_str); data/vorbis-tools-1.4.0/share/getopt.c:651:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). == (unsigned int) strlen (p->name)) data/vorbis-tools-1.4.0/share/getopt.c:675:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:707:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:723:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:728:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:839:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/vorbis-tools-1.4.0/share/getopt.c:862:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:882:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:896:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/getopt.c:900:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/vorbis-tools-1.4.0/share/iconvert.c:82: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). tocode1 = (char *)malloc(strlen(tocode) + 11); data/vorbis-tools-1.4.0/share/utf8.c:141:4: [1] (buffer) strlen: Does not handle 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(from), NULL, 0); data/vorbis-tools-1.4.0/share/utf8.c:157:4: [1] (buffer) strlen: Does not handle 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(from), unicode, wchars); data/vorbis-tools-1.4.0/share/utf8.c:280: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). fromlen = strlen(from); data/vorbis-tools-1.4.0/share/utf8.c:361:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:360: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). oggpack_write(&opb,strlen(vendor),32); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:361: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). _v_writestring(&opb,vendor, strlen(vendor)); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:425:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = s->read(buffer,1, CHUNKSIZE, s->in); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:496:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = state->read(buffer, 1, CHUNKSIZE, state->in); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:574:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = state->read(buffer, 1, CHUNKSIZE, state->in); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:657:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = state->read(buffer, 1, CHUNKSIZE, state->in); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:667: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). state->vendor = malloc(strlen(state->vc->vendor) +1); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.c:851:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = state->read(buffer,1, CHUNKSIZE, state->in); data/vorbis-tools-1.4.0/vorbiscomment/vcedit.h:37:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). vcedit_read_func read; data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:119:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (retval[strlen (retval) - 1] == '\n') data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:147:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buffer + (ii * buffer_size), buffers[ii], buffer_size); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:337: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). int len = strlen(line); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:469: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). char *to = malloc(strlen(from) + 1); data/vorbis-tools-1.4.0/vorbiscomment/vcomment.c:700: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). param->outfilename = malloc(strlen(param->infilename)+8); ANALYSIS SUMMARY: Hits = 518 Lines analyzed = 42718 in approximately 1.07 seconds (40106 lines/second) Physical Source Lines of Code (SLOC) = 30223 Hits@level = [0] 471 [1] 186 [2] 210 [3] 59 [4] 62 [5] 1 Hits@level+ = [0+] 989 [1+] 518 [2+] 332 [3+] 122 [4+] 63 [5+] 1 Hits/KSLOC@level+ = [0+] 32.7234 [1+] 17.1393 [2+] 10.985 [3+] 4.03666 [4+] 2.08451 [5+] 0.0330874 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.