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/newt-0.52.21/scale.c
Examining data/newt-0.52.21/testgrid.c
Examining data/newt-0.52.21/eawidth.c
Examining data/newt-0.52.21/scrollbar.c
Examining data/newt-0.52.21/nls.h
Examining data/newt-0.52.21/windows.c
Examining data/newt-0.52.21/newt.h
Examining data/newt-0.52.21/showchars.c
Examining data/newt-0.52.21/whiptail.c
Examining data/newt-0.52.21/grid.c
Examining data/newt-0.52.21/test.c
Examining data/newt-0.52.21/showkey.c
Examining data/newt-0.52.21/buttonbar.c
Examining data/newt-0.52.21/testtree.c
Examining data/newt-0.52.21/dialogboxes.h
Examining data/newt-0.52.21/form.c
Examining data/newt-0.52.21/button.c
Examining data/newt-0.52.21/checkbox.c
Examining data/newt-0.52.21/checkboxtree.c
Examining data/newt-0.52.21/entry.c
Examining data/newt-0.52.21/label.c
Examining data/newt-0.52.21/listbox.c
Examining data/newt-0.52.21/newt_pr.h
Examining data/newt-0.52.21/textbox.c
Examining data/newt-0.52.21/snack.c
Examining data/newt-0.52.21/dialogboxes.c
Examining data/newt-0.52.21/newt.c
Examining data/newt-0.52.21/whiptcl.c

FINAL RESULTS:

data/newt-0.52.21/dialogboxes.c:98:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, text);
data/newt-0.52.21/dialogboxes.c:498:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, MAXBUF, format, cbInfo[i].tag, cbInfo[i].text);
data/newt-0.52.21/eawidth.c:454:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (printf(fmt, i, s, length, width) < 0) {
data/newt-0.52.21/entry.c:57:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(en->buf, value);
data/newt-0.52.21/entry.c:108:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(en->buf, initialValue);
data/newt-0.52.21/form.c:207:11:  [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(tty,t);
data/newt-0.52.21/form.c:242:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(addr.sun_path, GPM_NODE_CTL);
data/newt-0.52.21/whiptcl.c:141:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(result, "%s: %s\n", 
data/newt-0.52.21/windows.c:28:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	i = vsnprintf(buf, size, message, argscopy);
data/newt-0.52.21/form.c:162: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.
  if ((term=(char *)getenv("TERM")) && !strncmp(term,"xterm",5))
data/newt-0.52.21/form.c:231:29:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
      if (!(gpm_sock_name = tempnam (0, "gpm"))) {
data/newt-0.52.21/newt.c:783:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    colors_file = getenv("NEWT_COLORS_FILE");
data/newt-0.52.21/newt.c:789:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((colors = getenv("NEWT_COLORS"))) {
data/newt-0.52.21/newt.c:867:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((lang = getenv("LC_ALL")) == NULL)
data/newt-0.52.21/newt.c:868: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.
        if ((lang = getenv("LC_CTYPE")) == NULL)
data/newt-0.52.21/newt.c:869:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if ((lang = getenv("LANG")) == NULL)
data/newt-0.52.21/newt.c:882: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.
    MonoValue = getenv(MonoEnv);
data/newt-0.52.21/newt.c:886: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.
    NoFlowCtrlValue = getenv(NoFlowCtrlEnv);
data/newt-0.52.21/checkboxtree.c:484: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.
	        char tmp[5];
data/newt-0.52.21/dialogboxes.c:24: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.
static const char * buttonText[BUTTONS];
data/newt-0.52.21/dialogboxes.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[3000];
data/newt-0.52.21/dialogboxes.c:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf3[50];
data/newt-0.52.21/dialogboxes.c:247: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(d, p, ret);
data/newt-0.52.21/dialogboxes.c:268:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXBUF];
data/newt-0.52.21/dialogboxes.c:420:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXBUF], format[MAXFORMAT];
data/newt-0.52.21/entry.c:445:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char s[MB_CUR_MAX];
data/newt-0.52.21/form.c:154:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tty[32];
data/newt-0.52.21/form.c:200:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(tty,"/dev/tty%i",flag);
data/newt-0.52.21/form.c:210:20:  [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).
          conn->vc=atoi(tty+8);
data/newt-0.52.21/form.c:213:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tty,"/dev/tty0");
data/newt-0.52.21/form.c:254:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          if ((gpm_fd=open(GPM_NODE_DEV,O_RDWR))==-1) {
data/newt-0.52.21/label.c:58: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(la->text, text, newLength);
data/newt-0.52.21/newt.c:418:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(newstr, str, len);
data/newt-0.52.21/newt.c:509:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char * helplineStack[20];
data/newt-0.52.21/newt.c:777:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *colors, *colors_file, buf[16384];
data/newt-0.52.21/newt.c:793:52:  [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).
    } else if (colors_file && *colors_file && (f = fopen(colors_file, "r"))) {
data/newt-0.52.21/newt.c:1026:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char default_keyreader_buf[10];
data/newt-0.52.21/newt.c:1032:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seen[256]={0};
data/newt-0.52.21/newt.c:1060:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("newt.keydump","wt");
data/newt-0.52.21/newt.c:1536:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, *currentHelpline, strlen(*currentHelpline));
data/newt-0.52.21/scale.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char percent[10];
data/newt-0.52.21/scale.c:93:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(percent, "%3d%%", sc->percentage);
data/newt-0.52.21/test.c:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char results[10];
data/newt-0.52.21/test.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20];
data/newt-0.52.21/test.c:76:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "Check %d", i);
data/newt-0.52.21/test.c:130:26:  [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).
	    newtScaleSet(scale, atoi(scaleVal));
data/newt-0.52.21/test.c:135:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buf, "Spinner: %c", *spinState);
data/newt-0.52.21/testgrid.c:15:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char * entries[10];
data/newt-0.52.21/textbox.c:211:7:  [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(result, text, end - text);
data/newt-0.52.21/textbox.c:255:7:  [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(result, text, chptr - text);
data/newt-0.52.21/textbox.c:374: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(tb->lines[tb->numLines], s, len);
data/newt-0.52.21/whiptail.c:210:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[20];
data/newt-0.52.21/whiptail.c:235:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%d", h);
data/newt-0.52.21/whiptail.c:303:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, O_RDONLY, 0);
data/newt-0.52.21/whiptail.c:508:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open("/dev/tty", O_RDWR) != 0) {
data/newt-0.52.21/whiptcl.c:255:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char blankLine[81] = "                                        "
data/newt-0.52.21/windows.c:172:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    for (buttonName = button1; buttonName; buttonName = va_arg(args, char *)) 
data/newt-0.52.21/windows.c:231:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    for (buttonName = button1; buttonName; buttonName = va_arg(args, char *)) 
data/newt-0.52.21/windows.c:250: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.
				    (const char **)items[i].value, items[i].flags),
data/newt-0.52.21/checkboxtree.c:411: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 (item->selected==strlen(ct->seq))
data/newt-0.52.21/checkboxtree.c:639:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(ct->seq) != 2) {
data/newt-0.52.21/dialogboxes.c:97:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    buf = alloca(strlen(text) + 1);
data/newt-0.52.21/dialogboxes.c:148:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf[strlen(buf) - 1] = '\0';
data/newt-0.52.21/dialogboxes.c:155: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).
	    buf3[strlen(buf3) - 1] = '\0';
data/newt-0.52.21/dialogboxes.c:165:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(buf);
data/newt-0.52.21/dialogboxes.c:169:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf[strlen(buf) - 1] = '\0';
data/newt-0.52.21/eawidth.c:409:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(s) + 1;
data/newt-0.52.21/eawidth.c:412: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).
      return strlen (s);
data/newt-0.52.21/eawidth.c:452: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).
    length = strlen(s);
data/newt-0.52.21/entry.c:50: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).
    if ((strlen(value) + 1) > (unsigned int)en->bufAlloced) {
data/newt-0.52.21/entry.c:52: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).
	en->bufAlloced = strlen(value) + 1;
data/newt-0.52.21/entry.c:58: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).
    en->bufUsed = strlen(value);
data/newt-0.52.21/entry.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 (initialValue && strlen(initialValue) > (unsigned int)width) {
data/newt-0.52.21/entry.c:100: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).
	en->bufAlloced = strlen(initialValue) + 1;
data/newt-0.52.21/entry.c:109: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).
	en->bufUsed = strlen(initialValue);
data/newt-0.52.21/entry.c:320:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(en->buf) >= ev.u.mouse.x - co->left) {
data/newt-0.52.21/entry.c:325: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).
		    en->cursorPosition = strlen(en->buf);
data/newt-0.52.21/form.c:234:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (addr.sun_path, gpm_sock_name, sizeof (addr.sun_path));
data/newt-0.52.21/form.c:236: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).
                sizeof (addr.sun_family) + strlen (addr.sun_path))==-1) {
data/newt-0.52.21/form.c:243: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).
      i=sizeof(addr.sun_family)+strlen(GPM_NODE_CTL);
data/newt-0.52.21/form.c:358:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((count=read(gpm_fd,event,sizeof(Gpm_Event)))!=sizeof(Gpm_Event))
data/newt-0.52.21/label.c:43: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).
    la->length = strlen(text);
data/newt-0.52.21/label.c:55: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).
    newLength = strlen(text);
data/newt-0.52.21/newt.c:318:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/newt-0.52.21/newt.c:378:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/newt-0.52.21/newt.c:411:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/newt-0.52.21/newt.c:639: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).
	if (len < 0) len = strlen(str);
data/newt-0.52.21/newt.c:669:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ln = strlen(title);
data/newt-0.52.21/newt.c:790:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, colors, sizeof (buf));
data/newt-0.52.21/newt.c:876: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).
    (void) strlen(ident);
data/newt-0.52.21/newt.c:1074:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(keyseq) > keyreader_buf_len ) {
data/newt-0.52.21/newt.c:1075: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 i = strlen(keyseq)+10;
data/newt-0.52.21/newt.c:1092: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).
                =  calloc(strlen(keyseq),sizeof(struct kmap_trie_entry));
data/newt-0.52.21/newt.c:1509:5:  [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(usecs);
data/newt-0.52.21/newt.c:1533:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(*currentHelpline) + (SLtt_Screen_Cols - wlen);
data/newt-0.52.21/newt.c:1536: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).
	memcpy(buf, *currentHelpline, strlen(*currentHelpline));
data/newt-0.52.21/textbox.c:146: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 bufAlloced = strlen(text) + 40;
data/newt-0.52.21/textbox.c:156: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).
	    bufAlloced += strlen(text) / 2;
data/newt-0.52.21/textbox.c:193: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).
	    result = malloc(strlen(text) + (strlen(text) / (width - 1)) + 2);
data/newt-0.52.21/textbox.c:193:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    result = malloc(strlen(text) + (strlen(text) / (width - 1)) + 2);
data/newt-0.52.21/textbox.c:195: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).
	    result = malloc(strlen(text) * 2 + 2);
data/newt-0.52.21/textbox.c:203: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).
	    end = text + strlen(text);
data/newt-0.52.21/textbox.c:357: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).
	addLine(co, start, strlen(start));
data/newt-0.52.21/whiptail.c:88: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 (len < 0) len = strlen(str);
data/newt-0.52.21/whiptail.c:220: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).
       tagWidth = max(tagWidth, strlen(argv[0]));
data/newt-0.52.21/whiptail.c:221: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).
       descriptionWidth = max(descriptionWidth, strlen(argv[1]));
data/newt-0.52.21/whiptail.c:317:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ( read(fd, buf, s.st_size) != s.st_size ) {
data/newt-0.52.21/whiptcl.c:271: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).
    else if (!strlen(text))

ANALYSIS SUMMARY:

Hits = 108
Lines analyzed = 11729 in approximately 0.33 seconds (35712 lines/second)
Physical Source Lines of Code (SLOC) = 9316
Hits@level = [0]  51 [1]  49 [2]  41 [3]   9 [4]   9 [5]   0
Hits@level+ = [0+] 159 [1+] 108 [2+]  59 [3+]  18 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 17.0674 [1+] 11.593 [2+] 6.33319 [3+] 1.93216 [4+] 0.96608 [5+]   0
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.