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/tmate-2.4.0/alerts.c
Examining data/tmate-2.4.0/arguments.c
Examining data/tmate-2.4.0/array.h
Examining data/tmate-2.4.0/attributes.c
Examining data/tmate-2.4.0/cfg.c
Examining data/tmate-2.4.0/client.c
Examining data/tmate-2.4.0/cmd-attach-session.c
Examining data/tmate-2.4.0/cmd-bind-key.c
Examining data/tmate-2.4.0/cmd-break-pane.c
Examining data/tmate-2.4.0/cmd-capture-pane.c
Examining data/tmate-2.4.0/cmd-choose-buffer.c
Examining data/tmate-2.4.0/cmd-choose-client.c
Examining data/tmate-2.4.0/cmd-choose-tree.c
Examining data/tmate-2.4.0/cmd-clear-history.c
Examining data/tmate-2.4.0/cmd-command-prompt.c
Examining data/tmate-2.4.0/cmd-confirm-before.c
Examining data/tmate-2.4.0/cmd-copy-mode.c
Examining data/tmate-2.4.0/cmd-detach-client.c
Examining data/tmate-2.4.0/cmd-display-message.c
Examining data/tmate-2.4.0/cmd-display-panes.c
Examining data/tmate-2.4.0/cmd-find-window.c
Examining data/tmate-2.4.0/cmd-find.c
Examining data/tmate-2.4.0/cmd-if-shell.c
Examining data/tmate-2.4.0/cmd-join-pane.c
Examining data/tmate-2.4.0/cmd-kill-pane.c
Examining data/tmate-2.4.0/cmd-kill-server.c
Examining data/tmate-2.4.0/cmd-kill-session.c
Examining data/tmate-2.4.0/cmd-kill-window.c
Examining data/tmate-2.4.0/cmd-list-buffers.c
Examining data/tmate-2.4.0/cmd-list-clients.c
Examining data/tmate-2.4.0/cmd-list-keys.c
Examining data/tmate-2.4.0/cmd-list-panes.c
Examining data/tmate-2.4.0/cmd-list-sessions.c
Examining data/tmate-2.4.0/cmd-list-windows.c
Examining data/tmate-2.4.0/cmd-list.c
Examining data/tmate-2.4.0/cmd-load-buffer.c
Examining data/tmate-2.4.0/cmd-lock-server.c
Examining data/tmate-2.4.0/cmd-move-window.c
Examining data/tmate-2.4.0/cmd-new-session.c
Examining data/tmate-2.4.0/cmd-new-window.c
Examining data/tmate-2.4.0/cmd-paste-buffer.c
Examining data/tmate-2.4.0/cmd-pipe-pane.c
Examining data/tmate-2.4.0/cmd-queue.c
Examining data/tmate-2.4.0/cmd-refresh-client.c
Examining data/tmate-2.4.0/cmd-rename-session.c
Examining data/tmate-2.4.0/cmd-rename-window.c
Examining data/tmate-2.4.0/cmd-resize-pane.c
Examining data/tmate-2.4.0/cmd-respawn-pane.c
Examining data/tmate-2.4.0/cmd-respawn-window.c
Examining data/tmate-2.4.0/cmd-rotate-window.c
Examining data/tmate-2.4.0/cmd-run-shell.c
Examining data/tmate-2.4.0/cmd-save-buffer.c
Examining data/tmate-2.4.0/cmd-select-layout.c
Examining data/tmate-2.4.0/cmd-select-pane.c
Examining data/tmate-2.4.0/cmd-select-window.c
Examining data/tmate-2.4.0/cmd-send-keys.c
Examining data/tmate-2.4.0/cmd-set-buffer.c
Examining data/tmate-2.4.0/cmd-set-environment.c
Examining data/tmate-2.4.0/cmd-set-hook.c
Examining data/tmate-2.4.0/cmd-set-option.c
Examining data/tmate-2.4.0/cmd-show-environment.c
Examining data/tmate-2.4.0/cmd-show-messages.c
Examining data/tmate-2.4.0/cmd-show-options.c
Examining data/tmate-2.4.0/cmd-source-file.c
Examining data/tmate-2.4.0/cmd-split-window.c
Examining data/tmate-2.4.0/cmd-string.c
Examining data/tmate-2.4.0/cmd-swap-pane.c
Examining data/tmate-2.4.0/cmd-swap-window.c
Examining data/tmate-2.4.0/cmd-switch-client.c
Examining data/tmate-2.4.0/cmd-unbind-key.c
Examining data/tmate-2.4.0/cmd-wait-for.c
Examining data/tmate-2.4.0/cmd.c
Examining data/tmate-2.4.0/colour.c
Examining data/tmate-2.4.0/compat.h
Examining data/tmate-2.4.0/compat/asprintf.c
Examining data/tmate-2.4.0/compat/b64_ntop.c
Examining data/tmate-2.4.0/compat/bitstring.h
Examining data/tmate-2.4.0/compat/cfmakeraw.c
Examining data/tmate-2.4.0/compat/closefrom.c
Examining data/tmate-2.4.0/compat/daemon.c
Examining data/tmate-2.4.0/compat/fgetln.c
Examining data/tmate-2.4.0/compat/forkpty-aix.c
Examining data/tmate-2.4.0/compat/forkpty-hpux.c
Examining data/tmate-2.4.0/compat/forkpty-sunos.c
Examining data/tmate-2.4.0/compat/fparseln.c
Examining data/tmate-2.4.0/compat/getopt.c
Examining data/tmate-2.4.0/compat/imsg-buffer.c
Examining data/tmate-2.4.0/compat/imsg.c
Examining data/tmate-2.4.0/compat/imsg.h
Examining data/tmate-2.4.0/compat/openat.c
Examining data/tmate-2.4.0/compat/queue.h
Examining data/tmate-2.4.0/compat/reallocarray.c
Examining data/tmate-2.4.0/compat/setenv.c
Examining data/tmate-2.4.0/compat/strcasestr.c
Examining data/tmate-2.4.0/compat/strlcat.c
Examining data/tmate-2.4.0/compat/strlcpy.c
Examining data/tmate-2.4.0/compat/strsep.c
Examining data/tmate-2.4.0/compat/strtonum.c
Examining data/tmate-2.4.0/compat/tree.h
Examining data/tmate-2.4.0/compat/unvis.c
Examining data/tmate-2.4.0/compat/vis.c
Examining data/tmate-2.4.0/compat/vis.h
Examining data/tmate-2.4.0/control-notify.c
Examining data/tmate-2.4.0/control.c
Examining data/tmate-2.4.0/environ.c
Examining data/tmate-2.4.0/format.c
Examining data/tmate-2.4.0/grid-view.c
Examining data/tmate-2.4.0/grid.c
Examining data/tmate-2.4.0/hooks.c
Examining data/tmate-2.4.0/input-keys.c
Examining data/tmate-2.4.0/input.c
Examining data/tmate-2.4.0/job.c
Examining data/tmate-2.4.0/key-bindings.c
Examining data/tmate-2.4.0/key-string.c
Examining data/tmate-2.4.0/layout-custom.c
Examining data/tmate-2.4.0/layout-set.c
Examining data/tmate-2.4.0/layout.c
Examining data/tmate-2.4.0/log.c
Examining data/tmate-2.4.0/mode-key.c
Examining data/tmate-2.4.0/names.c
Examining data/tmate-2.4.0/notify.c
Examining data/tmate-2.4.0/options-table.c
Examining data/tmate-2.4.0/options.c
Examining data/tmate-2.4.0/osdep-aix.c
Examining data/tmate-2.4.0/osdep-cygwin.c
Examining data/tmate-2.4.0/osdep-darwin.c
Examining data/tmate-2.4.0/osdep-dragonfly.c
Examining data/tmate-2.4.0/osdep-freebsd.c
Examining data/tmate-2.4.0/osdep-hpux.c
Examining data/tmate-2.4.0/osdep-linux.c
Examining data/tmate-2.4.0/osdep-netbsd.c
Examining data/tmate-2.4.0/osdep-openbsd.c
Examining data/tmate-2.4.0/osdep-sunos.c
Examining data/tmate-2.4.0/osdep-unknown.c
Examining data/tmate-2.4.0/paste.c
Examining data/tmate-2.4.0/proc.c
Examining data/tmate-2.4.0/resize.c
Examining data/tmate-2.4.0/screen-redraw.c
Examining data/tmate-2.4.0/screen-write.c
Examining data/tmate-2.4.0/screen.c
Examining data/tmate-2.4.0/server-client.c
Examining data/tmate-2.4.0/server-fn.c
Examining data/tmate-2.4.0/server.c
Examining data/tmate-2.4.0/session.c
Examining data/tmate-2.4.0/signal.c
Examining data/tmate-2.4.0/status.c
Examining data/tmate-2.4.0/style.c
Examining data/tmate-2.4.0/tmate-debug.c
Examining data/tmate-2.4.0/tmate-decoder.c
Examining data/tmate-2.4.0/tmate-encoder.c
Examining data/tmate-2.4.0/tmate-env.c
Examining data/tmate-2.4.0/tmate-msg.c
Examining data/tmate-2.4.0/tmate-msgpack.c
Examining data/tmate-2.4.0/tmate-protocol.h
Examining data/tmate-2.4.0/tmate-session.c
Examining data/tmate-2.4.0/tmate.h
Examining data/tmate-2.4.0/tmux.c
Examining data/tmate-2.4.0/tmux.h
Examining data/tmate-2.4.0/tty-acs.c
Examining data/tmate-2.4.0/tty-keys.c
Examining data/tmate-2.4.0/tty-term.c
Examining data/tmate-2.4.0/tty.c
Examining data/tmate-2.4.0/utf8.c
Examining data/tmate-2.4.0/window-choose.c
Examining data/tmate-2.4.0/window-clock.c
Examining data/tmate-2.4.0/window-copy.c
Examining data/tmate-2.4.0/window-copy.h
Examining data/tmate-2.4.0/window.c
Examining data/tmate-2.4.0/xmalloc.c
Examining data/tmate-2.4.0/xmalloc.h
Examining data/tmate-2.4.0/xterm-keys.c
Examining data/tmate-2.4.0/tmate-ssh-client.c

FINAL RESULTS:

data/tmate-2.4.0/osdep-aix.c:80:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	n = readlink(path, target, MAXPATHLEN);
data/tmate-2.4.0/osdep-cygwin.c:75:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	n = readlink(path, target, MAXPATHLEN);
data/tmate-2.4.0/osdep-linux.c:76:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	n = readlink(path, target, MAXPATHLEN);
data/tmate-2.4.0/osdep-linux.c:81:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		n = readlink(path, target, MAXPATHLEN);
data/tmate-2.4.0/osdep-sunos.c:88:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	n = readlink(path, target, MAXPATHLEN);
data/tmate-2.4.0/server.c:307:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(socket_path, mode);
data/tmate-2.4.0/cfg.c:67: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(TMUX_CONF, R_OK) == 0) {
data/tmate-2.4.0/cfg.c:75: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(cfg_file, R_OK) != 0 && errno == ENOENT) {
data/tmate-2.4.0/client.c:575:2:  [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(shell, argv0, "-c", shellcmd, (char *) NULL);
data/tmate-2.4.0/client.c:794:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		system(data);
data/tmate-2.4.0/cmd-pipe-pane.c:124: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(_PATH_BSHELL, "sh", "-c", cmd, (char *) NULL);
data/tmate-2.4.0/compat/asprintf.c:49:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	if ((n = vsnprintf(NULL, 0, fmt, ap)) < 0)
data/tmate-2.4.0/compat/asprintf.c:53:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	if ((n = vsnprintf(*ret, n + 1, fmt, ap2)) < 0) {
data/tmate-2.4.0/job.c:96: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(_PATH_BSHELL, "sh", "-c", cmd, (char *) NULL);
data/tmate-2.4.0/server-client.c:1230: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(data, X_OK) == 0)
data/tmate-2.4.0/tmate-debug.c:48:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "addr2line -e %s %s -f -p -s", file, address);
data/tmate-2.4.0/tmate-debug.c:50:7:  [4] (shell) popen:
  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.
	ps = popen(cmd, "r");
data/tmate-2.4.0/tmux.c:101: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(shell, X_OK) != 0)
data/tmate-2.4.0/tmux.c:168:3:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		mktemp(path);
data/tmate-2.4.0/tmux.h:78:50:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printflike(a, b) __attribute__ ((format (printf, a, b)))
data/tmate-2.4.0/window.c:918:5:  [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(argvp[0], argvp);
data/tmate-2.4.0/window.c:927: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(wp->shell, argv0, "-c", first, (char *)NULL);
data/tmate-2.4.0/window.c:934: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(wp->shell, argv0, (char *)NULL);
data/tmate-2.4.0/xmalloc.c:133: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.
	i = vsnprintf(str, len, fmt, ap);
data/tmate-2.4.0/xmalloc.h:32:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		__attribute__((__format__ (printf, 2, 3)))
data/tmate-2.4.0/xmalloc.h:37:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		__attribute__((__format__ (printf, 3, 4)))
data/tmate-2.4.0/arguments.c:94:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, template)) != -1) {
data/tmate-2.4.0/client.c:344:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (cant_nest && getenv("TMUX")) {
data/tmate-2.4.0/client.c:491:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((s = getenv("TERM")) == NULL)
data/tmate-2.4.0/cmd-load-buffer.c:87:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(file, resolved) == NULL &&
data/tmate-2.4.0/cmd-save-buffer.c:115:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(file, resolved) == NULL &&
data/tmate-2.4.0/compat.h:285:9:  [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.
#define getopt(ac, av, o)  BSDgetopt(ac, av, o)
data/tmate-2.4.0/tmux.c:83:10:  [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.
	shell = getenv("SHELL");
data/tmate-2.4.0/tmux.c:139:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
data/tmate-2.4.0/tmux.c:163:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(base, resolved) == NULL)
data/tmate-2.4.0/tmux.c:202:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	home = getenv("HOME");
data/tmate-2.4.0/tmux.c:267:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "h2c:CdFf:lL:qS:uUVvk:n:r:a:")) != -1) {
data/tmate-2.4.0/tmux.c:348: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("TMUX") != NULL)
data/tmate-2.4.0/tmux.c:351:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		s = getenv("LC_ALL");
data/tmate-2.4.0/tmux.c:353:8:  [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.
			s = getenv("LC_CTYPE");
data/tmate-2.4.0/tmux.c:355:8:  [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.
			s = getenv("LANG");
data/tmate-2.4.0/tmux.c:382:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {
data/tmate-2.4.0/tmux.c:382:45:  [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 ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {
data/tmate-2.4.0/tmux.c:399:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		s = getenv("TMUX");
data/tmate-2.4.0/array.h:107: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((a)->list + (a)->num, (b)->list, (b)->num * ARRAY_ITEMSIZE(a)); \
data/tmate-2.4.0/attributes.c:28: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	buf[128];
data/tmate-2.4.0/cfg.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 delim[3] = { '\\', '\\', '\0' };
data/tmate-2.4.0/cfg.c:98:11:  [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 ((f = fopen(path, "rb")) == NULL) {
data/tmate-2.4.0/client.c:80: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).
	if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) {
data/tmate-2.4.0/client.c:181: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 msg[256];
data/tmate-2.4.0/client.c:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			*cause, path[PATH_MAX];
data/tmate-2.4.0/client.c:670: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(&retval, data, sizeof retval);
data/tmate-2.4.0/client.c:692: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(&stdoutdata, data, sizeof stdoutdata);
data/tmate-2.4.0/client.c:700: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(&stderrdata, data, sizeof stderrdata);
data/tmate-2.4.0/cmd-capture-pane.c:56:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + *len, line, linelen);
data/tmate-2.4.0/cmd-capture-pane.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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, *line, tmp[5];
data/tmate-2.4.0/cmd-find.c: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			 tmp[256];
data/tmate-2.4.0/cmd-if-shell.c:120: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(&cdata->mouse, &cmdq->item->mouse, sizeof cdata->mouse);
data/tmate-2.4.0/cmd-list-keys.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			*cp, tmp[BUFSIZ];
data/tmate-2.4.0/cmd-load-buffer.c: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		*pdata, *new_pdata, *cause, *file, resolved[PATH_MAX];
data/tmate-2.4.0/cmd-load-buffer.c:92:6:  [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).
	f = fopen(resolved, "rb");
data/tmate-2.4.0/cmd-load-buffer.c:154: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(pdata, EVBUFFER_DATA(c->stdin_data), psize);
data/tmate-2.4.0/cmd-pipe-pane.c:114:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		null_fd = open(_PATH_DEVNULL, O_WRONLY, 0);
data/tmate-2.4.0/cmd-queue.c:190: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(&item->mouse, m, sizeof item->mouse);
data/tmate-2.4.0/cmd-run-shell.c:142: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(line, EVBUFFER_DATA(job->event->input), size);
data/tmate-2.4.0/cmd-save-buffer.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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, *file, resolved[PATH_MAX];
data/tmate-2.4.0/cmd-save-buffer.c:120:6:  [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).
	f = fopen(resolved, flags);
data/tmate-2.4.0/cmd-set-buffer.c:108: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(bufdata, olddata, bufsize);
data/tmate-2.4.0/cmd-set-buffer.c:112: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(bufdata + bufsize, args->argv[0], newsize);
data/tmate-2.4.0/cmd.c:316:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 s[BUFSIZ];
data/tmate-2.4.0/colour.c:361: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	s[32];
data/tmate-2.4.0/compat/closefrom.c:73: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 fdpath[PATH_MAX], *endp;
data/tmate-2.4.0/compat/daemon.c:57:24:  [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 (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/tmate-2.4.0/compat/forkpty-aix.c:38: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).
	if ((*master = open("/dev/ptc", O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/forkpty-aix.c:47: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 ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/forkpty-aix.c:63: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(_PATH_TTY, O_RDWR|O_NOCTTY);
data/tmate-2.4.0/compat/forkpty-aix.c:72: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(_PATH_TTY, O_RDWR|O_NOCTTY);
data/tmate-2.4.0/compat/forkpty-aix.c:76: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(path, O_RDWR);
data/tmate-2.4.0/compat/forkpty-aix.c:81: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/tty", O_WRONLY);
data/tmate-2.4.0/compat/forkpty-hpux.c:34: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).
	if ((*master = open("/dev/ptmx", O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/forkpty-hpux.c:45: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 ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/forkpty-sunos.c:35: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).
	if ((*master = open("/dev/ptmx", O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/forkpty-sunos.c:46: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 ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
data/tmate-2.4.0/compat/fparseln.c:82: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 *
data/tmate-2.4.0/compat/fparseln.c:83:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3],
data/tmate-2.4.0/compat/fparseln.c:86: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 dstr[3] = { '\\', '\\', '#' };
data/tmate-2.4.0/compat/fparseln.c:147:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void) memcpy(buf + len, ptr, s);
data/tmate-2.4.0/compat/imsg-buffer.c:97: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->buf + buf->wpos, data, len);
data/tmate-2.4.0/compat/imsg-buffer.c:233: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[CMSG_SPACE(sizeof(int))];
data/tmate-2.4.0/compat/imsg.c:87: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[CMSG_SPACE(sizeof(int) * 1)];
data/tmate-2.4.0/compat/imsg.c:187: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(imsg->data, ibuf->r.rptr, datalen);
data/tmate-2.4.0/compat/openat.c:40: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).
		dotfd = open(".", O_RDONLY);
data/tmate-2.4.0/compat/openat.c:51: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).
	retval = open(path, flags, mode);
data/tmate-2.4.0/compat/vis.c:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbuf[5];
data/tmate-2.4.0/compat/vis.c:191: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(dst, tbuf, i);
data/tmate-2.4.0/format.c:214: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(buf, EVBUFFER_DATA(job->event->input), len);
data/tmate-2.4.0/format.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 host[HOST_NAME_MAX + 1];
data/tmate-2.4.0/format.c:308:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[HOST_NAME_MAX + 1], *cp;
data/tmate-2.4.0/format.c:332:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 alerts[256], tmp[16];
data/tmate-2.4.0/format.c:609: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		 s[64];
data/tmate-2.4.0/format.c:710: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(copy, key, keylen);
data/tmate-2.4.0/format.c:823: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(new, to, tolen);
data/tmate-2.4.0/format.c:850: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 + *off, value, valuelen);
data/tmate-2.4.0/format.c:935: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(tmp, fmt, n);
data/tmate-2.4.0/format.c:949: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(buf + off, out, outlen);
data/tmate-2.4.0/grid.c:214: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(gl_history, gl_upper, sizeof *gl_history);
data/tmate-2.4.0/grid.c:258: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/grid.c:267: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/grid.c:269: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(gc, &gl->extddata[gce->offset], sizeof *gc);
data/tmate-2.4.0/grid.c:313: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(gcp, gc, sizeof *gcp);
data/tmate-2.4.0/grid.c:551:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/tmate-2.4.0/grid.c:637:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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, code[128];
data/tmate-2.4.0/grid.c:643: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(&lastgc1, &grid_default_cell, sizeof lastgc1);
data/tmate-2.4.0/grid.c:663: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(*lastgc, &gc, sizeof **lastgc);
data/tmate-2.4.0/grid.c:680: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(buf + off, code, codelen);
data/tmate-2.4.0/grid.c:683:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + off, data, size);
data/tmate-2.4.0/grid.c:718: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(dstl, srcl, sizeof *dstl);
data/tmate-2.4.0/grid.c:722: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(dstl->celldata, srcl->celldata,
data/tmate-2.4.0/grid.c:731: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(dstl->extddata, srcl->extddata, dstl->extdsize *
data/tmate-2.4.0/grid.c:748: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_gl->celldata[to], &src_gl->celldata[from],
data/tmate-2.4.0/grid.c:760: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_gl->extddata[gce->offset], &src_gl->extddata[was],
data/tmate-2.4.0/grid.c:853: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_gl, src_gl, sizeof *dst_gl);
data/tmate-2.4.0/input-keys.c:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[40];
data/tmate-2.4.0/input.c:748: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(&ictx->cell.cell, &grid_default_cell, sizeof ictx->cell.cell);
data/tmate-2.4.0/input.c:752: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(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
data/tmate-2.4.0/input.c:1167: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(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
data/tmate-2.4.0/input.c:1172: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(&ictx->cell, &ictx->old_cell, sizeof ictx->cell);
data/tmate-2.4.0/input.c:1362: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(&ictx->cell, &ictx->old_cell, sizeof ictx->cell);
data/tmate-2.4.0/input.c:1372: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(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
data/tmate-2.4.0/input.c:1695: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/input.c:1718: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/job.c:86:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
data/tmate-2.4.0/key-string.c:225: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		out[24];
data/tmate-2.4.0/key-string.c:226:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8];
data/tmate-2.4.0/key-string.c:273: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(out, ud.data, ud.size);
data/tmate-2.4.0/layout-custom.c: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	layout[BUFSIZ], *out;
data/tmate-2.4.0/layout-custom.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/tmate-2.4.0/log.c:83: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).
	FILE *f = fopen(path, "w");
data/tmate-2.4.0/names.c:84: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(&w->name_time, &tv, sizeof w->name_time);
data/tmate-2.4.0/options-table.c:1035: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	 out[BUFSIZ];
data/tmate-2.4.0/options.c:136: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(&o->style, &grid_default_cell, sizeof o->style);
data/tmate-2.4.0/options.c:168: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(&o->style, &grid_default_cell, sizeof o->style);
data/tmate-2.4.0/options.c:198: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(&tmpgc, &grid_default_cell, sizeof tmpgc);
data/tmate-2.4.0/options.c:200: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(&tmpgc, &o->style, sizeof tmpgc);
data/tmate-2.4.0/options.c:213: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(&o->style, &tmpgc, sizeof o->style);
data/tmate-2.4.0/osdep-aix.c:37: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 ((ttyfd = open(tty, O_RDONLY|O_NOCTTY)) == -1)
data/tmate-2.4.0/osdep-aix.c:46:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = open(path, O_RDONLY);
data/tmate-2.4.0/osdep-aix.c:62: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      target[MAXPATHLEN + 1];
data/tmate-2.4.0/osdep-aix.c:71: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 ((ttyfd = open(ttypath, O_RDONLY|O_NOCTTY)) == -1)
data/tmate-2.4.0/osdep-cygwin.c:42:11:  [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 ((f = fopen(path, "r")) == NULL) {
data/tmate-2.4.0/osdep-cygwin.c:66: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	 target[MAXPATHLEN + 1];
data/tmate-2.4.0/osdep-darwin.c:55: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			wd[PATH_MAX];
data/tmate-2.4.0/osdep-freebsd.c:138: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		 wd[PATH_MAX];
data/tmate-2.4.0/osdep-linux.c:43:11:  [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 ((f = fopen(path, "r")) == NULL) {
data/tmate-2.4.0/osdep-linux.c:67: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	 target[MAXPATHLEN + 1];
data/tmate-2.4.0/osdep-openbsd.c:143: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	path[MAXPATHLEN];
data/tmate-2.4.0/osdep-sunos.c:41: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).
	if ((f = open(tty, O_RDONLY)) < 0)
data/tmate-2.4.0/osdep-sunos.c:51:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = open(path, O_RDONLY);
data/tmate-2.4.0/osdep-sunos.c:70:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char	 target[MAXPATHLEN + 1];
data/tmate-2.4.0/osdep-sunos.c:79: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 ((ttyfd = open(ttypath, O_RDONLY|O_NOCTTY)) == -1)
data/tmate-2.4.0/screen-redraw.c:286:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[256];
data/tmate-2.4.0/screen-redraw.c:319: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(&m_other_gc, &other_gc, sizeof m_other_gc);
data/tmate-2.4.0/screen-redraw.c:321: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(&m_active_gc, &active_gc, sizeof m_active_gc);
data/tmate-2.4.0/screen-redraw.c:351: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(&msg_gc, &grid_default_cell, sizeof msg_gc);
data/tmate-2.4.0/screen-redraw.c:400:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16], *ptr;
data/tmate-2.4.0/screen-redraw.c:426: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/screen-redraw.c:453: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/screen-write.c:245: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(&lgc, gc, sizeof lgc);
data/tmate-2.4.0/screen-write.c:368: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/screen-write.c:375: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(&ttyctx->last_cell, &gc, sizeof ttyctx->last_cell);
data/tmate-2.4.0/screen-write.c:512: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/screen-write.c:968: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(&tmp_gc, &grid_default_cell, sizeof tmp_gc);
data/tmate-2.4.0/screen-write.c:993: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(&tmp_gc, &s->sel.cell, sizeof tmp_gc);
data/tmate-2.4.0/screen-write.c:1034: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(gc.data.data + gc.data.size, ud->data, ud->size);
data/tmate-2.4.0/screen.c:249: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(&sel->cell, gc, sizeof sel->cell);
data/tmate-2.4.0/server-client.c:113: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(&c->activity_time, &c->creation_time, sizeof c->activity_time);
data/tmate-2.4.0/server-client.c:1075: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(&stdindata, data, sizeof stdindata);
data/tmate-2.4.0/server-client.c:1153: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(&data, imsg->data, sizeof data);
data/tmate-2.4.0/server-client.c:1211: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(&flags, data, sizeof flags);
data/tmate-2.4.0/server-client.c:1254: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(&c->pid, data, sizeof c->pid);
data/tmate-2.4.0/server-client.c:1266: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).
	c->fd = open(c->ttyname, O_RDWR|O_NOCTTY);
data/tmate-2.4.0/server-client.c:1342: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(data.data, EVBUFFER_DATA(c->stdout_data), sent);
data/tmate-2.4.0/server-client.c:1388: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(data.data, EVBUFFER_DATA(c->stderr_data), sent);
data/tmate-2.4.0/server-fn.c:319: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/session.c:140: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(s->tio, tio, sizeof *s->tio);
data/tmate-2.4.0/session.c:310: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(last, &s->activity_time, sizeof *last);
data/tmate-2.4.0/session.c:314: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(&s->activity_time, from, sizeof s->activity_time);
data/tmate-2.4.0/session.c:733: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(&old_windows, &s->windows, sizeof old_windows);
data/tmate-2.4.0/session.c:751: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(&old_lastw, &s->lastw, sizeof old_lastw);
data/tmate-2.4.0/session.c:779: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(&old_wins, &s->windows, sizeof old_wins);
data/tmate-2.4.0/session.c:799: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(&old_lastw, &s->lastw, sizeof old_lastw);
data/tmate-2.4.0/status.c:91:6:  [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).
	f = fopen(history_file, "r");
data/tmate-2.4.0/status.c:109: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(tmp, line, length);
data/tmate-2.4.0/status.c:131:6:  [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).
	f = fopen(history_file, "w");
data/tmate-2.4.0/status.c:308: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(&old_status, &c->status, sizeof old_status);
data/tmate-2.4.0/status.c:320: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(&lgc, &stdgc, sizeof lgc);
data/tmate-2.4.0/status.c:322: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(&rgc, &stdgc, sizeof rgc);
data/tmate-2.4.0/status.c:346: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(&wl->status_cell, &stdgc, sizeof wl->status_cell);
data/tmate-2.4.0/status.c:444: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(&gc, &stdgc, sizeof gc);
data/tmate-2.4.0/status.c:453: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(&gc, &stdgc, sizeof gc);
data/tmate-2.4.0/status.c:641: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(&old_status, &c->status, sizeof old_status);
data/tmate-2.4.0/status.c:768: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(&old_status, &c->status, sizeof old_status);
data/tmate-2.4.0/status.c:826:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			*s, *first, *last, word[64], swapc;
data/tmate-2.4.0/status.c:893: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(word, first, last - first);
data/tmate-2.4.0/status.c:911: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(first, s, strlen(s));
data/tmate-2.4.0/status.c:1089: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(c->prompt_buffer + c->prompt_index, bufdata, n);
data/tmate-2.4.0/status.c:1096: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(c->prompt_buffer + c->prompt_index, bufdata, n);
data/tmate-2.4.0/style.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			tmp[32];
data/tmate-2.4.0/style.c:42: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(&savedgc, gc, sizeof savedgc);
data/tmate-2.4.0/style.c:52: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(tmp, in, end);
data/tmate-2.4.0/style.c:115: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(gc, &savedgc, sizeof *gc);
data/tmate-2.4.0/style.c:124: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	 s[256];
data/tmate-2.4.0/style.c:191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	newname[128];
data/tmate-2.4.0/style.c:220: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/tmate-debug.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/tmate-2.4.0/tmate-debug.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[200];
data/tmate-2.4.0/tmate-debug.c:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output[300];
data/tmate-2.4.0/tmate-debug.c:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char address[20];
data/tmate-2.4.0/tmate-debug.c:42: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(file, &frame[matches[1].rm_so], matches[1].rm_eo - matches[1].rm_so);
data/tmate-2.4.0/tmate-debug.c:45: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(address, &frame[matches[2].rm_so], matches[2].rm_eo - matches[2].rm_so);
data/tmate-2.4.0/tmate-msgpack.c:167:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(alloc_buf, buf, len);
data/tmate-2.4.0/tmate-session.c:70: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[128];
data/tmate-2.4.0/tmate-session.c:164:11:  [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 ((f = fopen(path, "r")) == NULL) {
data/tmate-2.4.0/tmux.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		*base, resolved[PATH_MAX], *path, *s;
data/tmate-2.4.0/tmux.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		*path, *label, **var, tmp[PATH_MAX], *shellcmd = NULL;
data/tmate-2.4.0/tmux.h:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	data[BUFSIZ];
data/tmate-2.4.0/tmux.h:452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	data[BUFSIZ];
data/tmate-2.4.0/tmux.h:457:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	data[BUFSIZ];
data/tmate-2.4.0/tmux.h:889:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 tty[TTY_NAME_MAX];
data/tmate-2.4.0/tmux.h:1133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 acs[UCHAR_MAX + 1][2];
data/tmate-2.4.0/tmux.h:2246:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char window_clock_table[14][5][5];
data/tmate-2.4.0/tty-term.c:274: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	buf[BUFSIZ];
data/tmate-2.4.0/tty-term.c:618: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	 s[256];
data/tmate-2.4.0/tty-term.c:619:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 out[128];
data/tmate-2.4.0/tty.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	name[64];
data/tmate-2.4.0/tty.c:146: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).
	tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
data/tmate-2.4.0/tty.c:277: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(&tio, orig_tio, sizeof tio);
data/tmate-2.4.0/tty.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(&tty->cell, &grid_default_cell, sizeof tty->cell);
data/tmate-2.4.0/tty.c:676: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/tty.c:1261: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(gc, &grid_default_cell, sizeof *gc);
data/tmate-2.4.0/tty.c:1438: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(&gc2, gc, sizeof gc2);
data/tmate-2.4.0/tty.c:1652:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 s[32];
data/tmate-2.4.0/tty.c:1685: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(&tc->fg_rgb, &gc->fg_rgb, sizeof tc->fg_rgb);
data/tmate-2.4.0/tty.c:1697:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 s[32];
data/tmate-2.4.0/tty.c:1728: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(&tc->bg_rgb, &gc->bg_rgb, sizeof tc->bg_rgb);
data/tmate-2.4.0/tty.c:1738:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	s[32];
data/tmate-2.4.0/tty.c:1775:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	s[32];
data/tmate-2.4.0/utf8.c:51: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(to, from, sizeof *to);
data/tmate-2.4.0/utf8.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	s[MB_LEN_MAX];
data/tmate-2.4.0/utf8.c:149: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(ud->data, s, slen);
data/tmate-2.4.0/utf8.c:286: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 + n, src->data, src->size);
data/tmate-2.4.0/utf8.c:396: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(out, s, slen);
data/tmate-2.4.0/window-choose.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/tmate-2.4.0/window-choose.c:756:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				 hdr[32], label[32];
data/tmate-2.4.0/window-choose.c:763: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-choose.c:799: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-clock.c:49: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.
const char window_clock_table[14][5][5] = {
data/tmate-2.4.0/window-clock.c:203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				 tim[64], *ptr;
data/tmate-2.4.0/window-clock.c:232: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-clock.c:244: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-copy.c:239: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-copy.c:858: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(data->inputstr + inputlen, bufdata, n);
data/tmate-2.4.0/window-copy.c:1069: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-copy.c:1140: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-copy.c:1211:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				 hdr[512];
data/tmate-2.4.0/window-copy.c:1265: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(&gc, &grid_default_cell, sizeof gc);
data/tmate-2.4.0/window-copy.c:1595:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, bufdata, bufsize);
data/tmate-2.4.0/window-copy.c:1645: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(ud.data, s, ud.size);
data/tmate-2.4.0/window-copy.c:1650: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(*buf + *off, ud.data, ud.size);
data/tmate-2.4.0/window.c:698:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/tmate-2.4.0/window.c:748:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_NAME_MAX + 1];
data/tmate-2.4.0/window.c:784: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(&wp->colgc, &grid_default_cell, sizeof wp->colgc);
data/tmate-2.4.0/window.c:842:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 s[32];
data/tmate-2.4.0/window.c:888: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(tio2.c_cc, tio->c_cc, sizeof tio2.c_cc);
data/tmate-2.4.0/window.c:1066: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(&wp->saved_cell, gc, sizeof wp->saved_cell);
data/tmate-2.4.0/window.c:1107: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(gc, &wp->saved_cell, sizeof *gc);
data/tmate-2.4.0/attributes.c:57: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 (strchr(delimiters, str[strlen(str) - 1]) != NULL)
data/tmate-2.4.0/client.c:433: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).
			size += strlen(argv[i]) + 1;
data/tmate-2.4.0/client.c:493:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	proc_send(client_peer, MSG_IDENTIFY_TERM, -1, s, strlen(s) + 1);
data/tmate-2.4.0/client.c:496: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).
	    strlen(ttynam) + 1);
data/tmate-2.4.0/client.c:497:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	proc_send(client_peer, MSG_IDENTIFY_CWD, -1, cwd, strlen(cwd) + 1);
data/tmate-2.4.0/client.c:507: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).
		sslen = strlen(*ss) + 1;
data/tmate-2.4.0/client.c:523:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	data.size = read(STDIN_FILENO, data.data, sizeof data.data);
data/tmate-2.4.0/cmd-capture-pane.c:86: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).
			    strlen(tmp));
data/tmate-2.4.0/cmd-capture-pane.c:165: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).
		linelen = strlen(line);
data/tmate-2.4.0/cmd-find.c:434: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 (strncmp(session, s_loop->name, strlen(session)) == 0) {
data/tmate-2.4.0/cmd-find.c:619:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(window, wl->window->name, strlen(window)) == 0) {
data/tmate-2.4.0/cmd-find.c:1229: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).
	size = strlen(copy);
data/tmate-2.4.0/cmd-list-keys.c:168:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		keywidth = strlen(key);
data/tmate-2.4.0/cmd-list.c:44: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).
		arglen = strlen(copy_argv[i]);
data/tmate-2.4.0/cmd-list.c:115: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(this) + 3;
data/tmate-2.4.0/cmd-load-buffer.c:101:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(f)) != EOF) {
data/tmate-2.4.0/cmd-paste-buffer.c:81: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).
		seplen = strlen(sepstr);
data/tmate-2.4.0/cmd-queue.c:87:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			evbuffer_add(c->stdout_data, msg, strlen(msg));
data/tmate-2.4.0/cmd-queue.c:138: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).
			msglen = strlen(msg);
data/tmate-2.4.0/cmd-set-buffer.c:99: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).
	if ((newsize = strlen(args->argv[0])) == 0)
data/tmate-2.4.0/cmd-set-option.c:489:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strncmp(*choicep, value, strlen(value)) != 0)
data/tmate-2.4.0/cmd-show-environment.c:55:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	out = ret = xmalloc(strlen(value) * 2 + 1); /* at most twice the size */
data/tmate-2.4.0/cmd-string.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).
	srclen = strlen(src);
data/tmate-2.4.0/cmd-string.c:341: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).
		cp = user = xmalloc(strlen(s));
data/tmate-2.4.0/cmd.c:222: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).
		arglen = strlen(argv[i]) + 1;
data/tmate-2.4.0/cmd.c:247: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).
		arglen = strlen(buf) + 1;
data/tmate-2.4.0/cmd.c:298: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(argv[i]) + 1;
data/tmate-2.4.0/cmd.c:334:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp((*entryp)->name, argv[0], strlen(argv[0])) != 0)
data/tmate-2.4.0/cmd.c:372:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp((*entryp)->name, argv[0], strlen(argv[0])) != 0)
data/tmate-2.4.0/cmd.c:379:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s[strlen(s) - 2] = '\0';
data/tmate-2.4.0/cmd.c:675: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(s);
data/tmate-2.4.0/colour.c:416:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (*s == '#' && strlen(s) == 7) {
data/tmate-2.4.0/compat/closefrom.c:33:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/tmate-2.4.0/compat/fgetln.c:45:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF) {
data/tmate-2.4.0/compat/forkpty-aix.c:57:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (read(pipe_fd[0], &dummy, 1) == -1) {
data/tmate-2.4.0/compat/fparseln.c:180: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);
data/tmate-2.4.0/compat/setenv.c:38: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).
	namelen = strlen(name);
data/tmate-2.4.0/compat/strcasestr.c:50: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(find);
data/tmate-2.4.0/compat/strlcat.c:46: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).
		return(dlen + strlen(s));
data/tmate-2.4.0/compat/vis.c:215:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = calloc(4, strlen(src) + 1);
data/tmate-2.4.0/format.c:807: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).
		fromlen = strlen(from);
data/tmate-2.4.0/format.c:808: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).
		tolen = strlen(to);
data/tmate-2.4.0/format.c:810: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).
		newlen = strlen(value) + 1;
data/tmate-2.4.0/format.c:845: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).
	valuelen = strlen(value);
data/tmate-2.4.0/format.c:876: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).
	tmplen = strlen(fmt);
data/tmate-2.4.0/format.c:940: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).
			outlen = strlen(out);
data/tmate-2.4.0/format.c:994:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = strlen(s);
data/tmate-2.4.0/grid.c:662:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			codelen = strlen(code);
data/tmate-2.4.0/input-keys.c:198: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).
			bufferevent_write(wp->event, out, strlen(out));
data/tmate-2.4.0/input-keys.c:224: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).
	dlen = strlen(ike->data);
data/tmate-2.4.0/input.c:967:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bufferevent_write(ictx->wp->event, reply, strlen(reply));
data/tmate-2.4.0/key-string.c:186: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(string) != ud.size)
data/tmate-2.4.0/layout-custom.c:107: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).
		buf[strlen(buf) - 1] = brackets[0];
data/tmate-2.4.0/layout-set.c:54:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(layout_sets[i].name, name, strlen(name)) == 0) {
data/tmate-2.4.0/names.c:147: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).
		ptr = name + strlen(name) - 1;
data/tmate-2.4.0/options-table.c:1086: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 (strncmp(oe_loop->name, optstr, strlen(optstr)) != 0)
data/tmate-2.4.0/osdep-aix.c:51:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(f, &p, sizeof(p));
data/tmate-2.4.0/osdep-aix.c:84:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((len = strlen(target)) > 1 && target[len - 1] == '/')
data/tmate-2.4.0/osdep-cygwin.c:50:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(f)) != EOF) {
data/tmate-2.4.0/osdep-linux.c:51:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(f)) != EOF) {
data/tmate-2.4.0/osdep-sunos.c:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(f, &p, sizeof(p));
data/tmate-2.4.0/proc.c:165:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (proc_send(peer, type, -1, s, strlen(s) + 1));
data/tmate-2.4.0/screen-redraw.c:303: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).
		msglen = strlen(msg);
data/tmate-2.4.0/screen-write.c:85: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).
	msg2 = xmalloc(strlen(msg) + 1);
data/tmate-2.4.0/screen-write.c:129: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).
			left = strlen(ptr);
data/tmate-2.4.0/screen-write.c:190: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).
			left = strlen(ptr);
data/tmate-2.4.0/screen-write.c:266: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).
			left = strlen(ptr);
data/tmate-2.4.0/server-fn.c:184: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(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
data/tmate-2.4.0/server.c:122:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(S_IXUSR|S_IXGRP|S_IRWXO);
data/tmate-2.4.0/server.c:125:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/tmate-2.4.0/session.c:221:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(500*1000);
data/tmate-2.4.0/status.c:266: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(options_get_string(oo, "window-status-separator"));
data/tmate-2.4.0/status.c:687: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).
	c->prompt_index = strlen(c->prompt_buffer);
data/tmate-2.4.0/status.c:747: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).
	c->prompt_index = strlen(c->prompt_buffer);
data/tmate-2.4.0/status.c:831: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).
	size = strlen(c->prompt_buffer);
data/tmate-2.4.0/status.c:906: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).
		size += strlen(s);
data/tmate-2.4.0/status.c:910: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).
		memmove(first + strlen(s), first, n);
data/tmate-2.4.0/status.c:911: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).
		memcpy(first, s, strlen(s));
data/tmate-2.4.0/status.c:913:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		c->prompt_index = (first - c->prompt_buffer) + strlen(s);
data/tmate-2.4.0/status.c:1065: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).
		c->prompt_index = strlen(c->prompt_buffer);
data/tmate-2.4.0/status.c:1074: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).
		c->prompt_index = strlen(c->prompt_buffer);
data/tmate-2.4.0/status.c:1218:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp((*cmdent)->name, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1224:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(oe->name, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1230:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(*layout, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1248: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).
		j = strlen(list[i]);
data/tmate-2.4.0/status.c:1249: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).
		if (j > strlen(out))
data/tmate-2.4.0/status.c:1250: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).
			j = strlen(out);
data/tmate-2.4.0/status.c:1288: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).
	if (copy[strlen(copy) - 1] == ':')
data/tmate-2.4.0/status.c:1289: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).
		copy[strlen(copy) - 1] = '\0';
data/tmate-2.4.0/status.c:1295: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).
		if (strncmp(s_loop->name, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1316: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 (strncmp(tmp, s, strlen(s)) == 0){
data/tmate-2.4.0/status.c:1325: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 (strncmp(tmp, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1339:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strncmp(tmp, s, strlen(s)) == 0) {
data/tmate-2.4.0/status.c:1348:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strncmp(tmp, s, strlen(s)) == 0) {
data/tmate-2.4.0/style.c:40:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strchr(delimiters, in[strlen(in) - 1]) != NULL)
data/tmate-2.4.0/tmate-debug.c:60: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).
	line[strlen(line)-1] = 0; /* remove \n */
data/tmate-2.4.0/tmate-msgpack.c:34: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(str);
data/tmate-2.4.0/tmate-session.c:144: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(path) == 0)
data/tmate-2.4.0/tmate-ssh-client.c:98: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(identity))
data/tmate-2.4.0/tmate-ssh-client.c:119: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(buf, "");
data/tmate-2.4.0/tty-keys.c:327: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 ((tk = tty_keys_find(tty, s, strlen(s), &size)) == NULL) {
data/tmate-2.4.0/tty-term.c:335:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (entstr[strlen(entstr) - 1] == '@') {
data/tmate-2.4.0/tty-term.c:336: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).
				entstr[strlen(entstr) - 1] = '\0';
data/tmate-2.4.0/tty.c:423: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).
	slen = strlen(s);
data/tmate-2.4.0/tty.c:433:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100);
data/tmate-2.4.0/tty.c:479:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bufferevent_write(tty->event, s, strlen(s));
data/tmate-2.4.0/tty.c:482: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).
		write(tty_log_fd, s, strlen(s));
data/tmate-2.4.0/tty.c:494:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			bufferevent_write(tty->event, acs, strlen(acs));
data/tmate-2.4.0/utf8.c:394: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).
	slen = strlen(s);
data/tmate-2.4.0/window-choose.c:324:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	input_len = strlen(data->input_str) + 2;
data/tmate-2.4.0/window-choose.c:542: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).
			input_len = strlen(data->input_str);
data/tmate-2.4.0/window-choose.c:699: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).
		input_len = strlen(data->input_str);
data/tmate-2.4.0/window-clock.c:226: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 (screen_size_x(s) < 6 * strlen(tim) || screen_size_y(s) < 6) {
data/tmate-2.4.0/window-clock.c:227:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) {
data/tmate-2.4.0/window-clock.c:228: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).
			x = (screen_size_x(s) / 2) - (strlen(tim) / 2);
data/tmate-2.4.0/window-clock.c:241:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	x = (screen_size_x(s) / 2) - 3 * strlen(tim);
data/tmate-2.4.0/window-copy.c:839:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		inputlen = strlen(data->inputstr);
data/tmate-2.4.0/window-copy.c:855:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		inputlen = strlen(data->inputstr);
data/tmate-2.4.0/window-copy.c:915:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		inputlen = strlen(data->inputstr) + 2;
data/tmate-2.4.0/window-copy.c:1240: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).
				int password_len = strlen(data->inputstr);
data/tmate-2.4.0/window-copy.c:1643:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (s != NULL && strlen(s) <= sizeof ud.data) {
data/tmate-2.4.0/window-copy.c:1644: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).
					ud.size = strlen(s);

ANALYSIS SUMMARY:

Hits = 398
Lines analyzed = 51746 in approximately 1.22 seconds (42252 lines/second)
Physical Source Lines of Code (SLOC) = 38235
Hits@level = [0]  30 [1] 122 [2] 232 [3]  18 [4]  20 [5]   6
Hits@level+ = [0+] 428 [1+] 398 [2+] 276 [3+]  44 [4+]  26 [5+]   6
Hits/KSLOC@level+ = [0+] 11.1939 [1+] 10.4093 [2+] 7.21852 [3+] 1.15078 [4+] 0.680005 [5+] 0.156924
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.