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/ircii-20190117/contrib/noansi.c
Examining data/ircii-20190117/include/exec.h
Examining data/ircii-20190117/include/hook.h
Examining data/ircii-20190117/include/ignore.h
Examining data/ircii-20190117/include/input.h
Examining data/ircii-20190117/include/irc.h
Examining data/ircii-20190117/include/irc_std.h
Examining data/ircii-20190117/include/ircterm.h
Examining data/ircii-20190117/include/keys.h
Examining data/ircii-20190117/include/vars.h
Examining data/ircii-20190117/include/names.h
Examining data/ircii-20190117/include/cast_sbox.h
Examining data/ircii-20190117/include/alias.h
Examining data/ircii-20190117/include/ctcp.h
Examining data/ircii-20190117/include/dcc.h
Examining data/ircii-20190117/include/debug.h
Examining data/ircii-20190117/include/edit.h
Examining data/ircii-20190117/include/flood.h
Examining data/ircii-20190117/include/funny.h
Examining data/ircii-20190117/include/help.h
Examining data/ircii-20190117/include/history.h
Examining data/ircii-20190117/include/ssl.h
Examining data/ircii-20190117/include/sl_irc.h
Examining data/ircii-20190117/include/hold.h
Examining data/ircii-20190117/include/icb.h
Examining data/ircii-20190117/include/if.h
Examining data/ircii-20190117/include/ircaux.h
Examining data/ircii-20190117/include/scandir.h
Examining data/ircii-20190117/include/sl.h
Examining data/ircii-20190117/include/lastlog.h
Examining data/ircii-20190117/include/list.h
Examining data/ircii-20190117/include/log.h
Examining data/ircii-20190117/include/mail.h
Examining data/ircii-20190117/include/menu.h
Examining data/ircii-20190117/include/newio.h
Examining data/ircii-20190117/include/notify.h
Examining data/ircii-20190117/include/numbers.h
Examining data/ircii-20190117/include/output.h
Examining data/ircii-20190117/include/parse.h
Examining data/ircii-20190117/include/queue.h
Examining data/ircii-20190117/include/server.h
Examining data/ircii-20190117/include/status.h
Examining data/ircii-20190117/include/strsep.h
Examining data/ircii-20190117/include/window.h
Examining data/ircii-20190117/include/translat.h
Examining data/ircii-20190117/include/whois.h
Examining data/ircii-20190117/include/socks_compat.h
Examining data/ircii-20190117/include/notice.h
Examining data/ircii-20190117/include/irccrypt.h
Examining data/ircii-20190117/include/signals.h
Examining data/ircii-20190117/include/strcasestr.h
Examining data/ircii-20190117/include/screen.h
Examining data/ircii-20190117/source/rijndael/rijndael-alg-ref.c
Examining data/ircii-20190117/source/rijndael/rijndael-alg-ref.h
Examining data/ircii-20190117/source/rijndael/rijndael-api-ref.c
Examining data/ircii-20190117/source/rijndael/rijndael-api-ref.h
Examining data/ircii-20190117/source/rijndael/rijndaeltest-ref.c
Examining data/ircii-20190117/source/alias.c
Examining data/ircii-20190117/source/crypt.c
Examining data/ircii-20190117/source/exec.c
Examining data/ircii-20190117/source/help.c
Examining data/ircii-20190117/source/icb.c
Examining data/ircii-20190117/source/ignore.c
Examining data/ircii-20190117/source/input.c
Examining data/ircii-20190117/source/ircaux.c
Examining data/ircii-20190117/source/signals.c
Examining data/ircii-20190117/source/newio.c
Examining data/ircii-20190117/source/output.c
Examining data/ircii-20190117/source/screen.c
Examining data/ircii-20190117/source/status.c
Examining data/ircii-20190117/source/term.c
Examining data/ircii-20190117/source/vars.c
Examining data/ircii-20190117/source/window.c
Examining data/ircii-20190117/source/wserv.c
Examining data/ircii-20190117/source/aes.c
Examining data/ircii-20190117/source/cast.c
Examining data/ircii-20190117/source/cipher-test.c
Examining data/ircii-20190117/source/ctcp.c
Examining data/ircii-20190117/source/debug.c
Examining data/ircii-20190117/source/flood.c
Examining data/ircii-20190117/source/funny.c
Examining data/ircii-20190117/source/getaddrinfo.c
Examining data/ircii-20190117/source/getnameinfo.c
Examining data/ircii-20190117/source/history.c
Examining data/ircii-20190117/source/hold.c
Examining data/ircii-20190117/source/hook.c
Examining data/ircii-20190117/source/if.c
Examining data/ircii-20190117/source/inet_ntop.c
Examining data/ircii-20190117/source/inet_pton.c
Examining data/ircii-20190117/source/ircflush.c
Examining data/ircii-20190117/source/ircio.c
Examining data/ircii-20190117/source/ircsig.c
Examining data/ircii-20190117/source/lastlog.c
Examining data/ircii-20190117/source/list.c
Examining data/ircii-20190117/source/log.c
Examining data/ircii-20190117/source/mail.c
Examining data/ircii-20190117/source/names.c
Examining data/ircii-20190117/source/notice.c
Examining data/ircii-20190117/source/scandir.c
Examining data/ircii-20190117/source/notify.c
Examining data/ircii-20190117/source/numbers.c
Examining data/ircii-20190117/source/parse.c
Examining data/ircii-20190117/source/queue.c
Examining data/ircii-20190117/source/reg.c
Examining data/ircii-20190117/source/sl.c
Examining data/ircii-20190117/source/snprintf.c
Examining data/ircii-20190117/source/strsep.c
Examining data/ircii-20190117/source/translat.c
Examining data/ircii-20190117/source/whois.c
Examining data/ircii-20190117/source/wterm.c
Examining data/ircii-20190117/source/ssl.c
Examining data/ircii-20190117/source/sl_irc.c
Examining data/ircii-20190117/source/strcasestr.c
Examining data/ircii-20190117/source/dcc.c
Examining data/ircii-20190117/source/server.c
Examining data/ircii-20190117/source/irc.c
Examining data/ircii-20190117/source/edit.c
Examining data/ircii-20190117/source/keys.c
Examining data/ircii-20190117/source/menu.c

FINAL RESULTS:

data/ircii-20190117/source/log.c:77:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
					chmod(logfile, S_IREAD | S_IWRITE);
data/ircii-20190117/contrib/noansi.c:83:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, va);
data/ircii-20190117/include/irc_std.h:49:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
#define my_strcat(d,s)		strcat(CP(d), CP(s))
data/ircii-20190117/include/irc_std.h:190: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.
int snprintf(char *str, size_t count, const char *fmt, ...);
data/ircii-20190117/include/irc_std.h:194:5:  [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.
int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
data/ircii-20190117/include/irccrypt.h:57:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	CryptFunc	crypt;
data/ircii-20190117/source/alias.c:2630:29:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		malloc_strcpy(&result, UP(crypt(CP(key), CP(salt))));
data/ircii-20190117/source/cipher-test.c:104:15:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	r = rv = (*k.crypt)(&k, &s, &len);
data/ircii-20190117/source/crypt.c:258:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(CP(crypt_program), X_OK))
data/ircii-20190117/source/crypt.c:298:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execl(CP(crypt_program), CP(crypt_program), key->key, NULL);
data/ircii-20190117/source/crypt.c:300:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execl(CP(crypt_program), CP(crypt_program), NULL);
data/ircii-20190117/source/crypt.c:330:13:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			if (key->crypt(key, &str, &c) != 0)
data/ircii-20190117/source/debug.c:100:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, vlist);
data/ircii-20190117/source/exec.c:771:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp((char *) args[0], (char **) args);
data/ircii-20190117/source/exec.c:780:4:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execl(CP(shell), CP(shell), flag, name, NULL);
data/ircii-20190117/source/getaddrinfo.c:900: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(ai->ai_canonname, str);
data/ircii-20190117/source/getnameinfo.c:149:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(serv, sp->s_name);
data/ircii-20190117/source/getnameinfo.c:154:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(serv, numserv);
data/ircii-20190117/source/getnameinfo.c:227:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(host, numaddr);
data/ircii-20190117/source/getnameinfo.c:249:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(host, hp->h_name);
data/ircii-20190117/source/getnameinfo.c:291: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(host, numaddr);
data/ircii-20190117/source/help.c:483:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(CP(path), R_OK|X_OK))
data/ircii-20190117/source/help.c:741:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!(help_path && *help_path && !access(CP(help_path), R_OK | X_OK)))
data/ircii-20190117/source/icb.c:1070:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(CP(s), CP(text));
data/ircii-20190117/source/inet_ntop.c:38:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define SPRINTF(x) strlen(sprintf/**/x)
data/ircii-20190117/source/inet_ntop.c:40:30:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define SPRINTF(x) ((size_t)sprintf x)
data/ircii-20190117/source/inet_ntop.c:100: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(dst, tmp);
data/ircii-20190117/source/inet_ntop.c:194: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(dst, tmp);
data/ircii-20190117/source/ircaux.c:192:7:  [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.
	rv = vsnprintf(&b, 0, fmt, ap);
data/ircii-20190117/source/ircaux.c:195:7:  [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.
	rv = vsnprintf(CP(new), rv+1, fmt, ap2);
data/ircii-20190117/source/ircaux.c:210:7:  [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.
	rv = vsnprintf(&b, 0, fmt, ap);
data/ircii-20190117/source/ircaux.c:212:7:  [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.
	rv = vsnprintf(CP(new), rv+1, fmt, ap2);
data/ircii-20190117/source/ircaux.c:938:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(CP(buf), F_OK) == 0)
data/ircii-20190117/source/ircaux.c:1045:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(ZCAT, ZCAT, ZARGS, name, NULL);
data/ircii-20190117/source/ircaux.c:1047:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(ZCAT, ZCAT, name, NULL);
data/ircii-20190117/source/ircflush.c:78:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(line, 0) != 0)
data/ircii-20190117/source/ircflush.c:86:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				if (access(line, R_OK | W_OK) == 0)
data/ircii-20190117/source/ircflush.c:138:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(argv[1], &(argv[1]));
data/ircii-20190117/source/ircio.c:245:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(block_buffer,
data/ircii-20190117/source/ircio.c:294:8:  [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(block_buffer,
data/ircii-20190117/source/ircio.c:325:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(un.sun_path, path);
data/ircii-20190117/source/notice.c:298:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(CP(ircrc_file_path()), R_OK) == 0)
data/ircii-20190117/source/notice.c:322:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(CP(ircquick_file_path()), R_OK) == 0)
data/ircii-20190117/source/scandir.c:65:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	     access(Name, R_OK | X_OK) || !(Dp = opendir(Name)))
data/ircii-20190117/source/screen.c:951:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp("screen", args);
data/ircii-20190117/source/screen.c:990:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp(CP(xterm), args);
data/ircii-20190117/source/server.c:1268:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(CP(path), CP(name), server_name, buffer, NULL);
data/ircii-20190117/source/server.c:1812:10:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		while (fscanf(fp, CP(format), buffer) != EOF)
data/ircii-20190117/source/server.c:2617:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(CP(buf), sizeof lbuf, format, vlist);
data/ircii-20190117/source/snprintf.c:676: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/ircii-20190117/source/snprintf.c:688: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/ircii-20190117/source/snprintf.c:694:7:  [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.
	rv = vsnprintf(str, count, fmt, ap);
data/ircii-20190117/source/snprintf.c:765: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(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
data/ircii-20190117/source/snprintf.c:766:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(buf2, fp_fmt[x], fp_nums[y]);
data/ircii-20190117/source/snprintf.c:781:10:  [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.
			len = snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
data/ircii-20190117/source/snprintf.c:783:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(buf2, int_fmt[x], int_nums[y]);
data/ircii-20190117/source/status.c:745: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(CP(lbuf+1),
data/ircii-20190117/source/wserv.c:91: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(addr->sun_path, argv[1]);
data/ircii-20190117/source/wserv.c:101: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(esock.sun_path, argv[2]);
data/ircii-20190117/contrib/noansi.c:560:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((ch = getopt(argc, argv, "thz")) != -1) {
data/ircii-20190117/include/irc_std.h:57:26:  [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.
#define my_getenv(s)		UP(getenv(CP(s)))
data/ircii-20190117/source/cipher-test.c:49:26:  [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.
#define GET_RANDOM_BYTE	(random() & 255)
data/ircii-20190117/source/cipher-test.c:168:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return (random() & 255);
data/ircii-20190117/source/crypt.c:57:26:  [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.
#define GET_RANDOM_BYTE	(random() & 255)
data/ircii-20190117/source/crypt.c:461:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return (random() & 255);
data/ircii-20190117/source/edit.c:3952:21:  [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.
			u_char *otz = UP(getenv("TZ"));
data/ircii-20190117/source/irc.c:919:2:  [3] (random) srandom:
  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.
	srandom(time(NULL) ^ getpid());	/* something */
data/ircii-20190117/source/term.c:223:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((term = getenv("TERM")) == NULL)
data/ircii-20190117/source/term.c:340:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("IRC_DEBUG")|| (tty_des = open("/dev/tty", O_RDWR, 0)) == -1)
data/ircii-20190117/contrib/noansi.c:158:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char nbuf[5];
data/ircii-20190117/contrib/noansi.c:211: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).
                params[np++] = atoi(nbuf);
data/ircii-20190117/include/irc_std.h:55:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define my_atoi(s)		atoi(CP(s))
data/ircii-20190117/include/irc_std.h:56:21:  [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).
#define my_atol(s)		atol(CP(s))
data/ircii-20190117/source/aes.c:85: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(keypad, key->key, len);
data/ircii-20190117/source/aes.c:159: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(*str, k->c.IV, RJLEN / 2);
data/ircii-20190117/source/cipher-test.c:138:14:  [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).
		devrndfd = open(DEV_RANDOM_PATH, O_RDONLY);
data/ircii-20190117/source/crypt.c:425:14:  [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).
		devrndfd = open(DEV_RANDOM_PATH, O_RDONLY);
data/ircii-20190117/source/dcc.c:837:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	cwd[PATH_MAX+1];
data/ircii-20190117/source/dcc.c:899:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((Client->file = open(CP(Client->description), O_RDONLY | O_BINARY)) == -1)
data/ircii-20190117/source/dcc.c:962:17:  [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).
	Client->file = open(CP(fullname), O_BINARY | O_WRONLY | O_TRUNC | O_CREAT, 0644);
data/ircii-20190117/source/edit.c:853:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(CP(file), "w")) != NULL)
data/ircii-20190117/source/edit.c:1468:47:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((wi->who_mask & WHO_FILE) == 0 || (fp = fopen(CP(wi->who_file), "r")))
data/ircii-20190117/source/edit.c:1509:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fip = fopen(CP(wi->who_file), "r")) != NULL)
data/ircii-20190117/source/edit.c:3012: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).
			fp = fopen(CP(expanded), "r");
data/ircii-20190117/source/edit.c:3015:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (fp = fopen(CP(expanded), "r"))
data/ircii-20190117/source/edit.c:3403:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *fp = fopen(CP(target), "r+");
data/ircii-20190117/source/edit.c:3407: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).
			fp = fopen(CP(target), "w");
data/ircii-20190117/source/exec.c:771:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			execvp((char *) args[0], (char **) args);
data/ircii-20190117/source/flood.c:23: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	*ignore_types[NUMBER_OF_FLOODS] =
data/ircii-20190117/source/getaddrinfo.c:315: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(pai, hints, sizeof(*pai));
data/ircii-20190117/source/getaddrinfo.c:628:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	aplist = (char **)malloc(sizeof(aplist[0]) * naddrs);
data/ircii-20190117/source/getaddrinfo.c:640: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(&apbuf[i * hp->h_length], hp->h_addr_list[i],
data/ircii-20190117/source/getaddrinfo.c:760:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pton[PTON_MAX];
data/ircii-20190117/source/getaddrinfo.c:916: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(ai, pai, sizeof(struct addrinfo));
data/ircii-20190117/source/getaddrinfo.c:925:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
data/ircii-20190117/source/getaddrinfo.c:975:16:  [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 = htons(atoi(servname));
data/ircii-20190117/source/getnameinfo.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numserv[512];
data/ircii-20190117/source/getnameinfo.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numaddr[512];
data/ircii-20190117/source/getnameinfo.c:282:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numaddr[512];
data/ircii-20190117/source/getnameinfo.c:297: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 scopebuf[MAXHOSTNAMELEN];
data/ircii-20190117/source/getnameinfo.c:309:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(host + numaddrlen + 1, scopebuf,
data/ircii-20190117/source/help.c:342:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((help_fp = fopen(CP(filename), "r")) == NULL)
data/ircii-20190117/source/history.c:230: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(CP(ptr), O_WRONLY|O_CREAT|O_APPEND, 0600);
data/ircii-20190117/source/inet_ntop.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "255.255.255.255"];
data/ircii-20190117/source/inet_ntop.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
data/ircii-20190117/source/inet_pton.c:185: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, &val, INADDRSZ);
data/ircii-20190117/source/inet_pton.c:286: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(dst, tmp, IN6ADDRSZ);
data/ircii-20190117/source/input.c:193: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 + pos,
data/ircii-20190117/source/input.c:249:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cut_buffer, buf+pos, erasebytes);
data/ircii-20190117/source/input.c:325: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,
data/ircii-20190117/source/input.c:551:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(VisBuf+optr, " ", 1);
data/ircii-20190117/source/input.c:556:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(VisBuf+optr, buf+iptr, len);
data/ircii-20190117/source/input.c:616: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(&inputdata->saved_buffer, &inputdata->buffer,
data/ircii-20190117/source/irc.c:1043:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((des = open(CP(s), O_CREAT, S_IREAD | S_IWRITE))
data/ircii-20190117/source/ircflush.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	line[11];
data/ircii-20190117/source/ircflush.c:83:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((master = open(line, O_RDWR)) >= 0)
data/ircii-20190117/source/ircflush.c:88:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if ((slave = open(line, O_RDWR)) >= 0)
data/ircii-20190117/source/ircflush.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	lbuf[BUFFER_SIZE];
data/ircii-20190117/source/ircflush.c:119: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).
	pid = open("/dev/tty", O_RDWR);
data/ircii-20190117/source/ircio.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[256];
data/ircii-20190117/source/ircio.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	*ptr,
data/ircii-20190117/source/ircio.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	block_buffer[BUFSIZ + 1];
data/ircii-20190117/source/lastlog.c:583:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if ((fp = fopen(CP(expanded), "w")) != NULL)
data/ircii-20190117/source/lastlog.c:607:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if ((fp = fopen(CP(expanded), "r")) != NULL)
data/ircii-20190117/source/lastlog.c:633:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if ((fp = fopen(CP(expanded), "w")) != NULL)
data/ircii-20190117/source/log.c:74:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((*fpp = fopen(CP(logfile), "a")) != NULL)
data/ircii-20190117/source/mail.c:147:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((des = open(CP(mail_path), O_RDONLY, 0)) >= 0)
data/ircii-20190117/source/menu.c:159:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(CP(FileName), "r")) == NULL)
data/ircii-20190117/source/newio.c: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	buffer[IO_BUFFER_SIZE + 1];
data/ircii-20190117/source/output.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	line[1024];		/* too big?  too small?  who cares? */
data/ircii-20190117/source/output.c:117:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(CP(filename), "r")) != NULL)
data/ircii-20190117/source/output.c:399:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char OutBuf[512], *outptr = OutBuf;
data/ircii-20190117/source/output.c:450: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 OutBuf[1024], *outptr=OutBuf;
data/ircii-20190117/source/rijndael/rijndael-api-ref.h:74:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char  keyMaterial[MAX_KEY_SIZE+1];  /*  Raw key data in ASCII,
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[10];
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:266:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (&keyMaterial[2*i], "%02X", i);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:280:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(format,"CT%d",i);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:294:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(format,"PT%d",i);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:311: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 (vkFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:336: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 (vtFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:361: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 (tblFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:385:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (NULL != (fp2 = fopen("table.128","r"))) {
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:393:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (NULL != (fp2 = fopen("table.192","r"))) {
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:401:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (NULL != (fp2 = fopen("table.256","r"))) {
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:416: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 (ivFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:473:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (&keyMaterial[2*j], "%02X", binKey[j]);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:485:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (inBlock, outBlock, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:490:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (inBlock, outBlock, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:560:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (&keyMaterial[2*j], "%02X", binKey[j]);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:576:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(iv+2*t,"%02x",cv[t]);					
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:589:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (inBlock, cv, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:590:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (cv, outBlock, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:595:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(iv+2*t,"%02x",cv[t]);					
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:600:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (cv, inBlock, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:601:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (inBlock, outBlock, blockLength/8);
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:649: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 (ecbEncryptionFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:682: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 (ecbDecryptionFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:715: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 (cbcEncryptionFile, "w");
data/ircii-20190117/source/rijndael/rijndaeltest-ref.c:751: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 (cbcDecryptionFile, "w");
data/ircii-20190117/source/scandir.c:109:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		qsort((char *)names, i, sizeof names[0], Sorter);
data/ircii-20190117/source/screen.c:920: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	*args[MAX_ARGS];
data/ircii-20190117/source/screen.c:957: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	*args[64];
data/ircii-20190117/source/screen.c:1113:7:  [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).
	li = atoi(CP(rs));
data/ircii-20190117/source/screen.c:1114:7:  [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).
	co = atoi(CP(cs));
data/ircii-20190117/source/server.c:1808: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(CP(file_path), "r");
data/ircii-20190117/source/snprintf.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ircii-20190117/source/snprintf.c:539:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20];
data/ircii-20190117/source/snprintf.c:540:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20];
data/ircii-20190117/source/snprintf.c:711:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	 buf1[LONG_STRING];
data/ircii-20190117/source/snprintf.c:712:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	 buf2[LONG_STRING];
data/ircii-20190117/source/term.c:88: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	termcap[TGETENT_BUFSIZ];
data/ircii-20190117/source/term.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	bp[TGETENT_BUFSIZ],
data/ircii-20190117/source/term.c:340:39:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (getenv("IRC_DEBUG")|| (tty_des = open("/dev/tty", O_RDWR, 0)) == -1)
data/ircii-20190117/source/translat.c:413:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char sizes[16] = {
data/ircii-20190117/source/translat.c:709:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, utfbuf, data->output_bytes);
data/ircii-20190117/source/wserv.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	lbuf[1024];
data/ircii-20190117/source/wserv.c:203:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/ircii-20190117/source/wserv.c:206:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d,%d\n", li, co);
data/ircii-20190117/contrib/noansi.c:151:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while((c = fgetc(f)) != EOF) {
data/ircii-20190117/contrib/noansi.c:184:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        d = fgetc(f);
data/ircii-20190117/contrib/noansi.c:193:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while((d = fgetc(f)) != EOF) {
data/ircii-20190117/include/irc_std.h:46:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define my_strlen(s)		strlen(CP(s))
data/ircii-20190117/include/irc_std.h:50:27:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#define my_strncat(d,s,n)	strncat(CP(d), CP(s), (n))
data/ircii-20190117/include/socks_compat.h:54:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read		SOCKSread
data/ircii-20190117/source/cipher-test.c:103: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(s);
data/ircii-20190117/source/cipher-test.c:151:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(devrndfd, &c, 1) != 1)
data/ircii-20190117/source/crypt.c:312:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			sc = read(out[0], lbuf, sizeof lbuf);
data/ircii-20190117/source/crypt.c:440:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(devrndfd, &c, 1) != 1)
data/ircii-20190117/source/dcc.c:60:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int	read;
data/ircii-20190117/source/dcc.c:229:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(Element->read);
data/ircii-20190117/source/dcc.c:270:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (Client->read != -1)
data/ircii-20190117/source/dcc.c:271:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			FD_SET(Client->read, rd);
data/ircii-20190117/source/dcc.c:302:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (getpeername((*Client)->read, (struct sockaddr *) &remaddr, &rl) != -1)
data/ircii-20190117/source/dcc.c:318:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				set_blocking((*Client)->read);
data/ircii-20190117/source/dcc.c:319:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if ((*Client)->read != (*Client)->write)
data/ircii-20190117/source/dcc.c:324:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((*Client)->read != -1 && FD_ISSET((*Client)->read, rd))
data/ircii-20190117/source/dcc.c:324:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((*Client)->read != -1 && FD_ISSET((*Client)->read, rd))
data/ircii-20190117/source/dcc.c:490:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (getpeername(Client->read, (struct sockaddr *) &remaddr, &rl) == -1)
data/ircii-20190117/source/dcc.c:524:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				Client->read ? gai_strerror(errno) : strerror(errno));
data/ircii-20190117/source/dcc.c:547:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			getsockname(Client->read,
data/ircii-20190117/source/dcc.c:732:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	set_socket_options(Client->read);
data/ircii-20190117/source/dcc.c:737:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (bind(Client->read, (struct sockaddr *) &locaddr, sizeof(locaddr))
data/ircii-20190117/source/dcc.c:744:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	listen(Client->read, 4);
data/ircii-20190117/source/dcc.c:747:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	getsockname(Client->read, (struct sockaddr *) &locaddr, &size);
data/ircii-20190117/source/dcc.c:818:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	snprintf(CP(PortName), sizeof PortName, "%d", Client->read);
data/ircii-20190117/source/dcc.c:903:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1014:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1105:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		Client->write = accept(Client->read, (struct sockaddr *)
data/ircii-20190117/source/dcc.c:1115:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1134:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytesread = dgets(bufptr, ((sizeof(tmp)/2) - len), Client->read);
data/ircii-20190117/source/dcc.c:1153:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1201:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	new_socket = accept(Client->read, (struct sockaddr *) &remaddr, &sra);
data/ircii-20190117/source/dcc.c:1265:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch((int)(bytesread = dgets(bufptr, ((sizeof(tmp)/2) - len), Client->read)))
data/ircii-20190117/source/dcc.c:1283:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1319:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		Client->write = accept(Client->read,
data/ircii-20190117/source/dcc.c:1321:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1332:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((bytesread = recv(Client->read, (char *) &bytesrecvd, sizeof(uint32_t), 0)) < sizeof(uint32_t))
data/ircii-20190117/source/dcc.c:1335:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(Client->read);
data/ircii-20190117/source/dcc.c:1350:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((bytesread = read(Client->file, tmp, sizeof tmp)) != 0)
data/ircii-20190117/source/dcc.c:1373:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		new_close(Client->read);
data/ircii-20190117/source/dcc.c:1392:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((bytesread = recv(Client->read, CP(tmp), sizeof tmp, 0)) <= 0)
data/ircii-20190117/source/dcc.c:1423:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	new_close(Client->read);
data/ircii-20190117/source/dcc.c:1663:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(Client->read);
data/ircii-20190117/source/getaddrinfo.c:897: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).
		ai->ai_canonname = (char *)malloc(strlen(str) + 1);
data/ircii-20190117/source/getnameinfo.c:147: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(sp->s_name) > servlen)
data/ircii-20190117/source/getnameinfo.c:152: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(numserv) > servlen)
data/ircii-20190117/source/getnameinfo.c:224:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			numaddrlen = strlen(numaddr);
data/ircii-20190117/source/getnameinfo.c:246: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(hp->h_name) > hostlen) {
data/ircii-20190117/source/getnameinfo.c:288: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).
	numaddrlen = strlen(numaddr);
data/ircii-20190117/source/getnameinfo.c:342: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).
			return(strlen(p));
data/ircii-20190117/source/icb.c:1069: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(CP(s), "*");
data/ircii-20190117/source/icb.c:1071:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(CP(s), "*");
data/ircii-20190117/source/inet_ntop.c:38:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# define SPRINTF(x) strlen(sprintf/**/x)
data/ircii-20190117/source/inet_ntop.c:177: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).
			tp += strlen(tp);
data/ircii-20190117/source/irc.c:665:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void)read(0, &dummy, 1);
data/ircii-20190117/source/irc.c:725:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((n = read(screen_get_fdin(screen), loc_buffer,
data/ircii-20190117/source/ircaux.c:890:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		switch (fgetc(file))
data/ircii-20190117/source/ircflush.c:158:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				    if ((cnt = read(0, lbuf, sizeof lbuf)) > 0)
data/ircii-20190117/source/ircflush.c:168:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if ((cnt = read(master, lbuf,
data/ircii-20190117/source/ircio.c:92:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, buf, buflen);
data/ircii-20190117/source/ircio.c:237:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					c = strlen(block_buffer);
data/ircii-20190117/source/ircio.c:282:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							if (write(des, pong, strlen(pong)) != strlen(pong))
data/ircii-20190117/source/ircio.c:282:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							if (write(des, pong, strlen(pong)) != strlen(pong))
data/ircii-20190117/source/ircio.c:326:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (connect(sock, (struct sockaddr *)&un, (int)strlen(path)+2) == -1)
data/ircii-20190117/source/notice.c:181:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	else if ((sscanf(CP(line), "*** Your host is %80s running version %20s",
data/ircii-20190117/source/notice.c:346:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ((sscanf(CP(line), "*** Your host is %255s running version %255s",
data/ircii-20190117/source/rijndael/rijndael-api-ref.c:38:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(key->keyMaterial, keyMaterial, keyLen/4);
data/ircii-20190117/source/server.c:91:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int	read;			/* read descriptior */
data/ircii-20190117/source/server.c:238:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (server_list[i].write == server_list[i].read)
data/ircii-20190117/source/server.c:245:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			dgets_clear_ssl_info(server_list[i].read);
data/ircii-20190117/source/server.c:249:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (-1 != server_list[i].read)
data/ircii-20190117/source/server.c:251:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(server_list[i].read);
data/ircii-20190117/source/server.c:274:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (server_list[i].read != -1)
data/ircii-20190117/source/server.c:275:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			FD_SET(server_list[i].read, rd);
data/ircii-20190117/source/server.c:349:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((des = server_list[j].read) != -1 && FD_ISSET(des, rd))
data/ircii-20190117/source/server.c:1405:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    getpeername(server_list[from_server].read, (struct sockaddr *) &sa, &salen) != -1))
data/ircii-20190117/source/server.c:1484:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = ssl_init_connection(server, server_list[server].read,
data/ircii-20190117/source/server.c:1505:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		dgets_set_ssl_info(server_list[server].read,
data/ircii-20190117/source/server.c:1587:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			set_blocking(server_list[server].read);
data/ircii-20190117/source/server.c:1588:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (server_list[server].read != server_list[server].write)
data/ircii-20190117/source/server.c:1649:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		junk = dgets(bufptr, sizeof(lbuf) - len, server_list[server].read);
data/ircii-20190117/source/server.c:1906:128:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			say("\t\tclose_serv=%d, connected=%d, read=%d, eof=%d", server_list[i].close_serv, server_list[i].connected, server_list[i].read, server_list[i].eof);
data/ircii-20190117/source/server.c:2243:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((des = server_list[from_server].read) == -1)
data/ircii-20190117/source/server.c:2444:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (server_list[server_index].read != -1);
data/ircii-20190117/source/server.c:2690:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (server_list[i].read != -1)
data/ircii-20190117/source/server.c:2691:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(server_list[i].read);
data/ircii-20190117/source/server.c:2706:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (server_list[i].read != -1)
data/ircii-20190117/source/server.c:2756:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			new_close(server_list[i].read);
data/ircii-20190117/source/sl_irc.c:43:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t sep_len = strlen(CP(sep));
data/ircii-20190117/source/sl_irc.c:51:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen(sl->sl_str[i]) + sep_len;
data/ircii-20190117/source/snprintf.c:782:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
printf("got %d >%s< (%d)\n", len, buf1, (int)strlen(buf1));
data/ircii-20190117/source/ssl.c:324:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read(fd, buf, len);
data/ircii-20190117/source/status.c:215:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	c = sscanf(CP(str), " %2[^:]:%2[^paPA]%2s ", hours, minutes, merid);
data/ircii-20190117/source/wserv.c:94: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).
						strlen(addr->sun_path))))
data/ircii-20190117/source/wserv.c:104: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).
						strlen(esock.sun_path))))
data/ircii-20190117/source/wserv.c:113: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).
	if (write(s, tmp, strlen(tmp)) <= 0 ||
data/ircii-20190117/source/wserv.c:153:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (0 != (nread = read(0, lbuf, sizeof(lbuf))))
data/ircii-20190117/source/wserv.c:163:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (0 != (nread = read(s, lbuf, sizeof(lbuf))))
data/ircii-20190117/source/wserv.c:207: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(buf);

ANALYSIS SUMMARY:

Hits = 279
Lines analyzed = 57853 in approximately 1.65 seconds (34977 lines/second)
Physical Source Lines of Code (SLOC) = 44135
Hits@level = [0] 270 [1] 101 [2] 109 [3]  10 [4]  58 [5]   1
Hits@level+ = [0+] 549 [1+] 279 [2+] 178 [3+]  69 [4+]  59 [5+]   1
Hits/KSLOC@level+ = [0+] 12.4391 [1+] 6.32151 [2+] 4.03308 [3+] 1.56339 [4+] 1.33681 [5+] 0.0226578
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.