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/libmpd-0.20.0/src/libmpd.h
Examining data/libmpd-0.20.0/src/libmpd-player.h
Examining data/libmpd-0.20.0/src/libmpd-status.h
Examining data/libmpd-0.20.0/src/libmpd-playlist.h
Examining data/libmpd-0.20.0/src/libmpd-database.h
Examining data/libmpd-0.20.0/src/libmpd-internal.h
Examining data/libmpd-0.20.0/src/libmpd-sticker.h
Examining data/libmpd-0.20.0/src/libmpdclient.h
Examining data/libmpd-0.20.0/src/libmpd-strfsong.h
Examining data/libmpd-0.20.0/src/libmpd-version.h
Examining data/libmpd-0.20.0/src/debug_printf.h
Examining data/libmpd-0.20.0/src/libmpd.c
Examining data/libmpd-0.20.0/src/libmpd-player.c
Examining data/libmpd-0.20.0/src/libmpd-status.c
Examining data/libmpd-0.20.0/src/libmpd-playlist.c
Examining data/libmpd-0.20.0/src/libmpdclient.c
Examining data/libmpd-0.20.0/src/libmpd-database.c
Examining data/libmpd-0.20.0/src/libmpd-sticker.c
Examining data/libmpd-0.20.0/src/debug_printf.c
Examining data/libmpd-0.20.0/src/libmpd-strfsong.c
Examining data/libmpd-0.20.0/example/testcase/testcase.c

FINAL RESULTS:

data/libmpd-0.20.0/example/testcase/testcase.c:38:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(RED"Error "RESET""GREEN"%i:"RESET" '%s'\n", errorid, msg);
data/libmpd-0.20.0/example/testcase/testcase.c:48:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(GREEN"Song:"RESET" %s - %s\n", song->artist, song->title);
data/libmpd-0.20.0/example/testcase/testcase.c:54:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"State:"RESET);
data/libmpd-0.20.0/example/testcase/testcase.c:71:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Repeat:"RESET" %s\n", mpd_player_get_repeat(mi)? "On":"Off");
data/libmpd-0.20.0/example/testcase/testcase.c:74:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Random:"RESET" %s\n", mpd_player_get_random(mi)? "On":"Off");
data/libmpd-0.20.0/example/testcase/testcase.c:77:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Volume:"RESET" %03i%%\n", 
data/libmpd-0.20.0/example/testcase/testcase.c:81:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"X-Fade:"RESET" %i sec.\n",
data/libmpd-0.20.0/example/testcase/testcase.c:88:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(GREEN"Started updating DB"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:92:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(GREEN"Updating DB finished"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:97:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Databased changed"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:101:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Playlist changed"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:105:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Audio Changed"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:108:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(GREEN"Total song time changed:"RESET" %02i:%02i\n",
data/libmpd-0.20.0/example/testcase/testcase.c:118:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(YELLOW"Permission:"RESET" Changed\n");
data/libmpd-0.20.0/example/testcase/testcase.c:189:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
								printf(GREEN"Playlist:"RESET"\n");
data/libmpd-0.20.0/example/testcase/testcase.c:194:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
										printf(GREEN"%i"RESET": %s - %s\n", data->song->id,
data/libmpd-0.20.0/example/testcase/testcase.c:208:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(GREEN"Playing:"RESET" %i\n", id);
data/libmpd-0.20.0/example/testcase/testcase.c:222:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(GREEN"Authentificating:"RESET" \"%s\"\n", buffer);
data/libmpd-0.20.0/example/testcase/testcase.c:225:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(RED"permisssion:"RESET" %i\n", mpd_server_check_command_allowed(obj, "next"));
data/libmpd-0.20.0/example/testcase/testcase.c:236:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
						printf(YELLOW"Debug:"RESET" %s\n", (debug_level >0)? "Enabled":"Disabled");
data/libmpd-0.20.0/src/debug_printf.c:83:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(error_buffer,ERROR_BUFFER_SIZE,format, arglist);
data/libmpd-0.20.0/src/libmpd-status.c:235:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(mi->CurrentState.error,mi->status->error);
data/libmpd-0.20.0/src/libmpdclient.c:515: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(connection->buffer,rt+1);
data/libmpd-0.20.0/src/libmpdclient.c:700: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(connection->errorStr, output);
data/libmpd-0.20.0/src/libmpdclient.c:1194: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(&((entity->info.song->artist)[length + 2]), re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1239: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(&((entity->info.song->genre)[length + 3]), re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1251: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(&((entity->info.song->composer)[length + 2]), re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1263: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(&((entity->info.song->performer)[length + 2]), re->value);
data/libmpd-0.20.0/example/testcase/testcase.c:126:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *hostname = getenv("MPD_HOST");
data/libmpd-0.20.0/example/testcase/testcase.c:127: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.
	char *port = getenv("MPD_PORT");
data/libmpd-0.20.0/example/testcase/testcase.c:128:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *password = getenv("MPD_PASSWORD");
data/libmpd-0.20.0/src/libmpd-internal.h:63:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int		        random;
data/libmpd-0.20.0/src/libmpd-player.c:384:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return mi->status->random;
data/libmpd-0.20.0/src/libmpd-player.c:388:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
int mpd_player_set_random(MpdObj * mi, int random)
data/libmpd-0.20.0/src/libmpd-player.c:398:40:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	mpd_sendRandomCommand(mi->connection, random);
data/libmpd-0.20.0/src/libmpd-player.h:194:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
int mpd_player_set_random(MpdObj * mi, int random);
data/libmpd-0.20.0/src/libmpd-status.c:177:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if(mi->CurrentState.random != mi->status->random)
data/libmpd-0.20.0/src/libmpd-status.c:177:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if(mi->CurrentState.random != mi->status->random)
data/libmpd-0.20.0/src/libmpd-status.c:180:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		mi->CurrentState.random = mi->status->random;
data/libmpd-0.20.0/src/libmpdclient.h:172:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int random;
data/libmpd-0.20.0/example/testcase/testcase.c:131: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).
	fdstdin = open("/dev/stdin", O_NONBLOCK|O_RDONLY);
data/libmpd-0.20.0/example/testcase/testcase.c:137:11:  [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).
		iport = atoi(port);
data/libmpd-0.20.0/example/testcase/testcase.c:149:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[20];
data/libmpd-0.20.0/example/testcase/testcase.c:207:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
							int id = atoi(buffer);
data/libmpd-0.20.0/src/debug_printf.c:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char error_buffer[ERROR_BUFFER_SIZE];
data/libmpd-0.20.0/src/debug_printf.c:57: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 buffer[32];
data/libmpd-0.20.0/src/libmpd-internal.h:74: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[512];
data/libmpd-0.20.0/src/libmpd-status.c:89: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(&(mi->OldState), &(mi->CurrentState), sizeof(MpdServerState));
data/libmpd-0.20.0/src/libmpd-status.c:682: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(&(mi->OldState), &(mi->CurrentState), sizeof(MpdServerState));
data/libmpd-0.20.0/src/libmpd-strfsong.c:191: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 str[32];
data/libmpd-0.20.0/src/libmpd-strfsong.c:223: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 str[32];
data/libmpd-0.20.0/src/libmpd.c:56:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, s, nAvail);
data/libmpd-0.20.0/src/libmpd.c:586: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(&(mi->OldState), &(mi->CurrentState) , sizeof(MpdServerState));
data/libmpd-0.20.0/src/libmpd.c:630: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(&(mi->OldState), &(mi->CurrentState), sizeof(MpdServerState));
data/libmpd-0.20.0/src/libmpdclient.c:98: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(connection->errorStr,
data/libmpd-0.20.0/src/libmpdclient.c:177: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 service[INTLEN+1];
data/libmpd-0.20.0/src/libmpdclient.c:271:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)&sin.sin_addr.s_addr,(char *)he->h_addr,
data/libmpd-0.20.0/src/libmpdclient.c:277: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(connection->errorStr,"address type is not IPv4");
data/libmpd-0.20.0/src/libmpdclient.c:286: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(connection->errorStr,"problems creating socket");
data/libmpd-0.20.0/src/libmpdclient.c:306:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char * mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES] =
data/libmpd-0.20.0/src/libmpdclient.c:413: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(connection->errorStr, "unix socket path is too long");
data/libmpd-0.20.0/src/libmpdclient.c:419: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(saun.sun_path, host, path_length + 1);
data/libmpd-0.20.0/src/libmpdclient.c:423: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(connection->errorStr, "problems creating socket");
data/libmpd-0.20.0/src/libmpdclient.c:546: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(connection->errorStr,"not done processing current command");
data/libmpd-0.20.0/src/libmpdclient.c:609: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(connection->errorStr,"already done processing current command");
data/libmpd-0.20.0/src/libmpdclient.c:627:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(connection->errorStr,"buffer overrun");
data/libmpd-0.20.0/src/libmpdclient.c:647: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(connection->errorStr,"connection"
data/libmpd-0.20.0/src/libmpdclient.c:659:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(connection->errorStr,"connection timeout");
data/libmpd-0.20.0/src/libmpdclient.c:673:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(connection->errorStr, "expected more list_OK's");
data/libmpd-0.20.0/src/libmpdclient.c:684:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(connection->errorStr,
data/libmpd-0.20.0/src/libmpdclient.c:791: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).
			status->volume = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:794: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).
			status->repeat = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:797: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).
			status->single = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:800: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).
			status->consume = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:803: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).
			status->random = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:809:29:  [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).
			status->playlistLength = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:812: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).
			status->bitRate = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:829: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).
			status->song = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:832: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).
			status->songid = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:835: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).
			status->nextsong = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:838: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).
			status->nextsongid = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:845: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).
				status->elapsedTime = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:846: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).
				status->totalTime = atoi(tok+1);
data/libmpd-0.20.0/src/libmpdclient.c:853:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			status->crossfade = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:856: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).
			status->updatingDb = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:861: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).
				status->sampleRate = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:862: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).
				status->bits = atoi(++tok);
data/libmpd-0.20.0/src/libmpdclient.c:865: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).
					status->channels = atoi(tok+1);
data/libmpd-0.20.0/src/libmpdclient.c:881: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(connection->errorStr,"state not found");
data/libmpd-0.20.0/src/libmpdclient.c:921:29:  [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).
			stats->numberOfArtists = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:924: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).
			stats->numberOfAlbums = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:927: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).
			stats->numberOfSongs = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:980: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).
			stats->numberOfSongs = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1167:29:  [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).
			entity->info.song->pos = atoi(connection->returnElement->value);
data/libmpd-0.20.0/src/libmpdclient.c:1171:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(connection->errorStr,"problem parsing song info");
data/libmpd-0.20.0/src/libmpdclient.c:1193: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(&((entity->info.song->artist)[length]), ", ");
data/libmpd-0.20.0/src/libmpdclient.c:1218: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).
				entity->info.song->time = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1222: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).
				entity->info.song->pos = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1226:29:  [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).
				entity->info.song->id = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1238: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(&((entity->info.song->genre)[length]), ", ");
data/libmpd-0.20.0/src/libmpdclient.c:1250: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(&((entity->info.song->composer)[length]), ", ");
data/libmpd-0.20.0/src/libmpdclient.c:1262: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(&((entity->info.song->performer)[length]), ", ");
data/libmpd-0.20.0/src/libmpdclient.c:1421: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 st[10];
data/libmpd-0.20.0/src/libmpdclient.c:1424:32:  [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.
	if(table == MPD_TABLE_ARTIST) strcpy(st,"artist");
data/libmpd-0.20.0/src/libmpdclient.c:1425:36:  [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.
	else if(table == MPD_TABLE_ALBUM) strcpy(st,"album");
data/libmpd-0.20.0/src/libmpdclient.c:1428: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(connection->errorStr,"unknown table for list");
data/libmpd-0.20.0/src/libmpdclient.c:1471:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		retval = atoi(string);
data/libmpd-0.20.0/src/libmpdclient.c:1642:9:  [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).
		ret = atoi(jobid);
data/libmpd-0.20.0/src/libmpdclient.c:1713: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(connection->errorStr,"already in command list mode");
data/libmpd-0.20.0/src/libmpdclient.c:1723: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(connection->errorStr,"already in command list mode");
data/libmpd-0.20.0/src/libmpdclient.c:1734: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(connection->errorStr,"not in command list mode");
data/libmpd-0.20.0/src/libmpdclient.c:1764:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			output->id = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1770: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).
			output->enabled = atoi(re->value);
data/libmpd-0.20.0/src/libmpdclient.c:1855: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(connection->errorStr, "search already in progress");
data/libmpd-0.20.0/src/libmpdclient.c:1867: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(connection->errorStr, "search already in progress");
data/libmpd-0.20.0/src/libmpdclient.c:1878: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(connection->errorStr, "search already in progress");
data/libmpd-0.20.0/src/libmpdclient.c:1893: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(connection->errorStr, "search already in progress");
data/libmpd-0.20.0/src/libmpdclient.c:1899: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(connection->errorStr, "invalid type specified");
data/libmpd-0.20.0/src/libmpdclient.c:1921: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(connection->errorStr, "no search in progress");
data/libmpd-0.20.0/src/libmpdclient.c:1927: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(connection->errorStr, "invalid type specified");
data/libmpd-0.20.0/src/libmpdclient.c:1933: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(connection->errorStr, "no name specified");
data/libmpd-0.20.0/src/libmpdclient.c:1956: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(connection->errorStr, "no search in progress");
data/libmpd-0.20.0/src/libmpdclient.h:97: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.
extern char * mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
data/libmpd-0.20.0/src/libmpdclient.h:113: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 errorStr[MPD_ERRORSTR_MAX_LENGTH+1];
data/libmpd-0.20.0/src/libmpdclient.h:120: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[MPD_BUFFER_MAX_LENGTH+1];
data/libmpd-0.20.0/example/testcase/testcase.c:153:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if(read(fdstdin, buffer, 1) > 0)
data/libmpd-0.20.0/example/testcase/testcase.c:205:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if(read(fdstdin,buffer, 20))
data/libmpd-0.20.0/example/testcase/testcase.c:214:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if(read(fdstdin,buffer, 20))
data/libmpd-0.20.0/example/testcase/testcase.c:263:11:  [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.
		}while(!usleep(100000) &&  run);
data/libmpd-0.20.0/src/debug_printf.c:89: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(format[strlen(format)-1] != '\n')
data/libmpd-0.20.0/src/libmpd-database.c:33: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(path == NULL || !strlen(path))
data/libmpd-0.20.0/src/libmpd-database.c:199: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(name == NULL || !strlen(name))
data/libmpd-0.20.0/src/libmpd-database.c:237:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(!strncasecmp(c, "The ",4) && strlen(c) > 4)
data/libmpd-0.20.0/src/libmpd-database.c:241:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(!strncasecmp(d, "The ",4) && strlen(d) > 4)
data/libmpd-0.20.0/src/libmpd-sticker.c:46: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(retv_value && strlen(retv_value) > strlen(tag)){
data/libmpd-0.20.0/src/libmpd-sticker.c:46: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).
    if(retv_value && strlen(retv_value) > strlen(tag)){
data/libmpd-0.20.0/src/libmpd-sticker.c:47: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).
            retv = g_strdup(&retv_value[strlen(tag)]+1);
data/libmpd-0.20.0/src/libmpd-strfsong.c:114:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(s, temp, max-length);
data/libmpd-0.20.0/src/libmpd-strfsong.c:115:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				length = strlen(s);
data/libmpd-0.20.0/src/libmpd-strfsong.c:137:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(s, p, 1);
data/libmpd-0.20.0/src/libmpd-strfsong.c:146:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(s, p+1, 1);
data/libmpd-0.20.0/src/libmpd-strfsong.c:204: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).
				int i=strlen(song->file);
data/libmpd-0.20.0/src/libmpd-strfsong.c:236: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).
            unsigned int templen = strlen(temp);
data/libmpd-0.20.0/src/libmpd-strfsong.c:240:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(s, temp, templen);
data/libmpd-0.20.0/src/libmpd.c:52: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).
	nAvail=((strlen(s)+1) > (n+1)) ? n+1 : strlen(s)+1;
data/libmpd-0.20.0/src/libmpd.c:52: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).
	nAvail=((strlen(s)+1) > (n+1)) ? n+1 : strlen(s)+1;
data/libmpd-0.20.0/src/libmpd.c:349: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).
	if(mi->password && mpd_check_connected(mi) && strlen(mi->password))
data/libmpd-0.20.0/src/libmpd.c:678: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(mi->password && strlen(mi->password) > 0)
data/libmpd-0.20.0/src/libmpdclient.c:333: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).
	ret = malloc(strlen(arg) * 2 + 1);
data/libmpd-0.20.0/src/libmpdclient.c:337: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).
	for(i = strlen(arg)+1; i != 0; --i) {
data/libmpd-0.20.0/src/libmpdclient.c:375: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).
	if(strncmp(output,MPD_WELCOME_MESSAGE,strlen(MPD_WELCOME_MESSAGE))) {
data/libmpd-0.20.0/src/libmpdclient.c:383: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).
	tmp = &output[strlen(MPD_WELCOME_MESSAGE)];
data/libmpd-0.20.0/src/libmpdclient.c:393: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).
			         &output[strlen(MPD_WELCOME_MESSAGE)]);
data/libmpd-0.20.0/src/libmpdclient.c:411: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).
	path_length = strlen(host);
data/libmpd-0.20.0/src/libmpdclient.c:457:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(connection->buffer,"");
data/libmpd-0.20.0/src/libmpdclient.c:459:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(connection->errorStr,"");
data/libmpd-0.20.0/src/libmpdclient.c:516:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	connection->buflen = strlen(connection->buffer);
data/libmpd-0.20.0/src/libmpdclient.c:543:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int commandLen = strlen(command);
data/libmpd-0.20.0/src/libmpdclient.c:695:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strncmp(output,"ACK",strlen("ACK"))==0) {
data/libmpd-0.20.0/src/libmpdclient.c:1187:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(re->value)) {
data/libmpd-0.20.0/src/libmpdclient.c:1190:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					int length = strlen(entity->info.song->artist);
data/libmpd-0.20.0/src/libmpdclient.c:1192:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					                                    length + strlen(re->value) + 3);
data/libmpd-0.20.0/src/libmpdclient.c:1235:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					int length = strlen(entity->info.song->genre);
data/libmpd-0.20.0/src/libmpdclient.c:1237: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).
					                                   length + strlen(re->value) + 4);
data/libmpd-0.20.0/src/libmpdclient.c:1247:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					int length = strlen(entity->info.song->composer);
data/libmpd-0.20.0/src/libmpdclient.c:1249:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					                                      length + strlen(re->value) + 3);
data/libmpd-0.20.0/src/libmpdclient.c:1259:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					int length = strlen(entity->info.song->performer);
data/libmpd-0.20.0/src/libmpdclient.c:1261:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					                                       length + strlen(re->value) + 3);
data/libmpd-0.20.0/src/libmpdclient.c:1337: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).
	int len = strlen("playlistinfo")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1345: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).
	int len = strlen("playlistid")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1353: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).
	int len = strlen("plchanges")+2+LONGLONGLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1361: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).
	int len = strlen("plchangesposid")+2+LONGLONGLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1370: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).
	int len = strlen("listall")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1370:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen("listall")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1380: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).
	int len = strlen("listallinfo")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1380: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).
	int len = strlen("listallinfo")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1390: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).
	int len = strlen("lsinfo")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1390: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).
	int len = strlen("lsinfo")+2+strlen(sDir)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1433:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen("list")+1+strlen(sanitArg1)+2+strlen(st)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1433:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen("list")+1+strlen(sanitArg1)+2+strlen(st)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1433: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).
		len = strlen("list")+1+strlen(sanitArg1)+2+strlen(st)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1439:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen("list")+1+strlen(st)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1439:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen("list")+1+strlen(st)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1449: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).
	int len = strlen("add")+2+strlen(sFile)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1449: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).
	int len = strlen("add")+2+strlen(sFile)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1461: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).
	int len = strlen("addid")+2+strlen(sFile)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1461: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).
	int len = strlen("addid")+2+strlen(sFile)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1479: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).
	int len = strlen("delete")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1487: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).
	int len = strlen("deleteid")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1496: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).
	int len = strlen("save")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1496:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen("save")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1506: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).
	int len = strlen("load")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1506:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen("load")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1516: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).
	int len = strlen("rm")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1516: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).
	int len = strlen("rm")+2+strlen(sName)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1529: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).
	int len = strlen("rename")+2+strlen(sFrom)+3+strlen(sTo)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1529: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).
	int len = strlen("rename")+2+strlen(sFrom)+3+strlen(sTo)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1529: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).
	int len = strlen("rename")+2+strlen(sFrom)+3+strlen(sTo)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1547: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).
	int len = strlen("play")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1555: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).
	int len = strlen("playid")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1567: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).
	int len = strlen("pause")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1579: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).
	int len = strlen("move")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1587: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).
	int len = strlen("moveid")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1595: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).
	int len = strlen("swap")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1603: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).
	int len = strlen("swapid")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1611: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).
	int len = strlen("seek")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1619: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).
	int len = strlen("seekid")+2+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1628: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).
	int len = strlen("update")+2+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1628: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).
	int len = strlen("update")+2+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1654: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).
	int len = strlen("repeat")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1662: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).
	int len = strlen("repeat")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1670: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).
	int len = strlen("repeat")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1678: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).
	int len = strlen("random")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1686: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).
	int len = strlen("setvol")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1694: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).
	int len = strlen("crossfade")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1703: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).
	int len = strlen("password")+2+strlen(sPass)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1703:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen("password")+2+strlen(sPass)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1784: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).
	int len = strlen("enableoutput")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1792: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).
	int len = strlen("disableoutput")+2+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:1906:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = 5+strlen(strtype)+1;
data/libmpd-0.20.0/src/libmpdclient.c:1942: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(string)+1+strlen(strtype)+2+strlen(arg)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1942:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(string)+1+strlen(strtype)+2+strlen(arg)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1942: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).
	len = strlen(string)+1+strlen(strtype)+2+strlen(arg)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1961: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(connection->request)+2;
data/libmpd-0.20.0/src/libmpdclient.c:1981: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).
	int len = strlen("listplaylistinfo")+2+strlen(arg)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1981: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).
	int len = strlen("listplaylistinfo")+2+strlen(arg)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1999: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).
	int len = strlen("listplaylist")+2+strlen(arg)+3;
data/libmpd-0.20.0/src/libmpdclient.c:1999: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).
	int len = strlen("listplaylist")+2+strlen(arg)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2010: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).
	int len = strlen("playlistclear")+2+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2010: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).
	int len = strlen("playlistclear")+2+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2023: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).
	int len = strlen("playlistadd")+2+strlen(sPlaylist)+3+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2023: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).
	int len = strlen("playlistadd")+2+strlen(sPlaylist)+3+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2023:56:  [1] (buffer) strlen:
  Does not handle 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("playlistadd")+2+strlen(sPlaylist)+3+strlen(sPath)+3;
data/libmpd-0.20.0/src/libmpdclient.c:2036: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).
	int len = strlen("playlistmove")+
data/libmpd-0.20.0/src/libmpdclient.c:2037: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).
	          2+strlen(sPlaylist)+3+INTLEN+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:2050: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).
	int len = strlen("playlistdelete")+2+strlen(sPlaylist)+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:2050: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).
	int len = strlen("playlistdelete")+2+strlen(sPlaylist)+3+INTLEN+3;
data/libmpd-0.20.0/src/libmpdclient.c:2084:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen("sticker get song ")+strlen(sSong)+3+strlen(sSticker)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2084: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).
    int len = strlen("sticker get song ")+strlen(sSong)+3+strlen(sSticker)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2084: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).
    int len = strlen("sticker get song ")+strlen(sSong)+3+strlen(sSticker)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2099:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen("sticker set song ")+strlen(sSong)+3+strlen(sSticker)+3+strlen(sValue)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2099: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).
    int len = strlen("sticker set song ")+strlen(sSong)+3+strlen(sSticker)+3+strlen(sValue)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2099: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).
    int len = strlen("sticker set song ")+strlen(sSong)+3+strlen(sSticker)+3+strlen(sValue)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2099:78:  [1] (buffer) strlen:
  Does not handle 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("sticker set song ")+strlen(sSong)+3+strlen(sSticker)+3+strlen(sValue)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2112:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen("replay_gain_mode ")+strlen(smode)+4;
data/libmpd-0.20.0/src/libmpdclient.c:2112: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).
    int len = strlen("replay_gain_mode ")+strlen(smode)+4;

ANALYSIS SUMMARY:

Hits = 246
Lines analyzed = 10141 in approximately 0.27 seconds (38190 lines/second)
Physical Source Lines of Code (SLOC) = 6533
Hits@level = [0]  80 [1] 121 [2]  85 [3]  12 [4]  28 [5]   0
Hits@level+ = [0+] 326 [1+] 246 [2+] 125 [3+]  40 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 49.9005 [1+] 37.655 [2+] 19.1336 [3+] 6.12276 [4+] 4.28593 [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.