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/dialog-1.3-20190808/guage.c
Examining data/dialog-1.3-20190808/treeview.c
Examining data/dialog-1.3-20190808/arrows.c
Examining data/dialog-1.3-20190808/inputbox.c
Examining data/dialog-1.3-20190808/argv.c
Examining data/dialog-1.3-20190808/dialog.h
Examining data/dialog-1.3-20190808/dlg_keys.c
Examining data/dialog-1.3-20190808/mixedgauge.c
Examining data/dialog-1.3-20190808/buttons.c
Examining data/dialog-1.3-20190808/editbox.c
Examining data/dialog-1.3-20190808/yesno.c
Examining data/dialog-1.3-20190808/samples/install/setup.c
Examining data/dialog-1.3-20190808/dlg_keys.h
Examining data/dialog-1.3-20190808/dlg_internals.h
Examining data/dialog-1.3-20190808/buildlist.c
Examining data/dialog-1.3-20190808/columns.c
Examining data/dialog-1.3-20190808/ui_getc.c
Examining data/dialog-1.3-20190808/util.c
Examining data/dialog-1.3-20190808/pause.c
Examining data/dialog-1.3-20190808/rangebox.c
Examining data/dialog-1.3-20190808/mixedform.c
Examining data/dialog-1.3-20190808/menubox.c
Examining data/dialog-1.3-20190808/ttysize.c
Examining data/dialog-1.3-20190808/prgbox.c
Examining data/dialog-1.3-20190808/help.c
Examining data/dialog-1.3-20190808/timebox.c
Examining data/dialog-1.3-20190808/dialog.c
Examining data/dialog-1.3-20190808/rc.c
Examining data/dialog-1.3-20190808/mousewget.c
Examining data/dialog-1.3-20190808/tailbox.c
Examining data/dialog-1.3-20190808/dlg_colors.h
Examining data/dialog-1.3-20190808/progressbox.c
Examining data/dialog-1.3-20190808/checklist.c
Examining data/dialog-1.3-20190808/version.c
Examining data/dialog-1.3-20190808/fselect.c
Examining data/dialog-1.3-20190808/mouse.c
Examining data/dialog-1.3-20190808/textbox.c
Examining data/dialog-1.3-20190808/msgbox.c
Examining data/dialog-1.3-20190808/calendar.c
Examining data/dialog-1.3-20190808/trace.c
Examining data/dialog-1.3-20190808/formbox.c
Examining data/dialog-1.3-20190808/inputstr.c

FINAL RESULTS:

data/dialog-1.3-20190808/buttons.c:45:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer, "%*s", left, " ");
data/dialog-1.3-20190808/buttons.c:47:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(buffer, label);
data/dialog-1.3-20190808/buttons.c:49:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer + strlen(buffer), "%*s", right, " ");
data/dialog-1.3-20190808/calendar.c:543:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, "locale %s", name);
data/dialog-1.3-20190808/dialog.c:672:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(temp, format, group, have);
data/dialog-1.3-20190808/dialog.c:676:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(temp, format, group, (have % group));
data/dialog-1.3-20190808/dialog.c:1409:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(dialog_state.output, *list, n ? leaf : dialog_version());
data/dialog-1.3-20190808/dialog.c:2084:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(temp, "%s option %.20s",
data/dialog-1.3-20190808/editbox.c:605:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			    sprintf(tmp, "%s%s", PREV_ROW, THIS_ROW);
data/dialog-1.3-20190808/fselect.c:407: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(buff, test);
data/dialog-1.3-20190808/fselect.c:847: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(leaf_of(input), completed);
data/dialog-1.3-20190808/guage.c:207: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(obj->prompt_buf, buf);
data/dialog-1.3-20190808/guage.c:214:4:  [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(obj->prompt_buf, buf);
data/dialog-1.3-20190808/inputstr.c:225:6:  [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(cache->string, string);
data/dialog-1.3-20190808/inputstr.c:253:6:  [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(cache->string, string);
data/dialog-1.3-20190808/menubox.c:163: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(result, items->text);
data/dialog-1.3-20190808/mixedgauge.c:95:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp, "%3s%%", given);
data/dialog-1.3-20190808/prgbox.c:72:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(blob, "sh -c \"%s\"", command);
data/dialog-1.3-20190808/prgbox.c:74:3:  [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("sh", argv);
data/dialog-1.3-20190808/rc.c:188:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(str, color_names[i].name);
data/dialog-1.3-20190808/rc.c:193:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(str, color_names[i].name);
data/dialog-1.3-20190808/rc.c:196:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(str, hl ? ",ON)" : ",OFF)");
data/dialog-1.3-20190808/rc.c:401:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(rc_file, "#\n\
data/dialog-1.3-20190808/rc.c:511:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%s%s", tempptr, DIALOGRC);
data/dialog-1.3-20190808/rc.c:513:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%s/%s", tempptr, DIALOGRC);
data/dialog-1.3-20190808/rc.c:520: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(str, GLOBALRC);
data/dialog-1.3-20190808/rc.c:568: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 *) vars[i].var, value);
data/dialog-1.3-20190808/samples/install/setup.c:49:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(sh, s, ap);
data/dialog-1.3-20190808/samples/install/setup.c:59:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(sh);
data/dialog-1.3-20190808/samples/install/setup.c:107:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret = system("fdisk -l 2>/dev/null 1>/tmp/fdisk.output");
data/dialog-1.3-20190808/trace.c:50:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(myFP, fmt, ap);
data/dialog-1.3-20190808/util.c:1871:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(stderr, fmt, ap);
data/dialog-1.3-20190808/util.c:2012: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(prompt, cprompt);
data/dialog-1.3-20190808/util.c:2552: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(dialog_vars.input_result, string ? string : "");
data/dialog-1.3-20190808/util.c:2583:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(dialog_vars.input_result, save_result);
data/dialog-1.3-20190808/util.c:2592:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(dialog_vars.input_result, string);
data/dialog-1.3-20190808/dialog.c:1864: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.
	char *env = getenv("DIALOGOPTS");
data/dialog-1.3-20190808/rc.c:503:20:  [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 ((tempptr = getenv("DIALOGRC")) != NULL)
data/dialog-1.3-20190808/rc.c:508: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 ((tempptr = getenv("HOME")) != NULL
data/dialog-1.3-20190808/util.c:249:20:  [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 *result = getenv("DIALOG_TTY");
data/dialog-1.3-20190808/util.c:1760: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.
	    if ((name = getenv(table[n].name)) != 0) {
data/dialog-1.3-20190808/arrows.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[80];
data/dialog-1.3-20190808/arrows.c:194: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.
	(void) sprintf(buffer, "%d%%", percent);
data/dialog-1.3-20190808/buildlist.c:1153:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(items, redo, sizeof(DIALOG_LISTITEM) * (size_t) (item_no + 1));
data/dialog-1.3-20190808/buttons.c:64:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t cmp2[2];
data/dialog-1.3-20190808/buttons.c:561:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *labels[3];
data/dialog-1.3-20190808/buttons.c:599: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.
    static const char *labels[4];
data/dialog-1.3-20190808/buttons.c:617: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.
    static const char *labels[5];
data/dialog-1.3-20190808/buttons.c:740:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *labels[4];
data/dialog-1.3-20190808/calendar.c:71: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 *cached_days[MAX_DAYS];
data/dialog-1.3-20190808/calendar.c:72: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 *cached_months[MAX_MONTHS];
data/dialog-1.3-20190808/calendar.c:94:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *posix_days[MAX_DAYS] =
data/dialog-1.3-20190808/calendar.c:146:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *posix_mons[MAX_MONTHS] =
data/dialog-1.3-20190808/calendar.c:540: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 command[80];
data/dialog-1.3-20190808/calendar.c:546:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[80];
data/dialog-1.3-20190808/calendar.c:731: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 buffer[MAX_LEN];
data/dialog-1.3-20190808/calendar.c:1000: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(dst, "%02d/%02d/%0d", \
data/dialog-1.3-20190808/columns.c:147: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(text + offset, *value + offsets[n], (size_t) widths[n]);
data/dialog-1.3-20190808/dialog.c:504: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).
		    fp = fdopen(atoi(filename + sizeof(char)), "r");
data/dialog-1.3-20190808/dialog.c:506:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		    fp = fopen(filename, "r");
data/dialog-1.3-20190808/dialog.c:663: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 temp[80];
data/dialog-1.3-20190808/dialog.c:697: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 msg[80];
data/dialog-1.3-20190808/dialog.c:699: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(msg, "Expected a number for token %d of %.20s", n, av[0]);
data/dialog-1.3-20190808/dialog.c:1265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[80];
data/dialog-1.3-20190808/dialog.c:1266: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(temp, "Expected a string-parameter for %.20s", argv[*num]);
data/dialog-1.3-20190808/dialog.c:1288:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[80];
data/dialog-1.3-20190808/dialog.c:1289: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(temp, "Expected a numeric-parameter for %.20s", argv[*num]);
data/dialog-1.3-20190808/dialog.c:1325:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[80];
data/dialog-1.3-20190808/dialog.c:1326: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(temp, "Button name \"%.20s\" unknown", name);
data/dialog-1.3-20190808/dialog.c:1882: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 temp[256];
data/dialog-1.3-20190808/dialog.c:1891: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 my_buffer[MAX_LEN + 1];
data/dialog-1.3-20190808/dialog.c:2019: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(temp, "Expected a filename for %.50s", argv[1]);
data/dialog-1.3-20190808/dialog.c:2069:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(temp,
data/dialog-1.3-20190808/dialog.c:2094: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(temp, "Expected at least %d tokens for %.20s, have %d",
data/dialog-1.3-20190808/dialog.c:2100: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(temp,
data/dialog-1.3-20190808/dialog.c:2164:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(temp, "Expected --and-widget, not %.20s",
data/dialog-1.3-20190808/dlg_keys.c:713: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 result[80];
data/dialog-1.3-20190808/dlg_keys.c:719: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(result, "%c", escaped_letters[n].letter);
data/dialog-1.3-20190808/dlg_keys.c:724: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(result, "%03o", value & 0xff);
data/dialog-1.3-20190808/dlg_keys.c:795: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 fprefix[2];
data/dialog-1.3-20190808/dlg_keys.c:796: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 check[2];
data/dialog-1.3-20190808/editbox.c:78:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(file, "r")) == 0)
data/dialog-1.3-20190808/formbox.c:394: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(item[i].text, "%.*s", item[i].text_ilen, old_text);
data/dialog-1.3-20190808/formbox.c:918:18:  [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 result = atoi(s);
data/dialog-1.3-20190808/formbox.c:959:27:  [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).
	listitems[i].text_flen = atoi(ItemTextFLen(i));
data/dialog-1.3-20190808/formbox.c:960:27:  [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).
	listitems[i].text_ilen = atoi(ItemTextILen(i));
data/dialog-1.3-20190808/fselect.c:445: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 path[MAX_LEN + 1];
data/dialog-1.3-20190808/fselect.c:470: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(current, input, have);
data/dialog-1.3-20190808/fselect.c:476: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(path, current, have);
data/dialog-1.3-20190808/fselect.c:481:6:  [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(path, "./");
data/dialog-1.3-20190808/fselect.c:492: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(leaf, de->d_name, len);
data/dialog-1.3-20190808/fselect.c:605: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 current[MAX_LEN + 1];
data/dialog-1.3-20190808/guage.c:44: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 prompt_buf[MY_LEN];
data/dialog-1.3-20190808/guage.c:48: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 line[MAX_LEN + 1];
data/dialog-1.3-20190808/guage.c:188: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[MY_LEN + 1];
data/dialog-1.3-20190808/guage.c:205:22:  [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).
		    obj->percent = atoi(buf);
data/dialog-1.3-20190808/guage.c:223:21:  [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).
	    obj->percent = atoi(buf);
data/dialog-1.3-20190808/inputstr.c:428:7:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    wchar_t temp[2];
data/dialog-1.3-20190808/mixedform.c:75:27:  [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).
	listitems[i].text_flen = atoi(ItemTextFLen(i));
data/dialog-1.3-20190808/mixedform.c:76:27:  [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).
	listitems[i].text_ilen = atoi(ItemTextILen(i));
data/dialog-1.3-20190808/mixedform.c:79:33:  [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).
	listitems[i].type = (unsigned) atoi(ItemTypep(i));
data/dialog-1.3-20190808/progressbox.c:48: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 line[MAX_LEN + 1];
data/dialog-1.3-20190808/rangebox.c:54: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 temp[80];
data/dialog-1.3-20190808/rangebox.c:55:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%d", value);
data/dialog-1.3-20190808/rangebox.c:75: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 buffer[80];
data/dialog-1.3-20190808/rangebox.c:79: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(buffer, "%*d", data->value_len, data->current);
data/dialog-1.3-20190808/rangebox.c:206: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 buffer[MAX_LEN];
data/dialog-1.3-20190808/rangebox.c:411: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(buffer, "%d", cur_value);
data/dialog-1.3-20190808/rc.c:213: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 tempstr[MAX_LEN + 1], *part;
data/dialog-1.3-20190808/rc.c:233: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(tempstr, str + 1, have);
data/dialog-1.3-20190808/rc.c:398:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((rc_file = fopen(filename, "wt")) == NULL)
data/dialog-1.3-20190808/rc.c:428:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    (char *) vars[i].var);
data/dialog-1.3-20190808/rc.c:455: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 buffer[MAX_LEN + 1];
data/dialog-1.3-20190808/rc.c:479: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 str[MAX_LEN + 1];
data/dialog-1.3-20190808/rc.c:504:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	rc_file = fopen(tempptr, "rt");
data/dialog-1.3-20190808/rc.c:514:16:  [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).
	    rc_file = fopen(tempptr = str, "rt");
data/dialog-1.3-20190808/rc.c:521:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((rc_file = fopen(tempptr = str, "rt")) == NULL)
data/dialog-1.3-20190808/rc.c:555:32:  [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 *) vars[i].var) = atoi(value);
data/dialog-1.3-20190808/rc.c:568: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.
			strcpy((char *) vars[i].var, value);
data/dialog-1.3-20190808/samples/install/setup.c:46: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 sh[200];
data/dialog-1.3-20190808/samples/install/setup.c:77: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 name[MAX_DEV_NAME];
data/dialog-1.3-20190808/samples/install/setup.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[200];
data/dialog-1.3-20190808/samples/install/setup.c:111:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("/tmp/fdisk.output", "r")) == NULL)
data/dialog-1.3-20190808/samples/install/setup.c:113:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("FDISK.TEST", "r")) == NULL)
data/dialog-1.3-20190808/samples/install/setup.c:123:6:  [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(t, "/dev/");
data/dialog-1.3-20190808/samples/install/setup.c:135:41:  [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).
	    partitions[num_partition].blocks = atoi(t);
data/dialog-1.3-20190808/samples/install/setup.c:161: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 info[MAX_PARTS][40];
data/dialog-1.3-20190808/samples/install/setup.c:162: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 *items[MAX_PARTS * 2];
data/dialog-1.3-20190808/samples/install/setup.c:169: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(info[num], "Linux partition with %d blocks",
data/dialog-1.3-20190808/samples/install/setup.c:214:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("/install/etc/fstab", "w")) == NULL) {
data/dialog-1.3-20190808/tailbox.c:37: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 line[MAX_LEN + 2];
data/dialog-1.3-20190808/tailbox.c:122: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 buf[BUFSIZ + 1];
data/dialog-1.3-20190808/tailbox.c:340: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).
    if ((fd = fopen(filename, "rb")) == NULL)
data/dialog-1.3-20190808/textbox.c:38: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 line[MAX_LEN + 1];
data/dialog-1.3-20190808/textbox.c:708: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 search_term[MAX_LEN + 1];
data/dialog-1.3-20190808/textbox.c:732:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((obj.fd = open(filename, O_RDONLY)) == -1)
data/dialog-1.3-20190808/timebox.c:188: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 buffer[MAX_LEN];
data/dialog-1.3-20190808/timebox.c:406: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(dst, "%02d:%02d:%02d", \
data/dialog-1.3-20190808/trace.c:117:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char buffer[80];
data/dialog-1.3-20190808/trace.c:249:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    myFP = fopen(fname, "a");
data/dialog-1.3-20190808/treeview.c:612:14:  [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).
	depths[i] = atoi(items[j++]);
data/dialog-1.3-20190808/ui_getc.c:270: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 last_getc_bytes[80];
data/dialog-1.3-20190808/ui_getc.c:316: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 temp[80];
data/dialog-1.3-20190808/ui_getc.c:317: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(temp, "%d", last_getc);
data/dialog-1.3-20190808/util.c:250:24:  [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).
    if (result != 0 && atoi(result) == 0)
data/dialog-1.3-20190808/util.c:274:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open(device, mode);
data/dialog-1.3-20190808/util.c:281: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 buffer[2];
data/dialog-1.3-20190808/util.c:1124:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char buffer[5];
data/dialog-1.3-20190808/util.c:1128:14:  [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.
		    (void) sprintf(buffer, "%d%%", percent);
data/dialog-1.3-20190808/util.c:1407: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).
    if ((fd = fopen(file, "rb")) == NULL)
data/dialog-1.3-20190808/util.c:2640: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 temp[2];
data/dialog-1.3-20190808/argv.c:37: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).
    size_t length = strlen(blob);
data/dialog-1.3-20190808/buildlist.c:625:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (states == 0 || strlen(states) < 2)
data/dialog-1.3-20190808/buildlist.c:627:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    num_states = (int) strlen(states);
data/dialog-1.3-20190808/buttons.c:49: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).
	sprintf(buffer + strlen(buffer), "%*s", right, " ");
data/dialog-1.3-20190808/buttons.c:62:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t have = strlen(string);
data/dialog-1.3-20190808/buttons.c:381: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).
	    need += strlen(labels[n]) + 1;
data/dialog-1.3-20190808/calendar.c:114:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(value)) > limit)
data/dialog-1.3-20190808/calendar.c:609: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 eql = strlen(option);
data/dialog-1.3-20190808/checklist.c:274:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (states == 0 || strlen(states) < 2)
data/dialog-1.3-20190808/checklist.c:276:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    num_states = (int) strlen(states);
data/dialog-1.3-20190808/columns.c:57: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).
	result += strlen(mark);
data/dialog-1.3-20190808/columns.c:68: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 mark = (int) strlen(column_separator());
data/dialog-1.3-20190808/columns.c:82: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).
    offset = (unsigned) strlen(source);
data/dialog-1.3-20190808/columns.c:109:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t len = strlen(*value);
data/dialog-1.3-20190808/dialog.c:423: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(arg) == (strspn) (arg, OptionChars)) {
data/dialog-1.3-20190808/dialog.c:1497:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t len = 6 + strlen(opts[j]->name) + strlen(opts[j]->help);
data/dialog-1.3-20190808/dialog.c:1497: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).
	    size_t len = 6 + strlen(opts[j]->name) + strlen(opts[j]->help);
data/dialog-1.3-20190808/editbox.c:295:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    int check = (int) strlen(value);
data/dialog-1.3-20190808/editbox.c:595: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).
			    size_t len = (strlen(THIS_ROW) +
data/dialog-1.3-20190808/editbox.c:596:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  strlen(PREV_ROW) + 1);
data/dialog-1.3-20190808/editbox.c:640:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buffer, input, max_len - 1)[max_len - 1] = '\0';
data/dialog-1.3-20190808/formbox.c:952: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).
	listitems[i].name_len = (int) strlen(ItemName(i));
data/dialog-1.3-20190808/formbox.c:956: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).
	listitems[i].text_len = (int) strlen(ItemText(i));
data/dialog-1.3-20190808/fselect.c:32:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/dialog-1.3-20190808/fselect.c:362:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t test_len = strlen(test);
data/dialog-1.3-20190808/fselect.c:404: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).
    test_len = strlen(test);
data/dialog-1.3-20190808/fselect.c:465: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).
	size_t have = strlen(input);
data/dialog-1.3-20190808/fselect.c:482: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).
	    leaf = path + strlen(path);
data/dialog-1.3-20190808/fselect.c:627: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).
    offset = (int) strlen(input);
data/dialog-1.3-20190808/fselect.c:848: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).
		    offset = (int) strlen(input);
data/dialog-1.3-20190808/guage.c:212:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if (strlen(obj->prompt_buf) + strlen(buf) <
data/dialog-1.3-20190808/guage.c:212: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 (strlen(obj->prompt_buf) + strlen(buf) <
data/dialog-1.3-20190808/inputbox.c:114: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).
	chr_offset = (int) strlen(init);
data/dialog-1.3-20190808/inputstr.c:207: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 s_len = strlen(string);
data/dialog-1.3-20190808/inputstr.c:246: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 s_len = strlen(string);
data/dialog-1.3-20190808/inputstr.c:316:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(string);
data/dialog-1.3-20190808/inputstr.c:332:38:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cache->i_len = ((int) code >= 0) ? wcslen(temp) : 0;
data/dialog-1.3-20190808/inputstr.c:343: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).
	result = (int) strlen(string);
data/dialog-1.3-20190808/inputstr.c:369: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).
		width = (int) mbrlen(current, strlen(current), &state);
data/dialog-1.3-20190808/inputstr.c:418: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).
	    size_t num_bytes = strlen(string);
data/dialog-1.3-20190808/inputstr.c:447:31:  [1] (buffer) wcslen:
  Does not handle 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 = printable ? (int) wcslen(printable) : 1;
data/dialog-1.3-20190808/inputstr.c:469: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).
					    ? (int) strlen(printable)
data/dialog-1.3-20190808/inputstr.c:493: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).
	result = (int) strlen(string);
data/dialog-1.3-20190808/inputstr.c:523: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 len = (int) strlen(string);
data/dialog-1.3-20190808/menubox.c:156: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).
    int max_len = dlg_max_input(MAX((int) strlen(items->text) + 1, MAX_LEN));
data/dialog-1.3-20190808/mixedform.c:68: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).
	listitems[i].name_len = (int) strlen(ItemName(i));
data/dialog-1.3-20190808/mixedform.c:72: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).
	listitems[i].text_len = (int) strlen(ItemText(i));
data/dialog-1.3-20190808/mixedgauge.c:92: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).
	size_t need = strlen(++given) + 4;
data/dialog-1.3-20190808/mixedgauge.c:142: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).
	(void) wmove(win, y, lm + (cells - (int) strlen(status)) / 2);
data/dialog-1.3-20190808/mixedgauge.c:149: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).
	    (void) wmove(win, y, lm + (cells - (int) strlen(status)) / 2);
data/dialog-1.3-20190808/mixedgauge.c:172: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).
	    (void) wmove(win, y, lm + (cells - (int) strlen(status)) / 2);
data/dialog-1.3-20190808/mixedgauge.c:289: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).
	    int thisWidth = (int) strlen(ItemName(n));
data/dialog-1.3-20190808/prgbox.c:70: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 ((blob = malloc(10 + strlen(command))) != 0) {
data/dialog-1.3-20190808/progressbox.c:152:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getc(fp);
data/dialog-1.3-20190808/progressbox.c:225: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).
    int limit = MIN((int) strlen(line), width - 2);
data/dialog-1.3-20190808/rangebox.c:56: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).
    return (int) strlen(temp);
data/dialog-1.3-20190808/rc.c:76: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).
#define lastch(str)      str[strlen(str)-1]
data/dialog-1.3-20190808/rc.c:185:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(str, "(");
data/dialog-1.3-20190808/rc.c:189:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(str, ",");
data/dialog-1.3-20190808/rc.c:227: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).
    have = strlen(str);
data/dialog-1.3-20190808/rc.c:283: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).
    i = (int) strlen(part) - 1;
data/dialog-1.3-20190808/rc.c:309: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).
    if ((j - i) == (int) strlen(keyword)) {
data/dialog-1.3-20190808/rc.c:381: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).
    i = (int) strlen(*value) - 1;
data/dialog-1.3-20190808/rc.c:509: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).
	    && strlen(tempptr) < MAX_LEN - (sizeof(DIALOGRC) + 3)) {
data/dialog-1.3-20190808/rc.c:559: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).
			|| strlen(value) < 2) {
data/dialog-1.3-20190808/samples/install/setup.c:94:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (size-- && ((c = getc(f)) != EOF) && (c != '\n'))
data/dialog-1.3-20190808/tailbox.c:52:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (((ch = getc(fp)) == EOF) && !feof(fp))
data/dialog-1.3-20190808/tailbox.c:91: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).
    (void) waddnstr(win, line, MIN((int) strlen(line), width - 2));
data/dialog-1.3-20190808/tailbox.c:275:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ch = getc(cb->input);
data/dialog-1.3-20190808/textbox.c:135:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((obj->fd_bytes_read = read(obj->fd, buftab, size_read)) != -1) {
data/dialog-1.3-20190808/textbox.c:240:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read(obj->fd, buftab, (size_t) val)) == -1)
data/dialog-1.3-20190808/trace.c:73: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).
	    left = (int) strlen(value);
data/dialog-1.3-20190808/trace.c:152: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).
		    } else if (unctrl(ch) == 0 || strlen(unctrl(ch)) > 1) {
data/dialog-1.3-20190808/treeview.c:215:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (states == 0 || strlen(states) < 2)
data/dialog-1.3-20190808/treeview.c:217:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    num_states = (int) strlen(states);
data/dialog-1.3-20190808/util.c:640: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).
	    size_t given = strlen(txt);
data/dialog-1.3-20190808/util.c:686: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).
	if ((int) strlen(text) > indx[1]) {
data/dialog-1.3-20190808/util.c:1130:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if ((len = (int) strlen(buffer)) < 4) {
data/dialog-1.3-20190808/util.c:1431:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (((ch = getc(fd)) != '\n') && !feof(fd)) {
data/dialog-1.3-20190808/util.c:2010: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).
	prompt = dlg_malloc(char, strlen(cprompt) + 1);
data/dialog-1.3-20190808/util.c:2532: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).
    unsigned need = string ? (unsigned) strlen(string) + 1 : 0;
data/dialog-1.3-20190808/util.c:2565: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).
		     ? (unsigned) strlen(dialog_vars.input_result)
data/dialog-1.3-20190808/util.c:2567: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).
    unsigned want = (unsigned) strlen(string) + 1 + have;
data/dialog-1.3-20190808/util.c:2620:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(string);

ANALYSIS SUMMARY:

Hits = 235
Lines analyzed = 23933 in approximately 0.60 seconds (40063 lines/second)
Physical Source Lines of Code (SLOC) = 18623
Hits@level = [0]  57 [1]  84 [2] 110 [3]   5 [4]  36 [5]   0
Hits@level+ = [0+] 292 [1+] 235 [2+] 151 [3+]  41 [4+]  36 [5+]   0
Hits/KSLOC@level+ = [0+] 15.6795 [1+] 12.6188 [2+] 8.10825 [3+] 2.20158 [4+] 1.93309 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.