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/streamripper-1.64.6/console/streamripper.c
Examining data/streamripper-1.64.6/console/cstreamripper.c
Examining data/streamripper-1.64.6/lib/errors.c
Examining data/streamripper-1.64.6/lib/list.h
Examining data/streamripper-1.64.6/lib/charset.c
Examining data/streamripper-1.64.6/lib/ripogg.c
Examining data/streamripper-1.64.6/lib/config.h
Examining data/streamripper-1.64.6/lib/rip_manager.c
Examining data/streamripper-1.64.6/lib/http.h
Examining data/streamripper-1.64.6/lib/debug.c
Examining data/streamripper-1.64.6/lib/threadlib.c
Examining data/streamripper-1.64.6/lib/http.c
Examining data/streamripper-1.64.6/lib/parse.c
Examining data/streamripper-1.64.6/lib/rip_manager.h
Examining data/streamripper-1.64.6/lib/debug.h
Examining data/streamripper-1.64.6/lib/prefs.c
Examining data/streamripper-1.64.6/lib/errors.h
Examining data/streamripper-1.64.6/lib/ictest.c
Examining data/streamripper-1.64.6/lib/compat.h
Examining data/streamripper-1.64.6/lib/relaylib.h
Examining data/streamripper-1.64.6/lib/mchar.h
Examining data/streamripper-1.64.6/lib/argv.c
Examining data/streamripper-1.64.6/lib/filelib.h
Examining data/streamripper-1.64.6/lib/filelib.c
Examining data/streamripper-1.64.6/lib/utf8.h
Examining data/streamripper-1.64.6/lib/findsep.h
Examining data/streamripper-1.64.6/lib/ripstream.c
Examining data/streamripper-1.64.6/lib/cbuf2.c
Examining data/streamripper-1.64.6/lib/external.h
Examining data/streamripper-1.64.6/lib/cbuf2.h
Examining data/streamripper-1.64.6/lib/utf8.c
Examining data/streamripper-1.64.6/lib/parse.h
Examining data/streamripper-1.64.6/lib/iconvert.c
Examining data/streamripper-1.64.6/lib/ripstream.h
Examining data/streamripper-1.64.6/lib/confw32.h
Examining data/streamripper-1.64.6/lib/srtypes.h
Examining data/streamripper-1.64.6/lib/prefs.h
Examining data/streamripper-1.64.6/lib/ripogg.h
Examining data/streamripper-1.64.6/lib/mchar.c
Examining data/streamripper-1.64.6/lib/socklib.h
Examining data/streamripper-1.64.6/lib/socklib.c
Examining data/streamripper-1.64.6/lib/charmaps.h
Examining data/streamripper-1.64.6/lib/ripaac.c
Examining data/streamripper-1.64.6/lib/external.c
Examining data/streamripper-1.64.6/lib/srconfig.h
Examining data/streamripper-1.64.6/lib/charset.h
Examining data/streamripper-1.64.6/lib/findsep2.c
Examining data/streamripper-1.64.6/lib/relaylib.c
Examining data/streamripper-1.64.6/lib/findsep.c
Examining data/streamripper-1.64.6/lib/uce_dirent.h
Examining data/streamripper-1.64.6/lib/threadlib.h

FINAL RESULTS:

data/streamripper-1.64.6/console/streamripper.c:147:6:  [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, argptr);
data/streamripper-1.64.6/console/streamripper.c:150:6:  [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, argptr);
data/streamripper-1.64.6/lib/argv.c:126: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 (copy[argc], argv[argc]);
data/streamripper-1.64.6/lib/compat.h:118: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/streamripper-1.64.6/lib/compat.h:118: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/streamripper-1.64.6/lib/debug.c:28:13:  [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 vsnprintf _vsnprintf
data/streamripper-1.64.6/lib/debug.c:29:13:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    #define vswprintf _vsnwprintf
data/streamripper-1.64.6/lib/debug.c:32:9:  [4] (format) vswprintf:
  Potential format string problem (CWE-134). Make format string constant.
    int vswprintf (wchar_t * ws, size_t n, const wchar_t * format, va_list arg);
data/streamripper-1.64.6/lib/debug.c:113: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 (gcsfp, fmt, argptr);
data/streamripper-1.64.6/lib/external.c:96:6:  [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 (ep->artist_buf, &ep->line_buf[strlen("ARTIST=")]);
data/streamripper-1.64.6/lib/external.c:98:6:  [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 (ep->album_buf, &ep->line_buf[strlen("ALBUM=")]);
data/streamripper-1.64.6/lib/external.c:100:6:  [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 (ep->title_buf, &ep->line_buf[strlen("TITLE=")]);
data/streamripper-1.64.6/lib/external.c:296:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp (argv[0],&argv[0]);
data/streamripper-1.64.6/lib/http.c:209:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(myurl, "http://%s:%d%s", ui.host, ui.port, ui.path);
data/streamripper-1.64.6/lib/http.c:213: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(myurl, ui.path);
data/streamripper-1.64.6/lib/http.c:248:2:  [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(buffer, authbuf);
data/streamripper-1.64.6/lib/http.c:258:2:  [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(buffer, authbuf);
data/streamripper-1.64.6/lib/http.c:267:2:  [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(buffer, authbuf);
data/streamripper-1.64.6/lib/http.c:290:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(authbuf, "%s:%s", username, password);
data/streamripper-1.64.6/lib/http.c:292:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(authbuf, "%s: Basic %s\r\n", header_name, auth64);
data/streamripper-1.64.6/lib/http.c:308:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(myurl, "http://%s:%d%s", ui.host, ui.port, ui.path);
data/streamripper-1.64.6/lib/http.c:310: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(myurl, ui.path);
data/streamripper-1.64.6/lib/http.c:483:6:  [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(info->server, versionbuf);
data/streamripper-1.64.6/lib/http.c:505:3:  [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(info->server, versionbuf);
data/streamripper-1.64.6/lib/http.c:609: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 (header, test_header);
data/streamripper-1.64.6/lib/http.c:616:5:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:620:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "Location:%s\r\n", info->http_location);
data/streamripper-1.64.6/lib/http.c:621:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:626:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "Server:%s\r\n", info->server);
data/streamripper-1.64.6/lib/http.c:627:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:633:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "icy-name:%s\r\n", info->icy_name);
data/streamripper-1.64.6/lib/http.c:634:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:638:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "icy-name:%s\r\n", info->icy_name);
data/streamripper-1.64.6/lib/http.c:639:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:644:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "icy-url:%s\r\n", info->icy_url);
data/streamripper-1.64.6/lib/http.c:645:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:651:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:656:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "icy-genre:%s\r\n", info->icy_genre);
data/streamripper-1.64.6/lib/http.c:657:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:663:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:669:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:673:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:677:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:681:2:  [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(header, buf);
data/streamripper-1.64.6/lib/http.c:685:2:  [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(header, buf);
data/streamripper-1.64.6/lib/iconvert.c:82: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/streamripper-1.64.6/lib/ictest.c:15:5:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    swprintf (buf, 1024, L"%ls", L"HiHi");
data/streamripper-1.64.6/lib/mchar.c:48:13:  [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 vsnprintf _vsnprintf
data/streamripper-1.64.6/lib/mchar.c:605: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 (mchar_cs->codeset_locale, cs_opt->codeset_locale);
data/streamripper-1.64.6/lib/mchar.c:606: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 (mchar_cs->codeset_filesys, cs_opt->codeset_filesys);
data/streamripper-1.64.6/lib/mchar.c:607: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 (mchar_cs->codeset_id3, cs_opt->codeset_id3);
data/streamripper-1.64.6/lib/mchar.c:608: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 (mchar_cs->codeset_metadata, cs_opt->codeset_metadata);
data/streamripper-1.64.6/lib/mchar.c:609: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 (mchar_cs->codeset_relay, cs_opt->codeset_relay);
data/streamripper-1.64.6/lib/mchar.c:649:12:  [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).
    return strcpy (dest, src);
data/streamripper-1.64.6/lib/mchar.c:666:10:  [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.
    rc = vsnprintf (dest, n, fmt, ap);
data/streamripper-1.64.6/lib/prefs.c:391: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 (prefs->url, label_copy);
data/streamripper-1.64.6/lib/prefs.c:516: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(prefs->useragent, DEFAULT_USER_AGENT);
data/streamripper-1.64.6/lib/prefs.c:545: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(prefs->default_skin, DEFAULT_SKINFILE);
data/streamripper-1.64.6/lib/relaylib.c:232: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(m_http_header, http_header);
data/streamripper-1.64.6/lib/rip_manager.c:203: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(err_info.error_str, errors_get_string (err));
data/streamripper-1.64.6/lib/rip_manager.c:526: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 (rmi->streamname, rmi->http_info.icy_name);
data/streamripper-1.64.6/lib/rip_manager.c:527: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 (rmi->server_name, rmi->http_info.server);
data/streamripper-1.64.6/lib/rip_manager.c:562: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(rmi->no_meta_name, rmi->http_info.icy_name);
data/streamripper-1.64.6/lib/ripogg.c:115: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/streamripper-1.64.6/lib/ripstream.c:198: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 (dest->raw_metadata, src->raw_metadata);
data/streamripper-1.64.6/lib/ripstream.c:205: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 (dest->composed_metadata, src->composed_metadata);
data/streamripper-1.64.6/lib/ripstream.c:482:6:  [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 (rmi->current_track.raw_metadata, rmi->no_meta_name);
data/streamripper-1.64.6/lib/socklib.c:89: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(ifr.ifr_name, if_name);
data/streamripper-1.64.6/lib/uce_dirent.h:367: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 (dirp->dirname, dirname);
data/streamripper-1.64.6/lib/utf8.c:288: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/streamripper-1.64.6/lib/external.c:171:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    rc = CreateProcess (
data/streamripper-1.64.6/lib/external.c:171:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    rc = CreateProcess (
data/streamripper-1.64.6/lib/rip_manager.c:495:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char const *env_http_proxy = getenv ("http_proxy");
data/streamripper-1.64.6/lib/utf8.c:236: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/streamripper-1.64.6/console/cstreamripper.c:46: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 *mesg[5], temp[256];
data/streamripper-1.64.6/console/streamripper.c:168: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 status_str[128];
data/streamripper-1.64.6/console/streamripper.c:169: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 filesize_str[64];
data/streamripper-1.64.6/console/streamripper.c:185:6:  [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(status_str,"buffering - %c ",
data/streamripper-1.64.6/console/streamripper.c:195: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(status_str, "skipping...   ");
data/streamripper-1.64.6/console/streamripper.c:197: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(status_str, "ripping...    ");
data/streamripper-1.64.6/console/streamripper.c:206:6:  [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(status_str, "re-connecting..");
data/streamripper-1.64.6/console/streamripper.c:412: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).
	    prefs->dropcount = atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:417: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).
	    m_stop_time += atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:425:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    prefs->timeout = atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:429:31:  [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).
 	    prefs->maxMB_rip_size = atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:455:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    prefs->count_start = atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:464:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    	prefs->relay_port = atoi(argv[i]);
data/streamripper-1.64.6/console/streamripper.c:468:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		prefs->relay_port = atoi(++c);
data/streamripper-1.64.6/console/streamripper.c:473:31:  [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).
	    prefs->max_connections = atoi(argv[i]);
data/streamripper-1.64.6/lib/argv.c:64:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern char *memcpy ();		/* Copy memory region */
data/streamripper-1.64.6/lib/cbuf2.c:118: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 (&cbuf2->buf[write_idx], data, count);
data/streamripper-1.64.6/lib/cbuf2.c:120: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 (&cbuf2->buf[write_idx], data, ft);
data/streamripper-1.64.6/lib/cbuf2.c:121: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 (&cbuf2->buf[0], &data[ft], count-ft);
data/streamripper-1.64.6/lib/cbuf2.c:285:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data, &cbuf2->buf[cbuf2->base_idx], count);
data/streamripper-1.64.6/lib/cbuf2.c:288:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data, &cbuf2->buf[cbuf2->base_idx], frag1);
data/streamripper-1.64.6/lib/cbuf2.c:289:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&data[frag1], &cbuf2->buf[0], count-frag1);
data/streamripper-1.64.6/lib/cbuf2.c:341:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data, &cbuf2->buf[cbuf2->base_idx], count);
data/streamripper-1.64.6/lib/cbuf2.c:343:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data, &cbuf2->buf[cbuf2->base_idx], frag1);
data/streamripper-1.64.6/lib/cbuf2.c:344:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&data[frag1], &cbuf2->buf[0], count-frag1);
data/streamripper-1.64.6/lib/cbuf2.c:402: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 (ml->m_composed_metadata, ti->composed_metadata, 
data/streamripper-1.64.6/lib/cbuf2.c:432: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 (ptr->m_buffer, 
data/streamripper-1.64.6/lib/cbuf2.c:438: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 (ptr->m_buffer, 
data/streamripper-1.64.6/lib/cbuf2.c:468: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 (ptr->m_buffer, &cbuf2->buf[relay_idx], ptr->m_buffer_size);
data/streamripper-1.64.6/lib/cbuf2.c:472: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 (ptr->m_buffer, &cbuf2->buf[relay_idx], remaining);
data/streamripper-1.64.6/lib/cbuf2.c:511: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, &cbuf2->buf[relay_idx], cbuf2->chunk_size);
data/streamripper-1.64.6/lib/cbuf2.c:533:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (&data[cbuf2->chunk_size],tmp->m_composed_metadata,
data/streamripper-1.64.6/lib/cbuf2.c:754:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (out_buf, cbuf2->buf+sidx, first_hunk);
data/streamripper-1.64.6/lib/cbuf2.c:759: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 (out_buf, cbuf2->buf+sidx, length);
data/streamripper-1.64.6/lib/cbuf2.h:31: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 m_composed_metadata[MAX_METADATA_LEN+1];
data/streamripper-1.64.6/lib/charset.c:308: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/streamripper-1.64.6/lib/charset.c:309: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/streamripper-1.64.6/lib/charset.c:323:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char used[256];
data/streamripper-1.64.6/lib/debug.c:43:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filename_buf[SR_MAX_PATH];
data/streamripper-1.64.6/lib/debug.c:68: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).
	gcsfp = fopen(debug_filename, "a");
data/streamripper-1.64.6/lib/errors.c:46:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char m_error_str[NUM_ERROR_CODES][MAX_ERROR_STR];
data/streamripper-1.64.6/lib/errors.h:90: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 error_str[MAX_ERROR_STR];
data/streamripper-1.64.6/lib/filelib.c:278: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 buf1[MAX_TRACK_LEN];
data/streamripper-1.64.6/lib/filelib.c:279: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 buf2[MAX_TRACK_LEN];
data/streamripper-1.64.6/lib/filelib.c:413: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 s[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:683: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 tmp[DATEBUF_LEN];
data/streamripper-1.64.6/lib/filelib.c:725: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 db[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:767: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 fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:774:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = open (fn, O_RDONLY);
data/streamripper-1.64.6/lib/filelib.c:944: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 fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:947: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 (fn, "r");
data/streamripper-1.64.6/lib/filelib.c:1014: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 fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1023:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    close (open (fn, O_RDWR | O_CREAT | O_TRUNC, 
data/streamripper-1.64.6/lib/filelib.c:1031: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 old_fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1032: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 new_fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1045: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 fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1057: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 fn[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1077:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *fp = open (fn, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/streamripper-1.64.6/lib/filelib.c:1173: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 cue_buf[1024];
data/streamripper-1.64.6/lib/filelib.c:1243: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 cue_buf[1024];
data/streamripper-1.64.6/lib/filelib.c:1344: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 dname[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1345: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 fnp[SR_MAX_PATH];
data/streamripper-1.64.6/lib/filelib.c:1374:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int this_seq = atoi(&de->d_name[strlen(fnp)]);
data/streamripper-1.64.6/lib/findsep.c:154: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).
	FILE* fp = fopen("dump.mp3", "wb");
data/streamripper-1.64.6/lib/findsep.c:309: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 ("gcs1.txt","w");
data/streamripper-1.64.6/lib/findsep2.c:155: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).
	FILE* fp = fopen("dump.mp3", "wb");
data/streamripper-1.64.6/lib/findsep2.c:308: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 ("gcs1.txt","w");
data/streamripper-1.64.6/lib/http.c:59: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 headbuf[MAX_HEADER_LEN];
data/streamripper-1.64.6/lib/http.c:125: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 c[3];
data/streamripper-1.64.6/lib/http.c:158: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(urlinfo->path, (void *)"/\0", 2);
data/streamripper-1.64.6/lib/http.c:204: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 myurl[MAX_URL_LEN];
data/streamripper-1.64.6/lib/http.c:272: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(buffer, "\r\n");
data/streamripper-1.64.6/lib/http.c:303: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 myurl[MAX_URL_LEN];
data/streamripper-1.64.6/lib/http.c:346: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 versionbuf[64];
data/streamripper-1.64.6/lib/http.c:347: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 stempbr[MAX_ICY_STRING];
data/streamripper-1.64.6/lib/http.c:413:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	info->icy_bitrate = atoi(stempbr);
data/streamripper-1.64.6/lib/http.c:476:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(info->server, "Streamripper relay server");
data/streamripper-1.64.6/lib/http.c:480:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(info->server, "SHOUTcast/");
data/streamripper-1.64.6/lib/http.c:502:6:  [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(info->server, "icecast/");
data/streamripper-1.64.6/lib/http.c:520: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).
	    info->icy_bitrate = atoi(stempbr);
data/streamripper-1.64.6/lib/http.c:538: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).
	    info->icy_bitrate = atoi(stempbr);
data/streamripper-1.64.6/lib/http.c:615:5:  [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, "ICY 200 OK\r\n");
data/streamripper-1.64.6/lib/http.c:650:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "icy-br:%d\r\n", info->icy_bitrate);
data/streamripper-1.64.6/lib/http.c:662:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "icy-metaint:%d\r\n", info->meta_interval);
data/streamripper-1.64.6/lib/http.c:668:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "Content-Type: audio/mpeg\r\n");
data/streamripper-1.64.6/lib/http.c:672:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "Content-Type: video/nsv\r\n");
data/streamripper-1.64.6/lib/http.c:676:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "Content-Type: application/ogg\r\n");
data/streamripper-1.64.6/lib/http.c:680:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "Content-Type: misc/ultravox\r\n");
data/streamripper-1.64.6/lib/http.c:684:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "Content-Type: audio/aac\r\n");
data/streamripper-1.64.6/lib/http.c:690: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(header, "\r\n");
data/streamripper-1.64.6/lib/http.c:711: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[MAX_PLS_LEN];
data/streamripper-1.64.6/lib/http.c:712: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 location_buf[MAX_PLS_LEN];
data/streamripper-1.64.6/lib/http.c:713: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 title_buf[MAX_PLS_LEN];
data/streamripper-1.64.6/lib/http.c:730: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 buf1[20];
data/streamripper-1.64.6/lib/http.c:731:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int num_scanned, used, total, open;
data/streamripper-1.64.6/lib/http.c:734:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf1, "File%d=", s);
data/streamripper-1.64.6/lib/http.c:744:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf1, "Title%d=", s);
data/streamripper-1.64.6/lib/http.c:753:6:  [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 (open > best_open) {
data/streamripper-1.64.6/lib/http.c:755:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    best_open = open;
data/streamripper-1.64.6/lib/http.c:773: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[MAX_M3U_LEN];
data/streamripper-1.64.6/lib/http.c:812: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 headbuf[MAX_HEADER_LEN] = {'\0'};
data/streamripper-1.64.6/lib/iconvert.c:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tbuf[2048];
data/streamripper-1.64.6/lib/iconvert.c:83: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/streamripper-1.64.6/lib/ictest.c:12: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 buf[1024];
data/streamripper-1.64.6/lib/mchar.c:102:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%ldb", size);
data/streamripper-1.64.6/lib/mchar.c:104:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%ldkb", size/ONE_K);
data/streamripper-1.64.6/lib/mchar.c:106:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%.2fM", (float)size/(ONE_M));
data/streamripper-1.64.6/lib/mchar.c:194: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 (*base_mem + base_bytes, concat_mem, concat_bytes);
data/streamripper-1.64.6/lib/mchar.c:510: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 (c, cstring, cstring_len);
data/streamripper-1.64.6/lib/mchar.c:602:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (cs_opt->codeset_id3, "UTF-16");
data/streamripper-1.64.6/lib/parse.c:150: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 (rmi->parse_rules, m_default_rule_list, sizeof(m_default_rule_list));
data/streamripper-1.64.6/lib/parse.c:291: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 (rules_file, "r");
data/streamripper-1.64.6/lib/parse.c:300: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 rule_buf[MAX_RULE_SIZE];
data/streamripper-1.64.6/lib/parse.c:301: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 match_buf[MAX_RULE_SIZE];
data/streamripper-1.64.6/lib/parse.c:302: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 subst_buf[MAX_RULE_SIZE];
data/streamripper-1.64.6/lib/prefs.c:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char overwrite_str[128];
data/streamripper-1.64.6/lib/prefs.c:135: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 codeset_str[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/prefs.c:136: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 localhost_str[SR_MAX_PATH];
data/streamripper-1.64.6/lib/prefs.c:308: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 profile_name[128];
data/streamripper-1.64.6/lib/prefs.c:309:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (profile_name, "riplist%d", i);
data/streamripper-1.64.6/lib/prefs.c:337: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 profile_name[128];
data/streamripper-1.64.6/lib/prefs.c:338:6:  [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 (profile_name, "riplist%d", p);
data/streamripper-1.64.6/lib/prefs.c:499:5:  [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(prefs->output_directory, "./");
data/streamripper-1.64.6/lib/prefs.c:550:5:  [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 (prefs->localhost, "127.0.0.1");
data/streamripper-1.64.6/lib/prefs.c:669: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 overwrite_str[128];
data/streamripper-1.64.6/lib/relaylib.c:117: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[BUFSIZE+1];
data/streamripper-1.64.6/lib/relaylib.c:157:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    *icy_metadata = atoi(md);
data/streamripper-1.64.6/lib/relaylib.c:180: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[BUFSIZE];
data/streamripper-1.64.6/lib/relaylib.c:344: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(&local.sin_addr, he->h_addr_list[0], he->h_length);
data/streamripper-1.64.6/lib/rip_manager.c:273: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 fullpath[SR_MAX_PATH];
data/streamripper-1.64.6/lib/rip_manager.c:467: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).
    fid = fopen (rmi->prefs->pls_file, "w");
data/streamripper-1.64.6/lib/rip_manager.c:516:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (rmi->http_info.icy_name, "Streamripper_rips");
data/streamripper-1.64.6/lib/ripaac.c:129: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, out, frame_info.samples); // CHECKME - can we cheat this one
data/streamripper-1.64.6/lib/ripogg.c:470: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 (buffer, buf, size);
data/streamripper-1.64.6/lib/ripogg.c:533: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 (rmi->ogg_curr_header, 
data/streamripper-1.64.6/lib/ripogg.c:535: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 (rmi->ogg_curr_header+rmi->ogg_pg.header_len, 
data/streamripper-1.64.6/lib/ripogg.c:545: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 (rmi->ogg_curr_header+rmi->ogg_curr_header_len,
data/streamripper-1.64.6/lib/ripogg.c:547: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 (rmi->ogg_curr_header + rmi->ogg_curr_header_len 
data/streamripper-1.64.6/lib/ripstream.c:71: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    tag[3];
data/streamripper-1.64.6/lib/ripstream.c:72: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    songtitle[30];
data/streamripper-1.64.6/lib/ripstream.c:73: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    artist[30];
data/streamripper-1.64.6/lib/ripstream.c:74: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    album[30];
data/streamripper-1.64.6/lib/ripstream.c:75: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    year[4];
data/streamripper-1.64.6/lib/ripstream.c:76: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    comment[30];
data/streamripper-1.64.6/lib/ripstream.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	id[4];
data/streamripper-1.64.6/lib/ripstream.c:83: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	pad[3];
data/streamripper-1.64.6/lib/ripstream.c:714: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 bigbuf[HEADER_SIZE] = "";
data/streamripper-1.64.6/lib/ripstream.c:766: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 bigbuf[HEADER_SIZE] = "";
data/streamripper-1.64.6/lib/ripstream.c:768: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 header1[6] = "ID3\x03\0\0";
data/streamripper-1.64.6/lib/ripstream.c:1100: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 newtrack[MAX_TRACK_LEN];
data/streamripper-1.64.6/lib/socklib.c:151: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 (&address.sin_addr, hp->h_addr_list[0], hp->h_length);
data/streamripper-1.64.6/lib/srtypes.h:182: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 codeset_locale[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/srtypes.h:183: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 codeset_filesys[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/srtypes.h:184: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 codeset_id3[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/srtypes.h:185: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 codeset_metadata[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/srtypes.h:186: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 codeset_relay[MAX_CODESET_STRING];
data/streamripper-1.64.6/lib/srtypes.h:236: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 raw_metadata[MAX_TRACK_LEN];
data/streamripper-1.64.6/lib/srtypes.h:244: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 composed_metadata[MAX_METADATA_LEN+1];  /* For relay stream */
data/streamripper-1.64.6/lib/srtypes.h:275: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 icy_name[MAX_ICY_STRING];
data/streamripper-1.64.6/lib/srtypes.h:278: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 icy_genre[MAX_ICY_STRING];
data/streamripper-1.64.6/lib/srtypes.h:279: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 icy_url[MAX_ICY_STRING];
data/streamripper-1.64.6/lib/srtypes.h:280: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 http_location[MAX_HOST_LEN];
data/streamripper-1.64.6/lib/srtypes.h:281: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 server[MAX_SERVER_LEN];
data/streamripper-1.64.6/lib/srtypes.h:286: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 host[MAX_HOST_LEN];
data/streamripper-1.64.6/lib/srtypes.h:287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[SR_MAX_PATH];
data/streamripper-1.64.6/lib/srtypes.h:289: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 username[MAX_URI_STRING];
data/streamripper-1.64.6/lib/srtypes.h:290: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 password[MAX_URI_STRING];
data/streamripper-1.64.6/lib/srtypes.h:305: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 line_buf[MAX_EXT_LINE_LEN];
data/streamripper-1.64.6/lib/srtypes.h:306: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 album_buf[MAX_EXT_LINE_LEN];
data/streamripper-1.64.6/lib/srtypes.h:307: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 artist_buf[MAX_EXT_LINE_LEN];
data/streamripper-1.64.6/lib/srtypes.h:308: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 title_buf[MAX_EXT_LINE_LEN];
data/streamripper-1.64.6/lib/srtypes.h:309: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 metadata_buf[MAX_EXT_LINE_LEN];
data/streamripper-1.64.6/lib/srtypes.h:394: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 m_http_header[MAX_HEADER_LEN];
data/streamripper-1.64.6/lib/srtypes.h:439: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 label[MAX_URL_LEN];		// logical name for this stream
data/streamripper-1.64.6/lib/srtypes.h:440: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 url[MAX_URL_LEN];		// url of the stream to connect to
data/streamripper-1.64.6/lib/srtypes.h:441: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 proxyurl[MAX_URL_LEN];		// url of a http proxy server, 
data/streamripper-1.64.6/lib/srtypes.h:443: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 output_directory[SR_MAX_PATH];	// base directory to output files too
data/streamripper-1.64.6/lib/srtypes.h:444: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 output_pattern[SR_MAX_PATH];	// filename pattern when ripping 
data/streamripper-1.64.6/lib/srtypes.h:446: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 showfile_pattern[SR_MAX_PATH];	// filename base when ripping to
data/streamripper-1.64.6/lib/srtypes.h:448: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 if_name[SR_MAX_PATH];		// local interface to use
data/streamripper-1.64.6/lib/srtypes.h:449: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 rules_file[SR_MAX_PATH];       // file that holds rules for 
data/streamripper-1.64.6/lib/srtypes.h:451: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 pls_file[SR_MAX_PATH];		// optional, where to create a 
data/streamripper-1.64.6/lib/srtypes.h:453: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 relay_ip[SR_MAX_PATH];		// optional, ip to bind relaying 
data/streamripper-1.64.6/lib/srtypes.h:455: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 ext_cmd[SR_MAX_PATH];          // cmd to spawn for external metadata
data/streamripper-1.64.6/lib/srtypes.h:456: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 useragent[MAX_USERAGENT_STR];	// optional, use a different useragent
data/streamripper-1.64.6/lib/srtypes.h:489: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	localhost[MAX_HOST_LEN];	// hostname of 'localhost' 
data/streamripper-1.64.6/lib/srtypes.h:490: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	default_skin[SR_MAX_PATH];
data/streamripper-1.64.6/lib/srtypes.h:492: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	riplist[RIPLIST_LEN][MAX_URL_LEN];
data/streamripper-1.64.6/lib/srtypes.h:498: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 version[MAX_VERSION_LEN];             // default stream
data/streamripper-1.64.6/lib/srtypes.h:499: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 url[MAX_URL_LEN];                     // default stream
data/streamripper-1.64.6/lib/srtypes.h:510: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 streamname[MAX_STREAMNAME_LEN];
data/streamripper-1.64.6/lib/srtypes.h:511: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 server_name[MAX_SERVER_LEN];
data/streamripper-1.64.6/lib/srtypes.h:526: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 filename[SR_MAX_PATH];
data/streamripper-1.64.6/lib/srtypes.h:577: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 no_meta_name[MAX_TRACK_LEN];
data/streamripper-1.64.6/lib/uce_dirent.h:252: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 d_name[NAME_MAX + 1];
data/streamripper-1.64.6/lib/uce_dirent.h:377:5:  [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 (p, "*.*"); /*scan files with and without extension in DOS*/
data/streamripper-1.64.6/lib/utf8.c:137:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	wchars = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, from,
data/streamripper-1.64.6/lib/utf8.c:153:8:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	err = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, from, 
data/streamripper-1.64.6/console/streamripper.c:343:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (prefs->url, argv[1], MAX_URL_LEN);
data/streamripper-1.64.6/console/streamripper.c:371:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (prefs->showfile_pattern, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:381:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->output_directory, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:385:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->output_pattern, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:390:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->ext_cmd, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:408:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->if_name, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:421:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->pls_file, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:442:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->proxyurl, argv[i], MAX_URL_LEN);
data/streamripper-1.64.6/console/streamripper.c:467:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(prefs->relay_ip, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:486:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->useragent, argv[i], MAX_USERAGENT_STR);
data/streamripper-1.64.6/console/streamripper.c:493:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(prefs->rules_file, argv[i], SR_MAX_PATH);
data/streamripper-1.64.6/console/streamripper.c:604: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).
    x = strlen("codeset-filesys=");
data/streamripper-1.64.6/console/streamripper.c:606:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (prefs->cs_opt.codeset_filesys, &rule[x], MAX_CODESET_STRING);
data/streamripper-1.64.6/console/streamripper.c:611: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).
    x = strlen("codeset-id3=");
data/streamripper-1.64.6/console/streamripper.c:613:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (prefs->cs_opt.codeset_id3, &rule[x], MAX_CODESET_STRING);
data/streamripper-1.64.6/console/streamripper.c:618: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).
    x = strlen("codeset-metadata=");
data/streamripper-1.64.6/console/streamripper.c:620:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (prefs->cs_opt.codeset_metadata, &rule[x], MAX_CODESET_STRING);
data/streamripper-1.64.6/console/streamripper.c:625: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).
    x = strlen("codeset-relay=");
data/streamripper-1.64.6/console/streamripper.c:627:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (prefs->cs_opt.codeset_relay, &rule[x], MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/argv.c:65: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 ();		/* Count length of string */
data/streamripper-1.64.6/lib/argv.c:119: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 len = strlen (argv[argc]);
data/streamripper-1.64.6/lib/argv.c:215: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).
      copybuf = (char *) alloca (strlen (input) + 1);
data/streamripper-1.64.6/lib/compat.h:98:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define Sleep(x) 	usleep(1000*x)
data/streamripper-1.64.6/lib/errors.c:47:32:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define SET_ERR_STR(str, code)	strncpy(m_error_str[code], str, MAX_ERROR_STR);
data/streamripper-1.64.6/lib/external.c:95:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (!strncmp ("ARTIST=", ep->line_buf, strlen("ARTIST="))) {
data/streamripper-1.64.6/lib/external.c:96: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).
	    strcpy (ep->artist_buf, &ep->line_buf[strlen("ARTIST=")]);
data/streamripper-1.64.6/lib/external.c:97: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).
	} else if (!strncmp ("ALBUM=", ep->line_buf, strlen("ALBUM="))) {
data/streamripper-1.64.6/lib/external.c:98: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).
	    strcpy (ep->album_buf, &ep->line_buf[strlen("ALBUM=")]);
data/streamripper-1.64.6/lib/external.c:99: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).
	} else if (!strncmp ("TITLE=", ep->line_buf, strlen("TITLE="))) {
data/streamripper-1.64.6/lib/external.c:100: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).
	    strcpy (ep->title_buf, &ep->line_buf[strlen("TITLE=")]);
data/streamripper-1.64.6/lib/external.c:325:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read (ep->mypipe[0],&c,1);
data/streamripper-1.64.6/lib/external.c:355:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (0);
data/streamripper-1.64.6/lib/external.c:358:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep (2000);
data/streamripper-1.64.6/lib/filelib.c:1069: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).
	r = strlen(fn);
data/streamripper-1.64.6/lib/filelib.c:1219:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = fgetc (fp_in);
data/streamripper-1.64.6/lib/filelib.c:1372:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(de->d_name, fnp, strlen(fnp)) == 0) {
data/streamripper-1.64.6/lib/filelib.c:1373:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (isdigit(de->d_name[strlen(fnp)])) {
data/streamripper-1.64.6/lib/filelib.c:1374:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int this_seq = atoi(&de->d_name[strlen(fnp)]);
data/streamripper-1.64.6/lib/filelib.c:1424: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).
    gchar* s = str + strlen (str);
data/streamripper-1.64.6/lib/filelib.h:66: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).
#define SR_MAX_COMPLETE    (SR_MAX_INCOMPLETE-strlen("incomplete/"))
data/streamripper-1.64.6/lib/filelib.h:67:64:  [1] (buffer) strlen:
  Does not handle 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 SR_MAX_BASE        (SR_MAX_COMPLETE-SR_MIN_COMPLETEDIR-strlen("/"))
data/streamripper-1.64.6/lib/http.c:94: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).
	ret = socklib_sendall (sock, headbuf, strlen(headbuf));
data/streamripper-1.64.6/lib/http.c:157: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).
    if (s) url = s + strlen("://");
data/streamripper-1.64.6/lib/http.c:184:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	ret = sscanf(url, "%511[^:]:%hu/%252s", urlinfo->host, 
data/streamripper-1.64.6/lib/http.c:191:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	ret = sscanf(url, "%511[^/]/%252s", urlinfo->host, urlinfo->path+1);
data/streamripper-1.64.6/lib/http.c:285: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 *authbuf = malloc(strlen(header_name) 
data/streamripper-1.64.6/lib/http.c:286: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(username)
data/streamripper-1.64.6/lib/http.c:287: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(password)
data/streamripper-1.64.6/lib/http.c:291: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).
    auth64 = b64enc(authbuf, strlen(authbuf));
data/streamripper-1.64.6/lib/http.c:334: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).
	subnstr_until(start+strlen(match), "\n", dest, maxlen);
data/streamripper-1.64.6/lib/http.c:454: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).
    url_path_len = strlen(url_info.path);
data/streamripper-1.64.6/lib/http.c:794:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (p);
data/streamripper-1.64.6/lib/iconvert.c:78: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/streamripper-1.64.6/lib/ictest.c:16:39:  [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).
    printf ("%d wide chars in arg\n", wcslen(L"HiHi"));
data/streamripper-1.64.6/lib/ictest.c:17:39:  [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).
    printf ("%d wide chars in buf\n", wcslen(buf));
data/streamripper-1.64.6/lib/mchar.c:75: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).
    for (len = 0; strncmp(p, until, strlen(until)) != 0 && len < maxlen-1; p++)
data/streamripper-1.64.6/lib/mchar.c:87:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int slen = strlen(str);
data/streamripper-1.64.6/lib/mchar.c:232: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).
    repl_string = g_convert (repl, strlen (repl), 
data/streamripper-1.64.6/lib/mchar.c:235: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).
    if (repl_string && br == strlen (repl)) {
data/streamripper-1.64.6/lib/mchar.c:388: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 (gstring_in) + 1, 
data/streamripper-1.64.6/lib/mchar.c:445: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).
					 c, strlen(c) + 1, 
data/streamripper-1.64.6/lib/mchar.c:497: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).
					 m, strlen(m) + 1, 
data/streamripper-1.64.6/lib/mchar.c:575:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (cs_opt->codeset_locale, fromcode, MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:576:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (cs_opt->codeset_filesys, fromcode, MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:577:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (cs_opt->codeset_metadata, fromcode, MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:578:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (cs_opt->codeset_relay, fromcode, MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:582:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy (cs_opt->codeset_id3, "UTF-16", MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:586:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (cs_opt->codeset_metadata, "ISO-8859-1", MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:587:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (cs_opt->codeset_relay, "ISO-8859-1", MAX_CODESET_STRING);
data/streamripper-1.64.6/lib/mchar.c:600: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).
    if (!strncmp (cs_opt->codeset_id3, "UCS-2", strlen("UCS-2")) ||
data/streamripper-1.64.6/lib/mchar.c:601: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).
	!strncmp (cs_opt->codeset_id3, "UTF-16", strlen("UTF-16"))) {
data/streamripper-1.64.6/lib/mchar.c:655: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).
    return strlen (s);
data/streamripper-1.64.6/lib/mchar.c:686:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    return strncat (ws1, ws2, n);
data/streamripper-1.64.6/lib/relaylib.c:100: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(tag);
data/streamripper-1.64.6/lib/relaylib.c:154: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).
		for (md += strlen(ICY_METADATA_TAG); md[0] && (isdigit(md[0]) == 0); md++);
data/streamripper-1.64.6/lib/relaylib.c:516: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).
			header_len = strlen (client_http_header);
data/streamripper-1.64.6/lib/relaylib.c:517: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).
			ret = send (newsock, client_http_header, strlen(client_http_header), 0);
data/streamripper-1.64.6/lib/rip_manager.c:515:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(rmi->http_info.icy_name) == 0) {
data/streamripper-1.64.6/lib/ripogg.c:373:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		    strncpy (ti->title, "Title Unknown", MAX_TRACK_LEN);
data/streamripper-1.64.6/lib/ripstream.c:676:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (id3v1.tag, "TAG", strlen("TAG"));
data/streamripper-1.64.6/lib/ripstream.c:676: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).
	strncpy (id3v1.tag, "TAG", strlen("TAG"));
data/streamripper-1.64.6/lib/ripstream.c:723:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(id3v2frame.id, tag_name, 4);
data/streamripper-1.64.6/lib/ripstream.c:1130:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(track_buf, newtrack, MAX_TRACK_LEN);
data/streamripper-1.64.6/lib/ripstream.c:1188: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).
    gnamebuf = g_strdup (namebuf+strlen("StreamTitle='"));
data/streamripper-1.64.6/lib/ripstream.c:1200:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (gnamebuf) == 0) {
data/streamripper-1.64.6/lib/socklib.c:313:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = recv(socket_handle->s, &buffer[read], size, 0);
data/streamripper-1.64.6/lib/socklib.c:333:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read;
data/streamripper-1.64.6/lib/uce_dirent.h:146: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).
#   define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
data/streamripper-1.64.6/lib/uce_dirent.h:357: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).
    dirp->dirname = (char*) malloc (strlen (dirname) + 1 + strlen ("\\*.*"));
data/streamripper-1.64.6/lib/uce_dirent.h:357:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirp->dirname = (char*) malloc (strlen (dirname) + 1 + strlen ("\\*.*"));
data/streamripper-1.64.6/lib/uce_dirent.h:372:7:  [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 (p++, "\\");
data/streamripper-1.64.6/lib/uce_dirent.h:375: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 (p, "*"); /*scan files with and without extension in win32*/
data/streamripper-1.64.6/lib/uce_dirent.h:663: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).
  assert (strlen (_getdirname (&dirp->current)) <= NAME_MAX);
data/streamripper-1.64.6/lib/uce_dirent.h:665:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (dirp->current.d_name,
data/streamripper-1.64.6/lib/uce_dirent.h:674: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).
# define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
data/streamripper-1.64.6/lib/utf8.c:138: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/streamripper-1.64.6/lib/utf8.c:154: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/streamripper-1.64.6/lib/utf8.c:278: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);

ANALYSIS SUMMARY:

Hits = 370
Lines analyzed = 16339 in approximately 0.45 seconds (36273 lines/second)
Physical Source Lines of Code (SLOC) = 11738
Hits@level = [0] 124 [1]  98 [2] 198 [3]   4 [4]  70 [5]   0
Hits@level+ = [0+] 494 [1+] 370 [2+] 272 [3+]  74 [4+]  70 [5+]   0
Hits/KSLOC@level+ = [0+] 42.0855 [1+] 31.5216 [2+] 23.1726 [3+] 6.30431 [4+] 5.96354 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.