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/bitlbee-3.6/commands.h
Examining data/bitlbee-3.6/auth.c
Examining data/bitlbee-3.6/dcc.h
Examining data/bitlbee-3.6/irc_util.c
Examining data/bitlbee-3.6/otr.h
Examining data/bitlbee-3.6/query.c
Examining data/bitlbee-3.6/irc_commands.c
Examining data/bitlbee-3.6/auth_ldap.c
Examining data/bitlbee-3.6/otr.c
Examining data/bitlbee-3.6/help.c
Examining data/bitlbee-3.6/help.h
Examining data/bitlbee-3.6/utils/bitlbeed.c
Examining data/bitlbee-3.6/irc_cap.c
Examining data/bitlbee-3.6/sock.h
Examining data/bitlbee-3.6/irc_channel.c
Examining data/bitlbee-3.6/bitlbee.h
Examining data/bitlbee-3.6/storage_xml.c
Examining data/bitlbee-3.6/irc.c
Examining data/bitlbee-3.6/irc_user.c
Examining data/bitlbee-3.6/nick.h
Examining data/bitlbee-3.6/storage.c
Examining data/bitlbee-3.6/nick.c
Examining data/bitlbee-3.6/lib/ftutil.h
Examining data/bitlbee-3.6/lib/ns_parse.c
Examining data/bitlbee-3.6/lib/events.h
Examining data/bitlbee-3.6/lib/md5.c
Examining data/bitlbee-3.6/lib/oauth2.c
Examining data/bitlbee-3.6/lib/json_util.h
Examining data/bitlbee-3.6/lib/misc.c
Examining data/bitlbee-3.6/lib/ftutil.c
Examining data/bitlbee-3.6/lib/http_client.h
Examining data/bitlbee-3.6/lib/ssl_openssl.c
Examining data/bitlbee-3.6/lib/proxy.h
Examining data/bitlbee-3.6/lib/base64.c
Examining data/bitlbee-3.6/lib/oauth.c
Examining data/bitlbee-3.6/lib/misc.h
Examining data/bitlbee-3.6/lib/xmltree.h
Examining data/bitlbee-3.6/lib/canohost.h
Examining data/bitlbee-3.6/lib/canohost.c
Examining data/bitlbee-3.6/lib/json.h
Examining data/bitlbee-3.6/lib/oauth2.h
Examining data/bitlbee-3.6/lib/base64.h
Examining data/bitlbee-3.6/lib/arc.c
Examining data/bitlbee-3.6/lib/ssl_gnutls.c
Examining data/bitlbee-3.6/lib/sha1.c
Examining data/bitlbee-3.6/lib/events_glib.c
Examining data/bitlbee-3.6/lib/ssl_client.h
Examining data/bitlbee-3.6/lib/http_client.c
Examining data/bitlbee-3.6/lib/ini.c
Examining data/bitlbee-3.6/lib/md5.h
Examining data/bitlbee-3.6/lib/url.h
Examining data/bitlbee-3.6/lib/arc.h
Examining data/bitlbee-3.6/lib/sha1.h
Examining data/bitlbee-3.6/lib/url.c
Examining data/bitlbee-3.6/lib/ini.h
Examining data/bitlbee-3.6/lib/events_libevent.c
Examining data/bitlbee-3.6/lib/oauth.h
Examining data/bitlbee-3.6/lib/json.c
Examining data/bitlbee-3.6/lib/json_util.c
Examining data/bitlbee-3.6/lib/ssl_nss.c
Examining data/bitlbee-3.6/lib/proxy.c
Examining data/bitlbee-3.6/lib/xmltree.c
Examining data/bitlbee-3.6/storage.h
Examining data/bitlbee-3.6/irc_im.c
Examining data/bitlbee-3.6/log.h
Examining data/bitlbee-3.6/irc.h
Examining data/bitlbee-3.6/query.h
Examining data/bitlbee-3.6/log.c
Examining data/bitlbee-3.6/bitlbee.c
Examining data/bitlbee-3.6/auth_pam.c
Examining data/bitlbee-3.6/conf.c
Examining data/bitlbee-3.6/conf.h
Examining data/bitlbee-3.6/set.c
Examining data/bitlbee-3.6/irc_send.c
Examining data/bitlbee-3.6/root_commands.c
Examining data/bitlbee-3.6/ipc.c
Examining data/bitlbee-3.6/protocols/jabber/sasl.c
Examining data/bitlbee-3.6/protocols/jabber/iq.c
Examining data/bitlbee-3.6/protocols/jabber/si.c
Examining data/bitlbee-3.6/protocols/jabber/presence.c
Examining data/bitlbee-3.6/protocols/jabber/jabber_util.c
Examining data/bitlbee-3.6/protocols/jabber/message.c
Examining data/bitlbee-3.6/protocols/jabber/s5bytestream.c
Examining data/bitlbee-3.6/protocols/jabber/jabber.c
Examining data/bitlbee-3.6/protocols/jabber/hipchat.c
Examining data/bitlbee-3.6/protocols/jabber/io.c
Examining data/bitlbee-3.6/protocols/jabber/conference.c
Examining data/bitlbee-3.6/protocols/jabber/jabber.h
Examining data/bitlbee-3.6/protocols/account.c
Examining data/bitlbee-3.6/protocols/bee.c
Examining data/bitlbee-3.6/protocols/bee_chat.c
Examining data/bitlbee-3.6/protocols/twitter/twitter_lib.h
Examining data/bitlbee-3.6/protocols/twitter/twitter_http.c
Examining data/bitlbee-3.6/protocols/twitter/twitter.c
Examining data/bitlbee-3.6/protocols/twitter/twitter.h
Examining data/bitlbee-3.6/protocols/twitter/twitter_http.h
Examining data/bitlbee-3.6/protocols/twitter/twitter_lib.c
Examining data/bitlbee-3.6/protocols/bee_user.c
Examining data/bitlbee-3.6/protocols/account.h
Examining data/bitlbee-3.6/protocols/ft.h
Examining data/bitlbee-3.6/protocols/bee_ft.c
Examining data/bitlbee-3.6/protocols/nogaim.h
Examining data/bitlbee-3.6/protocols/nogaim.c
Examining data/bitlbee-3.6/protocols/bee.h
Examining data/bitlbee-3.6/protocols/purple/purple.c
Examining data/bitlbee-3.6/protocols/purple/ft.c
Examining data/bitlbee-3.6/protocols/purple/ft-direct.c
Examining data/bitlbee-3.6/protocols/purple/bpurple.h
Examining data/bitlbee-3.6/unix.c
Examining data/bitlbee-3.6/tests/testsuite.h
Examining data/bitlbee-3.6/tests/check_arc.c
Examining data/bitlbee-3.6/tests/check_util.c
Examining data/bitlbee-3.6/tests/check_jabber_util.c
Examining data/bitlbee-3.6/tests/check_nick.c
Examining data/bitlbee-3.6/tests/check_set.c
Examining data/bitlbee-3.6/tests/check_md5.c
Examining data/bitlbee-3.6/tests/check_irc.c
Examining data/bitlbee-3.6/tests/check_jabber_sasl.c
Examining data/bitlbee-3.6/tests/check_user.c
Examining data/bitlbee-3.6/tests/check.c
Examining data/bitlbee-3.6/tests/check_help.c
Examining data/bitlbee-3.6/auth.h
Examining data/bitlbee-3.6/ipc.h
Examining data/bitlbee-3.6/doc/example_plugin.c
Examining data/bitlbee-3.6/dcc.c
Examining data/bitlbee-3.6/set.h

FINAL RESULTS:

data/bitlbee-3.6/otr.c:395:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(s, 0600);
data/bitlbee-3.6/utils/bitlbeed.c:132:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(set->interface, S_IRWXO | S_IRWXG | S_IRWXU);
data/bitlbee-3.6/bitlbee.c:214: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((irc->readbuffer + strlen(irc->readbuffer)), line);
data/bitlbee-3.6/bitlbee.h:77:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/bitlbee-3.6/bitlbee.h:78:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf        __PLEASE_USE_G_SNPRINTF__
data/bitlbee-3.6/conf.c:157:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%s/", conf->configdir);
data/bitlbee-3.6/conf.c:166:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (conf->cafile && access(conf->cafile, R_OK) != 0) {
data/bitlbee-3.6/ipc.c:898: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(un_addr.sun_path, IPCSOCKET);
data/bitlbee-3.6/irc.c:569:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(s, cmd[i]);
data/bitlbee-3.6/irc_channel.c:46: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(ic->mode, CMODE);
data/bitlbee-3.6/irc_commands.c:691:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buff, iu->nick);
data/bitlbee-3.6/irc_send.c:403: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(raw_msg, prefix);
data/bitlbee-3.6/irc_send.c:482:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(changes, iu->nick);
data/bitlbee-3.6/irc_user.c:111: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(key, nick);
data/bitlbee-3.6/irc_user.c:126: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(key, new);
data/bitlbee-3.6/irc_user.c:236: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(cmd, msg);
data/bitlbee-3.6/lib/arc.c:139:60:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
int arc_encode(char *clear, int clear_len, unsigned char **crypt, char *password, int pad_to)
data/bitlbee-3.6/lib/arc.c:170: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((char *) key, password);
data/bitlbee-3.6/lib/arc.c:174:15:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	random_bytes(crypt[0], ARC_IV_LEN);
data/bitlbee-3.6/lib/arc.c:175:37:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	memcpy(key + key_len - ARC_IV_LEN, crypt[0], ARC_IV_LEN);
data/bitlbee-3.6/lib/arc.c:182:3:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		crypt[0][i + ARC_IV_LEN] = clear[i] ^ arc_getbyte(st);
data/bitlbee-3.6/lib/arc.c:191:31:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
int arc_decode(unsigned char *crypt, int crypt_len, char **clear, const char *password)
data/bitlbee-3.6/lib/arc.c:208: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((char *) key, password);
data/bitlbee-3.6/lib/arc.c:210:35:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		key[key_len - ARC_IV_LEN + i] = crypt[i];
data/bitlbee-3.6/lib/arc.c:218:17:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		clear[0][i] = crypt[i + ARC_IV_LEN] ^ arc_getbyte(st);
data/bitlbee-3.6/lib/arc.h:38:60:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
int arc_encode(char *clear, int clear_len, unsigned char **crypt, char *password, int pad_to);
data/bitlbee-3.6/lib/arc.h:39:31:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
int arc_decode(unsigned char *crypt, int crypt_len, char **clear, const char *password);
data/bitlbee-3.6/lib/ftutil.c:94:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(errmsg, "getaddrinfo() failed: %s", gai_strerror(gret));
data/bitlbee-3.6/lib/json.c:887:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(error_buf, error);
data/bitlbee-3.6/lib/misc.c:64: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(text, text2);
data/bitlbee-3.6/lib/misc.c:233: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(start, out);
data/bitlbee-3.6/lib/misc.c:296: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(s, t);
data/bitlbee-3.6/lib/misc.c:307: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(t, s);
data/bitlbee-3.6/lib/oauth.c:50: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(s, url);
data/bitlbee-3.6/lib/oauth.c:56: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(s, params);
data/bitlbee-3.6/lib/oauth.c:187:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s, l->data);
data/bitlbee-3.6/lib/oauth.c:370: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(esc, eq + 1);
data/bitlbee-3.6/lib/url.c:73: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(url->host, i + 1);
data/bitlbee-3.6/lib/url.c:84: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(url->pass, i + 1);
data/bitlbee-3.6/nick.c:311:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tmp, n);
data/bitlbee-3.6/nick.c:312:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(p, tmp);
data/bitlbee-3.6/nick.c:405: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(nick, down);
data/bitlbee-3.6/protocols/account.c:87: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(tag, prpl->name);
data/bitlbee-3.6/protocols/jabber/jabber_util.c:759: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. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf(s, format, &tp.tm_year, &tp.tm_mon, &tp.tm_mday,
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:244:6:  [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.
	if (vsnprintf(error, 128, format, params) < 0) {
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:524:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(errstr, "with \"%s\" ", socks5_reply_code[ socks5_reply.cmdrep.rep ]);
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:921:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(sh->port, sh2->port);
data/bitlbee-3.6/protocols/purple/ft.c:111:12:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		px->fn = mktemp(g_strdup("/tmp/bitlbee-purple-ft.XXXXXX"));
data/bitlbee-3.6/protocols/twitter/twitter.c:636:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s_%s", td->prefix, acc->user);
data/bitlbee-3.6/protocols/twitter/twitter.c:713:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(pin, message);
data/bitlbee-3.6/tests/check_nick.c:32: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(copy, get[i]);
data/bitlbee-3.6/tests/check_util.c:18: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(copy, get[i]);
data/bitlbee-3.6/tests/check_util.c:35: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(copy, get[i]);
data/bitlbee-3.6/unix.c:214:7:  [4] (shell) execv:
  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 (execv(argv[0], argv) == -1) {
data/bitlbee-3.6/utils/bitlbeed.c:214:6:  [4] (shell) execv:
  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.
					execv(set->call[0], set->call);
data/bitlbee-3.6/utils/bitlbeed.c:370: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(line, ctime(&tm));
data/bitlbee-3.6/utils/bitlbeed.c:375:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(line + l, MAX_LOG_LEN - l - 2, fmt, params);
data/bitlbee-3.6/bitlbee.c:148:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("_BITLBEE_RESTART_STATE") == NULL) {
data/bitlbee-3.6/bitlbee.c:159:25:  [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.
		ipc_master_load_state(getenv("_BITLBEE_RESTART_STATE"));
data/bitlbee-3.6/conf.c:86:28:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (argc > 0 && (opt = getopt(argc, argv, "i:p:P:nvIDFc:d:hu:V")) >= 0) {
data/bitlbee-3.6/lib/http_client.c:72:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/lib/http_client.c:298:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG") && req) {
data/bitlbee-3.6/lib/http_client.c:452:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/lib/http_client.c:615:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/lib/oauth2.c:150:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/lib/oauth2.c:185:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/lib/ssl_gnutls.c:389:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (SSLDEBUG && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/lib/ssl_gnutls.c:412:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (SSLDEBUG && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/lib/ssl_nss.c:256:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (SSLDEBUG && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/lib/ssl_nss.c:280:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (SSLDEBUG && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/lib/ssl_openssl.c:225:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (0 && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/lib/ssl_openssl.c:243:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (0 && getenv("BITLBEE_DEBUG") && st > 0) {
data/bitlbee-3.6/protocols/purple/purple.c:375:50:  [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.
	    (global.conf->runmode == RUNMODE_DAEMON && !getenv("BITLBEE_DEBUG"))) {
data/bitlbee-3.6/protocols/purple/purple.c:1786:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/protocols/purple/purple.c:1801:29:  [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.
	gboolean debug_enabled = !!getenv("BITLBEE_DEBUG");
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1192:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1209:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("BITLBEE_DEBUG")) {
data/bitlbee-3.6/utils/bitlbeed.c:284:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "i:p:n:t:l:r:hud")) >= 0) {
data/bitlbee-3.6/auth_ldap.c:12: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 *attrs[1] = { NULL };
data/bitlbee-3.6/bitlbee.c:152:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					open("/dev/null", O_WRONLY);
data/bitlbee-3.6/bitlbee.c:166:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(global.conf->pidfile, "w"))) {
data/bitlbee-3.6/bitlbee.c:193:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[513];
data/bitlbee-3.6/dcc.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[NI_MAXHOST];
data/bitlbee-3.6/dcc.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port[6];
data/bitlbee-3.6/dcc.c:186: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 ipaddr[INET6_ADDRSTRLEN];
data/bitlbee-3.6/dcc.c:194:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ipaddr, "%d",
data/bitlbee-3.6/dcc.c:308:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ipaddr[INET6_ADDRSTRLEN];
data/bitlbee-3.6/dcc.c:579: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(&df->saddr, rp->ai_addr, rp->ai_addrlen);
data/bitlbee-3.6/help.c:44:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	h->fd = open(helpfile, O_RDONLY);
data/bitlbee-3.6/ipc.c:542: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 ccmsg[CMSG_SPACE(sizeof(recv_fd))];
data/bitlbee-3.6/ipc.c:544:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[513], *eol;
data/bitlbee-3.6/ipc.c:592: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(recv_fd, CMSG_DATA(cmsg), sizeof(int));
data/bitlbee-3.6/ipc.c:744: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 ccmsg[CMSG_SPACE(sizeof(fd))];
data/bitlbee-3.6/ipc.c:760: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(CMSG_DATA(cmsg), &send_fd, sizeof(int));
data/bitlbee-3.6/ipc.c:828:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(fn);
data/bitlbee-3.6/ipc.c:932:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(statefile, "r");
data/bitlbee-3.6/irc.c:575:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(s, "\r\n");
data/bitlbee-3.6/irc.c:618:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[IRC_MAX_LINE + 1];
data/bitlbee-3.6/irc.c:807: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 m[128], st = 1;
data/bitlbee-3.6/irc.c:810: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 changes[512], st2 = 2;
data/bitlbee-3.6/irc.h:100: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 umode[8];
data/bitlbee-3.6/irc.h:175: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 mode[8];
data/bitlbee-3.6/irc.h:232: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 modes[5];
data/bitlbee-3.6/irc_channel.c:401: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 m[128], st = 1;
data/bitlbee-3.6/irc_channel.c:404: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 changes[512], *p, st2 = 2;
data/bitlbee-3.6/irc_channel.c:548:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char case_map[256];
data/bitlbee-3.6/irc_channel.c:616:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAX_NICK_LENGTH + 1] = { 0 };
data/bitlbee-3.6/irc_channel.c:720: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 to[s - msg + 1];
data/bitlbee-3.6/irc_channel.c:909: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 modes[5];
data/bitlbee-3.6/irc_channel.c:940: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(icc->modes, modes, 5);
data/bitlbee-3.6/irc_commands.c:108: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 *parts[3];
data/bitlbee-3.6/irc_commands.c:479: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(cmd[2], "/me", 3);
data/bitlbee-3.6/irc_commands.c:664: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 buff[IRC_MAX_LINE];
data/bitlbee-3.6/irc_commands.c:782: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 away[strlen(cmd[1]) + 1];
data/bitlbee-3.6/irc_im.c:49: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 nick[MAX_NICK_LENGTH + 1], *s;
data/bitlbee-3.6/irc_im.c:640:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char name[16];
data/bitlbee-3.6/irc_im.c:641:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(name, "#chat_%03d", i);
data/bitlbee-3.6/irc_im.c:845: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 nick[MAX_NICK_LENGTH + 1];
data/bitlbee-3.6/irc_send.c:30: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 text[IRC_MAX_LINE];
data/bitlbee-3.6/irc_send.c:64: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 linebuf[80];
data/bitlbee-3.6/irc_send.c:132: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 text[2048];
data/bitlbee-3.6/irc_send.c:338: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 status_prefix[3] = {0};
data/bitlbee-3.6/irc_send.c:375: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 raw_msg[strlen(msg) + 1024];
data/bitlbee-3.6/irc_send.c:396: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(raw_msg, "\001ACTION ");
data/bitlbee-3.6/irc_send.c:430: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 text[IRC_MAX_LINE];
data/bitlbee-3.6/irc_send.c:451: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 changes[3 * (5 + strlen(iu->nick))];
data/bitlbee-3.6/irc_send.c:452: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 from[strlen(ic->irc->root->nick) + strlen(ic->irc->root->user) + strlen(ic->irc->root->host) + 3];
data/bitlbee-3.6/irc_send.c:459:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "+o");
data/bitlbee-3.6/irc_send.c:461:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "-o");
data/bitlbee-3.6/irc_send.c:467:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "+h");
data/bitlbee-3.6/irc_send.c:469:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "-h");
data/bitlbee-3.6/irc_send.c:475:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "+v");
data/bitlbee-3.6/irc_send.c:477:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(changes, "-v");
data/bitlbee-3.6/irc_user.c:109: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[strlen(nick) + 1];
data/bitlbee-3.6/irc_user.c:123: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[strlen(new) + 1];
data/bitlbee-3.6/irc_user.c:198:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char ret[MAX_STRING];
data/bitlbee-3.6/irc_user.c:234: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 cmd[strlen(msg) + 1];
data/bitlbee-3.6/lib/arc.c:63:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char S2[256];
data/bitlbee-3.6/lib/arc.c:156: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(padded, clear, clear_len);
data/bitlbee-3.6/lib/arc.c:175: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(key + key_len - ARC_IV_LEN, crypt[0], ARC_IV_LEN);
data/bitlbee-3.6/lib/arc.h:28:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char S[256];
data/bitlbee-3.6/lib/canohost.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NI_MAXHOST], ntop2[NI_MAXHOST];
data/bitlbee-3.6/lib/canohost.c:48: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 ntop[INET6_ADDRSTRLEN];
data/bitlbee-3.6/lib/canohost.c:52: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(&from, from_, fromlen_);
data/bitlbee-3.6/lib/canohost.c:138: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(&a4->sin_addr, &inaddr, sizeof(inaddr));
data/bitlbee-3.6/lib/ftutil.c:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char errmsg[1024];
data/bitlbee-3.6/lib/ftutil.c:100: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(saddr, rp->ai_addr, saddrlen);
data/bitlbee-3.6/lib/ftutil.c:112: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(errmsg, "inet_ntop failed on listening socket");
data/bitlbee-3.6/lib/ftutil.c:126: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(saddr_ptr, saddr, saddrlen);
data/bitlbee-3.6/lib/http_client.c:205: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[4096];
data/bitlbee-3.6/lib/http_client.c:320: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(req->cbuf + req->cblen, buffer, len);
data/bitlbee-3.6/lib/http_client.c:390: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(req->reply_headers + req->bytes_read, buffer, len);
data/bitlbee-3.6/lib/http_client.c:410: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(req->sbuf + req->sblen, buffer, len);
data/bitlbee-3.6/lib/ini.c:34:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (file && (fd = open(file, O_RDONLY)) != -1 &&
data/bitlbee-3.6/lib/json.c:241:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&state.settings, settings, sizeof(json_settings));
data/bitlbee-3.6/lib/json.c:274:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(error, "Unexpected EOF in string (at %d:%d)", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:298:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							sprintf(error, "Invalid character value `%c` (at %d:%d)", b,
data/bitlbee-3.6/lib/json.c:315:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
								sprintf(error,
data/bitlbee-3.6/lib/json.c:447:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							sprintf(error, "%d:%d: Unexpected EOF in block comment",
data/bitlbee-3.6/lib/json.c:461:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(error, "%d:%d: Comment not allowed here", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:466:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(error, "%d:%d: EOF unexpected", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:480:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(error, "%d:%d: Unexpected `%c` in comment opening sequence",
data/bitlbee-3.6/lib/json.c:498:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(error, "%d:%d: Trailing garbage: `%c`", cur_line, e_off, b);
data/bitlbee-3.6/lib/json.c:513:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					} else {              sprintf(error, "%d:%d: Unexpected ]", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:524:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						} else { sprintf(error, "%d:%d: Expected , before %c", cur_line, e_off,
data/bitlbee-3.6/lib/json.c:533:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						} else { sprintf(error, "%d:%d: Expected : before %c", cur_line, e_off,
data/bitlbee-3.6/lib/json.c:650:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						} else { sprintf(error, "%d:%d: Unexpected %c when seeking value",
data/bitlbee-3.6/lib/json.c:668:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							sprintf(error, "%d:%d: Expected , before \"", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:693:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(error, "%d:%d: Unexpected `%c` in object", cur_line, e_off, b);
data/bitlbee-3.6/lib/json.c:709:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
									sprintf(error,
data/bitlbee-3.6/lib/json.c:744:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							sprintf(error, "%d:%d: Expected digit before `.`", cur_line,
data/bitlbee-3.6/lib/json.c:759:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
								sprintf(error, "%d:%d: Expected digit after `.`",
data/bitlbee-3.6/lib/json.c:783:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							sprintf(error, "%d:%d: Expected digit after `e`", cur_line,
data/bitlbee-3.6/lib/json.c:870:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(error, "%d:%d: Unknown value", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:875: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(error, "Memory allocation failure");
data/bitlbee-3.6/lib/json.c:880:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(error, "%d:%d: Too long (caught overflow)", cur_line, e_off);
data/bitlbee-3.6/lib/json.c:889: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(error_buf, "Unknown error");
data/bitlbee-3.6/lib/misc.c: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 code[7];
data/bitlbee-3.6/lib/misc.c:121: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 is[3];
data/bitlbee-3.6/lib/misc.c:158: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 out[strlen(in) + 1];
data/bitlbee-3.6/lib/misc.c:304: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 t[strlen(s) + 1];
data/bitlbee-3.6/lib/misc.c:316:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s + j, "%%%02X", ((unsigned char *) t)[i]);
data/bitlbee-3.6/lib/misc.c:316:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			sprintf(s + j, "%%%02X", ((unsigned char *) t)[i]);
data/bitlbee-3.6/lib/misc.c:379:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (((fd = open("/dev/urandom", O_RDONLY)) == -1) ||
data/bitlbee-3.6/lib/misc.c:440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/bitlbee-3.6/lib/misc.c:441:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char querybuf[1024];
data/bitlbee-3.6/lib/misc.c:459:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[NS_MAXDNAME];
data/bitlbee-3.6/lib/misc.c:474: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(reply->name, name, len);
data/bitlbee-3.6/lib/misc.c:603:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *cmd[IRC_MAX_ARGS + 1];
data/bitlbee-3.6/lib/misc.h:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NS_MAXDNAME];
data/bitlbee-3.6/lib/oauth.c:77:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char bytes[21];
data/bitlbee-3.6/lib/oauth.c:364: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 esc[strlen(kv) * 3 + 1];
data/bitlbee-3.6/lib/proxy.c:39: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 proxyhost[128] = "";
data/bitlbee-3.6/lib/proxy.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char proxyuser[128] = "";
data/bitlbee-3.6/lib/proxy.c:43: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 proxypass[128] = "";
data/bitlbee-3.6/lib/proxy.c:159: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 port[6];
data/bitlbee-3.6/lib/proxy.c:227: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 inputline[8192];
data/bitlbee-3.6/lib/proxy.c:250: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 cmd[384];
data/bitlbee-3.6/lib/proxy.c:307:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char packet[12];
data/bitlbee-3.6/lib/proxy.c:322:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char packet[12];
data/bitlbee-3.6/lib/proxy.c:390:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[512];
data/bitlbee-3.6/lib/proxy.c:407:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[512];
data/bitlbee-3.6/lib/proxy.c:416:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + 5, phb->host, hlen);
data/bitlbee-3.6/lib/proxy.c:430:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[512];
data/bitlbee-3.6/lib/proxy.c:450:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[512];
data/bitlbee-3.6/lib/proxy.c:467:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + 2, proxyuser, i);
data/bitlbee-3.6/lib/proxy.c:469:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + 2 + i + 1, proxypass, j);
data/bitlbee-3.6/lib/proxy.c:484:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[512];
data/bitlbee-3.6/lib/proxy.h:44: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 proxyhost[128];
data/bitlbee-3.6/lib/proxy.h:47: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 proxyuser[128];
data/bitlbee-3.6/lib/proxy.h:48: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 proxypass[128];
data/bitlbee-3.6/lib/sha1.c:59: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(key, key_, key_len);
data/bitlbee-3.6/lib/sha1.c:85:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sha1_hmac(const char *key_, size_t key_len, const char *payload, size_t payload_len, guint8 digest[SHA1_HASH_SIZE])
data/bitlbee-3.6/lib/sha1.c:85:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sha1_hmac(const char *key_, size_t key_len, const char *payload, size_t payload_len, guint8 digest[SHA1_HASH_SIZE])
data/bitlbee-3.6/lib/sha1.c:115:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ret + p, "%02x", dig[i]);
data/bitlbee-3.6/lib/sha1.h:15:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sha1_hmac(const char *, size_t, const char *, size_t, guint8 digest[SHA1_HASH_SIZE]);
data/bitlbee-3.6/lib/sha1.h:15:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sha1_hmac(const char *, size_t, const char *, size_t, guint8 digest[SHA1_HASH_SIZE]);
data/bitlbee-3.6/lib/url.c:31: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 s[MAX_STRING + 1];
data/bitlbee-3.6/lib/url.h:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[MAX_STRING + 1];
data/bitlbee-3.6/lib/url.h:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[MAX_STRING + 1];
data/bitlbee-3.6/lib/url.h:40: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 user[MAX_STRING + 1];
data/bitlbee-3.6/lib/url.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pass[MAX_STRING + 1];
data/bitlbee-3.6/lib/xmltree.c:93: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(node->text + node->text_len, text, text_len);
data/bitlbee-3.6/lib/xmltree.c:549:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char nonprint[32] = {
data/bitlbee-3.6/nick.c:70:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char nick[MAX_NICK_LENGTH + 1];
data/bitlbee-3.6/nick.c:230:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void underscore_dedupe(char nick[MAX_NICK_LENGTH + 1])
data/bitlbee-3.6/nick.c:245:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void nick_dedupe(bee_user_t *bu, char nick[MAX_NICK_LENGTH + 1])
data/bitlbee-3.6/nick.c:386:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tab[128] = { 0 };
data/bitlbee-3.6/nick.c:420: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 aa[1024] = "", bb[1024] = "";
data/bitlbee-3.6/nick.h:30:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void underscore_dedupe(char nick[MAX_NICK_LENGTH + 1]);
data/bitlbee-3.6/nick.h:31:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void nick_dedupe(bee_user_t * bu, char nick[MAX_NICK_LENGTH + 1]);
data/bitlbee-3.6/otr.c:64:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void op_new_fingerprint(void *opdata, OtrlUserState us, const char *accountname,
data/bitlbee-3.6/otr.c:65:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *protocol, const char *username, unsigned char fingerprint[20]);
data/bitlbee-3.6/otr.c:65:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *protocol, const char *username, unsigned char fingerprint[20]);
data/bitlbee-3.6/otr.c:65:78:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *protocol, const char *username, unsigned char fingerprint[20]);
data/bitlbee-3.6/otr.c:345: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 s[512];
data/bitlbee-3.6/otr.c:386: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 s[512];
data/bitlbee-3.6/otr.c:401: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 s[512];
data/bitlbee-3.6/otr.c:413: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 s[512], t[512];
data/bitlbee-3.6/otr.c:646:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *accountname, const char *protocol,
data/bitlbee-3.6/otr.c:646:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *accountname, const char *protocol,
data/bitlbee-3.6/otr.c:647:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *username, unsigned char fingerprint[20])
data/bitlbee-3.6/otr.c:647:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        const char *username, unsigned char fingerprint[20])
data/bitlbee-3.6/otr.c:652: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 hunam[45];         /* anybody looking? ;-) */
data/bitlbee-3.6/otr.c:758: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 s[512];
data/bitlbee-3.6/otr.c:1091:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char raw[20];
data/bitlbee-3.6/otr.c:1282: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 human[54];
data/bitlbee-3.6/otr.c:1565:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char fallback[512];
data/bitlbee-3.6/otr.c:1602: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 human[45];
data/bitlbee-3.6/otr.c:1646: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 human[45];
data/bitlbee-3.6/otr.c:1647: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 prefix[45], *p;
data/bitlbee-3.6/otr.c:1715: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 human[45];
data/bitlbee-3.6/otr.c:1716: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 prefix[45], *p;
data/bitlbee-3.6/otr.c:1788: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 human[45];
data/bitlbee-3.6/otr.c:2013: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 filename[128], accountname[512], protocol[512];
data/bitlbee-3.6/otr.c:2025:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		tempfd = mkstemp(filename);
data/bitlbee-3.6/otr.c:2047: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 filename[512], msg[512];
data/bitlbee-3.6/otr.c:2102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/bitlbee-3.6/otr.c:2104:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fda = open(a, O_RDONLY);
data/bitlbee-3.6/otr.c:2105:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fdb = open(b, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/bitlbee-3.6/protocols/account.c:40: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 tag[strlen(prpl->name) + 10];
data/bitlbee-3.6/protocols/account.c:91: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(tag, "gtalk");
data/bitlbee-3.6/protocols/account.c:100:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(numpos, "%d", i);
data/bitlbee-3.6/protocols/ft.h:158: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[FT_BUFFER_SIZE];
data/bitlbee-3.6/protocols/jabber/conference.c:476: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 empty[1] = "";
data/bitlbee-3.6/protocols/jabber/io.c:77: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(jd->txq + jd->tx_len, buf, len);
data/bitlbee-3.6/protocols/jabber/io.c:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/bitlbee-3.6/protocols/jabber/iq.c:71:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/bitlbee-3.6/protocols/jabber/iq.c:83:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/bitlbee-3.6/protocols/jabber/iq.c:248: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 hash_hex[41];
data/bitlbee-3.6/protocols/jabber/iq.c:249:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char hash[20];
data/bitlbee-3.6/protocols/jabber/iq.c:258:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(hash_hex + i * 2, "%02x", hash[i]);
data/bitlbee-3.6/protocols/jabber/iq.c:961: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 *ret[2] = {};
data/bitlbee-3.6/protocols/jabber/jabber.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[16];
data/bitlbee-3.6/protocols/jabber/jabber.h:71: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 port[6];
data/bitlbee-3.6/protocols/jabber/jabber.h:119: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 code[5];
data/bitlbee-3.6/protocols/jabber/presence.c:70: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).
			bud->priority = atoi(c->text);
data/bitlbee-3.6/protocols/jabber/presence.c:189: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).
		int new_prio = (atoi(prio) - 5);
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:47: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 peek_buf[64];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:60:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char address[40];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:167:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, bt->peek_buf, bt->peek_buf_len);
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error[128];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:245:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(error, "internal error parsing error string (BUG)");
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:479:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[2];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:492: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(socks5_connect.address, bt->pseudoaddr, socks5_connect.addrlen);
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:521:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char errstr[128] = "";
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:889: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 port[6];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:890:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[NI_MAXHOST + 1];
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:1068:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char mbuf[32];
data/bitlbee-3.6/protocols/jabber/sasl.c:290:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char cnonce_bin[30];
data/bitlbee-3.6/protocols/jabber/sasl.c:306: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 A1h[33], A2h[33], Hh[33];
data/bitlbee-3.6/protocols/jabber/sasl.c:343:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(A1h + i * 2, "%02x", A1r[i]);
data/bitlbee-3.6/protocols/jabber/sasl.c:353:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(A2h + i * 2, "%02x", A2r[i]);
data/bitlbee-3.6/protocols/jabber/sasl.c:363:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(Hh + i * 2, "%02x", Hr[i]);
data/bitlbee-3.6/protocols/jabber/si.c:484: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 filesizestr[ 1 + ( int ) (0.301029995663981198f * sizeof(size_t) * 8) ];
data/bitlbee-3.6/protocols/jabber/si.c:518:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(filesizestr, "%zd", tf->ft->file_size);
data/bitlbee-3.6/protocols/nogaim.c:787:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *imc_away_alias_list[8][5] =
data/bitlbee-3.6/protocols/nogaim.h:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[80];
data/bitlbee-3.6/protocols/nogaim.h:128: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 show[BUDDY_ALIAS_MAXLEN];
data/bitlbee-3.6/protocols/purple/ft.c:178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/bitlbee-3.6/protocols/purple/ft.c:244: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).
		px->fd = open(px->fn, O_RDONLY);
data/bitlbee-3.6/protocols/purple/ft.c:302:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	px->fd = open(px->fn, O_WRONLY | O_CREAT, 0600);
data/bitlbee-3.6/protocols/purple/purple.c:140: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 help_title[64];
data/bitlbee-3.6/protocols/purple/purple.c:438: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).
		guint request_id = atoi(who + sizeof(PURPLE_REQUEST_HANDLE));
data/bitlbee-3.6/protocols/twitter/twitter.c:580:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[strlen(acc->user) + 9];
data/bitlbee-3.6/protocols/twitter/twitter.c:711:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char pin[strlen(message) + 1], *s;
data/bitlbee-3.6/protocols/twitter/twitter_http.c:105:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char userpass[strlen(ic->acc->user) + 2 + strlen(ic->acc->pass)];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64] = "", *s;
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:251: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 *args[2];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:265: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 *args[2];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:279:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *args[2];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:471: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 *args[2] = {
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:957: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 from[MAX_STRING] = "";
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1224: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 *args[2] = { "with", "followings" };
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1240: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 *args[4] = { "follow", NULL, "track", NULL };
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1378: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 *args[2] = { "screen_name", NULL };
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1514: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 *args[8];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1553: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 *args[8];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1700: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 *args[4] = {
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1724: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 *args[4];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1736: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 *args[2];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1749: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 *args[2];
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1784: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 *args[2] = {
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:1799: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 *args[2] = {
data/bitlbee-3.6/root_commands.c:79: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 param[80];
data/bitlbee-3.6/root_commands.c:221: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 s[16];
data/bitlbee-3.6/root_commands.c:1038: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 s[256];
data/bitlbee-3.6/root_commands.c:1095: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 st[256] = "Online";
data/bitlbee-3.6/root_commands.c:1572: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 s[16], *msg;
data/bitlbee-3.6/set.c:271:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s, "%c ", *value);
data/bitlbee-3.6/storage_xml.c:45: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 given_nick[MAX_NICK_LENGTH + 1];
data/bitlbee-3.6/storage_xml.c:236: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 *fn, buf[2048];
data/bitlbee-3.6/storage_xml.c:249: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).
	if ((fd = open(fn, O_RDONLY)) < 0) {
data/bitlbee-3.6/storage_xml.c:441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[512], *path2 = NULL, *xml = NULL;
data/bitlbee-3.6/storage_xml.c:455:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(path, ".XXXXXX");
data/bitlbee-3.6/storage_xml.c:456:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(path)) < 0) {
data/bitlbee-3.6/storage_xml.c:494: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 s[512], *lc;
data/bitlbee-3.6/tests/check_arc.c:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char crypted[30];
data/bitlbee-3.6/tests/check_nick.c:31:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char copy[60];
data/bitlbee-3.6/tests/check_util.c:17: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 copy[20];
data/bitlbee-3.6/tests/check_util.c:34: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 copy[20], *ret;
data/bitlbee-3.6/tests/check_util.c:166: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 s[80];
data/bitlbee-3.6/tests/check_util.c:168:1:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
strcpy(s, "ee\xc3" "\xab" "ee!!...");
data/bitlbee-3.6/tests/check_util.c:176: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 *expected[IRC_MAX_ARGS + 1];
data/bitlbee-3.6/unix.c:330:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(CRASHFILE, O_WRONLY | O_APPEND | O_CREAT, 0600);
data/bitlbee-3.6/unix.c:342:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	mapsfd = open("/proc/self/maps", O_RDONLY, 0);
data/bitlbee-3.6/unix.c:345:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[4096] = {0};
data/bitlbee-3.6/utils/bitlbeed.c:101:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!(logfile = fopen("/dev/null", "w"))) {
data/bitlbee-3.6/utils/bitlbeed.c:306:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!(logfile = fopen(optarg, "a"))) {
data/bitlbee-3.6/utils/bitlbeed.c:354: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(set->call, argv + optind, sizeof(char*) * (argc - optind));
data/bitlbee-3.6/utils/bitlbeed.c:363:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[MAX_LOG_LEN];
data/bitlbee-3.6/bitlbee.c:196:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	st = read(irc->fd, line, sizeof(line) - 1);
data/bitlbee-3.6/bitlbee.c:213: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).
		irc->readbuffer = g_renew(char, irc->readbuffer, strlen(irc->readbuffer) + strlen(line) + 1);
data/bitlbee-3.6/bitlbee.c:213: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).
		irc->readbuffer = g_renew(char, irc->readbuffer, strlen(irc->readbuffer) + strlen(line) + 1);
data/bitlbee-3.6/bitlbee.c:214: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).
		strcpy((irc->readbuffer + strlen(irc->readbuffer)), line);
data/bitlbee-3.6/bitlbee.c:226: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 (irc->readbuffer && (strlen(irc->readbuffer) > 1024)) {
data/bitlbee-3.6/conf.c:154: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 (conf->configdir[strlen(conf->configdir) - 1] != '/') {
data/bitlbee-3.6/conf.c:155: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).
		char *s = g_new(char, strlen(conf->configdir) + 2);
data/bitlbee-3.6/conf.c:306:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(proxyhost, url->host, sizeof(proxyhost));
data/bitlbee-3.6/conf.c:307:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(proxyuser, url->user, sizeof(proxyuser));
data/bitlbee-3.6/conf.c:308:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(proxypass, url->pass, sizeof(proxypass));
data/bitlbee-3.6/help.c:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/bitlbee-3.6/help.c:60:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (((i = read(h->fd, s + buflen, BUFSIZE - buflen)) > 0) ||
data/bitlbee-3.6/help.c:77:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(h->title, s + 1, i - 1);
data/bitlbee-3.6/help.c:149:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    read(h->fd, s, h->length) != h->length) {
data/bitlbee-3.6/help.c:154:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(s, h->offset.mem_offset, h->length);
data/bitlbee-3.6/help.c:181: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).
	h->length = strlen(content);
data/bitlbee-3.6/ipc.c:165: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).
	if (write(child->ipc_fd, resp, strlen(resp)) != strlen(resp)) {
data/bitlbee-3.6/ipc.c:165: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 (write(child->ipc_fd, resp, strlen(resp)) != strlen(resp)) {
data/bitlbee-3.6/ipc.c:199:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(child->to_child->ipc_fd, fwd, strlen(fwd)) != strlen(fwd)) {
data/bitlbee-3.6/ipc.c:199:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(child->to_child->ipc_fd, fwd, strlen(fwd)) != strlen(fwd)) {
data/bitlbee-3.6/ipc.c:219: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 (write(fd, fwd, strlen(fwd)) != strlen(fwd)) {
data/bitlbee-3.6/ipc.c:219: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).
		if (write(fd, fwd, strlen(fwd)) != strlen(fwd)) {
data/bitlbee-3.6/ipc.c:664: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(msg_buf) > 512) {
data/bitlbee-3.6/ipc.c:668:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(global.listen_socket, msg_buf, strlen(msg_buf)) <= 0) {
data/bitlbee-3.6/ipc.c:711: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(msg_buf) > 512) {
data/bitlbee-3.6/ipc.c:714:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int msg_len = strlen(msg_buf);
data/bitlbee-3.6/irc.c:389: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).
				if (conv == NULL || bytes_read != strlen(lines[i])) {
data/bitlbee-3.6/irc.c:556:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen(cmd[i]) + 1;
data/bitlbee-3.6/irc.c:566:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(s, ":");
data/bitlbee-3.6/irc.c:572:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(s, " ");
data/bitlbee-3.6/irc.c:636: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 (bytes_read == strlen(line)) {
data/bitlbee-3.6/irc.c:637:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(line, conv, IRC_MAX_LINE - 2);
data/bitlbee-3.6/irc.c:846: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).
	for (i = 'A'; i <= 'z' && strlen(irc->umode) < (sizeof(irc->umode) - 1); i++) {
data/bitlbee-3.6/irc.c:848: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).
			irc->umode[strlen(irc->umode)] = i;
data/bitlbee-3.6/irc_channel.c:432: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).
	for (i = 'A'; i <= 'z' && strlen(ic->mode) < (sizeof(ic->mode) - 1); i++) {
data/bitlbee-3.6/irc_channel.c:434: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).
			ic->mode[strlen(ic->mode)] = i;
data/bitlbee-3.6/irc_channel.c:636:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name + 1, translit_name, MAX_NICK_LENGTH - 1);
data/bitlbee-3.6/irc_channel.c:723:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(to, msg, s - msg);
data/bitlbee-3.6/irc_channel.c:919: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).
		last = (*part)[strlen(*part + 1)];
data/bitlbee-3.6/irc_commands.c:121: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).
		i += strlen(parts[part]) + 1;
data/bitlbee-3.6/irc_commands.c:480:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (cmd[2][strlen(cmd[2]) - 1] == '\001') {
data/bitlbee-3.6/irc_commands.c:481: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).
			cmd[2][strlen(cmd[2]) - 1] = '\0';
data/bitlbee-3.6/irc_commands.c:499:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (cmd[2][strlen(cmd[2]) - 1] == '\001') {
data/bitlbee-3.6/irc_commands.c:500: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).
				cmd[2][strlen(cmd[2]) - 1] = '\0';
data/bitlbee-3.6/irc_commands.c:685: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).
				lenleft -= strlen(iu->nick) + 1;
data/bitlbee-3.6/irc_commands.c:692:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buff, " ");
data/bitlbee-3.6/irc_commands.c:709: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(buff) > 0) {
data/bitlbee-3.6/irc_commands.c:710: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).
		buff[strlen(buff) - 1] = '\0';
data/bitlbee-3.6/irc_commands.c:782:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char away[strlen(cmd[1]) + 1];
data/bitlbee-3.6/irc_im.c:52:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nick, nick_get(bu), MAX_NICK_LENGTH);
data/bitlbee-3.6/irc_im.c:793: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(channel) > MAX_NICK_LENGTH) {
data/bitlbee-3.6/irc_im.c:848:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(nick, msg, MAX_NICK_LENGTH);
data/bitlbee-3.6/irc_send.c:91:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(linebuf + len, add, max - len);
data/bitlbee-3.6/irc_send.c:215:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t extra_len = strlen(iu->nick);
data/bitlbee-3.6/irc_send.c:219:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			extra_len += strlen(iu->user) + strlen(iu->host) + 2;
data/bitlbee-3.6/irc_send.c:219: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).
			extra_len += strlen(iu->user) + strlen(iu->host) + 2;
data/bitlbee-3.6/irc_send.c:375: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).
	char raw_msg[strlen(msg) + 1024];
data/bitlbee-3.6/irc_send.c:397: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(raw_msg, line + 4, s - line - 4);
data/bitlbee-3.6/irc_send.c:398:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(raw_msg, "\001");
data/bitlbee-3.6/irc_send.c:405: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(raw_msg, line, s - line);
data/bitlbee-3.6/irc_send.c:451: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).
	char changes[3 * (5 + strlen(iu->nick))];
data/bitlbee-3.6/irc_send.c:452: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).
	char from[strlen(ic->irc->root->nick) + strlen(ic->irc->root->user) + strlen(ic->irc->root->host) + 3];
data/bitlbee-3.6/irc_send.c:452:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char from[strlen(ic->irc->root->nick) + strlen(ic->irc->root->user) + strlen(ic->irc->root->host) + 3];
data/bitlbee-3.6/irc_send.c:452:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char from[strlen(ic->irc->root->nick) + strlen(ic->irc->root->user) + strlen(ic->irc->root->host) + 3];
data/bitlbee-3.6/irc_send.c:481:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(changes, " ");
data/bitlbee-3.6/irc_user.c:109: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).
	char key[strlen(nick) + 1];
data/bitlbee-3.6/irc_user.c:123: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).
	char key[strlen(new) + 1];
data/bitlbee-3.6/irc_user.c:234: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).
	char cmd[strlen(msg) + 1];
data/bitlbee-3.6/lib/arc.c:68:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		kl = strlen((char *) key);
data/bitlbee-3.6/lib/arc.c:146:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	key_len = strlen(password) + ARC_IV_LEN;
data/bitlbee-3.6/lib/arc.c:148: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).
		clear_len = strlen(clear);
data/bitlbee-3.6/lib/arc.c:197:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	key_len = strlen(password) + ARC_IV_LEN;
data/bitlbee-3.6/lib/base64.c:31: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).
	return base64_encode((const unsigned char *) text, strlen(text));
data/bitlbee-3.6/lib/ftutil.c:52: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(port, "0");
data/bitlbee-3.6/lib/ftutil.c:65:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(host, ftlisten, NI_MAXHOST);
data/bitlbee-3.6/lib/ftutil.c:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(host, scolon + 1, NI_MAXHOST);
data/bitlbee-3.6/lib/ftutil.c:71:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(host, ftlisten, NI_MAXHOST);
data/bitlbee-3.6/lib/ftutil.c:76:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(port, colon + 1, 5);
data/bitlbee-3.6/lib/http_client.c:68: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).
	req->request_length = strlen(request);
data/bitlbee-3.6/lib/http_client.c:229:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		st = read(req->fd, buffer, sizeof(buffer));
data/bitlbee-3.6/lib/http_client.c:553: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).
			      (s = strstr(s + strlen("\r\nHost: "), "\r\n")))) {
data/bitlbee-3.6/lib/http_client.c:642: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).
		req->request_length = strlen(new_request);
data/bitlbee-3.6/lib/ini.c:38:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, ini->file, fi.st_size) == fi.st_size) {
data/bitlbee-3.6/lib/ini.c:69: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).
	e = in + strlen(in) - 1;
data/bitlbee-3.6/lib/ini.c:93:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			e = file->cur + strlen(file->cur);
data/bitlbee-3.6/lib/misc.c:55: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).
	gchar *text2 = g_malloc(strlen(text) + 1);
data/bitlbee-3.6/lib/misc.c:158: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).
	char out[strlen(in) + 1];
data/bitlbee-3.6/lib/misc.c:211: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 (g_strncasecmp(ent[i].code, cs, strlen(ent[i].code)) == 0) {
data/bitlbee-3.6/lib/misc.c:279: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).
	t = g_new(char, strlen(s) + 1);
data/bitlbee-3.6/lib/misc.c:304: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).
	char t[strlen(s) + 1];
data/bitlbee-3.6/lib/misc.c:359: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).
	inbytesleft = size ? size : strlen(src);
data/bitlbee-3.6/lib/misc.c:380:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    (read(fd, buf, count) == -1)) {
data/bitlbee-3.6/lib/misc.c:471: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(name) + 1;
data/bitlbee-3.6/lib/misc.c:508: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).
	GString *ret = g_string_sized_new(strlen(msg) + 16);
data/bitlbee-3.6/lib/misc.c:510: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).
	while (strlen(msg) > line_len) {
data/bitlbee-3.6/lib/misc.c:576: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).
		md5_append(&md5_state, (md5_byte_t *) password, strlen(password));
data/bitlbee-3.6/lib/misc.c:650:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int hlen = strlen(header), i;
data/bitlbee-3.6/lib/misc.c:658: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(text);
data/bitlbee-3.6/lib/misc.c:757:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t string_len = strlen(string);
data/bitlbee-3.6/lib/misc.c:758: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).
	size_t ellipsis_len = (ellipsis) ? strlen(ellipsis) : 0;
data/bitlbee-3.6/lib/oauth.c:49: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).
	s = g_new0(char, strlen(url) * 3 + 1);
data/bitlbee-3.6/lib/oauth.c:55: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).
	s = g_new0(char, strlen(params) * 3 + 1);
data/bitlbee-3.6/lib/oauth.c:69: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).
	s = g_realloc(s, strlen(s) * 3 + 1);
data/bitlbee-3.6/lib/oauth.c:97:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int key_len = strlen(key);
data/bitlbee-3.6/lib/oauth.c:123:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int key_len = strlen(key);
data/bitlbee-3.6/lib/oauth.c:186: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).
		s = g_malloc(strlen(l->data) * 3 + 1);
data/bitlbee-3.6/lib/oauth.c:263: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).
	                    "%s", url_p.file, url_p.host, strlen(post), post);
data/bitlbee-3.6/lib/oauth.c:364: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).
		char esc[strlen(kv) * 3 + 1];
data/bitlbee-3.6/lib/oauth2.c:96: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).
	                    "%s", url_p.file, url_p.host, strlen(args_s), args_s);
data/bitlbee-3.6/lib/proxy.c:231:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((pos < sizeof(inputline) - 1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) {
data/bitlbee-3.6/lib/proxy.c:240:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((memcmp(HTTP_GOODSTRING, inputline, strlen(HTTP_GOODSTRING)) == 0) ||
data/bitlbee-3.6/lib/proxy.c:241: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).
	    (memcmp(HTTP_GOODSTRING2, inputline, strlen(HTTP_GOODSTRING2)) == 0)) {
data/bitlbee-3.6/lib/proxy.c:266: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 (send(source, cmd, strlen(cmd), 0) < 0) {
data/bitlbee-3.6/lib/proxy.c:270: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(proxyuser) > 0) {
data/bitlbee-3.6/lib/proxy.c:277: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).
		if (send(source, cmd, strlen(cmd), 0) < 0) {
data/bitlbee-3.6/lib/proxy.c:283: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 (send(source, cmd, strlen(cmd), 0) < 0) {
data/bitlbee-3.6/lib/proxy.c:313:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(source, packet, 9) >= 4 && packet[1] == 90) {
data/bitlbee-3.6/lib/proxy.c:363:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t host_len = strlen(phb->host) + 1; /* include the \0 */
data/bitlbee-3.6/lib/proxy.c:395:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(source, buf, 10) < 10) {
data/bitlbee-3.6/lib/proxy.c:409:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int hlen = strlen(phb->host);
data/bitlbee-3.6/lib/proxy.c:417: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).
	buf[5 + strlen(phb->host)] = phb->port >> 8;
data/bitlbee-3.6/lib/proxy.c:418: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).
	buf[5 + strlen(phb->host) + 1] = phb->port & 0xff;
data/bitlbee-3.6/lib/proxy.c:420:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(source, buf, (5 + strlen(phb->host) + 2)) < (5 + strlen(phb->host) + 2)) {
data/bitlbee-3.6/lib/proxy.c:420:61:  [1] (buffer) strlen:
  Does not handle 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 (write(source, buf, (5 + strlen(phb->host) + 2)) < (5 + strlen(phb->host) + 2)) {
data/bitlbee-3.6/lib/proxy.c:435:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(source, buf, 2) < 2) {
data/bitlbee-3.6/lib/proxy.c:455:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(source, buf, 2) < 2) {
data/bitlbee-3.6/lib/proxy.c:464:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned int i = strlen(proxyuser), j = strlen(proxypass);
data/bitlbee-3.6/lib/proxy.c:464: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).
		unsigned int i = strlen(proxyuser), j = strlen(proxypass);
data/bitlbee-3.6/lib/proxy.c:551: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).
	if (!host || port <= 0 || !func || strlen(host) > 128) {
data/bitlbee-3.6/lib/sha1.c:44:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		key_len = strlen(key_);
data/bitlbee-3.6/lib/sha1.c:47:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		payload_len = strlen(payload);
data/bitlbee-3.6/lib/ssl_gnutls.c:327:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		                       conn->hostname, strlen(conn->hostname));
data/bitlbee-3.6/lib/url.c:40:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(s, set_url, MAX_STRING);
data/bitlbee-3.6/lib/url.c:56:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(s, i + 3, MAX_STRING);
data/bitlbee-3.6/lib/url.c:61:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(url->file, "/");
data/bitlbee-3.6/lib/url.c:63:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(url->file, i, MAX_STRING);
data/bitlbee-3.6/lib/url.c:66:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(url->host, s, MAX_STRING);
data/bitlbee-3.6/lib/url.c:70:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(url->user, url->host, MAX_STRING);
data/bitlbee-3.6/lib/xmltree.c:271: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(in);
data/bitlbee-3.6/lib/xmltree.c:471: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).
			n = strlen(name);
data/bitlbee-3.6/lib/xmltree.c:579:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		node->text_len = strlen(node->text);
data/bitlbee-3.6/nick.c:38: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).
	char *new = g_malloc(strlen(orig) + 1);
data/bitlbee-3.6/nick.c:57:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(store_nick, nick, MAX_NICK_LENGTH);
data/bitlbee-3.6/nick.c:80:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(nick, found_nick, MAX_NICK_LENGTH);
data/bitlbee-3.6/nick.c:82:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(nick, found_nick, MAX_NICK_LENGTH);
data/bitlbee-3.6/nick.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(nick) < (MAX_NICK_LENGTH - 1)) {
data/bitlbee-3.6/nick.c:233: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).
		nick[strlen(nick) + 1] = 0;
data/bitlbee-3.6/nick.c:234: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).
		nick[strlen(nick)] = '_';
data/bitlbee-3.6/nick.c:299: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).
		char *p = nick, *n, tmp[strlen(nick) + 1];
data/bitlbee-3.6/nick.c:354:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!*nick || g_ascii_isdigit(nick[0]) || strlen(nick) > MAX_NICK_LENGTH) {
data/bitlbee-3.6/nick.c:402:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(down) > strlen(nick)) {
data/bitlbee-3.6/nick.c:402: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 (strlen(down) > strlen(nick)) {
data/bitlbee-3.6/nick.c:403: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).
			truncate_utf8(down, strlen(nick));
data/bitlbee-3.6/nick.c:422:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(aa, a, sizeof(aa) - 1);
data/bitlbee-3.6/nick.c:423:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(bb, b, sizeof(bb) - 1);
data/bitlbee-3.6/otr.c:783: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).
	out = g_string_sized_new(strlen(msg) + g_strv_length(lines) * 4);
data/bitlbee-3.6/otr.c:1456:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		                            question, (unsigned char *) secret, strlen(secret));
data/bitlbee-3.6/otr.c:1465:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			                          u->bu->ic, ctx, (unsigned char *) secret, strlen(secret));
data/bitlbee-3.6/otr.c:1472:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			                         u->bu->ic, ctx, (unsigned char *) secret, strlen(secret));
data/bitlbee-3.6/otr.c:1679:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(prefix);
data/bitlbee-3.6/otr.c:1751:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(prefix);
data/bitlbee-3.6/otr.c:2024:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(filename, "/tmp/bitlbee-XXXXXX", 128);
data/bitlbee-3.6/otr.c:2107:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fda, buf, 1024)) > 0) {
data/bitlbee-3.6/otr.c:2120: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 n = strlen(s);
data/bitlbee-3.6/protocols/account.c:40: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).
	char tag[strlen(prpl->name) + 10];
data/bitlbee-3.6/protocols/account.c:96: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).
		char *numpos = tag + strlen(tag);
data/bitlbee-3.6/protocols/jabber/conference.c:86: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).
	sha1_append(&sum, (uint8_t *) ic->acc->user, strlen(ic->acc->user));
data/bitlbee-3.6/protocols/jabber/conference.c:88: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).
	sha1_append(&sum, (uint8_t *) who, strlen(who));
data/bitlbee-3.6/protocols/jabber/hipchat.c:103: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).
	char *new = g_malloc(strlen(name) + 1);
data/bitlbee-3.6/protocols/jabber/io.c:36: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).
	st = jabber_write(ic, buf, strlen(buf));
data/bitlbee-3.6/protocols/jabber/io.c:156: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).
		size = strlen(buf);
data/bitlbee-3.6/protocols/jabber/io.c:233:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		st = read(jd->fd, buf, sizeof(buf));
data/bitlbee-3.6/protocols/jabber/io.c:567: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).
	st = jabber_write(ic, greet, strlen(greet));
data/bitlbee-3.6/protocols/jabber/io.c:592: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).
			jabber_write(ic, eos, strlen(eos));
data/bitlbee-3.6/protocols/jabber/iq.c:96: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(buf) >= 5) {
data/bitlbee-3.6/protocols/jabber/iq.c:158: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 bare_len = strlen(jd->me);
data/bitlbee-3.6/protocols/jabber/iq.c:253:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sha1_append(&sha, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/jabber/iq.c:254: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).
		sha1_append(&sha, (unsigned char *) ic->acc->pass, strlen(ic->acc->pass));
data/bitlbee-3.6/protocols/jabber/jabber.c:311:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	md5_append(&jd->cached_id_prefix, (unsigned char *) jd->username, strlen(jd->username));
data/bitlbee-3.6/protocols/jabber/jabber.c:312:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	md5_append(&jd->cached_id_prefix, (unsigned char *) jd->server, strlen(jd->server));
data/bitlbee-3.6/protocols/jabber/jabber.c:314:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	md5_append(&jd->cached_id_prefix, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/jabber/jabber.c:396: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).
		return jabber_write(ic, message, strlen(message));
data/bitlbee-3.6/protocols/jabber/jabber_util.c:203:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strncmp(s, JABBER_CACHED_ID, strlen(JABBER_CACHED_ID)) != 0) {
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:475: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).
			.addrlen = strlen(bt->pseudoaddr),
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:878:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sh->port, port, sizeof(sh->port));
data/bitlbee-3.6/protocols/jabber/s5bytestream.c:903:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(sh->port, port, sizeof(sh->port));
data/bitlbee-3.6/protocols/jabber/sasl.c:144: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).
		reply->text_len = strlen(reply->text);
data/bitlbee-3.6/protocols/jabber/sasl.c:195: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).
		reply->text_len = strlen(reply->text);
data/bitlbee-3.6/protocols/jabber/sasl.c:217: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(field);
data/bitlbee-3.6/protocols/jabber/sasl.c:224:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(field) + 1;
data/bitlbee-3.6/protocols/jabber/sasl.c:331: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).
		md5_append(&H, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/jabber/sasl.c:339: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).
		md5_append(&A1, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/jabber/sasl.c:349: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).
		md5_append(&A2, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/jabber/sasl.c:359: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).
		md5_append(&H, (unsigned char *) s, strlen(s));
data/bitlbee-3.6/protocols/nogaim.c:805:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (g_strncasecmp(m->data, away, strlen(m->data)) == 0) {
data/bitlbee-3.6/protocols/nogaim.c:809:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (message && strlen(m->data) == strlen(away)) {
data/bitlbee-3.6/protocols/nogaim.c:809: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).
			if (message && strlen(m->data) == strlen(away)) {
data/bitlbee-3.6/protocols/nogaim.c:821:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (g_strncasecmp(away, imc_away_alias_list[i][j], strlen(imc_away_alias_list[i][j])) == 0) {
data/bitlbee-3.6/protocols/nogaim.c:822:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				keep_message = strlen(away) != strlen(imc_away_alias_list[i][j]);
data/bitlbee-3.6/protocols/nogaim.c:822: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).
				keep_message = strlen(away) != strlen(imc_away_alias_list[i][j]);
data/bitlbee-3.6/protocols/purple/ft.c:181:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(px->fd, buf, n) == n && ft->write(ft, buf, n)) {
data/bitlbee-3.6/protocols/purple/purple.c:1696:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					n = strlen(value) - 1;
data/bitlbee-3.6/protocols/twitter/twitter.c:238: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).
		if (t < 0 || strlen(v) == 0) {
data/bitlbee-3.6/protocols/twitter/twitter.c:580: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).
	char name[strlen(acc->user) + 9];
data/bitlbee-3.6/protocols/twitter/twitter.c:622: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).
		td->prefix[strlen(url.host) - 4] = '\0';
data/bitlbee-3.6/protocols/twitter/twitter.c:624: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 ((s = strrchr(td->prefix, '.')) && strlen(s) > 4) {
data/bitlbee-3.6/protocols/twitter/twitter.c:705:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int plen = strlen(td->prefix);
data/bitlbee-3.6/protocols/twitter/twitter.c:711: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).
			char pin[strlen(message) + 1], *s;
data/bitlbee-3.6/protocols/twitter/twitter.c:1028: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).
		s = cmd[0] + strlen(cmd[0]) - 1;
data/bitlbee-3.6/protocols/twitter/twitter_http.c:105:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char userpass[strlen(ic->acc->user) + 2 + strlen(ic->acc->pass)];
data/bitlbee-3.6/protocols/twitter/twitter_http.c:105:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char userpass[strlen(ic->acc->user) + 2 + strlen(ic->acc->pass)];
data/bitlbee-3.6/protocols/twitter/twitter_http.c:109:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		userpass_base64 = base64_encode((unsigned char *) userpass, strlen(userpass));
data/bitlbee-3.6/protocols/twitter/twitter_http.c:120: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).
		                       strlen(url_arguments), url_arguments);
data/bitlbee-3.6/protocols/twitter/twitter_http.c:154:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *key_encoded = g_strndup(key, 3 * strlen(key));
data/bitlbee-3.6/protocols/twitter/twitter_http.c:157:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *value_encoded = g_strndup(value, 3 * strlen(value));
data/bitlbee-3.6/protocols/twitter/twitter_http.c:161: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(url) != 0) {
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:201:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(path, s + 1, sizeof(path) - 1);
data/bitlbee-3.6/protocols/twitter/twitter_lib.c:770: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).
			                      disp, pos + strlen(kort));
data/bitlbee-3.6/root_commands.c:57: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(cmd[0]);
data/bitlbee-3.6/root_commands.c:84: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).
	for (i = 1; (cmd[i] != NULL && (strlen(param) < (sizeof(param) - 1))); i++) {
data/bitlbee-3.6/root_commands.c:86:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(param, " ");
data/bitlbee-3.6/root_commands.c:88:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(param, cmd[i], sizeof(param) - strlen(param) - 1);
data/bitlbee-3.6/root_commands.c:88:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat(param, cmd[i], sizeof(param) - strlen(param) - 1);
data/bitlbee-3.6/root_commands.c:414: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(cmd[1]);
data/bitlbee-3.6/root_commands.c:562: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(cmd[2]);
data/bitlbee-3.6/root_commands.c:625: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(cmd[1]);
data/bitlbee-3.6/root_commands.c:653: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).
		    (len = strlen(cmd[1])) &&
data/bitlbee-3.6/root_commands.c:664: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(cmd[2]);
data/bitlbee-3.6/root_commands.c:1466: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(cmd[1]);
data/bitlbee-3.6/set.c:269:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(s, " ");
data/bitlbee-3.6/storage_xml.c:243:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(xd->given_nick, my_nick, MAX_NICK_LENGTH);
data/bitlbee-3.6/storage_xml.c:259:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((st = read(fd, buf, sizeof(buf))) > 0) {
data/bitlbee-3.6/storage_xml.c:339: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).
		md5_append(&md5_state, (md5_byte_t *) irc->password, strlen(irc->password));
data/bitlbee-3.6/storage_xml.c:364:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pass_b64 = base64_encode((unsigned char *)acc->pass, strlen(acc->pass));
data/bitlbee-3.6/storage_xml.c:366: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).
			pass_len = arc_encode(acc->pass, strlen(acc->pass), (unsigned char **) &pass_cr, irc->password, 12);
data/bitlbee-3.6/storage_xml.c:462: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(xml);
data/bitlbee-3.6/storage_xml.c:469: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).
	path2 = g_strndup(path, strlen(path) - 7);
data/bitlbee-3.6/tests/check_md5.c:42:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		md5_append(&state, (const md5_byte_t *) tests[i].str, strlen(tests[i].str));
data/bitlbee-3.6/unix.c:242: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).
		pass_len = arc_encode(argv[4], strlen(argv[4]), &pass_cr, argv[3], 12);
data/bitlbee-3.6/unix.c:262: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).
		md5_append(&md5_state, (md5_byte_t *) argv[3], strlen(argv[3]));
data/bitlbee-3.6/unix.c:348:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((bytes = read(mapsfd, buf, sizeof(buf))) > 0) {
data/bitlbee-3.6/utils/bitlbeed.c:122:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(local_addr.sun_path, set->interface, sizeof(local_addr.sun_path) - 1);
data/bitlbee-3.6/utils/bitlbeed.c:371: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).
	l = strlen(line);
data/bitlbee-3.6/utils/bitlbeed.c:377:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(line, "\n");

ANALYSIS SUMMARY:

Hits = 595
Lines analyzed = 41823 in approximately 1.16 seconds (36057 lines/second)
Physical Source Lines of Code (SLOC) = 29136
Hits@level = [0] 109 [1] 244 [2] 273 [3]  21 [4]  55 [5]   2
Hits@level+ = [0+] 704 [1+] 595 [2+] 351 [3+]  78 [4+]  57 [5+]   2
Hits/KSLOC@level+ = [0+] 24.1625 [1+] 20.4215 [2+] 12.047 [3+] 2.6771 [4+] 1.95634 [5+] 0.0686436
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.