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/vte-0.28.2/gnome-pty-helper/gnome-pty.h
Examining data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c
Examining data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c
Examining data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c
Examining data/vte-0.28.2/gnome-pty-helper/gnome-login-support.h
Examining data/vte-0.28.2/python/vtemodule.c
Examining data/vte-0.28.2/doc/openi18n/cursor.c
Examining data/vte-0.28.2/src/vteunistr.h
Examining data/vte-0.28.2/src/vteseq-2.c
Examining data/vte-0.28.2/src/vte-private.h
Examining data/vte-0.28.2/src/trie.c
Examining data/vte-0.28.2/src/marshal.c
Examining data/vte-0.28.2/src/vterowdata.h
Examining data/vte-0.28.2/src/matcher.c
Examining data/vte-0.28.2/src/reaper.h
Examining data/vte-0.28.2/src/vteconv.c
Examining data/vte-0.28.2/src/vteaccess.h
Examining data/vte-0.28.2/src/vtestream.h
Examining data/vte-0.28.2/src/vteseq-list.h
Examining data/vte-0.28.2/src/vtestream-base.h
Examining data/vte-0.28.2/src/pty.h
Examining data/vte-0.28.2/src/buffer.h
Examining data/vte-0.28.2/src/vteversion.h
Examining data/vte-0.28.2/src/vtetree.c
Examining data/vte-0.28.2/src/vteseq-n.c
Examining data/vte-0.28.2/src/pty.c
Examining data/vte-0.28.2/src/vteconv.h
Examining data/vte-0.28.2/src/debug.h
Examining data/vte-0.28.2/src/vtepty.h
Examining data/vte-0.28.2/src/debug.c
Examining data/vte-0.28.2/src/vteint.h
Examining data/vte-0.28.2/src/vtetree.h
Examining data/vte-0.28.2/src/vtedeprecated.h
Examining data/vte-0.28.2/src/vtebg.c
Examining data/vte-0.28.2/src/xticker.c
Examining data/vte-0.28.2/src/matcher.h
Examining data/vte-0.28.2/src/caps.c
Examining data/vte-0.28.2/src/interpret.c
Examining data/vte-0.28.2/src/ring.h
Examining data/vte-0.28.2/src/vtebg.h
Examining data/vte-0.28.2/src/vtestream-file.h
Examining data/vte-0.28.2/src/vtestream.c
Examining data/vte-0.28.2/src/vtetc.c
Examining data/vte-0.28.2/src/vteregex.c
Examining data/vte-0.28.2/src/vterowdata.c
Examining data/vte-0.28.2/src/ring.c
Examining data/vte-0.28.2/src/vtepty-private.h
Examining data/vte-0.28.2/src/vtedraw.c
Examining data/vte-0.28.2/src/iso2022.h
Examining data/vte-0.28.2/src/vte.h
Examining data/vte-0.28.2/src/slowcat.c
Examining data/vte-0.28.2/src/vtetypebuiltins.h
Examining data/vte-0.28.2/src/keysyms.c
Examining data/vte-0.28.2/src/caps.h
Examining data/vte-0.28.2/src/vteunistr.c
Examining data/vte-0.28.2/src/vte-gtk-compat.h
Examining data/vte-0.28.2/src/vtetypebuiltins.c
Examining data/vte-0.28.2/src/vtetc.h
Examining data/vte-0.28.2/src/vteapp.c
Examining data/vte-0.28.2/src/vteregex.h
Examining data/vte-0.28.2/src/mev.c
Examining data/vte-0.28.2/src/table.h
Examining data/vte-0.28.2/src/vtedraw.h
Examining data/vte-0.28.2/src/trie.h
Examining data/vte-0.28.2/src/dumpkeys.c
Examining data/vte-0.28.2/src/iso2022.c
Examining data/vte-0.28.2/src/marshal.h
Examining data/vte-0.28.2/src/vteaccess.c
Examining data/vte-0.28.2/src/reaper.c
Examining data/vte-0.28.2/src/reflect.c
Examining data/vte-0.28.2/src/vte.c
Examining data/vte-0.28.2/src/keymap.h
Examining data/vte-0.28.2/src/table.c
Examining data/vte-0.28.2/src/vteseq.c
Examining data/vte-0.28.2/src/keymap.c
Examining data/vte-0.28.2/src/ssfe.c

FINAL RESULTS:

data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:120:3:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		chown (pty_name, getuid (), group_info->gr_gid);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:121: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 (pty_name, S_IRUSR | S_IWUSR | S_IWGRP);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:125:3:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		chown (pty_name, getuid (), -1);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:126: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 (pty_name, S_IRUSR | S_IWUSR | S_IWGRP);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:243:3:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		chown (line, getuid (), group_info->gr_gid);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:244: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 (line, S_IRUSR | S_IWUSR | S_IWGRP);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:246:3:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		chown (line, getuid (), -1);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:247: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 (line, S_IRUSR | S_IWUSR | S_IWGRP);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:99:8:  [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 (pty_name, (R_OK | W_OK))){
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:218:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (pty_name, slave_name);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:278:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy (name, line);
data/vte-0.28.2/src/mev.c:51:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stdout, _VTE_CAP_CSI "?%d%c", mode, value ? 'h' : 'l');
data/vte-0.28.2/src/pty.c:1184: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(LIBEXECDIR "/gnome-pty-helper",
data/vte-0.28.2/src/ssfe.c:316:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(nt->string, line);
data/vte-0.28.2/src/ssfe.c:348:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(nt->string, line);
data/vte-0.28.2/src/ssfe.c:390:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		 strcpy(input, protcmd+1);
data/vte-0.28.2/src/ssfe.c:408:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    case 'o' : strcpy(o_buffer, protcmd+1);
data/vte-0.28.2/src/ssfe.c:701:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(input, prompt);
data/vte-0.28.2/src/ssfe.c:717:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(histcurrent->string, h->string);
data/vte-0.28.2/src/ssfe.c:928:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(input+plen, curtabt->string);
data/vte-0.28.2/src/ssfe.c:937:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(input+plen, curtabr->string);
data/vte-0.28.2/src/ssfe.c:1115:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp(argv[1], argv+1);
data/vte-0.28.2/src/ssfe.c:1206:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tmpstr, argv[i]);
data/vte-0.28.2/src/ssfe.c:1221:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(input, prompt);
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:650:12:  [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.
	logname = getenv ("LOGNAME");
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:675:17:  [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.
	display_name = getenv ("DISPLAY");
data/vte-0.28.2/src/reflect.c:75: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.
				  getenv("SHELL") ? getenv("SHELL") : "/bin/sh",
data/vte-0.28.2/src/reflect.c:75:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				  getenv("SHELL") ? getenv("SHELL") : "/bin/sh",
data/vte-0.28.2/src/reflect.c:78:7:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
				  g_get_home_dir() ? g_get_home_dir() : NULL,
data/vte-0.28.2/src/reflect.c:78:26:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
				  g_get_home_dir() ? g_get_home_dir() : NULL,
data/vte-0.28.2/src/reflect.c:159:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv("REFLECT_VERBOSE") != NULL) &&
data/vte-0.28.2/src/reflect.c:160:12:  [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.
	    (atol(getenv("REFLECT_VERBOSE")) != 0)) {
data/vte-0.28.2/src/reflect.c:185:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv("REFLECT_VERBOSE") != NULL) &&
data/vte-0.28.2/src/reflect.c:186:12:  [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.
	    (atol(getenv("REFLECT_VERBOSE")) != 0)) {
data/vte-0.28.2/src/slowcat.c:86:14:  [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 ((c = getopt(argc, argv, "t:c:")) != -1) {
data/vte-0.28.2/src/ssfe.c:1043:17:  [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 ((termtype=getenv("TERM"))==NULL) barf("No terminal type set");
data/vte-0.28.2/src/ssfe.c:1081:17:  [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.
    nlines=((vr=getenv("LINES"))?atoi(vr):0);
data/vte-0.28.2/src/ssfe.c:1082:16:  [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.
    ncols=((vr=getenv("COLUMNS"))?atoi(vr):0);
data/vte-0.28.2/src/vteapp.c:736: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("VTE_PROFILE_MEMORY")) {
data/vte-0.28.2/src/vteapp.c:737:12:  [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 (atol(getenv("VTE_PROFILE_MEMORY")) != 0) {
data/vte-0.28.2/src/xticker.c:54:14:  [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 ((c = getopt(argc, argv, "d:w:")) != -1) {
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:53:27:  [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).
                ct_fdes = open(ctty, O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:83:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (pty_name, "/dev/ptyXX");
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:92:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((pty_master = open (pty_name, O_RDWR)) == -1) {
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:133:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((pty_slave = open (pty_name, O_RDWR)) == -1){
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:150:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int pty_slave = open (pty_name, O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:190:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (pty_name, "/dev/ptmx");
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:192: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).
	pty_master = open (pty_name, O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:195:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy (pty_name, "/dev/ptc"); /* AIX */
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:196: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).
		pty_master = open (pty_name, O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line [256];
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:65:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char login_name_buffer [48];
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:113:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char          buf [1];
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:114:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char    cmsgbuf[CMSG_SPACE(sizeof(int))];
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:133:9:  [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 (fdptr, &fd, sizeof(int));
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:160: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 [1];
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:576: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).
		stderr_fd = open ("/dev/tty", O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:578: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).
			stderr_fd = open ("/dev/null", O_RDWR);
data/vte-0.28.2/gnome-pty-helper/gnome-pty-helper.c:665:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (login_name_buffer, "#%u", (unsigned int)getuid ());
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:112:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (file, O_WRONLY|O_APPEND, 0)) < 0)
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:179:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (UTMP_OUTPUT_FILENAME, O_RDWR|O_CREAT, 0644)) < 0)
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:210: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 ((fd = open(LASTLOG_OUTPUT_FILE, O_WRONLY, 0)) < 0)
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:318: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[10];
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:321:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, "gt%2.2x", num);
data/vte-0.28.2/src/caps.h:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char capability[4];
data/vte-0.28.2/src/interpret.c:47:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4096];
data/vte-0.28.2/src/interpret.c:63: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).
		infile = open (argv[2], O_RDONLY);
data/vte-0.28.2/src/iso2022.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char codeset[16];
data/vte-0.28.2/src/iso2022.c:1796:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				fp = fopen(argv[i], "r");
data/vte-0.28.2/src/keymap.c:168:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char normal[8];
data/vte-0.28.2/src/keymap.c:170:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char special[4];
data/vte-0.28.2/src/keymap.c:1029:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ncurses_buffer[4096];
data/vte-0.28.2/src/keymap.c:1030:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ncurses_area[512];
data/vte-0.28.2/src/keymap.c:1428: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(nnormal, *normal, *normal_length);
data/vte-0.28.2/src/pty.c:267:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                        int i = open(tty, O_RDWR);
data/vte-0.28.2/src/pty.c:820:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
data/vte-0.28.2/src/pty.c:822: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/ptc", O_RDWR | O_NOCTTY); /* AIX */
data/vte-0.28.2/src/pty.c:960:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char control[LINE_MAX], iobuf[LINE_MAX];
data/vte-0.28.2/src/pty.c:1152: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).
	tmp[0] = open("/dev/null", O_RDONLY);
data/vte-0.28.2/src/pty.c:1156: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).
	tmp[1] = open("/dev/null", O_RDONLY);
data/vte-0.28.2/src/reflect.c:160:7:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    (atol(getenv("REFLECT_VERBOSE")) != 0)) {
data/vte-0.28.2/src/reflect.c:186:7:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    (atol(getenv("REFLECT_VERBOSE")) != 0)) {
data/vte-0.28.2/src/slowcat.c:40:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(pathname, "r");
data/vte-0.28.2/src/ssfe.c:91:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char tmpstr[BUF_SIZE], extrainput[BUF_SIZE+20], readbuf[2*BUF_SIZE],
data/vte-0.28.2/src/ssfe.c:103:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char string[BUF_SIZE];
data/vte-0.28.2/src/ssfe.c:111:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char string[BUF_SIZE+20];
data/vte-0.28.2/src/ssfe.c:118: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 ctrl_t[128] = "/next\n";
data/vte-0.28.2/src/ssfe.c:130: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 *termtype, termcap[1024], *tc, capabilities[2048];
data/vte-0.28.2/src/ssfe.c:151:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char temp[16];
data/vte-0.28.2/src/ssfe.c:153:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%c[%d;%dr", 27, y1, y2);
data/vte-0.28.2/src/ssfe.c:283: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(statusline, title, strlen(title)<MAX_COLS ? strlen(title) : MAX_COLS);
data/vte-0.28.2/src/ssfe.c:1036:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if (argc>2) prompt=(unsigned char *)argv[2];
data/vte-0.28.2/src/ssfe.c:1081:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    nlines=((vr=getenv("LINES"))?atoi(vr):0);
data/vte-0.28.2/src/ssfe.c:1082:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ncols=((vr=getenv("COLUMNS"))?atoi(vr):0);
data/vte-0.28.2/src/trie.c:729:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_MAX];
data/vte-0.28.2/src/vte.c:817: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(wrapped, text, length);
data/vte-0.28.2/src/vte.c:4105: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 (chunk->data + chunk->len,
data/vte-0.28.2/src/vte.c:4113: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 (chunk->data + chunk->len,
data/vte-0.28.2/src/vte.c:4646: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 (chunk->data + chunk->len, data, len);
data/vte-0.28.2/src/vte.c:5199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keybuf[VTE_UTF8_BPC];
data/vte-0.28.2/src/vte.c:5526: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(normal, keybuf, normal_length);
data/vte-0.28.2/src/vte.c:5881:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_MAX];
data/vte-0.28.2/src/vte.c:5931:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_MAX];
data/vte-0.28.2/src/vte.c:10476:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scratch_buf[VTE_UTF8_BPC];
data/vte-0.28.2/src/vteaccess.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *action_descriptions[LAST_ACTION];
data/vte-0.28.2/src/vteaccess.c:260: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(*old,
data/vte-0.28.2/src/vteaccess.c:985: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(ret, priv->snapshot_text->str + start, end - start);
data/vte-0.28.2/src/vteapp.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[2048];
data/vte-0.28.2/src/vteapp.c:430:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *name, hostname[255];
data/vte-0.28.2/src/vteapp.c:737:7:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atol(getenv("VTE_PROFILE_MEMORY")) != 0) {
data/vte-0.28.2/src/vteapp.c:946: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).
		consolefd = open("/dev/console", O_RDONLY | O_NOCTTY);
data/vte-0.28.2/src/vteconv.c:79: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(*outbuf, *inbuf, bytes);
data/vte-0.28.2/src/vteconv.c:394:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(narrow, "test");
data/vte-0.28.2/src/vteseq-2.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char seq[3];
data/vte-0.28.2/src/vteseq-n.c:84: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 vteseq_n_pool_str7[sizeof("tab-set")];
data/vte-0.28.2/src/vteseq-n.c:85: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 vteseq_n_pool_str8[sizeof("decset")];
data/vte-0.28.2/src/vteseq-n.c:86: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 vteseq_n_pool_str10[sizeof("set-mode")];
data/vte-0.28.2/src/vteseq-n.c:87: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 vteseq_n_pool_str11[sizeof("save-mode")];
data/vte-0.28.2/src/vteseq-n.c:88: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 vteseq_n_pool_str12[sizeof("soft-reset")];
data/vte-0.28.2/src/vteseq-n.c:89: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 vteseq_n_pool_str14[sizeof("delete-lines")];
data/vte-0.28.2/src/vteseq-n.c:90: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 vteseq_n_pool_str15[sizeof("erase-in-line")];
data/vte-0.28.2/src/vteseq-n.c:91: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 vteseq_n_pool_str16[sizeof("set-icon-title")];
data/vte-0.28.2/src/vteseq-n.c:92: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 vteseq_n_pool_str17[sizeof("next-line")];
data/vte-0.28.2/src/vteseq-n.c:93: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 vteseq_n_pool_str18[sizeof("set-window-title")];
data/vte-0.28.2/src/vteseq-n.c:94: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 vteseq_n_pool_str19[sizeof("delete-characters")];
data/vte-0.28.2/src/vteseq-n.c:95: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 vteseq_n_pool_str20[sizeof("erase-characters")];
data/vte-0.28.2/src/vteseq-n.c:96: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 vteseq_n_pool_str21[sizeof("utf-8-character-set")];
data/vte-0.28.2/src/vteseq-n.c:97: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 vteseq_n_pool_str22[sizeof("line-position-absolute")];
data/vte-0.28.2/src/vteseq-n.c:98: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 vteseq_n_pool_str23[sizeof("screen-alignment-test")];
data/vte-0.28.2/src/vteseq-n.c:99: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 vteseq_n_pool_str24[sizeof("dec-device-status-report")];
data/vte-0.28.2/src/vteseq-n.c:100: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 vteseq_n_pool_str25[sizeof("normal-keypad")];
data/vte-0.28.2/src/vteseq-n.c:101: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 vteseq_n_pool_str26[sizeof("erase-in-display")];
data/vte-0.28.2/src/vteseq-n.c:102: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 vteseq_n_pool_str27[sizeof("set-icon-and-window-title")];
data/vte-0.28.2/src/vteseq-n.c:103: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 vteseq_n_pool_str28[sizeof("full-reset")];
data/vte-0.28.2/src/vteseq-n.c:104: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 vteseq_n_pool_str29[sizeof("set-scrolling-region-to-end")];
data/vte-0.28.2/src/vteseq-n.c:105: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 vteseq_n_pool_str30[sizeof("set-scrolling-region")];
data/vte-0.28.2/src/vteseq-n.c:106: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 vteseq_n_pool_str31[sizeof("form-feed")];
data/vte-0.28.2/src/vteseq-n.c:107: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 vteseq_n_pool_str32[sizeof("window-manipulation")];
data/vte-0.28.2/src/vteseq-n.c:108: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 vteseq_n_pool_str33[sizeof("set-scrolling-region-from-start")];
data/vte-0.28.2/src/vteseq-n.c:109: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 vteseq_n_pool_str34[sizeof("send-primary-device-attributes")];
data/vte-0.28.2/src/vteseq-n.c:110: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 vteseq_n_pool_str35[sizeof("linux-console-cursor-attributes")];
data/vte-0.28.2/src/vteseq-n.c:111: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 vteseq_n_pool_str36[sizeof("send-secondary-device-attributes")];
data/vte-0.28.2/src/vteseq-n.c:112: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 vteseq_n_pool_str37[sizeof("decreset")];
data/vte-0.28.2/src/vteseq-n.c:113: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 vteseq_n_pool_str38[sizeof("tab-clear")];
data/vte-0.28.2/src/vteseq-n.c:114: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 vteseq_n_pool_str39[sizeof("reset-mode")];
data/vte-0.28.2/src/vteseq-n.c:115: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 vteseq_n_pool_str40[sizeof("cursor-up")];
data/vte-0.28.2/src/vteseq-n.c:116: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 vteseq_n_pool_str41[sizeof("restore-mode")];
data/vte-0.28.2/src/vteseq-n.c:117: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 vteseq_n_pool_str42[sizeof("save-cursor")];
data/vte-0.28.2/src/vteseq-n.c:118: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 vteseq_n_pool_str43[sizeof("cursor-forward")];
data/vte-0.28.2/src/vteseq-n.c:119: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 vteseq_n_pool_str44[sizeof("cursor-backward")];
data/vte-0.28.2/src/vteseq-n.c:120: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 vteseq_n_pool_str45[sizeof("cursor-next-line")];
data/vte-0.28.2/src/vteseq-n.c:121: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 vteseq_n_pool_str46[sizeof("cursor-lower-left")];
data/vte-0.28.2/src/vteseq-n.c:122: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 vteseq_n_pool_str47[sizeof("insert-lines")];
data/vte-0.28.2/src/vteseq-n.c:123: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 vteseq_n_pool_str48[sizeof("cursor-down")];
data/vte-0.28.2/src/vteseq-n.c:124: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 vteseq_n_pool_str49[sizeof("return-terminal-id")];
data/vte-0.28.2/src/vteseq-n.c:125: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 vteseq_n_pool_str50[sizeof("cursor-preceding-line")];
data/vte-0.28.2/src/vteseq-n.c:126: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 vteseq_n_pool_str51[sizeof("cursor-back-tab")];
data/vte-0.28.2/src/vteseq-n.c:127: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 vteseq_n_pool_str52[sizeof("cursor-position")];
data/vte-0.28.2/src/vteseq-n.c:128: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 vteseq_n_pool_str53[sizeof("device-status-report")];
data/vte-0.28.2/src/vteseq-n.c:129: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 vteseq_n_pool_str54[sizeof("cursor-character-absolute")];
data/vte-0.28.2/src/vteseq-n.c:130: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 vteseq_n_pool_str55[sizeof("return-terminal-status")];
data/vte-0.28.2/src/vteseq-n.c:131: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 vteseq_n_pool_str56[sizeof("scroll-up")];
data/vte-0.28.2/src/vteseq-n.c:132: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 vteseq_n_pool_str57[sizeof("change-cursor-colors")];
data/vte-0.28.2/src/vteseq-n.c:133: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 vteseq_n_pool_str58[sizeof("insert-blank-characters")];
data/vte-0.28.2/src/vteseq-n.c:134: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 vteseq_n_pool_str59[sizeof("index")];
data/vte-0.28.2/src/vteseq-n.c:135: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 vteseq_n_pool_str60[sizeof("request-terminal-parameters")];
data/vte-0.28.2/src/vteseq-n.c:136: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 vteseq_n_pool_str61[sizeof("vertical-tab")];
data/vte-0.28.2/src/vteseq-n.c:137: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 vteseq_n_pool_str62[sizeof("cursor-forward-tabulation")];
data/vte-0.28.2/src/vteseq-n.c:138: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 vteseq_n_pool_str63[sizeof("reverse-index")];
data/vte-0.28.2/src/vteseq-n.c:139: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 vteseq_n_pool_str64[sizeof("scroll-down")];
data/vte-0.28.2/src/vteseq-n.c:140: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 vteseq_n_pool_str65[sizeof("application-keypad")];
data/vte-0.28.2/src/vteseq-n.c:141: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 vteseq_n_pool_str66[sizeof("iso8859-1-character-set")];
data/vte-0.28.2/src/vteseq-n.c:142: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 vteseq_n_pool_str72[sizeof("restore-cursor")];
data/vte-0.28.2/src/vteseq-n.c:143: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 vteseq_n_pool_str73[sizeof("horizontal-and-vertical-position")];
data/vte-0.28.2/src/vteseq-n.c:144: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 vteseq_n_pool_str76[sizeof("change-color")];
data/vte-0.28.2/src/vteseq-n.c:145: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 vteseq_n_pool_str78[sizeof("character-attributes")];
data/vte-0.28.2/src/vteseq-n.c:146: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 vteseq_n_pool_str83[sizeof("character-position-absolute")];
data/vte-0.28.2/src/vteseq.c:2496:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vte-0.28.2/src/vteseq.c:2504:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ver += atol(version[i]);
data/vte-0.28.2/src/vteseq.c:2889:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vte-0.28.2/src/vteseq.c:2925:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vte-0.28.2/src/vteseq.c:3060:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vte-0.28.2/src/xticker.c:57:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			delay = atol(optarg);
data/vte-0.28.2/src/xticker.c:63:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			length = atol(optarg);
data/vte-0.28.2/src/xticker.c:78: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(argv[i], O_RDONLY);
data/vte-0.28.2/src/xticker.c:112: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(outbuf + 4,
data/vte-0.28.2/doc/openi18n/cursor.c:26:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getchar();
data/vte-0.28.2/gnome-pty-helper/gnome-login-support.c:318:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read (fd, buffer + n, count - n);
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:222:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (ll.ll_line, ut->ut_line, sizeof (ll.ll_line));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:226:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (ll.ll_host, ut->ut_host, sizeof (ll.ll_host));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:246:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (put.ut_id, ut->ut_id, sizeof (put.ut_id));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:249:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (put.ut_line, ut->ut_line, sizeof (put.ut_line));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:260:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (put.ut_name, login_name, sizeof (put.ut_name));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:262:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (put.ut_user, login_name, sizeof (put.ut_user));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:288:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (ut->ut_name, login_name, sizeof (ut->ut_name));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:290:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (ut->ut_user, login_name, sizeof (ut->ut_user));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:315:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (ut->ut_id, pty+3, sizeof (ut->ut_id));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:322:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (ut->ut_id, buf, sizeof (ut->ut_id));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:329:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (ut->ut_line, pty, sizeof (ut->ut_line));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:351:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (ut->ut_host, display_name, sizeof (ut->ut_host));
data/vte-0.28.2/gnome-pty-helper/gnome-utmp.c:354: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).
	ut->ut_syslen = strlen (ut->ut_host);
data/vte-0.28.2/src/dumpkeys.c:234:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(STDIN_FILENO, &c, 1) != 1) {
data/vte-0.28.2/src/dumpkeys.c:304:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(STDIN_FILENO, &c, 1) == 1) {
data/vte-0.28.2/src/interpret.c:86:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		l = read (infile, buf, sizeof (buf));
data/vte-0.28.2/src/interpret.c:109: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 ((tmp == NULL) || (strlen(tmp) > 0)) {
data/vte-0.28.2/src/iso2022.c:813: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).
	g_return_if_fail(strlen(codeset) > 0);
data/vte-0.28.2/src/keymap.c:1134: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).
				*normal_length = strlen(entries[i].normal);
data/vte-0.28.2/src/keymap.c:1169: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).
				if (strlen(cap) > 0) {
data/vte-0.28.2/src/keymap.c:1204: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).
			*normal_length = strlen(cap);
data/vte-0.28.2/src/keymap.c:1429: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(nnormal) > 1) {
data/vte-0.28.2/src/keymap.c:1440: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).
		offset = strlen(nnormal) - 1;
data/vte-0.28.2/src/matcher.c:107:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			_vte_matcher_add(matcher, code, strlen (code),
data/vte-0.28.2/src/mev.c:119:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((length = read(STDIN_FILENO, buffer, sizeof(buffer))) > 0) {
data/vte-0.28.2/src/pty.c:1059:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fd, buf + n, count - n);
data/vte-0.28.2/src/slowcat.c:57:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/vte-0.28.2/src/ssfe.c:154: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).
    write(1, temp, strlen(temp));
data/vte-0.28.2/src/ssfe.c:283: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).
  memcpy(statusline, title, strlen(title)<MAX_COLS ? strlen(title) : MAX_COLS);
data/vte-0.28.2/src/ssfe.c:283:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memcpy(statusline, title, strlen(title)<MAX_COLS ? strlen(title) : MAX_COLS);
data/vte-0.28.2/src/ssfe.c:368:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    case 'T' : strncpy(ctrl_t, protcmd+1, 127); /* set ^t's text */
data/vte-0.28.2/src/ssfe.c:370:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	       strcat(ctrl_t, "\n");
data/vte-0.28.2/src/ssfe.c:383: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).
    case 'p' : if (strlen(protcmd+1)<=8) {  /* prompt something */
data/vte-0.28.2/src/ssfe.c:391: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).
		 plen=strlen(input);
data/vte-0.28.2/src/ssfe.c:423:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read(0, &t, 1);
data/vte-0.28.2/src/ssfe.c:702: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).
  plen=strlen(prompt);
data/vte-0.28.2/src/ssfe.c:931: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).
      inputlast=strlen(input);
data/vte-0.28.2/src/ssfe.c:940: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).
      inputlast=strlen(input);
data/vte-0.28.2/src/ssfe.c:966: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).
    if (strlen(o_buffer)) modify();
data/vte-0.28.2/src/ssfe.c:969: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).
    write(writefd, ctrl_t, strlen(ctrl_t));
data/vte-0.28.2/src/ssfe.c:1037: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 (strlen(prompt)>8) barf("Prompt too long");
data/vte-0.28.2/src/ssfe.c:1203: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(tmpstr, " ");
data/vte-0.28.2/src/ssfe.c:1205: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).
    if (strlen(tmpstr)+strlen(argv[i])<ncols-1) {
data/vte-0.28.2/src/ssfe.c:1205: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 (strlen(tmpstr)+strlen(argv[i])<ncols-1) {
data/vte-0.28.2/src/ssfe.c:1207:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(tmpstr, " ");
data/vte-0.28.2/src/ssfe.c:1219: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).
  plen=strlen(prompt);
data/vte-0.28.2/src/ssfe.c:1244:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((rc=read(readfd, readbuf, BUF_SIZE))>0) {
data/vte-0.28.2/src/ssfe.c:1252:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((rc=read(errfd, readbuf, BUF_SIZE))>0) {
data/vte-0.28.2/src/ssfe.c:1260:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((rrc=read(0, readbuf, BUF_SIZE))>0) {
data/vte-0.28.2/src/table.c:204: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).
		original_length = strlen((char *) original);
data/vte-0.28.2/src/table.c:207: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).
		length = strlen(pattern);
data/vte-0.28.2/src/table.c:828: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).
	ret = g_malloc((strlen(p) + 1) * sizeof(gunichar));
data/vte-0.28.2/src/table.c:915: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).
		_vte_table_match(table, candidate, strlen(p),
data/vte-0.28.2/src/trie.c:741: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).
					snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:742: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).
						 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:748: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).
					snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:749: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).
						 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:753: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).
					snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:754: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).
						 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:760: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).
				snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:761: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).
					 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:766: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).
				snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:767: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).
					 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:773: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).
					snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:774: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).
						 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:778: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).
					snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:779: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).
						 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/trie.c:785: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).
				snprintf(buf + strlen(buf),
data/vte-0.28.2/src/trie.c:786: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).
					 sizeof(buf) - strlen(buf),
data/vte-0.28.2/src/vte.c:813: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).
		length = strlen(text);
data/vte-0.28.2/src/vte.c:1297: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).
	g_return_val_if_fail(strlen(match) > 0, -1);
data/vte-0.28.2/src/vte.c:4538:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int ret = read (fd, bp, rem);
data/vte-0.28.2/src/vte.c:4630: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).
		length = strlen(data);
data/vte-0.28.2/src/vte.c:4832: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).
		length = strlen(text);
data/vte-0.28.2/src/vte.c:4877: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).
		length = strlen(data);
data/vte-0.28.2/src/vte.c:5791:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(text));
data/vte-0.28.2/src/vte.c:5800: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).
		length = strlen(paste);
data/vte-0.28.2/src/vte.c:6206:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(terminal->pvt->selection));
data/vte-0.28.2/src/vte.c:13806: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).
	ilen = strlen(spec);
data/vte-0.28.2/src/vteaccess.c:650:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			i = strlen(priv->snapshot_text->str + i);
data/vte-0.28.2/src/vteconv.c:137: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).
	g_assert(strlen(target) > 0);
data/vte-0.28.2/src/vteconv.c:138: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).
	g_assert(strlen(source) > 0);
data/vte-0.28.2/src/vteconv.c:437: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).
	inbytes = strlen(narrow_test);
data/vte-0.28.2/src/vteconv.c:452:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	inbytes = strlen(narrow_test);
data/vte-0.28.2/src/vteconv.c:467: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).
	inbytes = strlen(narrow_test);
data/vte-0.28.2/src/vteconv.c:497: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).
	inbytes = strlen(narrow_test);
data/vte-0.28.2/src/vtedraw.c:370:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	info->width  = PANGO_PIXELS (howmany (logical.width, strlen(VTE_DRAW_SINGLE_WIDE_CHARACTERS)));
data/vte-0.28.2/src/vteseq.c:446: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).
			g_utf8_validate(title, strlen(title), &end);
data/vte-0.28.2/src/vteseq.c:3336:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen (name);
data/vte-0.28.2/src/vtestream-base.h:37:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gboolean (*read) (VteStream *stream, gsize offset, char *data, gsize len);
data/vte-0.28.2/src/vtestream-base.h:77:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return VTE_STREAM_GET_CLASS (stream)->read (stream, offset, data, len);
data/vte-0.28.2/src/vtestream-file.h:36:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read (fd, data, len);
data/vte-0.28.2/src/xticker.c:82:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read(fd, buffer, st.st_size);
data/vte-0.28.2/src/xticker.c:135: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).
			write(STDERR_FILENO, errbuf, strlen(errbuf));

ANALYSIS SUMMARY:

Hits = 282
Lines analyzed = 44916 in approximately 1.07 seconds (41939 lines/second)
Physical Source Lines of Code (SLOC) = 33686
Hits@level = [0] 109 [1]  96 [2] 145 [3]  17 [4]  16 [5]   8
Hits@level+ = [0+] 391 [1+] 282 [2+] 186 [3+]  41 [4+]  24 [5+]   8
Hits/KSLOC@level+ = [0+] 11.6072 [1+] 8.37143 [2+] 5.52158 [3+] 1.21712 [4+] 0.712462 [5+] 0.237487
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.