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/gxmms2-0.7.1/gtrackinfo/gtrackinfo.h
Examining data/gxmms2-0.7.1/gtrackinfo/trackinfo.h
Examining data/gxmms2-0.7.1/gtrackinfo/gtrackinfo.c
Examining data/gxmms2-0.7.1/gtrackinfo/trackinfo.c
Examining data/gxmms2-0.7.1/gkrellxmms2/setupwidget.c
Examining data/gxmms2-0.7.1/gkrellxmms2/buttons.c
Examining data/gxmms2-0.7.1/gkrellxmms2/setupwidget.h
Examining data/gxmms2-0.7.1/gkrellxmms2/buttons.h
Examining data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c
Examining data/gxmms2-0.7.1/gxmms2src/wejpscroller.h
Examining data/gxmms2-0.7.1/gxmms2src/statusdisplay.h
Examining data/gxmms2-0.7.1/gxmms2src/wejpvolume.c
Examining data/gxmms2-0.7.1/gxmms2src/eggtrayicon.c
Examining data/gxmms2-0.7.1/gxmms2src/wejpconfig.h
Examining data/gxmms2-0.7.1/gxmms2src/wejpconfig.c
Examining data/gxmms2-0.7.1/gxmms2src/eggtrayicon.h
Examining data/gxmms2-0.7.1/gxmms2src/wejpvolume.h
Examining data/gxmms2-0.7.1/gxmms2src/statusdisplay.c
Examining data/gxmms2-0.7.1/gxmms2src/wejpscroller.c
Examining data/gxmms2-0.7.1/gxmms2src/gxmms2.c
Examining data/gxmms2-0.7.1/gmedialib/gmlplaylists.c
Examining data/gxmms2-0.7.1/gmedialib/gmedialib.c
Examining data/gxmms2-0.7.1/gmedialib/gmladdfiles.c
Examining data/gxmms2-0.7.1/gmedialib/gmlsearch.h
Examining data/gxmms2-0.7.1/gmedialib/gmlbrowser.h
Examining data/gxmms2-0.7.1/gmedialib/sqlhelper.c
Examining data/gxmms2-0.7.1/gmedialib/gmlbrowser.c
Examining data/gxmms2-0.7.1/gmedialib/gmlplaylist.c
Examining data/gxmms2-0.7.1/gmedialib/gmlplaylists.h
Examining data/gxmms2-0.7.1/gmedialib/gmlsearch.c
Examining data/gxmms2-0.7.1/gmedialib/gmladdfiles.h
Examining data/gxmms2-0.7.1/gmedialib/gmlplaylist.h
Examining data/gxmms2-0.7.1/gmedialib/gmedialib.h
Examining data/gxmms2-0.7.1/xmms2ctrl/xmms2ctrl.c
Examining data/gxmms2-0.7.1/xmms2ctrl/xmms2ctrl.h
Examining data/gxmms2-0.7.1/sdecode/sdecode.c
Examining data/gxmms2-0.7.1/sdecode/sdecode.h

FINAL RESULTS:

data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:664:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n = sscanf(arg, "%s %[^\n]", cfg, item);
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:579:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			if (!system("xmms2-launcher")) {
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:37:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path_to_config_file, "%s/%s", home_directory, filename);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:86:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(cf->key[cf->lastkey], "%s", key);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:90:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(cf->value[cf->lastkey], "%s", value);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:439:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	path = getenv("XMMS_PATH");
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:696:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:566:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	path = getenv("XMMS_PATH"); /* Try XMMS_PATH environment variable first */
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:34:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	home_directory = getenv("HOME");
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:428: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(scroll_text, "ERROR: Connection to xmms2d lost.");
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:667: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).
			config.scroll_speed = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:669:36:  [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).
			config.medialib_window_width = (atoi(item) < 200 ? 200 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:669:61:  [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).
			config.medialib_window_width = (atoi(item) < 200 ? 200 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:671:37:  [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).
			config.medialib_window_height = (atoi(item) < 200 ? 200 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:671:62:  [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).
			config.medialib_window_height = (atoi(item) < 200 ? 200 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:673:36:  [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).
			config.medialib_window_pos_x = (atoi(item) < 0 ? 0 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:673:57:  [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).
			config.medialib_window_pos_x = (atoi(item) < 0 ? 0 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:675:36:  [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).
			config.medialib_window_pos_y = (atoi(item) < 0 ? 0 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:675:57:  [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).
			config.medialib_window_pos_y = (atoi(item) < 0 ? 0 : atoi(item));
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:677:39:  [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).
			config.medialib_search_column_id = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:679:43:  [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).
			config.medialib_search_column_artist = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:681:42:  [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).
			config.medialib_search_column_track = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:683:42:  [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).
			config.medialib_search_column_album = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:685:43:  [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).
			config.medialib_search_column_rating = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:687:41:  [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).
			config.medialib_playlist_column_id = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:689:45:  [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).
			config.medialib_playlist_column_artist = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:691:44:  [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).
			config.medialib_playlist_column_track = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:693:44:  [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).
			config.medialib_playlist_column_album = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:695:45:  [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).
			config.medialib_playlist_column_rating = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:697:42:  [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).
			config.medialib_playlist_column_pos = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:699:43:  [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).
			config.medialib_playlist_new_confirm = atoi(item);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:703:28:  [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).
			config.auto_reconnect = atoi(item);
data/gxmms2-0.7.1/gtrackinfo/gtrackinfo.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char   tmp[256];
data/gxmms2-0.7.1/gtrackinfo/trackinfo.c:32: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(res, burl, blen);
data/gxmms2-0.7.1/gxmms2src/eggtrayicon.c:385:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[256];
data/gxmms2-0.7.1/gxmms2src/eggtrayicon.c:491:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (&ev.data, message, 20);
data/gxmms2-0.7.1/gxmms2src/eggtrayicon.c:497:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (&ev.data, message, len);
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:188: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).
		                  atoi(cfg_get_key_value(*cf, "MediaLibFontSizePt")));
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:196: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).
			                  atoi(cfg_get_key_value(*cf, "MediaLibWindowWidth")),
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:197: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).
			                  atoi(cfg_get_key_value(*cf, "MediaLibWindowHeight")));
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:202:20:  [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).
			                atoi(cfg_get_key_value(*cf, "MediaLibWindowPosX")),
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:203:20:  [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).
			                atoi(cfg_get_key_value(*cf, "MediaLibWindowPosY")));
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:250:32:  [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).
		                             atoi(cfg_get_key_value(*cf, 
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:551: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(title_str, "ERROR: Connection to xmms2d lost.");
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:942: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).
	scroller_font_size = atoi(cfg_get_key_value(cf, "ScrollerFontSizePx"));
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:948:30:  [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).
	scroller = wejpscroller_new(atoi(cfg_get_key_value(cf, "ScrollerDelay")),
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:1113:19:  [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).
		                atoi(cfg_get_key_value(cf, "MainWindowPosX")),
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:1114:19:  [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).
		                atoi(cfg_get_key_value(cf, "MainWindowPosY")));
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:52:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "r");
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:116: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 key_buffer[MAX_LINE_LENGTH] = "", value_buffer[MAX_LINE_LENGTH] = "";
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:119:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "r");
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  buffer[MAX_LINE_LENGTH];
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:183:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "w");
data/gxmms2-0.7.1/gxmms2src/wejpconfig.h:32: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 *key[MAXKEYS];
data/gxmms2-0.7.1/gxmms2src/wejpconfig.h:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *value[MAXKEYS];
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:218:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(scroll_text, xmmsc_get_last_error(connection), SCROLL_TEXT_LENGTH);
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:448:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(scroll_text, xmmsc_get_last_error(connection), 
data/gxmms2-0.7.1/gkrellxmms2/gkrellxmms2.c:763:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str_length = strlen(username) + 128;
data/gxmms2-0.7.1/gmedialib/gmladdfiles.c:75:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			url = g_malloc(strlen(fname) + 8);
data/gxmms2-0.7.1/gmedialib/gmladdfiles.c:76:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprintf(url, strlen(fname) + 8, "file://%s", fname);
data/gxmms2-0.7.1/gmedialib/gmladdfiles.c:81:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (memcmp(url+(strlen(url)-4), ".pls", 4) == 0 ||
data/gxmms2-0.7.1/gmedialib/gmladdfiles.c:82:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    memcmp(url+(strlen(url)-4), ".m3u", 4) == 0) {
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:80: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).
		artist = g_malloc(sizeof(gchar) * strlen(filename) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:81: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).
		g_strlcpy(artist, filename, sizeof(gchar) * strlen(filename) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:83:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		artist = g_malloc(sizeof(gchar) * (strlen(artist_tmp) + strlen(prefix) + 1));
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:83:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		artist = g_malloc(sizeof(gchar) * (strlen(artist_tmp) + strlen(prefix) + 1));
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:84: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).
		g_snprintf(artist, strlen(artist_tmp) + strlen(prefix) + 1, 
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:84: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).
		g_snprintf(artist, strlen(artist_tmp) + strlen(prefix) + 1, 
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:87:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		artist = g_malloc(sizeof(gchar) * (strlen(prefix) + 1));
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:88: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).
		g_snprintf(artist, strlen(prefix) + 1, 
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:92: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).
		title = g_malloc(sizeof(gchar) * strlen(filename) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:93:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		g_strlcpy(title, filename, sizeof(gchar) * strlen(filename) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:95: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).
		title = g_malloc(sizeof(gchar) * strlen(title_tmp) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:96: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).
		g_strlcpy(title, title_tmp, sizeof(gchar) * strlen(title_tmp) + 1);		
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1055: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).
		gint   len = strlen(gtk_entry_get_text(GTK_ENTRY(entry)));
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1057:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pl_name_str, gtk_entry_get_text(GTK_ENTRY(entry)), len);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1095:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	                       (guchar *)rows, strlen(rows) + 1);
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1204:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (album[strlen(album) - 1] == ']' &&
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1205: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).
		    album[strlen(album) - 2 - gml->album_tracknr_digits] == '[')
data/gxmms2-0.7.1/gmedialib/gmlplaylist.c:1206: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).
		    album[strlen(album) - 3 - gml->album_tracknr_digits] = '\0';
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:232:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) > 2 || exact) {
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:292: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).
	if (album[strlen(album) - 1] == ']' &&
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:293: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).
	    album[strlen(album) - 2 - gml->album_tracknr_digits] == '[')
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:294: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).
		album[strlen(album) - 3 - gml->album_tracknr_digits] = '\0';
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:704: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).
	gchar *result = g_malloc((strlen(string) + 1) * 2 * sizeof(gchar));
data/gxmms2-0.7.1/gmedialib/gmlsearch.c:707:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0, j = 0; i < strlen(string); i++) {
data/gxmms2-0.7.1/gmedialib/sqlhelper.c:4: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).
	gchar *result = g_malloc((strlen(string) + 1) * 2 * sizeof(gchar));
data/gxmms2-0.7.1/gmedialib/sqlhelper.c:7:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0, j = 0; i < strlen(string); i++) {
data/gxmms2-0.7.1/gtrackinfo/trackinfo.c:127:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		while(counter < strlen(track->url)) {
data/gxmms2-0.7.1/gtrackinfo/trackinfo.c:128:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (track->url[counter] == '/' && counter+1 < strlen(track->url))
data/gxmms2-0.7.1/gxmms2src/eggtrayicon.c:462: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 (message);
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:290:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(title_str, xmmsc_get_last_error(connection), TITLE_STR_SIZE);
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:586:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(title_str, xmmsc_get_last_error(connection), TITLE_STR_SIZE);
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:671: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).
		while (n < strlen((gchar *)data->data)) {
data/gxmms2-0.7.1/gxmms2src/gxmms2.c:734:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str_length = strlen(username) + 128;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:35:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	path_to_config_file = (char*)malloc((strlen(home_directory) + 
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:36:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	                                     strlen(filename) + 2) * sizeof(char));
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:74: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).
				strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(key) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:74:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(key) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:78: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).
				strsize = (strlen(value) < MAX_LINE_LENGTH-1 ? strlen(value) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:78:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strsize = (strlen(value) < MAX_LINE_LENGTH-1 ? strlen(value) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:84: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).
		strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(key) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:84: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).
		strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(key) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:88: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).
		strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(value) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:88: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).
		strsize = (strlen(key) < MAX_LINE_LENGTH-1 ? strlen(value) : MAX_LINE_LENGTH-2) + 1;
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:122:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:125:70:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n') ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:129:44:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					while (ch != '\n' && ch != '\r') ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:130:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:133:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:142:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:147:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:149:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:153:42:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while (ch == ' ' || ch == '\t') ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:161:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = fgetc(file);
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:165:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(key_buffer) > 0)
data/gxmms2-0.7.1/gxmms2src/wejpconfig.c:187:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!fwrite(buffer, strlen(buffer) * sizeof(char), 1, file)) {
data/gxmms2-0.7.1/gxmms2src/wejpscroller.c:39: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(ws->shortmessage_text_backup) > 0) {
data/gxmms2-0.7.1/gxmms2src/wejpscroller.c:102: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).
	pango_layout_set_text(ws->pgl, new_text, strlen(new_text));
data/gxmms2-0.7.1/gxmms2src/wejpscroller.c:154:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ws->font, font, FONT_STR_LENGTH);
data/gxmms2-0.7.1/gxmms2src/wejpscroller.c:168:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(ws->shortmessage_text_backup) > 0) {
data/gxmms2-0.7.1/sdecode/sdecode.c:31: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).
	gchar *result = g_malloc((strlen(string) + 1) * sizeof(gchar));
data/gxmms2-0.7.1/sdecode/sdecode.c:34:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0, j = 0; i < strlen(string); i++) {
data/gxmms2-0.7.1/sdecode/sdecode.c:50:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gchar *result = g_malloc(strlen(str_to_validate) + 1);
data/gxmms2-0.7.1/sdecode/sdecode.c:53:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		g_strlcpy(result, str_to_validate, strlen(str_to_validate) + 1);
data/gxmms2-0.7.1/sdecode/sdecode.c:57:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (i = 0; i < strlen(str_to_validate) + 1; i++) {

ANALYSIS SUMMARY:

Hits = 126
Lines analyzed = 9475 in approximately 0.25 seconds (38261 lines/second)
Physical Source Lines of Code (SLOC) = 7539
Hits@level = [0]  84 [1]  71 [2]  46 [3]   4 [4]   5 [5]   0
Hits@level+ = [0+] 210 [1+] 126 [2+]  55 [3+]   9 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 27.8552 [1+] 16.7131 [2+] 7.2954 [3+] 1.19379 [4+] 0.663218 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.