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/ngircd-26/src/portab/portab.h
Examining data/ngircd-26/src/portab/splint.h
Examining data/ngircd-26/src/portab/strdup.c
Examining data/ngircd-26/src/portab/strlcpy.c
Examining data/ngircd-26/src/portab/strndup.c
Examining data/ngircd-26/src/portab/strtok_r.c
Examining data/ngircd-26/src/portab/vsnprintf.c
Examining data/ngircd-26/src/portab/waitpid.c
Examining data/ngircd-26/src/portab/portabtest.c
Examining data/ngircd-26/src/tool/tool.h
Examining data/ngircd-26/src/tool/tool.c
Examining data/ngircd-26/src/ipaddr/ng_ipaddr.h
Examining data/ngircd-26/src/ipaddr/ng_ipaddr.c
Examining data/ngircd-26/src/ngircd/ngircd.h
Examining data/ngircd-26/src/ngircd/array.h
Examining data/ngircd-26/src/ngircd/channel.h
Examining data/ngircd-26/src/ngircd/class.h
Examining data/ngircd-26/src/ngircd/client.h
Examining data/ngircd-26/src/ngircd/client-cap.h
Examining data/ngircd-26/src/ngircd/conf.h
Examining data/ngircd-26/src/ngircd/conf-ssl.h
Examining data/ngircd-26/src/ngircd/conn.h
Examining data/ngircd-26/src/ngircd/conn-encoding.h
Examining data/ngircd-26/src/ngircd/conn-func.h
Examining data/ngircd-26/src/ngircd/conn-ssl.h
Examining data/ngircd-26/src/ngircd/conn-zip.h
Examining data/ngircd-26/src/ngircd/defines.h
Examining data/ngircd-26/src/ngircd/hash.h
Examining data/ngircd-26/src/ngircd/io.h
Examining data/ngircd-26/src/ngircd/irc.h
Examining data/ngircd-26/src/ngircd/irc-cap.h
Examining data/ngircd-26/src/ngircd/irc-channel.h
Examining data/ngircd-26/src/ngircd/irc-encoding.h
Examining data/ngircd-26/src/ngircd/irc-info.h
Examining data/ngircd-26/src/ngircd/irc-login.h
Examining data/ngircd-26/src/ngircd/irc-macros.h
Examining data/ngircd-26/src/ngircd/irc-metadata.h
Examining data/ngircd-26/src/ngircd/irc-mode.h
Examining data/ngircd-26/src/ngircd/irc-op.h
Examining data/ngircd-26/src/ngircd/irc-oper.h
Examining data/ngircd-26/src/ngircd/irc-server.h
Examining data/ngircd-26/src/ngircd/irc-write.h
Examining data/ngircd-26/src/ngircd/lists.h
Examining data/ngircd-26/src/ngircd/log.h
Examining data/ngircd-26/src/ngircd/login.h
Examining data/ngircd-26/src/ngircd/match.h
Examining data/ngircd-26/src/ngircd/messages.h
Examining data/ngircd-26/src/ngircd/numeric.h
Examining data/ngircd-26/src/ngircd/op.h
Examining data/ngircd-26/src/ngircd/pam.h
Examining data/ngircd-26/src/ngircd/parse.h
Examining data/ngircd-26/src/ngircd/proc.h
Examining data/ngircd-26/src/ngircd/resolve.h
Examining data/ngircd-26/src/ngircd/sighandlers.h
Examining data/ngircd-26/src/ngircd/ngircd.c
Examining data/ngircd-26/src/ngircd/array.c
Examining data/ngircd-26/src/ngircd/channel.c
Examining data/ngircd-26/src/ngircd/class.c
Examining data/ngircd-26/src/ngircd/client.c
Examining data/ngircd-26/src/ngircd/client-cap.c
Examining data/ngircd-26/src/ngircd/conf.c
Examining data/ngircd-26/src/ngircd/conn.c
Examining data/ngircd-26/src/ngircd/conn-encoding.c
Examining data/ngircd-26/src/ngircd/conn-func.c
Examining data/ngircd-26/src/ngircd/conn-ssl.c
Examining data/ngircd-26/src/ngircd/conn-zip.c
Examining data/ngircd-26/src/ngircd/hash.c
Examining data/ngircd-26/src/ngircd/io.c
Examining data/ngircd-26/src/ngircd/irc.c
Examining data/ngircd-26/src/ngircd/irc-cap.c
Examining data/ngircd-26/src/ngircd/irc-channel.c
Examining data/ngircd-26/src/ngircd/irc-encoding.c
Examining data/ngircd-26/src/ngircd/irc-info.c
Examining data/ngircd-26/src/ngircd/irc-login.c
Examining data/ngircd-26/src/ngircd/irc-metadata.c
Examining data/ngircd-26/src/ngircd/irc-mode.c
Examining data/ngircd-26/src/ngircd/irc-op.c
Examining data/ngircd-26/src/ngircd/irc-oper.c
Examining data/ngircd-26/src/ngircd/irc-server.c
Examining data/ngircd-26/src/ngircd/irc-write.c
Examining data/ngircd-26/src/ngircd/lists.c
Examining data/ngircd-26/src/ngircd/log.c
Examining data/ngircd-26/src/ngircd/login.c
Examining data/ngircd-26/src/ngircd/match.c
Examining data/ngircd-26/src/ngircd/numeric.c
Examining data/ngircd-26/src/ngircd/op.c
Examining data/ngircd-26/src/ngircd/pam.c
Examining data/ngircd-26/src/ngircd/parse.c
Examining data/ngircd-26/src/ngircd/proc.c
Examining data/ngircd-26/src/ngircd/sighandlers.c
Examining data/ngircd-26/src/ngircd/resolve.c
Examining data/ngircd-26/contrib/MacOSX/config.h

FINAL RESULTS:

data/ngircd-26/src/ngircd/client.c:349:3:  [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.
		snprintf(cloak, GETID_LEN, Conf_CloakHost, Hash(cloak));
data/ngircd-26/src/ngircd/client.c:840:4:  [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.
			snprintf(Client->cloaked, CLIENT_HOST_LEN,
data/ngircd-26/src/ngircd/conf.c:2217: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( msg, MAX_LOG_MSG_LEN, Format, ap );
data/ngircd-26/src/ngircd/conn.c:830: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.
	r = vsnprintf(buffer, COMMAND_LEN - 2, Format, ap);
data/ngircd-26/src/ngircd/conn.c:862: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 (buffer + sizeof(buffer) - strlen(CUT_TXTSUFFIX) - 2 - 1,
data/ngircd-26/src/ngircd/irc-info.c:318:3:  [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.
		snprintf(str, sizeof(str), RPL_WHOISCHANNELS_MSG,
data/ngircd-26/src/ngircd/irc-info.c:350:5:  [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.
				snprintf(str, sizeof(str), RPL_WHOISCHANNELS_MSG,
data/ngircd-26/src/ngircd/irc-info.c:820:2:  [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.
	snprintf(rpl, sizeof(rpl), RPL_NAMREPLY_MSG, Client_ID(from), "*", "*");
data/ngircd-26/src/ngircd/irc-info.c:835:5:  [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.
				snprintf(rpl, sizeof(rpl), RPL_NAMREPLY_MSG,
data/ngircd-26/src/ngircd/irc-info.c:1517:2:  [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.
	snprintf(str, sizeof(str), RPL_NAMREPLY_MSG, Client_ID(Client), "=",
data/ngircd-26/src/ngircd/irc-info.c:1539:5:  [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.
				snprintf(str, sizeof(str), RPL_NAMREPLY_MSG,
data/ngircd-26/src/ngircd/irc-mode.c:499: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(the_modes, set ? "+" : "-");
data/ngircd-26/src/ngircd/irc-write.c:69: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:106: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:147: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:189: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:238: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:295: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:332: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:372: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:449: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(buffer, sizeof(buffer), Format, ap);
data/ngircd-26/src/ngircd/irc-write.c:511: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(msg, sizeof(msg), Format, ap);
data/ngircd-26/src/ngircd/log.c:144: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( msg, MAX_LOG_MSG_LEN, Format, ap );
data/ngircd-26/src/ngircd/log.c:198: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( msg, MAX_LOG_MSG_LEN, Format, ap );
data/ngircd-26/src/ngircd/log.c:267: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(msg, MAX_LOG_MSG_LEN, Format, ap);
data/ngircd-26/src/ngircd/log.c:301: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(msg, MAX_LOG_MSG_LEN, Format, ap);
data/ngircd-26/src/portab/portab.h:142:12:  [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.
extern int snprintf PARAMS(( char *str, size_t count, const char *fmt, ... ));
data/ngircd-26/src/portab/portab.h:167:12:  [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.
extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list args ));
data/ngircd-26/src/portab/portabtest.c:151: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.
	r = vsnprintf(str, sizeof(str), Format, ap);
data/ngircd-26/src/portab/vsnprintf.c:768:1:  [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 (char *str, size_t count, const char *fmt, va_list args)
data/ngircd-26/src/portab/vsnprintf.c:777:1:  [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.
snprintf(char *str, size_t count, const char *fmt, ...)
data/ngircd-26/src/portab/vsnprintf.c:780:1:  [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.
snprintf(str, count, fmt, va_alist)
data/ngircd-26/src/portab/vsnprintf.c:791:8:  [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.
	ret = vsnprintf(str, count, fmt, ap);
data/ngircd-26/src/ngircd/conf.c:740:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	char random[RANDOM_SALT_LEN + 1];
data/ngircd-26/src/ngircd/conf.c:785:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	strlcpy(Conf_CloakHostSalt, ngt_RandomStr(random, RANDOM_SALT_LEN),
data/ngircd-26/src/ngircd/conn.c:143: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.
	e = getenv("LISTEN_PID");
data/ngircd-26/src/ngircd/conn.c:147: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.
	e = getenv("LISTEN_FDS");
data/ngircd-26/src/ngircd/ngircd.c:624:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed);
data/ngircd-26/src/ngircd/ngircd.c:641:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(rand() ^ (unsigned)getpid() ^ (unsigned)time(NULL));
data/ngircd-26/src/ngircd/ngircd.c:688:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(Conf_Chroot) != 0) {
data/ngircd-26/src/ngircd/proc.c:83:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed ^ (unsigned int)time(NULL) ^ getpid());
data/ngircd-26/src/tool/tool.c:146:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned)(t.tv_usec * t.tv_sec));
data/ngircd-26/src/ipaddr/ng_ipaddr.c:28: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 portstr[64];
data/ngircd-26/src/ipaddr/ng_ipaddr.c:54: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(addr, res0->ai_addr, res0->ai_addrlen);
data/ngircd-26/src/ipaddr/ng_ipaddr.c:137: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 strbuf[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ipaddr/ng_ipaddr.c:163: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 tmp[NG_INET_ADDRSTRLEN] = "0";
data/ngircd-26/src/ngircd/array.c:176: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(ptr + used, src, len);
data/ngircd-26/src/ngircd/channel.c:101: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[COMMAND_LEN], name[CHANNEL_NAME_LEN];
data/ngircd-26/src/ngircd/channel.c:669: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 x[2];
data/ngircd-26/src/ngircd/channel.c:717: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 x[2];
data/ngircd-26/src/ngircd/channel.c:1258: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_name, line[COMMAND_LEN], *nick, *pass;
data/ngircd-26/src/ngircd/channel.c:1275: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).
	fd = fopen(file_name, "r");
data/ngircd-26/src/ngircd/channel.h:29: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[CHANNEL_NAME_LEN];	/* Name of the channel */
data/ngircd-26/src/ngircd/channel.h: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 modes[CHANNEL_MODE_LEN];	/* Channel modes */
data/ngircd-26/src/ngircd/channel.h:36: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 topic_who[CLIENT_NICK_LEN];/* Nickname of user that set topic */
data/ngircd-26/src/ngircd/channel.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 key[CLIENT_PASS_LEN];	/* Channel key ("password", mode "k" ) */
data/ngircd-26/src/ngircd/channel.h:51: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[CHANNEL_MODE_LEN];	/* User-Modes in Channel */
data/ngircd-26/src/ngircd/class.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 str[COMMAND_LEN];
data/ngircd-26/src/ngircd/class.c:82: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 reject[COMMAND_LEN];
data/ngircd-26/src/ngircd/class.c: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 mask[MASK_LEN];
data/ngircd-26/src/ngircd/class.c:114: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 mask[MASK_LEN];
data/ngircd-26/src/ngircd/client.c:233: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 msg[COMMAND_LEN];
data/ngircd-26/src/ngircd/client.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 cloak[GETID_LEN];
data/ngircd-26/src/ngircd/client.c:552: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 x[2];
data/ngircd-26/src/ngircd/client.c:573: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 x[2], *p;
data/ngircd-26/src/ngircd/client.c:600: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 search_id[CLIENT_ID_LEN], *ptr;
data/ngircd-26/src/ngircd/client.c:821: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 Cloak_Buffer[CLIENT_HOST_LEN];
data/ngircd-26/src/ngircd/client.c:922: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 Mask_Buffer[GETID_LEN];
data/ngircd-26/src/ngircd/client.c:950: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 Mask_Buffer[GETID_LEN];
data/ngircd-26/src/ngircd/client.c:1064: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/client.c:1291: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 info[COMMAND_LEN];
data/ngircd-26/src/ngircd/client.c:1299: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(info, "Access denied: Bad password?");
data/ngircd-26/src/ngircd/client.h:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id[CLIENT_ID_LEN];		/* nick (user) / ID (server) */
data/ngircd-26/src/ngircd/client.h:51: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[CLIENT_HOST_LEN];	/* hostname of the client */
data/ngircd-26/src/ngircd/client.h:54: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[CLIENT_USER_LEN];	/* user name ("login") */
data/ngircd-26/src/ngircd/client.h:56: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 orig_user[CLIENT_AUTHUSER_LEN];
data/ngircd-26/src/ngircd/client.h: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 info[CLIENT_INFO_LEN];	/* long user name (user) / info text (server) */
data/ngircd-26/src/ngircd/client.h:60: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[CLIENT_MODE_LEN];	/* client modes */
data/ngircd-26/src/ngircd/client.h:63: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 flags[CLIENT_FLAGS_LEN];	/* flags of the client */
data/ngircd-26/src/ngircd/client.h:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id[CLIENT_NICK_LEN];	/* client nickname */
data/ngircd-26/src/ngircd/client.h: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 host[CLIENT_HOST_LEN];	/* hostname of the client */
data/ngircd-26/src/ngircd/client.h:80: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[CLIENT_USER_LEN];	/* user name ("login") */
data/ngircd-26/src/ngircd/client.h:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char info[CLIENT_INFO_LEN];	/* long user name */
data/ngircd-26/src/ngircd/client.h:82: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 server[CLIENT_HOST_LEN];	/* server name */
data/ngircd-26/src/ngircd/conf.c:50: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 Conf_MotdFile[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.c:51: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 Conf_HelpFile[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.c:52: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 Conf_IncludeDir[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.c:163: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(Filename, "r");
data/ngircd-26/src/ngircd/conf.c:224:10:  [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).
		port = atoi(ptr);
data/ngircd-26/src/ngircd/conf.c:740: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 random[RANDOM_SALT_LEN + 1];
data/ngircd-26/src/ngircd/conf.c:813: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(Conf_PAMServiceName, "ngircd");
data/ngircd-26/src/ngircd/conf.c:856: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/conf.c:863: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(Filename, "r");
data/ngircd-26/src/ngircd/conf.c:900: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 *ptr, file[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.c:909: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).
	fd = fopen( NGIRCd_ConfFile, "r" );
data/ngircd-26/src/ngircd/conf.c:993:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = fopen(file, "r");
data/ngircd-26/src/ngircd/conf.c:1065: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 section[LINE_LEN], str[LINE_LEN], *var, *arg, *ptr;
data/ngircd-26/src/ngircd/conf.c:1212:6:  [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).
	if (atoi(Arg) != 0)
data/ngircd-26/src/ngircd/conf.c:1230: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).
	new = (unsigned) atoi(Arg) + 1;
data/ngircd-26/src/ngircd/conf.c:1424:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			Conf_GID = (unsigned int)atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1437:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			Conf_UID = (unsigned int)atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1465:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		Conf_ConnectRetry = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1475: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).
		Conf_IdleTimeout = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1481:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		Conf_MaxConnections = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1487:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		Conf_MaxConnectionsIP = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1493: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).
		Conf_MaxJoins = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1503: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).
		Conf_MaxListSize = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1509:25:  [2] (integer) atol:
  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).
		Conf_MaxPenaltyTime = atol(Arg);
data/ngircd-26/src/ngircd/conf.c:1515: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).
		Conf_PingTimeout = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1525: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).
		Conf_PongTimeout = atoi(Arg);
data/ngircd-26/src/ngircd/conf.c:1894:10:  [2] (integer) atol:
  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).
		port = atol( Arg );
data/ngircd-26/src/ngircd/conf.c:1911: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).
		New_Server.group = atoi( Arg );
data/ngircd-26/src/ngircd/conf.c:2018:36:  [2] (integer) atol:
  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).
		chan->maxusers = (unsigned long) atol(Arg);
data/ngircd-26/src/ngircd/conf.c:2207: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 msg[MAX_LOG_MSG_LEN];
data/ngircd-26/src/ngircd/conf.h:37: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[CLIENT_PASS_LEN];	/**< Name (ID) */
data/ngircd-26/src/ngircd/conf.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 pwd[CLIENT_PASS_LEN];	/**< Password */
data/ngircd-26/src/ngircd/conf.h: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 host[HOST_LEN];		/**< Hostname */
data/ngircd-26/src/ngircd/conf.h:50: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[CLIENT_ID_LEN];	/**< IRC client ID */
data/ngircd-26/src/ngircd/conf.h:51: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 pwd_in[CLIENT_PASS_LEN];	/**< Password which must be received */
data/ngircd-26/src/ngircd/conf.h:52: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 pwd_out[CLIENT_PASS_LEN];	/**< Password to send to the peer */
data/ngircd-26/src/ngircd/conf.h:65: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 svs_mask[CLIENT_ID_LEN];	/**< Mask of nicknames that should be
data/ngircd-26/src/ngircd/conf.h:85: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[CHANNEL_NAME_LEN];	/**< Name of the channel */
data/ngircd-26/src/ngircd/conf.h:86: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[512];		/**< Initial channel modes to evaluate */
data/ngircd-26/src/ngircd/conf.h:87: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[CLIENT_PASS_LEN];      /**< Channel key ("password", mode "k" ) */
data/ngircd-26/src/ngircd/conf.h:88: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 topic[COMMAND_LEN];	/**< Initial topic */
data/ngircd-26/src/ngircd/conf.h:89: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 keyfile[512];		/**< Path and name of channel key file */
data/ngircd-26/src/ngircd/conf.h:100: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.
GLOBAL char Conf_ServerName[CLIENT_ID_LEN];
data/ngircd-26/src/ngircd/conf.h:103: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.
GLOBAL char Conf_ServerInfo[CLIENT_INFO_LEN];
data/ngircd-26/src/ngircd/conf.h:106: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.
GLOBAL char Conf_ServerPwd[CLIENT_PASS_LEN];
data/ngircd-26/src/ngircd/conf.h:109: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.
GLOBAL char Conf_ServerAdmin1[CLIENT_INFO_LEN];
data/ngircd-26/src/ngircd/conf.h:110: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.
GLOBAL char Conf_ServerAdmin2[CLIENT_INFO_LEN];
data/ngircd-26/src/ngircd/conf.h:111: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.
GLOBAL char Conf_ServerAdminMail[CLIENT_INFO_LEN];
data/ngircd-26/src/ngircd/conf.h:114: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.
GLOBAL char Conf_Network[CLIENT_INFO_LEN];
data/ngircd-26/src/ngircd/conf.h:133: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.
GLOBAL char Conf_Chroot[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.h:136: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.
GLOBAL char Conf_PidFile[FNAME_LEN];
data/ngircd-26/src/ngircd/conf.h:157: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.
GLOBAL char Conf_AllowedChannelTypes[8];
data/ngircd-26/src/ngircd/conf.h:178: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.
GLOBAL char Conf_CloakHost[CLIENT_ID_LEN];
data/ngircd-26/src/ngircd/conf.h:181: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.
GLOBAL char Conf_CloakHostModeX[CLIENT_ID_LEN];
data/ngircd-26/src/ngircd/conf.h:184: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.
GLOBAL char Conf_CloakHostSalt[CLIENT_ID_LEN];
data/ngircd-26/src/ngircd/conf.h:208: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.
GLOBAL char Conf_PAMServiceName[MAX_PAM_SERVICE_NAME_LEN];
data/ngircd-26/src/ngircd/conf.h:214: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.
GLOBAL char Conf_DefaultUserModes[CLIENT_MODE_LEN];
data/ngircd-26/src/ngircd/conf.h:281: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.
GLOBAL char Conf_WebircPwd[CLIENT_PASS_LEN];
data/ngircd-26/src/ngircd/conn-encoding.c:35: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 Encoding_Buffer[COMMAND_LEN];
data/ngircd-26/src/ngircd/conn-encoding.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 client_enc[25], server_enc[25];
data/ngircd-26/src/ngircd/conn-ssl.c:91: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).
	int fd = open(name, O_RDONLY);
data/ngircd-26/src/ngircd/conn-ssl.c:173: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, (char *)(array_start(pass)), size);
data/ngircd-26/src/ngircd/conn-ssl.c:197: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(Conf_SSLOptions.DHFile, "r");
data/ngircd-26/src/ngircd/conn-ssl.c:792: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 digest[EVP_MAX_MD_SIZE];
data/ngircd-26/src/ngircd/conn-ssl.c:811: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 digest[MAX_HASH_SIZE];
data/ngircd-26/src/ngircd/conn-zip.c:128: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 zipbuf[WRITEBUFFER_SLINK_LEN];
data/ngircd-26/src/ngircd/conn-zip.c:197: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 unzipbuf[READBUFFER_LEN];
data/ngircd-26/src/ngircd/conn.c:150:10:  [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).
	count = atoi(e);
data/ngircd-26/src/ngircd/conn.c:813: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/conn.c:1346: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 ip_str[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ngircd/conn.c:1567: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 readbuf[READBUFFER_LEN];
data/ngircd-26/src/ngircd/conn.c:1868: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 msg[64];
data/ngircd-26/src/ngircd/conn.c:1979: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 ip_str[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ngircd/conn.c:2224: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(&Conf_Server[i].dst_addr, &dest_addrs[1], len);
data/ngircd-26/src/ngircd/conn.c:2245: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 readbuf[HOST_LEN + 2 + CLIENT_USER_LEN];
data/ngircd-26/src/ngircd/conn.c:2248: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 readbuf[HOST_LEN + 1];
data/ngircd-26/src/ngircd/conn.c:2363: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/conn.h:78: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[HOST_LEN];		/* Hostname */
data/ngircd-26/src/ngircd/hash.c: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 buffer[COMMAND_LEN];
data/ngircd-26/src/ngircd/io.c:239:16:  [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).
	io_masterfd = open("/dev/poll", O_RDWR);
data/ngircd-26/src/ngircd/irc-cap.c:60: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 tmp[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-cap.c:101: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 txt[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-channel.c:187: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[COMMAND_LEN], *ptr = NULL;
data/ngircd-26/src/ngircd/irc-channel.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 modes[CHANNEL_MODE_LEN], str[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-channel.c:660: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_add[COMMAND_LEN], l[16];
data/ngircd-26/src/ngircd/irc-channel.c:700:32:  [2] (integer) atol:
  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).
					Channel_SetMaxUsers(chan, atol(Req->argv[3]));
data/ngircd-26/src/ngircd/irc-encoding.c:44: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 encoding[20];
data/ngircd-26/src/ngircd/irc-info.c:143: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 flags[10];
data/ngircd-26/src/ngircd/irc-info.c:210: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 flags[3];
data/ngircd-26/src/ngircd/irc-info.c:296: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-info.c:442: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_str[60];
data/ngircd-26/src/ngircd/irc-info.c:459: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-info.c:460: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 c_str[128];
data/ngircd-26/src/ngircd/irc-info.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 msg[510];
data/ngircd-26/src/ngircd/irc-info.c:562: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_str[60];
data/ngircd-26/src/ngircd/irc-info.c:596: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 rpl[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-info.c:779: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 rpl[COMMAND_LEN], *ptr;
data/ngircd-26/src/ngircd/irc-info.c:1004: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_str[64];
data/ngircd-26/src/ngircd/irc-info.c:1036: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 rpl[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-info.c:1191: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 mask[COMMAND_LEN], *query;
data/ngircd-26/src/ngircd/irc-info.c:1296: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 tok_buf[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-info.c:1331:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		max = atoi(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-info.c:1497: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-login.c:98:14:  [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).
		protolow = atoi(&Req->argv[1][2]);
data/ngircd-26/src/ngircd/irc-login.c:100:15:  [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).
		protohigh = atoi(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-login.c:298:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			hops = atoi(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-login.c:301:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			token = atoi(Req->argv[4]);
data/ngircd-26/src/ngircd/irc-login.c:310:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			token = atoi(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-login.c:552:10:  [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).
	token = atoi(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-login.c:553:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	hops = atoi(Req->argv[4]);
data/ngircd-26/src/ngircd/irc-login.c:650: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 quitmsg[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-login.c:861:20:  [2] (integer) atol:
  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).
		if (auth_ping == atol(Req->argv[0])) {
data/ngircd-26/src/ngircd/irc-metadata.c:46: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 new_flags[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-mode.c: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 the_modes[COMMAND_LEN], x[2], *mode_ptr;
data/ngircd-26/src/ngircd/irc-mode.c:379: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 the_modes[COMMAND_LEN], the_args[COMMAND_LEN], argadd[CLIENT_PASS_LEN];
data/ngircd-26/src/ngircd/irc-mode.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 the_modes[COMMAND_LEN], the_args[COMMAND_LEN], x[2],
data/ngircd-26/src/ngircd/irc-mode.c:657:10:  [2] (integer) atol:
  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).
					l = atol(Req->argv[arg_arg]);
data/ngircd-26/src/ngircd/irc-mode.c:984: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 mask[MASK_LEN];
data/ngircd-26/src/ngircd/irc-mode.c:1050: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 mask[MASK_LEN];
data/ngircd-26/src/ngircd/irc-oper.c:217:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if ((Req->argc > 1) && atoi(Req->argv[1]) < 1)
data/ngircd-26/src/ngircd/irc-oper.c:271:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    (Req->argv[0], (UINT16) atoi(Req->argv[1])))
data/ngircd-26/src/ngircd/irc-oper.c:279:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    (Req->argv[0], (UINT16) atoi(Req->argv[1]), Req->argv[2],
data/ngircd-26/src/ngircd/irc-oper.c:388: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 reason[COMMAND_LEN], class_c;
data/ngircd-26/src/ngircd/irc-oper.c:444:13:  [2] (integer) atol:
  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).
		timeout = atol(Req->argv[1]);
data/ngircd-26/src/ngircd/irc-oper.c:454:23:  [2] (integer) atol:
  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).
				    Req->argv[2], atol(Req->argv[1]));
data/ngircd-26/src/ngircd/irc-server.c:51: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[100];
data/ngircd-26/src/ngircd/irc-server.c:133:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			Client_SetToken(Client, atoi(Req->argv[1]));
data/ngircd-26/src/ngircd/irc-server.c:210:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					   atoi(Req->argv[1]), atoi(Req->argv[2]),
data/ngircd-26/src/ngircd/irc-server.c:210:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					   atoi(Req->argv[1]), atoi(Req->argv[2]),
data/ngircd-26/src/ngircd/irc-server.c:253: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_in[COMMAND_LEN], nick_out[COMMAND_LEN], *channame, *ptr, modes[8];
data/ngircd-26/src/ngircd/irc-server.c:368: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 msg[COMMAND_LEN], logmsg[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc-write.c:58: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[1000];
data/ngircd-26/src/ngircd/irc-write.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 buffer[1000];
data/ngircd-26/src/ngircd/irc-write.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000];
data/ngircd-26/src/ngircd/irc-write.c:178: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:222: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:285: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:321: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:361: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:434: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[1000];
data/ngircd-26/src/ngircd/irc-write.c:503: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 msg[1000];
data/ngircd-26/src/ngircd/irc.c:142: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 reason[COMMAND_LEN];
data/ngircd-26/src/ngircd/irc.c: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 user[CLIENT_USER_LEN];
data/ngircd-26/src/ngircd/irc.c:489: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 option_txt[8];
data/ngircd-26/src/ngircd/irc.c:535: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 *targets[MAX_HNDL_TARGETS];
data/ngircd-26/src/ngircd/irc.c:607: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 target[COMMAND_LEN];
data/ngircd-26/src/ngircd/lists.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mask[MASK_LEN];	/** IRC mask */
data/ngircd-26/src/ngircd/log.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[MAX_LOG_MSG_LEN];
data/ngircd-26/src/ngircd/log.c:173: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 msg[MAX_LOG_MSG_LEN];
data/ngircd-26/src/ngircd/log.c:249: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 msg[MAX_LOG_MSG_LEN];
data/ngircd-26/src/ngircd/log.c:291: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 msg[MAX_LOG_MSG_LEN];
data/ngircd-26/src/ngircd/login.c:156: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[CLIENT_MODE_LEN + 1];
data/ngircd-26/src/ngircd/login.c:218: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[CLIENT_USER_LEN], *ptr;
data/ngircd-26/src/ngircd/match.c:69: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 needle[COMMAND_LEN], haystack[COMMAND_LEN];
data/ngircd-26/src/ngircd/match.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_pattern[COMMAND_LEN], *ptr;
data/ngircd-26/src/ngircd/ngircd.c:511: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 pidbuf[64];
data/ngircd-26/src/ngircd/ngircd.c:521: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).
	pidfd = open( Conf_PidFile, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
data/ngircd-26/src/ngircd/ngircd.c:619: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).
	int fd = open(file, O_RDONLY);
data/ngircd-26/src/ngircd/ngircd.c:668:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open( "/dev/null", O_RDWR);
data/ngircd-26/src/ngircd/ngircd.h:30: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.
GLOBAL char NGIRCd_StartStr[64];
data/ngircd-26/src/ngircd/ngircd.h:33: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.
GLOBAL char NGIRCd_Version[126];
data/ngircd-26/src/ngircd/ngircd.h:36: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.
GLOBAL char NGIRCd_VersionAddition[126];
data/ngircd-26/src/ngircd/ngircd.h:65: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.
GLOBAL char NGIRCd_DebugLevel[2];
data/ngircd-26/src/ngircd/ngircd.h:68: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.
GLOBAL char NGIRCd_ConfFile[FNAME_LEN];
data/ngircd-26/src/ngircd/ngircd.h:71: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.
GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];
data/ngircd-26/src/ngircd/numeric.c:44: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[COMMAND_LEN], *ptr;
data/ngircd-26/src/ngircd/numeric.c:366:22:  [2] (integer) atol:
  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).
			if ((unsigned int)atol(value) == Conf_MaxNickLength - 1)
data/ngircd-26/src/ngircd/numeric.c:372:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			    Conf_MaxNickLength - 1, atoi(value));
data/ngircd-26/src/ngircd/parse.c:426: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[COMMAND_LEN];
data/ngircd-26/src/ngircd/parse.c:451:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num = atoi(Req->command);
data/ngircd-26/src/ngircd/parse.c:511:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    && strlen(Req->command) == 3 && atoi(Req->command) > 1)
data/ngircd-26/src/ngircd/parse.h:27: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 *argv[15];			/**< Parameters, at most 15 (0..14) */
data/ngircd-26/src/ngircd/resolve.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_ip_str[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ngircd/resolve.c:274: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(&addr, a->ai_addr, a->ai_addrlen);
data/ngircd-26/src/ngircd/resolve.c:297: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(&addr.sin4.sin_addr, h->h_addr, sizeof(struct in_addr));
data/ngircd-26/src/ngircd/resolve.c:307:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_ip_str[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ngircd/resolve.c:372: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 hostname[CLIENT_HOST_LEN];
data/ngircd-26/src/ngircd/resolve.c:373:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_ip_str[NG_INET_ADDRSTRLEN];
data/ngircd-26/src/ngircd/sighandlers.c:101: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 old_name[CLIENT_ID_LEN];
data/ngircd-26/src/portab/portabtest.c:37: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[5];
data/ngircd-26/src/portab/portabtest.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 str[5];
data/ngircd-26/src/portab/portabtest.c:92: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[5];
data/ngircd-26/src/portab/portabtest.c:142: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[5];
data/ngircd-26/src/portab/strlcpy.c:43: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( dst + len1, src, len2 );
data/ngircd-26/src/portab/strlcpy.c:64:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( dst, src, len );
data/ngircd-26/src/portab/vsnprintf.c:458: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 convert[20];
data/ngircd-26/src/portab/vsnprintf.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 iconvert[311];
data/ngircd-26/src/portab/vsnprintf.c:617: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 fconvert[311];
data/ngircd-26/src/ngircd/array.c:136:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return array_copyb(dest, src, strlen(src));
data/ngircd-26/src/ngircd/array.c:186: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).
	return array_catb(dest, src, strlen(src));
data/ngircd-26/src/ngircd/channel.c:649: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(Name) <= 1)
data/ngircd-26/src/ngircd/channel.c:654: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(Name) >= CHANNEL_NAME_LEN)
data/ngircd-26/src/ngircd/channel.c:846: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(Topic);
data/ngircd-26/src/ngircd/channel.c:1042: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( cl2chan->modes, "" );
data/ngircd-26/src/ngircd/channel.c:1370: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(KeyFile);
data/ngircd-26/src/ngircd/client.c:703: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).
		assert(strlen(Client->id) < Conf_MaxNickLength);
data/ngircd-26/src/ngircd/client.c:1030: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(Nick ) >= Conf_MaxNickLength)
data/ngircd-26/src/ngircd/client.c:1072: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(ID) > CLIENT_ID_LEN) {
data/ngircd-26/src/ngircd/client.c:1227: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 ) >= Conf_MaxNickLength)
data/ngircd-26/src/ngircd/conf.c:346:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		getchar();
data/ngircd-26/src/ngircd/conf.c:743: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(Conf_ServerName, "");
data/ngircd-26/src/ngircd/conf.c:744: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(Conf_ServerAdmin1, "");
data/ngircd-26/src/ngircd/conf.c:745: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(Conf_ServerAdmin2, "");
data/ngircd-26/src/ngircd/conf.c:746: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(Conf_ServerAdminMail, "");
data/ngircd-26/src/ngircd/conf.c:749: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(Conf_Network, "");
data/ngircd-26/src/ngircd/conf.c:759: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(Conf_ServerPwd, "");
data/ngircd-26/src/ngircd/conf.c:783: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(Conf_CloakHost, "");
data/ngircd-26/src/ngircd/conf.c:784: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(Conf_CloakHostModeX, "");
data/ngircd-26/src/ngircd/conf.c:794: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(Conf_DefaultUserModes, "");
data/ngircd-26/src/ngircd/conf.c:801: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(Conf_IncludeDir, "");
data/ngircd-26/src/ngircd/conf.c:875: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 (!array_catb(Destination, line, strlen(line) + 1)) {
data/ngircd-26/src/ngircd/conf.c:1081: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(str) >= sizeof(str) - 1) {
data/ngircd-26/src/ngircd/conf.c:1088:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((str[0] == '[') && (str[strlen(str) - 1] == ']')) {
data/ngircd-26/src/ngircd/conf.c:1376: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(Arg);
data/ngircd-26/src/ngircd/conf.c:1567:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(Conf_AllowedChannelTypes) + 1;
data/ngircd-26/src/ngircd/conf.c:1632:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(Conf_DefaultUserModes) + 1;
data/ngircd-26/src/ngircd/conf.c:1995: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(Arg) >= COMMAND_LEN)
data/ngircd-26/src/ngircd/conn-encoding.c:118: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).
	in_left = strlen(Message);
data/ngircd-26/src/ngircd/conn-ssl.c:113:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	br = read(fd, buf, s.st_size);
data/ngircd-26/src/ngircd/conn.c:862: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).
		strcpy (buffer + sizeof(buffer) - strlen(CUT_TXTSUFFIX) - 2 - 1,
data/ngircd-26/src/ngircd/conn.c:1598:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(My_Connections[Idx].sock, readbuf, sizeof(readbuf));
data/ngircd-26/src/ngircd/hash.c:42: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).
			    (UINT32)strlen(buffer), 42);
data/ngircd-26/src/ngircd/irc-channel.c:707:4:  [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(modes_add, "");
data/ngircd-26/src/ngircd/irc-info.c:339:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (str[strlen(str) - 1] != ':')
data/ngircd-26/src/ngircd/irc-info.c:346: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(str) > (COMMAND_LEN - CHANNEL_NAME_LEN - 4)) {
data/ngircd-26/src/ngircd/irc-info.c:354: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).
		if(str[strlen(str) - 1] != ':') {
data/ngircd-26/src/ngircd/irc-info.c:827:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (rpl[strlen(rpl) - 1] != ':')
data/ngircd-26/src/ngircd/irc-info.c:831: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(rpl) > COMMAND_LEN - CLIENT_NICK_LEN - 4) {
data/ngircd-26/src/ngircd/irc-info.c:841: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).
	if (rpl[strlen(rpl) - 1] != ':' && !IRC_WriteStrClient(from, "%s", rpl))
data/ngircd-26/src/ngircd/irc-info.c:1462: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).
		len_str = strlen(line) + 1;
data/ngircd-26/src/ngircd/irc-info.c:1529:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (str[strlen(str) - 1] != ':')
data/ngircd-26/src/ngircd/irc-info.c:1536: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(str) > (COMMAND_LEN - CLIENT_NICK_LEN - 4)) {
data/ngircd-26/src/ngircd/irc-info.c:1547: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).
	if (str[strlen(str) - 1] != ':') {
data/ngircd-26/src/ngircd/irc-login.c:91: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 (Req->argc >= 2 && strlen(Req->argv[1]) >= 4) {
data/ngircd-26/src/ngircd/irc-login.c:112: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 (Req->argc >= 2 && strlen(Req->argv[1]) > 4)
data/ngircd-26/src/ngircd/irc-mode.c:154: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(the_modes, "+");
data/ngircd-26/src/ngircd/irc-mode.c:157: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(the_modes, "-");
data/ngircd-26/src/ngircd/irc-mode.c:181:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(the_modes) - 1;
data/ngircd-26/src/ngircd/irc-mode.c:322: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(the_modes) - 1;
data/ngircd-26/src/ngircd/irc-mode.c:533:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(the_modes) - 1;
data/ngircd-26/src/ngircd/irc-mode.c:900: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(the_modes) - 1;
data/ngircd-26/src/ngircd/irc-server.c:226:4:  [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(str, "");
data/ngircd-26/src/ngircd/irc-server.c:262: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(nick_out, "");
data/ngircd-26/src/ngircd/irc.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).
		len_str = strlen(line) + 1;
data/ngircd-26/src/ngircd/irc.c:495: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(option_txt, "F");	/* No idea what this means, but the
data/ngircd-26/src/ngircd/ngircd.c:87:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/ngircd-26/src/ngircd/ngircd.c:152: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).
			for (n = 1; n < strlen(argv[i]); n++) {
data/ngircd-26/src/ngircd/ngircd.c:168: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).
						n = strlen(argv[i]);
data/ngircd-26/src/ngircd/ngircd.c:228: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(NGIRCd_DebugLevel, "1");
data/ngircd-26/src/ngircd/ngircd.c:233: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(NGIRCd_DebugLevel, "2");
data/ngircd-26/src/ngircd/ngircd.c:621:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &seed, sizeof(seed)) == sizeof(seed))
data/ngircd-26/src/ngircd/numeric.c:61:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (str[strlen(str) - 1] != ':')
data/ngircd-26/src/ngircd/numeric.c:79: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(str) > (sizeof(str) - CLIENT_NICK_LEN - 8)) {
data/ngircd-26/src/ngircd/numeric.c:105: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).
	if (str[strlen(str) - 1] != ':') {
data/ngircd-26/src/ngircd/parse.c:511:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    && strlen(Req->command) == 3 && atoi(Req->command) > 1)
data/ngircd-26/src/ngircd/parse.c:603:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((size_t)(ptrEnd - ptr) >= strlen(me_cmd)
data/ngircd-26/src/ngircd/parse.c:604: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).
			    && !strncmp(ptr, me_cmd, strlen(me_cmd)))
data/ngircd-26/src/ngircd/proc.c:142:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes_read = read(proc->pipe_fd, buffer, buflen);
data/ngircd-26/src/ngircd/resolve.c:398: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(hostname);
data/ngircd-26/src/ngircd/sighandlers.c:183:4:  [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(NGIRCd_DebugLevel, "2");
data/ngircd-26/src/ngircd/sighandlers.c:187:4:  [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(NGIRCd_DebugLevel, "1");
data/ngircd-26/src/ngircd/sighandlers.c:193:4:  [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(NGIRCd_DebugLevel, "");
data/ngircd-26/src/ngircd/sighandlers.c:251:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = (int)read(fd, &sig, sizeof(sig));
data/ngircd-26/src/portab/portabtest.c:42:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) != 4)
data/ngircd-26/src/portab/portabtest.c:56: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(ptr) != 10)
data/ngircd-26/src/portab/portabtest.c:71: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(ptr) != 5)
data/ngircd-26/src/portab/portabtest.c:85:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) != 4)
data/ngircd-26/src/portab/portabtest.c:100:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) != 4)
data/ngircd-26/src/portab/portabtest.c:175:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) != 4)
data/ngircd-26/src/portab/strdup.c:22:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(s);
data/ngircd-26/src/portab/strlcpy.c:36: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).
	size_t len1 = strlen( dst );
data/ngircd-26/src/portab/strlcpy.c:37: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).
	size_t len2 = strlen( src );
data/ngircd-26/src/portab/strlcpy.c:59:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen( src );
data/ngircd-26/src/portab/strndup.c:22:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(s);
data/ngircd-26/src/portab/vsnprintf.c:352: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).
					max = strlen(strvalue);
data/ngircd-26/src/tool/tool.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).
	len = strlen(String);

ANALYSIS SUMMARY:

Hits = 360
Lines analyzed = 28000 in approximately 0.70 seconds (39910 lines/second)
Physical Source Lines of Code (SLOC) = 18599
Hits@level = [0] 132 [1]  88 [2] 230 [3]   9 [4]  33 [5]   0
Hits@level+ = [0+] 492 [1+] 360 [2+] 272 [3+]  42 [4+]  33 [5+]   0
Hits/KSLOC@level+ = [0+] 26.453 [1+] 19.3559 [2+] 14.6244 [3+] 2.25819 [4+] 1.77429 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.