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/terminology-1.8.1/src/bin/about.c
Examining data/terminology-1.8.1/src/bin/about.h
Examining data/terminology-1.8.1/src/bin/backlog.c
Examining data/terminology-1.8.1/src/bin/backlog.h
Examining data/terminology-1.8.1/src/bin/col.c
Examining data/terminology-1.8.1/src/bin/col.h
Examining data/terminology-1.8.1/src/bin/config.h
Examining data/terminology-1.8.1/src/bin/controls.c
Examining data/terminology-1.8.1/src/bin/controls.h
Examining data/terminology-1.8.1/src/bin/extns.c
Examining data/terminology-1.8.1/src/bin/extns.h
Examining data/terminology-1.8.1/src/bin/gravatar.c
Examining data/terminology-1.8.1/src/bin/gravatar.h
Examining data/terminology-1.8.1/src/bin/ipc.c
Examining data/terminology-1.8.1/src/bin/ipc.h
Examining data/terminology-1.8.1/src/bin/keyin.c
Examining data/terminology-1.8.1/src/bin/keyin.h
Examining data/terminology-1.8.1/src/bin/main.c
Examining data/terminology-1.8.1/src/bin/main.h
Examining data/terminology-1.8.1/src/bin/md5.c
Examining data/terminology-1.8.1/src/bin/md5.h
Examining data/terminology-1.8.1/src/bin/media.c
Examining data/terminology-1.8.1/src/bin/media.h
Examining data/terminology-1.8.1/src/bin/miniview.c
Examining data/terminology-1.8.1/src/bin/miniview.h
Examining data/terminology-1.8.1/src/bin/options.c
Examining data/terminology-1.8.1/src/bin/options.h
Examining data/terminology-1.8.1/src/bin/options_background.c
Examining data/terminology-1.8.1/src/bin/options_background.h
Examining data/terminology-1.8.1/src/bin/options_behavior.c
Examining data/terminology-1.8.1/src/bin/options_behavior.h
Examining data/terminology-1.8.1/src/bin/options_colors.c
Examining data/terminology-1.8.1/src/bin/options_colors.h
Examining data/terminology-1.8.1/src/bin/options_elm.c
Examining data/terminology-1.8.1/src/bin/options_elm.h
Examining data/terminology-1.8.1/src/bin/options_font.c
Examining data/terminology-1.8.1/src/bin/options_font.h
Examining data/terminology-1.8.1/src/bin/options_keys.c
Examining data/terminology-1.8.1/src/bin/options_keys.h
Examining data/terminology-1.8.1/src/bin/options_mouse.c
Examining data/terminology-1.8.1/src/bin/options_mouse.h
Examining data/terminology-1.8.1/src/bin/options_theme.c
Examining data/terminology-1.8.1/src/bin/options_theme.h
Examining data/terminology-1.8.1/src/bin/options_themepv.c
Examining data/terminology-1.8.1/src/bin/options_themepv.h
Examining data/terminology-1.8.1/src/bin/private.h
Examining data/terminology-1.8.1/src/bin/sb.c
Examining data/terminology-1.8.1/src/bin/sb.h
Examining data/terminology-1.8.1/src/bin/sel.c
Examining data/terminology-1.8.1/src/bin/sel.h
Examining data/terminology-1.8.1/src/bin/term_container.h
Examining data/terminology-1.8.1/src/bin/termcmd.c
Examining data/terminology-1.8.1/src/bin/termcmd.h
Examining data/terminology-1.8.1/src/bin/termio.c
Examining data/terminology-1.8.1/src/bin/termio.h
Examining data/terminology-1.8.1/src/bin/termiointernals.c
Examining data/terminology-1.8.1/src/bin/termiointernals.h
Examining data/terminology-1.8.1/src/bin/termiolink.c
Examining data/terminology-1.8.1/src/bin/termiolink.h
Examining data/terminology-1.8.1/src/bin/termpty.c
Examining data/terminology-1.8.1/src/bin/termpty.h
Examining data/terminology-1.8.1/src/bin/termptydbl.c
Examining data/terminology-1.8.1/src/bin/termptydbl.h
Examining data/terminology-1.8.1/src/bin/termptyesc.c
Examining data/terminology-1.8.1/src/bin/termptyesc.h
Examining data/terminology-1.8.1/src/bin/termptyext.c
Examining data/terminology-1.8.1/src/bin/termptyext.h
Examining data/terminology-1.8.1/src/bin/termptygfx.c
Examining data/terminology-1.8.1/src/bin/termptygfx.h
Examining data/terminology-1.8.1/src/bin/termptyops.c
Examining data/terminology-1.8.1/src/bin/termptyops.h
Examining data/terminology-1.8.1/src/bin/theme.c
Examining data/terminology-1.8.1/src/bin/theme.h
Examining data/terminology-1.8.1/src/bin/tty_keys.h
Examining data/terminology-1.8.1/src/bin/tyalpha.c
Examining data/terminology-1.8.1/src/bin/tybg.c
Examining data/terminology-1.8.1/src/bin/tycat.c
Examining data/terminology-1.8.1/src/bin/tycommon.c
Examining data/terminology-1.8.1/src/bin/tycommon.h
Examining data/terminology-1.8.1/src/bin/tyfuzz.c
Examining data/terminology-1.8.1/src/bin/tyls.c
Examining data/terminology-1.8.1/src/bin/typop.c
Examining data/terminology-1.8.1/src/bin/tyq.c
Examining data/terminology-1.8.1/src/bin/tysend.c
Examining data/terminology-1.8.1/src/bin/tytest.c
Examining data/terminology-1.8.1/src/bin/tytest.h
Examining data/terminology-1.8.1/src/bin/tytest_common.c
Examining data/terminology-1.8.1/src/bin/tytest_common.h
Examining data/terminology-1.8.1/src/bin/unit_tests.h
Examining data/terminology-1.8.1/src/bin/utf8.c
Examining data/terminology-1.8.1/src/bin/utf8.h
Examining data/terminology-1.8.1/src/bin/utils.c
Examining data/terminology-1.8.1/src/bin/utils.h
Examining data/terminology-1.8.1/src/bin/win.c
Examining data/terminology-1.8.1/src/bin/win.h
Examining data/terminology-1.8.1/src/bin/config.c

FINAL RESULTS:

data/terminology-1.8.1/src/bin/termio.c:402:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
   siz = readlink(procpath, buf, size);
data/terminology-1.8.1/src/bin/keyin.c:226: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((char *)kb->keyname, keyname);
data/terminology-1.8.1/src/bin/keyin.c:404:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(cmd, length, template, path, cwd);
data/terminology-1.8.1/src/bin/main.c:705:9:  [4] (shell) execv:
  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.
        execv(add->argv[0], add->argv);
data/terminology-1.8.1/src/bin/media.c:1253:14:  [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(tbuf, sd->src);
data/terminology-1.8.1/src/bin/media.c:1259:14:  [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(tbuf, sd->src);
data/terminology-1.8.1/src/bin/termio.c:1868:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        buflen = sprintf(buf, "%c};%s\n%s\n%s\n%i\n%i", 0x1b,
data/terminology-1.8.1/src/bin/termio.c:1875:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        buflen = sprintf(buf, "%c}signal;%s\n%s\n%s", 0x1b,
data/terminology-1.8.1/src/bin/termio.c:1906:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             buflen = sprintf(buf, "%c}message;%s\n%i\nstring\n%s", 0x1b,
data/terminology-1.8.1/src/bin/termio.c:4051:29:  [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(tb, p);
data/terminology-1.8.1/src/bin/termpty.c:785:11:  [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(args[0], (char *const *)args);
data/terminology-1.8.1/src/bin/termpty.c:793:14:  [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(cmd0 + 1, cmdfile);
data/terminology-1.8.1/src/bin/termpty.c:795:14:  [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(cmdfile, (char *const *)args);
data/terminology-1.8.1/src/bin/ipc.c:53:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   disp = getenv("DISPLAY");
data/terminology-1.8.1/src/bin/ipc.c:55:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   session = getenv("DBUS_SESSION_BUS_ADDRESS");
data/terminology-1.8.1/src/bin/ipc.c:57:18:  [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.
   xdg_session = getenv("XDG_SESSION_COOKIE");
data/terminology-1.8.1/src/bin/ipc.c:59:13:  [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.
   xdg_id = getenv("XDG_SESSION_ID");
data/terminology-1.8.1/src/bin/ipc.c:61:15:  [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.
   xdg_seat = getenv("XDG_SEAT");
data/terminology-1.8.1/src/bin/ipc.c:63:13:  [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.
   xdg_vt = getenv("XDG_VTNR");
data/terminology-1.8.1/src/bin/main.c:802:23:  [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.
        .startup_id = getenv("DESKTOP_STARTUP_ID"),
data/terminology-1.8.1/src/bin/media.c:216:45:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
             theme = efreet_icon_theme_find(getenv("E_ICON_THEME"));
data/terminology-1.8.1/src/bin/options_background.c:451:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   user = getenv("HOME");
data/terminology-1.8.1/src/bin/options_elm.c:49:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   char *path_env = getenv("PATH");
data/terminology-1.8.1/src/bin/termpty.c:603: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.
        shell = getenv("SHELL");
data/terminology-1.8.1/src/bin/termpty.c:719:24:  [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.
                  cd = getenv("HOME");
data/terminology-1.8.1/src/bin/theme.c:164:23:  [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.
   char *config_xdg = getenv("ELM_CONFIG_DIR_XDG");
data/terminology-1.8.1/src/bin/tybg.c:47:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (realpath(path, buf)) path = buf;
data/terminology-1.8.1/src/bin/typop.c:39:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (realpath(path, buf)) path = buf;
data/terminology-1.8.1/src/bin/tyq.c:39:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (realpath(path, buf)) path = buf;
data/terminology-1.8.1/src/bin/utils.c:9:23:  [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.
   const char *home = getenv("HOME");
data/terminology-1.8.1/src/bin/about.c:38: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[PATH_MAX];
data/terminology-1.8.1/src/bin/about.c:281: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[PATH_MAX];
data/terminology-1.8.1/src/bin/col.c:389: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[32];
data/terminology-1.8.1/src/bin/config.c:30: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 path[PATH_MAX] = {};
data/terminology-1.8.1/src/bin/config.c:220: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[PATH_MAX], buf2[PATH_MAX];
data/terminology-1.8.1/src/bin/config.c:615: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[PATH_MAX];
data/terminology-1.8.1/src/bin/config.c:843: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(config2->colors, config->colors, sizeof(config->colors));
data/terminology-1.8.1/src/bin/gravatar.c:64: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 md5out[(2 * MD5_HASHBYTES) + 1];
data/terminology-1.8.1/src/bin/gravatar.c:65:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hash[MD5_HASHBYTES];
data/terminology-1.8.1/src/bin/ipc.c:47: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[1024], hash[64] = {};
data/terminology-1.8.1/src/bin/ipc.c:68: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(hash, "terminology-", 12);
data/terminology-1.8.1/src/bin/keyin.c:385: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 path[PATH_MAX], cwd[PATH_MAX];
data/terminology-1.8.1/src/bin/main.c:32: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 path[PATH_MAX];
data/terminology-1.8.1/src/bin/main.c:33: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 theme_name[PATH_MAX];
data/terminology-1.8.1/src/bin/main.c:76:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             sz = atoi(p+1);
data/terminology-1.8.1/src/bin/main.c:84: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.
             char buf[4096], *file;
data/terminology-1.8.1/src/bin/main.c:193: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[4096];
data/terminology-1.8.1/src/bin/main.c:1032: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 cwdbuf[4096];
data/terminology-1.8.1/src/bin/md5.c:83: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(p, buf, len);
data/terminology-1.8.1/src/bin/md5.c:86:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, buf, t);
data/terminology-1.8.1/src/bin/md5.c:95: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(ctx->in.s, buf, 64);
data/terminology-1.8.1/src/bin/md5.c:104: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(ctx->in.s, buf, len);
data/terminology-1.8.1/src/bin/md5.c:111:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(unsigned char digest[16], MD5_CTX *ctx)
data/terminology-1.8.1/src/bin/md5.c:148: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(digest, ctx->buf, 16);
data/terminology-1.8.1/src/bin/md5.h:14:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s[64];
data/terminology-1.8.1/src/bin/md5.h:21:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void   MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
data/terminology-1.8.1/src/bin/media.c:1252:14:  [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(tbuf, "http://");
data/terminology-1.8.1/src/bin/media.c:1258:14:  [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(tbuf, "ftp://");
data/terminology-1.8.1/src/bin/media.c:1292: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.
             char buf[4096];
data/terminology-1.8.1/src/bin/media.c:1524: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[PATH_MAX];
data/terminology-1.8.1/src/bin/options_background.c:197: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 path[PATH_MAX];
data/terminology-1.8.1/src/bin/options_background.c:279: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 *file_name, path[PATH_MAX];
data/terminology-1.8.1/src/bin/options_background.c:282: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.
   const char **extns[5] =
data/terminology-1.8.1/src/bin/options_background.c:437: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 path[PATH_MAX];
data/terminology-1.8.1/src/bin/options_background.c:449: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 path[PATH_MAX], *user;
data/terminology-1.8.1/src/bin/options_background.c:467: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 path[PATH_MAX];
data/terminology-1.8.1/src/bin/options_background.c:556: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 path[PATH_MAX];
data/terminology-1.8.1/src/bin/options_colors.c:123: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.
             char buf[32];
data/terminology-1.8.1/src/bin/options_font.c:66: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[4096];
data/terminology-1.8.1/src/bin/options_font.c:96: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(s, full_name, font_len);
data/terminology-1.8.1/src/bin/options_font.c:101: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(s, STYLE_STR, strlen(STYLE_STR));
data/terminology-1.8.1/src/bin/options_font.c:105: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(s, style, style_len);
data/terminology-1.8.1/src/bin/options_font.c:132: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(s, style, style_len);
data/terminology-1.8.1/src/bin/options_font.c:252: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.
             char buf[4096];
data/terminology-1.8.1/src/bin/options_font.c:407: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[4096], *file, *fname;
data/terminology-1.8.1/src/bin/options_theme.c:37: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[4096], *p;
data/terminology-1.8.1/src/bin/options_theme.c:138: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[4096], *file;
data/terminology-1.8.1/src/bin/options_themepv.c:160: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[PATH_MAX];
data/terminology-1.8.1/src/bin/sb.c:33: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(sb->buf + sb->len, s, len);
data/terminology-1.8.1/src/bin/sb.c:54: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(new_buf + new_gap, sb->buf, sb->len);
data/terminology-1.8.1/src/bin/sb.c:64: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(sb->buf, s, len);
data/terminology-1.8.1/src/bin/termio.c:394:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buf, vpi.pvi_cdir.vip_path, size);
data/terminology-1.8.1/src/bin/termio.c:398: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 procpath[PATH_MAX];
data/terminology-1.8.1/src/bin/termio.c:453: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[4096];
data/terminology-1.8.1/src/bin/termio.c:506: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[PATH_MAX];
data/terminology-1.8.1/src/bin/termio.c:642: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[PATH_MAX], *s, *escaped;
data/terminology-1.8.1/src/bin/termio.c:1772:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PATH_MAX];
data/terminology-1.8.1/src/bin/termio.c:1935: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.
             char zero[1] = { 0 };
data/terminology-1.8.1/src/bin/termio.c:1953: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.
             char zero[1] = { 0 };
data/terminology-1.8.1/src/bin/termio.c:1972: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.
             char zero[1] = { 0 };
data/terminology-1.8.1/src/bin/termio.c:2011: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.
             char zero[1] = { 0 };
data/terminology-1.8.1/src/bin/termio.c:2032: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.
             char zero[1] = { 0 };
data/terminology-1.8.1/src/bin/termio.c:2061:54:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define GETI(var) l = l->next; if (!l) return; var = atoi(l->data)
data/terminology-1.8.1/src/bin/termio.c:2062:62:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define GETF(var) l = l->next; if (!l) return; var = (double)atoi(l->data) / 1000.0
data/terminology-1.8.1/src/bin/termio.c:2295: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 path[PATH_MAX], home[PATH_MAX];
data/terminology-1.8.1/src/bin/termio.c:2677: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[PATH_MAX], *s = NULL, *escaped = NULL;
data/terminology-1.8.1/src/bin/termio.c:3005:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   sd->sendfile.f = fopen(file, "w");
data/terminology-1.8.1/src/bin/termio.c:3621: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[256];
data/terminology-1.8.1/src/bin/termio.c:3902:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[128];
data/terminology-1.8.1/src/bin/termio.c:3904:36:  [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).
                       int pksum = atoi(&(ty->cur_cmd[2]));
data/terminology-1.8.1/src/bin/termiointernals.c:137:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char txt[8];
data/terminology-1.8.1/src/bin/termiointernals.c:1555: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[64];
data/terminology-1.8.1/src/bin/termiointernals.c:1729: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[64];
data/terminology-1.8.1/src/bin/termiointernals.c:1812: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[64];
data/terminology-1.8.1/src/bin/termiointernals.c:2166: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[64];
data/terminology-1.8.1/src/bin/termiolink.c:115: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 cwdpath[PATH_MAX], tmppath[PATH_MAX];
data/terminology-1.8.1/src/bin/termiolink.c:128: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 tmppath[PATH_MAX], homepath[PATH_MAX];
data/terminology-1.8.1/src/bin/termiolink.c:458: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 txt[8];
data/terminology-1.8.1/src/bin/termiolink.c:1315: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 txt[8];
data/terminology-1.8.1/src/bin/termiolink.c:1413: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 txt[8];
data/terminology-1.8.1/src/bin/termpty.c:121:14:  [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(&(b[ty->buflen]), codepoints, bytes);
data/terminology-1.8.1/src/bin/termpty.c:236: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[4097];
data/terminology-1.8.1/src/bin/termpty.c:491:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         if (n > 0) memcpy(new_tabs, ty->tabs, n * sizeof(unsigned int));
data/terminology-1.8.1/src/bin/termpty.c:545: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.
   const char *args[4] = {NULL, NULL, NULL, NULL};
data/terminology-1.8.1/src/bin/termpty.c:651: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).
   ty->slavefd = open(pty, O_RDWR | O_NOCTTY);
data/terminology-1.8.1/src/bin/termpty.c:776: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.
             char buf[256];
data/terminology-1.8.1/src/bin/termpty.c:790:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
             cmdfile = (char *)args[0];
data/terminology-1.8.1/src/bin/termpty.c:1391:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
             memcpy(new_cells, ts->cells, ts->w * sizeof(Termcell));
data/terminology-1.8.1/src/bin/termpty.c:1392:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
             memcpy(new_cells + ts->w, cells, len * sizeof(Termcell));
data/terminology-1.8.1/src/bin/termpty.h:106: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 chset[4];
data/terminology-1.8.1/src/bin/termpty.h:164:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 oldbuf[4];
data/terminology-1.8.1/src/bin/termpty.h:349: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(Tdst, Tsrc, N * sizeof(Termcell));                                 \
data/terminology-1.8.1/src/bin/termptyesc.c:83: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.
   static char _str[9];
data/terminology-1.8.1/src/bin/termptyesc.c:1349: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 bf[32];
data/terminology-1.8.1/src/bin/termptyesc.c:3014: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 bf[32];
data/terminology-1.8.1/src/bin/termptyesc.c:3776: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[64];
data/terminology-1.8.1/src/bin/termptyesc.c:4129: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 bf[7];
data/terminology-1.8.1/src/bin/termptyesc.c:4173: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[32];
data/terminology-1.8.1/src/bin/termptyesc.c:4513:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char bf[32];
data/terminology-1.8.1/src/bin/theme.c:15: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.
   static char path1[PATH_MAX] = "";
data/terminology-1.8.1/src/bin/theme.c:16: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.
   static char path2[PATH_MAX] = "";
data/terminology-1.8.1/src/bin/theme.c:45: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.
   static char path[PATH_MAX] = "";
data/terminology-1.8.1/src/bin/theme.c:161: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.
   static char path[PATH_MAX] = "";
data/terminology-1.8.1/src/bin/theme.c:181:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char home[PATH_MAX - strlen(suffix)];
data/terminology-1.8.1/src/bin/tyalpha.c:36: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 tbuf[PATH_MAX];
data/terminology-1.8.1/src/bin/tybg.c:30: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 tbuf[32];
data/terminology-1.8.1/src/bin/tybg.c:38: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 *path, buf[PATH_MAX * 2], tbuf[PATH_MAX * 3];
data/terminology-1.8.1/src/bin/tycat.c:88: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 *line, buf[4096];
data/terminology-1.8.1/src/bin/tycat.c:311: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[64];
data/terminology-1.8.1/src/bin/tycommon.c:17: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[32];
data/terminology-1.8.1/src/bin/tyfuzz.c:31:29:  [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).
       tytest_common_set_fd(open(argv[1], O_RDONLY));
data/terminology-1.8.1/src/bin/tyls.c:635: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.
             char buf[4096];
data/terminology-1.8.1/src/bin/tyls.c:643:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char sz[6], szch = ' ';
data/terminology-1.8.1/src/bin/tyls.c:697:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char sz[6], szch = ' ';
data/terminology-1.8.1/src/bin/tyls.c:762: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[64];
data/terminology-1.8.1/src/bin/typop.c:36: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 *path, buf[PATH_MAX * 2], tbuf[PATH_MAX * 3];
data/terminology-1.8.1/src/bin/tyq.c:36: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 *path, buf[PATH_MAX * 2], tbuf[PATH_MAX * 3];
data/terminology-1.8.1/src/bin/tysend.c:65: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 *path, tbuf[PATH_MAX * 3];
data/terminology-1.8.1/src/bin/tysend.c:66:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rawbuf[(BUFSZ * 2) + 128], rawbuf2[(BUFSZ * 2) + 128];
data/terminology-1.8.1/src/bin/tysend.c:67:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[4];
data/terminology-1.8.1/src/bin/tysend.c:74: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).
        file_fd = open(path, O_RDONLY);
data/terminology-1.8.1/src/bin/tytest.c:144: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 md5out[(2 * MD5_HASHBYTES) + 1];
data/terminology-1.8.1/src/bin/tytest.c:145:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hash[MD5_HASHBYTES];
data/terminology-1.8.1/src/bin/tytest_common.c:384: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[4097];
data/terminology-1.8.1/src/bin/win.c:1512: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[PATH_MAX];
data/terminology-1.8.1/src/bin/win.c:2851: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[PATH_MAX];
data/terminology-1.8.1/src/bin/win.c:4842: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[32], bufmissed[32];
data/terminology-1.8.1/src/bin/win.c:4989: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[PATH_MAX];
data/terminology-1.8.1/src/bin/win.c:5141: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 bufmissed[32];
data/terminology-1.8.1/src/bin/win.c:6230:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        opacity = atoi(val);
data/terminology-1.8.1/src/bin/about.c:83: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).
                         strlen(TWITTER_HANDLE));
data/terminology-1.8.1/src/bin/about.c:156: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).
                         strlen(YOUTUBE_URL));
data/terminology-1.8.1/src/bin/config.c:356: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).
   kb->keyname = eina_stringshare_add_length(Name, strlen(Name)); \
data/terminology-1.8.1/src/bin/config.c:361:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   kb->cb = eina_stringshare_add_length(Cb, strlen(Cb));          \
data/terminology-1.8.1/src/bin/config.c:481:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(fname, FONT_DEJAVU, strlen(FONT_DEJAVU)) == 0)
data/terminology-1.8.1/src/bin/config.c:483:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if (strncmp(fname, FONT_LIBERATION, strlen(FONT_LIBERATION)) == 0)
data/terminology-1.8.1/src/bin/config.c:485:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if (strncmp(fname, FONT_DROID, strlen(FONT_DROID)) == 0)
data/terminology-1.8.1/src/bin/config.c:487:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if (strncmp(fname, FONT_BITSTREAM, strlen(FONT_BITSTREAM)) == 0)
data/terminology-1.8.1/src/bin/gravatar.c:81: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).
     email += strlen("mailto:");
data/terminology-1.8.1/src/bin/gravatar.c:83:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(email);
data/terminology-1.8.1/src/bin/keyin.c:66: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).
   inlen = strlen(ev->key);
data/terminology-1.8.1/src/bin/keyin.c:202:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        termpty_write(ty, ev->string, strlen(ev->string));
data/terminology-1.8.1/src/bin/keyin.c:212: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 len = strlen(keyname);
data/terminology-1.8.1/src/bin/keyin.c:253:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define STATIC_STR_EQUAL(STR) (!strncmp(key, STR, strlen(STR)))
data/terminology-1.8.1/src/bin/keyin.c:402: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).
        length = (strlen(path) + strlen(cwd) + strlen(template) - 3);
data/terminology-1.8.1/src/bin/keyin.c:402: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).
        length = (strlen(path) + strlen(cwd) + strlen(template) - 3);
data/terminology-1.8.1/src/bin/keyin.c:402:48:  [1] (buffer) strlen:
  Does not handle 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(path) + strlen(cwd) + strlen(template) - 3);
data/terminology-1.8.1/src/bin/keyin.c:777: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 len = strlen(keyname);
data/terminology-1.8.1/src/bin/main.c:74:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
             strncpy(fname, inst->font, p - inst->font);
data/terminology-1.8.1/src/bin/main.c:86: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).
             int n = strlen(inst->font);
data/terminology-1.8.1/src/bin/main.c:612: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).
        for (i = 0; i < strlen(instance->startup_split); i++)
data/terminology-1.8.1/src/bin/media.c:60:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(f);
data/terminology-1.8.1/src/bin/media.c:63: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).
        size_t l = strlen(extn[i]);
data/terminology-1.8.1/src/bin/media.c:1251: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).
             tbuf = alloca(strlen(sd->src) + 10);
data/terminology-1.8.1/src/bin/media.c:1257: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).
             tbuf = alloca(strlen(sd->src) + 10);
data/terminology-1.8.1/src/bin/media.c:1295:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             sd->tmpfd = mkstemps(buf, strlen(sd->ext));
data/terminology-1.8.1/src/bin/options_background.c:496: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).
               strlen(config_background_dir)) == 0)
data/terminology-1.8.1/src/bin/options_font.c:76: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).
   font_len = strlen(full_name);
data/terminology-1.8.1/src/bin/options_font.c:88:43:  [1] (buffer) strlen:
  Does not handle 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 (style && strncmp(style, STYLE_STR, strlen(STYLE_STR)) == 0)
data/terminology-1.8.1/src/bin/options_font.c:90: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).
        style += strlen(STYLE_STR);
data/terminology-1.8.1/src/bin/options_font.c:92: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).
        style_len = (s == NULL) ? strlen(style) : (size_t)(s - style);
data/terminology-1.8.1/src/bin/options_font.c:101:30:  [1] (buffer) strlen:
  Does not handle 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(s, STYLE_STR, strlen(STYLE_STR));
data/terminology-1.8.1/src/bin/options_font.c:102:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        s += strlen(STYLE_STR);
data/terminology-1.8.1/src/bin/options_font.c:103: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).
        len += strlen(STYLE_STR);
data/terminology-1.8.1/src/bin/options_font.c:562:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  len = (s == NULL) ? strlen(fname) : (size_t)(s - fname);
data/terminology-1.8.1/src/bin/sb.c:184: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:186: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).
   assert(sb.len == strlen(data) - 3);
data/terminology-1.8.1/src/bin/sb.c:196: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:197: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).
   ty_sb_lskip(&sb, strlen(data));
data/terminology-1.8.1/src/bin/sb.c:207: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:209: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).
   assert(sb.len == strlen(data) - 3);
data/terminology-1.8.1/src/bin/sb.c:219: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:220: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).
   ty_sb_rskip(&sb, strlen(data));
data/terminology-1.8.1/src/bin/sb.c:239: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).
                    strlen(" \f \t sb_trim_spaces \t ")) == 0);
data/terminology-1.8.1/src/bin/sb.c:246: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).
   assert(sb.len == strlen("sb_trim_spaces"));
data/terminology-1.8.1/src/bin/sb.c:262: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:264: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).
   assert(ty_sb_prepend(&sb, ">>>", strlen(">>>")) == 0);
data/terminology-1.8.1/src/bin/sb.c:265: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).
   assert(sb.len == strlen(data) + 3);
data/terminology-1.8.1/src/bin/sb.c:270: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).
   assert(ty_sb_prepend(&sb, "!!", strlen("!!")) == 0);
data/terminology-1.8.1/src/bin/sb.c:275:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert(ty_sb_prepend(&sb, ">>>>>>", strlen(">>>>>>")) == 0);
data/terminology-1.8.1/src/bin/sb.c:276: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).
   assert(sb.len == strlen(data) + 6);
data/terminology-1.8.1/src/bin/sb.c:281: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).
   assert(ty_sb_add(&sb, "foobar", strlen("foobar")) == 0);
data/terminology-1.8.1/src/bin/sb.c:283: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:298: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).
   assert(ty_sb_add(&sb, data, strlen(data)) == 0);
data/terminology-1.8.1/src/bin/sb.c:301: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).
   assert(strlen(buf) == strlen("foobar"));
data/terminology-1.8.1/src/bin/sb.c:301: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).
   assert(strlen(buf) == strlen("foobar"));
data/terminology-1.8.1/src/bin/sb.h:14:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define TY_SB_ADD(_SB, _S) ty_sb_add(_SB, _S, strlen(_S))
data/terminology-1.8.1/src/bin/sb.h:18: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).
#define TY_SB_PREPEND(_SB, _S) ty_sb_prepend(_SB, _S, strlen(_S))
data/terminology-1.8.1/src/bin/termio.c:224: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).
         len = strlen(title);
data/terminology-1.8.1/src/bin/termio.c:885: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).
                              sd->sel_str, strlen(sd->sel_str));
data/terminology-1.8.1/src/bin/termio.c:1256: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).
                  len = strlen(hl->url);
data/terminology-1.8.1/src/bin/termio.c:1867: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).
        buf = alloca(strlen(src) + strlen(blk->chid) + 256);
data/terminology-1.8.1/src/bin/termio.c:1867: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).
        buf = alloca(strlen(src) + strlen(blk->chid) + 256);
data/terminology-1.8.1/src/bin/termio.c:1874: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).
        buf = alloca(strlen(sig) + strlen(src) + strlen(blk->chid) + 128);
data/terminology-1.8.1/src/bin/termio.c:1874: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).
        buf = alloca(strlen(sig) + strlen(src) + strlen(blk->chid) + 128);
data/terminology-1.8.1/src/bin/termio.c:1874:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buf = alloca(strlen(sig) + strlen(src) + strlen(blk->chid) + 128);
data/terminology-1.8.1/src/bin/termio.c:1944:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  termpty_write(sd->pty, m->str[i], strlen(m->str[i]));
data/terminology-1.8.1/src/bin/termio.c:2018:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, m->str, strlen(m->str));
data/terminology-1.8.1/src/bin/termio.c:2039:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, m->str, strlen(m->str));
data/terminology-1.8.1/src/bin/termio.c:3625: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).
        termpty_write(ty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termio.c:3751:39:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                      strncpy(pp, p0, p1 - p0);
data/terminology-1.8.1/src/bin/termio.c:3845:34:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                 strncpy(pp, p0, p1 - p0);
data/terminology-1.8.1/src/bin/termio.c:4025: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).
             char *tb = malloc(strlen(ev->data) + 1);
data/terminology-1.8.1/src/bin/termio.c:4041:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(tb, p, p2 - p);
data/terminology-1.8.1/src/bin/termio.c:4045:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if (strlen(tb) > 0)
data/terminology-1.8.1/src/bin/termio.c:4052:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if (strlen(tb) > 0)
data/terminology-1.8.1/src/bin/termiointernals.c:400: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).
             len = strlen(sd->link.string);
data/terminology-1.8.1/src/bin/termiointernals.c:1584:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1613:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1622:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1632:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1752:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1780:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1790:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1799:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1839:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1867:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1875:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:1884:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:2188:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:2226: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).
                 termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:2254: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).
                 termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:2262: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).
                 termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiointernals.c:2271: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).
                 termpty_write(sd->pty, buf, strlen(buf));
data/terminology-1.8.1/src/bin/termiolink.c:972: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).
        ty_sb_lskip(sb, strlen("turn"));
data/terminology-1.8.1/src/bin/termiolink.c:976: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).
          ty_sb_lskip(sb, strlen("rad"));
data/terminology-1.8.1/src/bin/termiolink.c:981: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).
          ty_sb_lskip(sb, strlen("grad"));
data/terminology-1.8.1/src/bin/termiolink.c:987: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).
          ty_sb_lskip(sb, strlen("deg"));
data/terminology-1.8.1/src/bin/termpty.c:248:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(ty->fd, rbuf, len);
data/terminology-1.8.1/src/bin/termpty.c:791: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).
             cmd0 = alloca(strlen(cmdfile) + 2);
data/terminology-1.8.1/src/bin/termpty.c:863:14:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
             usleep(1000); // sleep 1ms
data/terminology-1.8.1/src/bin/termptyesc.c:37: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).
   termpty_write(ty, _S, strlen(_S))
data/terminology-1.8.1/src/bin/termptyesc.c:1380: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).
                            strlen("\033[0n"));
data/terminology-1.8.1/src/bin/termptyesc.c:1416: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).
                            strlen("\033[?13n"));
data/terminology-1.8.1/src/bin/termptyesc.c:1431: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).
                            strlen("\033[?20n"));
data/terminology-1.8.1/src/bin/termptyesc.c:1446: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).
                            strlen("\033[?27;1;0;0n"));
data/terminology-1.8.1/src/bin/termptyesc.c:1461: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).
                            strlen("\033[0000*{"));
data/terminology-1.8.1/src/bin/termptyesc.c:1492: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).
              termpty_write(ty, "\033[?70n", strlen("\033[?70n"));
data/terminology-1.8.1/src/bin/termptyesc.c:4060: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).
  int pattern_len = strlen(":size=");
data/terminology-1.8.1/src/bin/termptyesc.c:4088:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strncmp(s, "notify;", strlen("notify;")))
data/terminology-1.8.1/src/bin/termptyesc.c:4100: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).
   cmd_end = s + strlen("notify");
data/terminology-1.8.1/src/bin/termptyesc.c:4515:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    termpty_write(ty, bf, strlen(bf));
data/terminology-1.8.1/src/bin/termptyops.c:544: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).
     termpty_write(ty, "\033[C", strlen("\033[C"));
data/terminology-1.8.1/src/bin/termptyops.c:547: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).
     termpty_write(ty, "\033[D", strlen("\033[D"));
data/terminology-1.8.1/src/bin/termptyops.c:551: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).
     termpty_write(ty, "\033[B", strlen("\033[B"));
data/terminology-1.8.1/src/bin/termptyops.c:554: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).
     termpty_write(ty, "\033[A", strlen("\033[A"));
data/terminology-1.8.1/src/bin/theme.c:181:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char home[PATH_MAX - strlen(suffix)];
data/terminology-1.8.1/src/bin/tyalpha.c:48:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tyalpha.c:48:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tybg.c:32:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tybg.c:32:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tybg.c:52:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tybg.c:52:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tycat.c:74:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(f);
data/terminology-1.8.1/src/bin/tycat.c:77: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 l = strlen(extn[i]);
data/terminology-1.8.1/src/bin/tycat.c:99:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (ty_write(1, buf, strlen(buf) + 1) < 0)
data/terminology-1.8.1/src/bin/tycat.c:339:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (ty_write(1, buf, strlen(buf) + 1) < 0)
data/terminology-1.8.1/src/bin/tycommon.c:60:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   while (pos != (expected + strlen(expected)))
data/terminology-1.8.1/src/bin/tycommon.c:79:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
             len = read(STDIN_FILENO, buf, 1);
data/terminology-1.8.1/src/bin/tyls.c:769: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(buf);
data/terminology-1.8.1/src/bin/typop.c:42:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/typop.c:42:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tyq.c:41:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tyq.c:41:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:72:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:72:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:82: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).
             if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:82:66:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:86:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  if (read(0, buf, 2) == 2)
data/terminology-1.8.1/src/bin/tysend.c:90:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            pksize = read(file_fd, rawbuf, BUFSZ);
data/terminology-1.8.1/src/bin/tysend.c:107:56:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf)) != (signed)(strlen(tbuf)))
data/terminology-1.8.1/src/bin/tysend.c:107:82:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf)) != (signed)(strlen(tbuf)))
data/terminology-1.8.1/src/bin/tysend.c:126:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tysend.c:126:61:  [1] (buffer) strlen:
  Does not handle 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 (ty_write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1))
data/terminology-1.8.1/src/bin/tytest.c:88: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).
        if (strncmp(argv[i], "all", strlen("all")) == 0)
data/terminology-1.8.1/src/bin/tytest.c:168: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).
                  strlen(ty->prop.icon));
data/terminology-1.8.1/src/bin/tytest.c:178: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).
                  strlen(ty->prop.title));
data/terminology-1.8.1/src/bin/tytest.c:187:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             strlen(cursor_shape));
data/terminology-1.8.1/src/bin/tytest_common.c:280:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strncmp(key, "BG", strlen("BG")) == 0)
data/terminology-1.8.1/src/bin/tytest_common.c:298:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strncmp(key, "BG", strlen("BG")) == 0)
data/terminology-1.8.1/src/bin/tytest_common.c:396:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(_ty.fd, rbuf, len);
data/terminology-1.8.1/src/bin/win.c:1716:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(str);
data/terminology-1.8.1/src/bin/win.c:1975: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).
                  int len = strlen(compres);
data/terminology-1.8.1/src/bin/win.c:5646:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(str, _LOCATION_HDR, strlen(_LOCATION_HDR)))
data/terminology-1.8.1/src/bin/win.c:5650: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).
             str += strlen(_LOCATION_HDR);
data/terminology-1.8.1/src/bin/win.c:5656: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).
                  len = strlen(str);
data/terminology-1.8.1/src/bin/win.c:5665:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if (!strncmp(str, _CONTENT_TYPE_HDR, strlen(_CONTENT_TYPE_HDR)))
data/terminology-1.8.1/src/bin/win.c:5667: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).
             str += strlen(_CONTENT_TYPE_HDR);
data/terminology-1.8.1/src/bin/win.c:5668:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             if (!strncmp(str, "image/", strlen("image/")))
data/terminology-1.8.1/src/bin/win.c:5672:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             else if (!strncmp(str, "video/", strlen("video/")))
data/terminology-1.8.1/src/bin/win.c:6134:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (!title || !strlen(title))
data/terminology-1.8.1/src/bin/win.c:6206: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).
        elm_entry_cursor_pos_set(o, strlen(prev_title));

ANALYSIS SUMMARY:

Hits = 322
Lines analyzed = 43395 in approximately 0.94 seconds (46345 lines/second)
Physical Source Lines of Code (SLOC) = 37543
Hits@level = [0] 179 [1] 162 [2] 130 [3]  17 [4]  12 [5]   1
Hits@level+ = [0+] 501 [1+] 322 [2+] 160 [3+]  30 [4+]  13 [5+]   1
Hits/KSLOC@level+ = [0+] 13.3447 [1+] 8.57683 [2+] 4.26178 [3+] 0.799084 [4+] 0.34627 [5+] 0.0266361
Dot directories skipped = 2 (--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.