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/its-playback-time-0.2017-08-30.3c40fd3/be_none.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/charset.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/conf.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/enum.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/fromucs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/internal.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/ldisc.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/ldiscucs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/localenc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/macenc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/mimeenc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/minibidi.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/misc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/misc.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/miscucs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/network.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/nogss.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/noprint.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/notiming.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/putty.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/puttymem.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/puttyps.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/sbcs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/settings.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/slookup.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/storage.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/terminal.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/time.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/toucs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/tree234.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/tree234.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/unix.h
Examining data/its-playback-time-0.2017-08-30.3c40fd3/utf8.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/uxnogtk.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/wcwidth.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/xenc.c
Examining data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c

FINAL RESULTS:

data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:134:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, p, ap);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:148:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, p, ap);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:933:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf2, "%s x %g", inst->logmod ? "LOG" : "", inst->speedmod);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:935:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf4, " Speed:%20s ", buf2);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:939:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf1, " Frame:%20s ", buf2);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:941:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf3, " Mode:%21s ",
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:265:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(pr->result, newstr);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:293:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, s);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:316:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, s1);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:324: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(q, sn);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:415:9:  [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.
#define vsnprintf _vsnprintf
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:422:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf + oldlen, size, fmt, aq);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:433:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf + oldlen, size, fmt, ap);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:808:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "Out of memory! (%s:%d, size=%d)",
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:850:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "Out of memory! (%s:%d, size=%d)",
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1090:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(key, q);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.h:36:29:  [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, 1, 2)))
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:438:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            p += sprintf(p, "%s%s", (p > buf ? "," : ""), s);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:634:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf2 + strlen(buf2), "%s%d",
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1173: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(list->buffer + buflen, otherbuf);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4331:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(term->id_string, lbuf);
data/its-playback-time-0.2017-08-30.3c40fd3/tree234.c:35:17:  [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 LOG(x) (printf x)
data/its-playback-time-0.2017-08-30.3c40fd3/tree234.c:1026:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stdout, fmt, ap);
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:82:9:  [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(data, f->path);
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:133:12:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    user = getlogin();
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:282:9:  [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(data, f->name);
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:126: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 (((s = getenv("LC_ALL"))   && *s) ||
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:127: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.
	    ((s = getenv("LC_CTYPE")) && *s) ||
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:128: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.
	    ((s = getenv("LANG"))     && *s)) {
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:526: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(data, entry->key.secondary.s, len);
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:538: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(data, entry->value.u.stringval, len);
data/its-playback-time-0.2017-08-30.3c40fd3/internal.h:68: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.
    unsigned char ucs2sbcs[256];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:790:17:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                wchar_t ws[2];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:802:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MB_LEN_MAX];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:918:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:919:12:  [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.
	int len = sprintf(buf, " %d ", inst->number);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:927:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf1[80], buf2[80], buf3[80], buf4[80];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:938:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf2, "%d / %d", f, inst->frames);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:940:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf2, " Time:%21.3f ", t / 1000000.0);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1290:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char optbuf[3], *optstr, *optval;
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1379:8:  [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).
		iw = atoi(optval);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1388:8:  [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).
		ih = atoi(optval);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1397:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		startframe = atoi(optval);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1507: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 hdrbuf[12];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1508: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 nhrbuf[4096];
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1516:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(p, "rb");
data/its-playback-time-0.2017-08-30.3c40fd3/misc.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 set[2];
data/its-playback-time-0.2017-08-30.3c40fd3/misc.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 set[2];
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:255: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(newbuf, pr->result, pr->resultsize);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:681: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(ch->tail->bufend, buf, copylen);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:746: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_c, tmp->bufpos, remlen);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:781:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("putty_mem.log", "w");
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:806:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[200];
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:813:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(str, "Out of memory!");
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:848:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[200];
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:855: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(str, "Out of memory!");
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:909: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 foo[17];
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:921: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(foo, "................");	/* sixteen dots */
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1070:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char decoded[6];
data/its-playback-time-0.2017-08-30.3c40fd3/nogss.c:10: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 *const gsslibnames[1] = { "dummy" };
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:153:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unitab_scoacs[256];
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:154:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unitab_line[256];
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:155:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unitab_font[256];
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:156:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unitab_xterm[256];
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:157:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unitab_oemcp[256];
data/its-playback-time-0.2017-08-30.3c40fd3/putty.h:158: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.
    unsigned char unitab_ctrl[256];
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20], buf2[30];
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:616:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "Colour%d", i);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:617:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf2, "%d,%d,%d",
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:629:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20], buf2[256];
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:631:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "Wordness%d", i);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1018:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20], *buf2;
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1020:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "Colour%d", i);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1045:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[20], *buf2, *p;
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1047:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "Wordness%d", i);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1056:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    conf_set_int_int(conf, CONF_wordness, j, atoi(q));
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1155: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 otherbuf[2048];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:1591:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(term->id_string, "\033[?6c");
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:2738: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.
    unsigned char localbuf[256], *chars;
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:2751: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(localbuf, ret, nchars);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3672: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 buf[32];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3673: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(buf, "\033[%d;%dR", term->curs.y + 1,
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3970: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 buf[80];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4026:15:  [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.
				    len = sprintf(buf, "\033[3;%u;%ut",
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4035:15:  [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.
				    len = sprintf(buf, "\033[4;%d;%dt", y, x);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4041:15:  [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.
				    len = sprintf(buf, "\033[8;%d;%dt",
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4167: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.
			    char buf[32];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4170:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(buf, "\033[2;1;1;112;112;1;0x");
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4325: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.
			    char lbuf[64];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4326:8:  [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(term->id_string, "\033[?");
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4330: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(lbuf, "%u", term->esc_args[i]);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4803: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(term->pre_bidi_cache[line].chars, lbefore, size * TSIZE);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4804: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(term->post_bidi_cache[line].chars, lafter, size * TSIZE);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4893: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(term->ltemp, ldata->chars, ldata->size * TSIZE);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5521:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char cbuf[16], *p;
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5522:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(cbuf, "<U+%04x>", (ldata[top.x] & 0xFFFF));
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5524:6:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    wchar_t cbuf[16], *p;
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5574:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[4];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5588:8:  [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(cbuf, wbuf, rv * sizeof(wchar_t));
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5909:13:  [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(term->paste_buffer, L"\033[200~", 6 * sizeof(wchar_t));
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:5936:13:  [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(term->paste_buffer + term->paste_len,
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6014:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char abuf[32];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6079:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		len = sprintf(abuf, "\033[<%d;%d;%d%c", encstate, c, r, a == MA_RELEASE ? 'm' : 'M');
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6081:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		len = sprintf(abuf, "\033[%d;%d;%dM", encstate + 32, c, r);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6083:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		len = sprintf(abuf, "\033[M%c%c%c", encstate + 32, c + 32, r + 32);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6233:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	p += sprintf((char *) p, "\x1B%c", xkey);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6256:11:  [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.
	    p += sprintf((char *) p, "\x1BO%c", xkey);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6258:11:  [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.
	    p += sprintf((char *) p, "\x1B[%c", xkey);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.h:183: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 osc_string[OSC_STR_MAX + 1];
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.h:186: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 id_string[1024];
data/its-playback-time-0.2017-08-30.3c40fd3/tree234.c:1479:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)array[j], j);
data/its-playback-time-0.2017-08-30.3c40fd3/utf8.c:248:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t *p, str[512];
data/its-playback-time-0.2017-08-30.3c40fd3/utf8.c:287:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t *p, str[512];
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:111:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	debug_fp = fopen("debug.log", "w");
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:251:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen(filename->path, mode);
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:256: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(filename->path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output[MB_LEN_MAX];
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:78: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(mbstr+n, output, i);
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[1];
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:161:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t wc[1];
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:187:15:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 wchar_t unitab_xterm_std[32] = {
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:193:15:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 wchar_t unitab_xterm_poorman[32] =
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[1];
data/its-playback-time-0.2017-08-30.3c40fd3/uxucs.c:216:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t wc[1];
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:485: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).
	    size += 1 + strlen(entry->key.secondary.s);
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:493: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).
	    size += 1 + strlen(entry->value.u.stringval);
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:525: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).
	    len = strlen(entry->key.secondary.s);
data/its-playback-time-0.2017-08-30.3c40fd3/conf.c:537: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).
	    len = strlen(entry->value.u.stringval);
data/its-playback-time-0.2017-08-30.3c40fd3/internal.h:26:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void (*read)(charset_spec const *charset, long int input_chr,
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1015: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(string);
data/its-playback-time-0.2017-08-30.3c40fd3/ipbt.c:1171: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).
    plen = strlen(prompt);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:130: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).
        return strlen(s);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:264: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).
    prompt_ensure_result_size(pr, strlen(newstr) + 1);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:291:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(s);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:305: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(s1);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:311: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(sn);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:317: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).
    q = p + strlen(p);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:325: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).
	q += strlen(q);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:335: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).
        smemclr(string, strlen(string));
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:500: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).
    buf->len += strlen(buf->s + buf->len);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:519: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(ret + len);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:543:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(str);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1028: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).
        if (strlen(q) == 16*3 - 1 &&
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1059: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).
        if (strlen(q) % 4 == 0 && strlen(q) > 2*4 &&
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1059: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 (strlen(q) % 4 == 0 && strlen(q) > 2*4 &&
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1087: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 (strlen(q) < minlen)
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1117:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int idlen = strlen(id);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1150:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return !memcmp(s, t, strlen(t));
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1155:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t slen = strlen(s), tlen = strlen(t);
data/its-playback-time-0.2017-08-30.3c40fd3/misc.c:1155:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t slen = strlen(s), tlen = strlen(t);
data/its-playback-time-0.2017-08-30.3c40fd3/miscucs.c:27: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).
    return dup_mb_to_wc_c(codepage, flags, string, strlen(string));
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:241: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).
	len += 2 + 2 * (strlen(key) + strlen(val));   /* allow for escaping */
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:241: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).
	len += 2 + 2 * (strlen(key) + strlen(val));   /* allow for escaping */
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:427:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            maxlen += (maxlen > 0 ? 1 : 0) + strlen(s);
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:634: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).
	    sprintf(buf2 + strlen(buf2), "%s%d",
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1168:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    int len = strlen(otherbuf) + 1;
data/its-playback-time-0.2017-08-30.3c40fd3/settings.c:1174: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).
		    buflen += strlen(list->buffer + buflen) + 1;
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:1421: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).
	int maxlen = strlen(answerback);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3360: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(term->id_string), 0);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3667: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).
 				       strlen(term->id_string), 0);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:3675: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).
				ldisc_send(term->ldisc, buf, strlen(buf), 0);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4070: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).
				    len = strlen(p);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4083: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).
				    len = strlen(p);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4329: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(term->id_string, ";");
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:4333:8:  [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(term->id_string, "c");
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6410: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).
	    size_t l = strlen(p->name);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6417: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).
	    size_t l = strlen(p->instruction);
data/its-playback-time-0.2017-08-30.3c40fd3/terminal.c:6438: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).
	    term_data_untrusted(term, pr->prompt, strlen(pr->prompt));
data/its-playback-time-0.2017-08-30.3c40fd3/toucs.c:72:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	spec->read(spec, (unsigned char)**input, &localstate,
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:80: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).
    int len = strlen(f->path) + 1;     /* include trailing NUL */
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:114: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).
    if (write(1, buf, strlen(buf)) < 0) {} /* 'error check' to placate gcc */
data/its-playback-time-0.2017-08-30.3c40fd3/uxmisc.c:280: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).
    int len = strlen(f->name);

ANALYSIS SUMMARY:

Hits = 172
Lines analyzed = 21502 in approximately 0.61 seconds (35225 lines/second)
Physical Source Lines of Code (SLOC) = 15449
Hits@level = [0]  73 [1]  48 [2]  95 [3]   3 [4]  26 [5]   0
Hits@level+ = [0+] 245 [1+] 172 [2+] 124 [3+]  29 [4+]  26 [5+]   0
Hits/KSLOC@level+ = [0+] 15.8586 [1+] 11.1334 [2+] 8.02641 [3+] 1.87714 [4+] 1.68296 [5+]   0
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.