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/nvi-1.81.6/catalog/dump.c
Examining data/nvi-1.81.6/cl/cl.h
Examining data/nvi-1.81.6/cl/cl_bsd.c
Examining data/nvi-1.81.6/cl/cl_read.c
Examining data/nvi-1.81.6/cl/cl_term.c
Examining data/nvi-1.81.6/cl/extern.h
Examining data/nvi-1.81.6/cl/cl_funcs.c
Examining data/nvi-1.81.6/cl/cl_screen.c
Examining data/nvi-1.81.6/cl/cl_main.c
Examining data/nvi-1.81.6/clib/bsearch.c
Examining data/nvi-1.81.6/clib/env.c
Examining data/nvi-1.81.6/clib/gethostname.c
Examining data/nvi-1.81.6/clib/iswblank.c
Examining data/nvi-1.81.6/clib/memchr.c
Examining data/nvi-1.81.6/clib/memset.c
Examining data/nvi-1.81.6/clib/mkstemp.c
Examining data/nvi-1.81.6/clib/mmap.c
Examining data/nvi-1.81.6/clib/snprintf.c
Examining data/nvi-1.81.6/clib/strdup.c
Examining data/nvi-1.81.6/clib/strpbrk.c
Examining data/nvi-1.81.6/clib/strsep.c
Examining data/nvi-1.81.6/clib/strtol.c
Examining data/nvi-1.81.6/clib/strtoul.c
Examining data/nvi-1.81.6/clib/vsnprintf.c
Examining data/nvi-1.81.6/common/api.c
Examining data/nvi-1.81.6/common/args.h
Examining data/nvi-1.81.6/common/common.h
Examining data/nvi-1.81.6/common/conv.h
Examining data/nvi-1.81.6/common/cut.c
Examining data/nvi-1.81.6/common/cut.h
Examining data/nvi-1.81.6/common/db.c
Examining data/nvi-1.81.6/common/db.h
Examining data/nvi-1.81.6/common/delete.c
Examining data/nvi-1.81.6/common/dldb.c
Examining data/nvi-1.81.6/common/exf.h
Examining data/nvi-1.81.6/common/gs.h
Examining data/nvi-1.81.6/common/key.c
Examining data/nvi-1.81.6/common/key.h
Examining data/nvi-1.81.6/common/log.c
Examining data/nvi-1.81.6/common/log.h
Examining data/nvi-1.81.6/common/log4.c
Examining data/nvi-1.81.6/common/main.c
Examining data/nvi-1.81.6/common/mark.c
Examining data/nvi-1.81.6/common/mark.h
Examining data/nvi-1.81.6/common/mem.h
Examining data/nvi-1.81.6/common/msg.h
Examining data/nvi-1.81.6/common/multibyte.h
Examining data/nvi-1.81.6/common/nothread.c
Examining data/nvi-1.81.6/common/options.h
Examining data/nvi-1.81.6/common/options_f.c
Examining data/nvi-1.81.6/common/pthread.c
Examining data/nvi-1.81.6/common/put.c
Examining data/nvi-1.81.6/common/recover.c
Examining data/nvi-1.81.6/common/screen.c
Examining data/nvi-1.81.6/common/screen.h
Examining data/nvi-1.81.6/common/search.c
Examining data/nvi-1.81.6/common/seq.c
Examining data/nvi-1.81.6/common/seq.h
Examining data/nvi-1.81.6/common/trace.c
Examining data/nvi-1.81.6/common/util.c
Examining data/nvi-1.81.6/common/util.h
Examining data/nvi-1.81.6/common/util2.c
Examining data/nvi-1.81.6/common/vi_auto.c
Examining data/nvi-1.81.6/common/vi_auto.h
Examining data/nvi-1.81.6/common/vi_rec.c
Examining data/nvi-1.81.6/common/options_def.h
Examining data/nvi-1.81.6/common/extern.h
Examining data/nvi-1.81.6/common/msg.c
Examining data/nvi-1.81.6/common/options.c
Examining data/nvi-1.81.6/common/db1.c
Examining data/nvi-1.81.6/common/gs.c
Examining data/nvi-1.81.6/common/conv.c
Examining data/nvi-1.81.6/common/exf.c
Examining data/nvi-1.81.6/dist/acconfig.h
Examining data/nvi-1.81.6/ex/ex.c
Examining data/nvi-1.81.6/ex/ex.h
Examining data/nvi-1.81.6/ex/ex_abbrev.c
Examining data/nvi-1.81.6/ex/ex_append.c
Examining data/nvi-1.81.6/ex/ex_args.c
Examining data/nvi-1.81.6/ex/ex_argv.c
Examining data/nvi-1.81.6/ex/ex_at.c
Examining data/nvi-1.81.6/ex/ex_bang.c
Examining data/nvi-1.81.6/ex/ex_cd.c
Examining data/nvi-1.81.6/ex/ex_cmd.c
Examining data/nvi-1.81.6/ex/ex_cscope.c
Examining data/nvi-1.81.6/ex/ex_delete.c
Examining data/nvi-1.81.6/ex/ex_display.c
Examining data/nvi-1.81.6/ex/ex_edit.c
Examining data/nvi-1.81.6/ex/ex_equal.c
Examining data/nvi-1.81.6/ex/ex_file.c
Examining data/nvi-1.81.6/ex/ex_filter.c
Examining data/nvi-1.81.6/ex/ex_global.c
Examining data/nvi-1.81.6/ex/ex_join.c
Examining data/nvi-1.81.6/ex/ex_map.c
Examining data/nvi-1.81.6/ex/ex_mark.c
Examining data/nvi-1.81.6/ex/ex_mkexrc.c
Examining data/nvi-1.81.6/ex/ex_move.c
Examining data/nvi-1.81.6/ex/ex_open.c
Examining data/nvi-1.81.6/ex/ex_perl.c
Examining data/nvi-1.81.6/ex/ex_preserve.c
Examining data/nvi-1.81.6/ex/ex_print.c
Examining data/nvi-1.81.6/ex/ex_put.c
Examining data/nvi-1.81.6/ex/ex_quit.c
Examining data/nvi-1.81.6/ex/ex_read.c
Examining data/nvi-1.81.6/ex/ex_screen.c
Examining data/nvi-1.81.6/ex/ex_set.c
Examining data/nvi-1.81.6/ex/ex_shell.c
Examining data/nvi-1.81.6/ex/ex_shift.c
Examining data/nvi-1.81.6/ex/ex_source.c
Examining data/nvi-1.81.6/ex/ex_stop.c
Examining data/nvi-1.81.6/ex/ex_subst.c
Examining data/nvi-1.81.6/ex/ex_tag.c
Examining data/nvi-1.81.6/ex/ex_tcl.c
Examining data/nvi-1.81.6/ex/ex_txt.c
Examining data/nvi-1.81.6/ex/ex_undo.c
Examining data/nvi-1.81.6/ex/ex_usage.c
Examining data/nvi-1.81.6/ex/ex_util.c
Examining data/nvi-1.81.6/ex/ex_version.c
Examining data/nvi-1.81.6/ex/ex_visual.c
Examining data/nvi-1.81.6/ex/ex_write.c
Examining data/nvi-1.81.6/ex/ex_yank.c
Examining data/nvi-1.81.6/ex/ex_z.c
Examining data/nvi-1.81.6/ex/script.h
Examining data/nvi-1.81.6/ex/tag.h
Examining data/nvi-1.81.6/ex/ex_def.h
Examining data/nvi-1.81.6/ex/extern.h
Examining data/nvi-1.81.6/ex/version.h
Examining data/nvi-1.81.6/ex/ex_script.c
Examining data/nvi-1.81.6/ex/ex_init.c
Examining data/nvi-1.81.6/gtk/gtk.h
Examining data/nvi-1.81.6/gtk/gtk_main.c
Examining data/nvi-1.81.6/gtk/gtkvi.c
Examining data/nvi-1.81.6/gtk/gtkvi.h
Examining data/nvi-1.81.6/gtk/gtkviscreen.c
Examining data/nvi-1.81.6/gtk/gtkviscreen.h
Examining data/nvi-1.81.6/gtk/gtkviwindow.c
Examining data/nvi-1.81.6/gtk/gtkviwindow.h
Examining data/nvi-1.81.6/gtk/extern.h
Examining data/nvi-1.81.6/include/bitstring.h
Examining data/nvi-1.81.6/include/sys/queue.h
Examining data/nvi-1.81.6/ip/ip_funcs.c
Examining data/nvi-1.81.6/ip/ip_main.c
Examining data/nvi-1.81.6/ip/ip_read.c
Examining data/nvi-1.81.6/ip/ip_screen.c
Examining data/nvi-1.81.6/ip/ip_term.c
Examining data/nvi-1.81.6/ip/extern.h
Examining data/nvi-1.81.6/ipc/ip.h
Examining data/nvi-1.81.6/ipc/ip_run.c
Examining data/nvi-1.81.6/ipc/ip_send.c
Examining data/nvi-1.81.6/ipc/ip_trans.c
Examining data/nvi-1.81.6/ipc/ipc_cmd.c
Examining data/nvi-1.81.6/ipc/ipc_method.c
Examining data/nvi-1.81.6/ipc/ipc_def.h
Examining data/nvi-1.81.6/ipc/ipc_gen.c
Examining data/nvi-1.81.6/ipc/extern.h
Examining data/nvi-1.81.6/motif/m_cde.c
Examining data/nvi-1.81.6/motif/m_main.c
Examining data/nvi-1.81.6/motif/extern.h
Examining data/nvi-1.81.6/motif_l/m_copypaste.c
Examining data/nvi-1.81.6/motif_l/m_func.c
Examining data/nvi-1.81.6/motif_l/m_menu.c
Examining data/nvi-1.81.6/motif_l/m_motif.h
Examining data/nvi-1.81.6/motif_l/m_options.c
Examining data/nvi-1.81.6/motif_l/m_prompt.c
Examining data/nvi-1.81.6/motif_l/m_ruler.c
Examining data/nvi-1.81.6/motif_l/m_search.c
Examining data/nvi-1.81.6/motif_l/m_tags.c
Examining data/nvi-1.81.6/motif_l/m_util.c
Examining data/nvi-1.81.6/motif_l/m_vi.c
Examining data/nvi-1.81.6/motif_l/vi_mextern.h
Examining data/nvi-1.81.6/motif_l/xtabbed.c
Examining data/nvi-1.81.6/motif_l/extern.h
Examining data/nvi-1.81.6/perl_api/perlsfio.c
Examining data/nvi-1.81.6/perl_api/extern.h
Examining data/nvi-1.81.6/regex/cclass.h
Examining data/nvi-1.81.6/regex/cname.h
Examining data/nvi-1.81.6/regex/engine.c
Examining data/nvi-1.81.6/regex/regerror.c
Examining data/nvi-1.81.6/regex/regex.h
Examining data/nvi-1.81.6/regex/regex2.h
Examining data/nvi-1.81.6/regex/regfree.c
Examining data/nvi-1.81.6/regex/utils.h
Examining data/nvi-1.81.6/regex/regexec.c
Examining data/nvi-1.81.6/regex/regcomp.c
Examining data/nvi-1.81.6/tcl_api/tcl.c
Examining data/nvi-1.81.6/tcl_api/extern.h
Examining data/nvi-1.81.6/vi/getc.c
Examining data/nvi-1.81.6/vi/v_at.c
Examining data/nvi-1.81.6/vi/v_cmd.c
Examining data/nvi-1.81.6/vi/v_delete.c
Examining data/nvi-1.81.6/vi/v_event.c
Examining data/nvi-1.81.6/vi/v_ex.c
Examining data/nvi-1.81.6/vi/v_init.c
Examining data/nvi-1.81.6/vi/v_itxt.c
Examining data/nvi-1.81.6/vi/v_left.c
Examining data/nvi-1.81.6/vi/v_mark.c
Examining data/nvi-1.81.6/vi/v_match.c
Examining data/nvi-1.81.6/vi/v_paragraph.c
Examining data/nvi-1.81.6/vi/v_put.c
Examining data/nvi-1.81.6/vi/v_redraw.c
Examining data/nvi-1.81.6/vi/v_replace.c
Examining data/nvi-1.81.6/vi/v_right.c
Examining data/nvi-1.81.6/vi/v_screen.c
Examining data/nvi-1.81.6/vi/v_scroll.c
Examining data/nvi-1.81.6/vi/v_section.c
Examining data/nvi-1.81.6/vi/v_status.c
Examining data/nvi-1.81.6/vi/v_txt.c
Examining data/nvi-1.81.6/vi/v_ulcase.c
Examining data/nvi-1.81.6/vi/v_undo.c
Examining data/nvi-1.81.6/vi/v_util.c
Examining data/nvi-1.81.6/vi/v_word.c
Examining data/nvi-1.81.6/vi/v_xchar.c
Examining data/nvi-1.81.6/vi/v_yank.c
Examining data/nvi-1.81.6/vi/v_z.c
Examining data/nvi-1.81.6/vi/v_zexit.c
Examining data/nvi-1.81.6/vi/vi.h
Examining data/nvi-1.81.6/vi/vs_line.c
Examining data/nvi-1.81.6/vi/vs_smap.c
Examining data/nvi-1.81.6/vi/vs_split.c
Examining data/nvi-1.81.6/vi/extern.h
Examining data/nvi-1.81.6/vi/v_ch.c
Examining data/nvi-1.81.6/vi/vi.c
Examining data/nvi-1.81.6/vi/v_sentence.c
Examining data/nvi-1.81.6/vi/vs_refresh.c
Examining data/nvi-1.81.6/vi/vs_msg.c
Examining data/nvi-1.81.6/vi/v_increment.c
Examining data/nvi-1.81.6/vi/v_search.c
Examining data/nvi-1.81.6/vi/vs_relative.c
Examining data/nvi-1.81.6/build/confdefs.h

FINAL RESULTS:

data/nvi-1.81.6/cl/cl_term.c:326:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(tty, sb.st_mode | S_IWGRP) < 0) {
data/nvi-1.81.6/cl/cl_term.c:333:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) {
data/nvi-1.81.6/common/recover.c:150:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		(void)chmod(dp, S_IRWXU | S_IRWXG | S_IRWXO | S_ISVTX);
data/nvi-1.81.6/common/recover.c:225:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	(void)chmod(ep->rcv_path, S_IRUSR | S_IWUSR);
data/nvi-1.81.6/common/recover.c:822:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		(void)chmod(path, perms);
data/nvi-1.81.6/ex/ex_script.c:804:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				(void) chown(line, getuid(), ttygid);
data/nvi-1.81.6/ex/ex_script.c:805:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				(void) chmod(line, S_IRUSR|S_IWUSR|S_IWGRP);
data/nvi-1.81.6/cl/cl_bsd.c:319:57:  [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).
	return ((p = tgetstr(name, &p)) == NULL ? (char *)-1 : strcpy(sbuf, p));
data/nvi-1.81.6/cl/cl_funcs.c:666:14:  [4] (shell) popen:
  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.
		    (pfp = popen(COMMAND, "r")) != NULL) {
data/nvi-1.81.6/cl/cl_funcs.c:699:8:  [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.
	(void)printf(XTERM_RENAME, name == NULL ? OG_STR(gp, GO_TERM) : name);
data/nvi-1.81.6/clib/mkstemp.c:62:1:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
mktemp(char *path)
data/nvi-1.81.6/clib/snprintf.c:20:1:  [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(char *str, size_t n, const char *fmt, ...)
data/nvi-1.81.6/clib/snprintf.c:22:1:  [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(str, n, fmt, va_alist)
data/nvi-1.81.6/clib/snprintf.c:37:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void)vsprintf(str, fmt, ap);
data/nvi-1.81.6/clib/snprintf.c:41:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	rval = vsprintf(str, fmt, ap);
data/nvi-1.81.6/clib/vsnprintf.c:19:1:  [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.
vsnprintf(str, n, fmt, ap)
data/nvi-1.81.6/clib/vsnprintf.c:26:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void)vsprintf(str, fmt, ap);
data/nvi-1.81.6/clib/vsnprintf.c:29:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return (vsprintf(str, fmt, ap));
data/nvi-1.81.6/common/api.c:427:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void)sprintf(*value,
data/nvi-1.81.6/common/api.c:443:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void)sprintf(*value, "%s", O_STR(sp, offset));
data/nvi-1.81.6/common/exf.c:475:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(frp->name, W_OK))))
data/nvi-1.81.6/common/exf.c:1051:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		len = snprintf(buf, sizeof(buf), msgstr, p, nlno, nch);
data/nvi-1.81.6/common/exf.c:1057:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		len = snprintf(buf, sizeof(buf), msgstr, p, nlno, nch);
data/nvi-1.81.6/common/exf.c:1213:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			if (sscanf(dp->d_name, p, &num) == 1 && num > maxnum)
data/nvi-1.81.6/common/main.c:342:10:  [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).
			(void)strcpy(*argv, sp->frp->name);
data/nvi-1.81.6/common/main.c:458: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).
				(void)strcpy(argv[0] + 2, p + 1);
data/nvi-1.81.6/common/msg.c:284:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(mp, REM, fmt, ap);
data/nvi-1.81.6/common/msg.c:568:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			(void)sprintf(p,
data/nvi-1.81.6/common/msg.c:643:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			(void)sprintf(p, t, lno, last, (lno * 100) / last);
data/nvi-1.81.6/common/msg.c:648:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void)sprintf(p, t, lno);
data/nvi-1.81.6/common/msg.c:727:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(p, F_OK) != 0) {
data/nvi-1.81.6/common/multibyte.h:18:18:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define SPRINTF		swprintf
data/nvi-1.81.6/common/multibyte.h:37:18:  [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.
#define SPRINTF		snprintf
data/nvi-1.81.6/common/options.c:1003: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(fp, WC, ch);
data/nvi-1.81.6/common/recover.c:849:9:  [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.
		(void)system(buf);
data/nvi-1.81.6/common/trace.c:86:8:  [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(tfp, fmt, ap);
data/nvi-1.81.6/ex/ex_argv.c:687:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(sh_path, sh, "-c", np, (char *)NULL);
data/nvi-1.81.6/ex/ex_cscope.c:405:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		(void)snprintf(cmd, sizeof(cmd),
data/nvi-1.81.6/ex/ex_cscope.c:407:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		(void)execl(_PATH_BSHELL, "sh", "-c", cmd, (char *)NULL);
data/nvi-1.81.6/ex/ex_cscope.c:673:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		if (sscanf(buf, CSCOPE_NLINES_FMT, &nlines, dummy) == 2)
data/nvi-1.81.6/ex/ex_filter.c:142:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(O_STR(sp, O_SHELL), name, "-c", np, (char *)NULL);
data/nvi-1.81.6/ex/ex_print.c:287:22:  [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.
	exp->obp_len += n = vsnprintf(exp->obp + exp->obp_len,
data/nvi-1.81.6/ex/ex_script.c:183:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(sh_path, sh, "-i", NULL);
data/nvi-1.81.6/ex/ex_script.c:712: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(pts_name, _PATH_SYSV_PTY);
data/nvi-1.81.6/ex/ex_script.c:736: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(pts_name, ptr);
data/nvi-1.81.6/ex/ex_script.c:813: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(name, line);
data/nvi-1.81.6/ex/ex_shell.c:124:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(O_STR(sp, O_SHELL), name, "-c", cmd, (char *)NULL);
data/nvi-1.81.6/ipc/ip_run.c:146:4:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execv("vi-ipc", argv);
data/nvi-1.81.6/ipc/ip_run.c:147:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(execp, argv);
data/nvi-1.81.6/ipc/ip_run.c:150:9:  [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.
		(void)fprintf(stderr,
data/nvi-1.81.6/ipc/ip_run.c:225:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(iarg, "-I%d%s%d", i_fd, ".", o_fd);
data/nvi-1.81.6/motif/m_cde.c:31:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define	_TRACE( x )	printf x
data/nvi-1.81.6/motif/m_main.c:148: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( copy[i], name );
data/nvi-1.81.6/motif/m_main.c:149:2:  [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( copy[i], fallback_rsrcs[i] );
data/nvi-1.81.6/motif_l/m_menu.c:91: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( buffer, str );
data/nvi-1.81.6/motif_l/m_options.c:598:2:  [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, sheets[i].name );
data/nvi-1.81.6/motif_l/m_search.c:96: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, name );
data/nvi-1.81.6/motif_l/m_vi.c:993:48:  [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.
	__vi_InitCopyPaste( f_copy, f_paste, f_clear, fprintf );
data/nvi-1.81.6/motif_l/xtabbed.c:1507:36:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT1(a) if (debug) printf (a)
data/nvi-1.81.6/motif_l/xtabbed.c:1508:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT2(a, b) if (debug) printf (a, b)
data/nvi-1.81.6/motif_l/xtabbed.c:1509:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT3(a, b, c) if (debug) printf (a, b, c)
data/nvi-1.81.6/motif_l/xtabbed.c:1510:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT4(a, b, c, d) if (debug) printf (a, b, c, d)
data/nvi-1.81.6/motif_l/xtabbed.c:1511:48:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT5(a, b, c, d, e) if (debug) printf (a, b, c, d, e)
data/nvi-1.81.6/motif_l/xtabbed.c:1612: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(s, str);
data/nvi-1.81.6/regex/regcomp.c:1255:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(cs->multis + oldend - 1, cp);
data/nvi-1.81.6/regex/regerror.c:133:12:  [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).
				(void) strcpy(convbuf, r->name);
data/nvi-1.81.6/regex/regerror.c:145: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).
			(void) strcpy(errbuf, s);
data/nvi-1.81.6/tcl_api/tcl.c:695: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(setting+5, argv[2]);
data/nvi-1.81.6/vi/v_increment.c:205:10:  [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.
		nlen = snprintf(nbuf, sizeof(nbuf)/sizeof(CHAR_T), ntype, lval);
data/nvi-1.81.6/vi/v_increment.c:227:10:  [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.
		nlen = snprintf(nbuf, sizeof(nbuf)/sizeof(CHAR_T), ntype, wlen, ulval);
data/nvi-1.81.6/vi/vs_line.c:141:12:  [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.
				nlen = snprintf((char*)cbuf,
data/nvi-1.81.6/vi/vs_line.c:535:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		len = snprintf(nbuf, sizeof(nbuf), O_NUMBER_FMT, smp->lno);
data/nvi-1.81.6/cl/cl_main.c:96:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((ttype = getenv("TERM")) == NULL)
data/nvi-1.81.6/cl/cl_main.c:99:10:  [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.
	ttype = getenv("TERM");
data/nvi-1.81.6/cl/cl_screen.c:226:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	o_term = getenv("TERM");
data/nvi-1.81.6/cl/cl_screen.c:228:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	o_lines = getenv("LINES");
data/nvi-1.81.6/cl/cl_screen.c:230:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	o_cols = getenv("COLUMNS");
data/nvi-1.81.6/cl/cl_term.c:423:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((p = getenv("TERM")) == NULL)
data/nvi-1.81.6/cl/cl_term.c:450:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p = getenv("LINES")) != NULL)
data/nvi-1.81.6/cl/cl_term.c:452:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p = getenv("COLUMNS")) != NULL)
data/nvi-1.81.6/common/main.c:106:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "c:D:eFlRrSsT:t:vw:")) != EOF)
data/nvi-1.81.6/common/main.c:108:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "c:eFlRrSst:vw:")) != EOF)
data/nvi-1.81.6/common/msg.c:721:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    (((t = getenv("LC_MESSAGES")) != NULL && t[0] != '\0') ||
data/nvi-1.81.6/common/msg.c:722:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    ((t = getenv("LANG")) != NULL && t[0] != '\0'))) {
data/nvi-1.81.6/common/options.c:346:27:  [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.
	    L("cdpath=%s"), (s = getenv("CDPATH")) == NULL ? ":" : s);
data/nvi-1.81.6/common/options.c:357:30:  [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.
	    L("directory=%s"), (s = getenv("TMPDIR")) == NULL ? _PATH_TMP : s);
data/nvi-1.81.6/common/options.c:372:26:  [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.
	    L("shell=%s"), (s = getenv("SHELL")) == NULL ? _PATH_BSHELL : s);
data/nvi-1.81.6/ex/ex_cd.c:62: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.
		if ((dir = getenv("HOME")) == NULL) {
data/nvi-1.81.6/ex/ex_cscope.c:177: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 ((cscopes = getenv("CSCOPE_DIRS")) == NULL)
data/nvi-1.81.6/ex/ex_init.c:188:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p = getenv("NEXINIT")) != NULL) {
data/nvi-1.81.6/ex/ex_init.c:192: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.
	} else if ((p = getenv("EXINIT")) != NULL) {
data/nvi-1.81.6/ex/ex_init.c:196: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.
	} else if ((p = getenv("HOME")) != NULL && *p) {
data/nvi-1.81.6/catalog/dump.c:80: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).
		if ((fp = fopen(*argv, "r")) == NULL) {
data/nvi-1.81.6/cl/cl.h:30: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	 ibuf[256];	/* Input keys. */
data/nvi-1.81.6/cl/cl_bsd.c:173:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[2048];
data/nvi-1.81.6/cl/cl_bsd.c:292:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sbuf[256];
data/nvi-1.81.6/cl/cl_bsd.c:295: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 *p, keyname[3];
data/nvi-1.81.6/cl/cl_bsd.c:301:30:  [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).
		    name[1] == 'f' && (n = atoi(name + 2)) <= 36) {
data/nvi-1.81.6/cl/cl_bsd.c:307:30:  [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).
		    name[1] == 'f' && (n = atoi(name + 2)) <= 63) {
data/nvi-1.81.6/cl/cl_funcs.c:637: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[256], *p;
data/nvi-1.81.6/cl/cl_main.c:200: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).
	} else if ((fd = open(_PATH_TTY, O_RDONLY, 0)) != -1) {
data/nvi-1.81.6/cl/cl_screen.c:571:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40];
data/nvi-1.81.6/cl/cl_term.c:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[64];
data/nvi-1.81.6/clib/mkstemp.c:54:1:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
mkstemp(char *path)
data/nvi-1.81.6/clib/mkstemp.c:105:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			    open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
data/nvi-1.81.6/clib/strdup.c:60: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(copy, str, len);
data/nvi-1.81.6/common/api.c:434: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(*value, "%lu", (u_long)O_VAL(sp, offset));
data/nvi-1.81.6/common/api.c:532: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(tqp->tag, tag, (tqp->tlen = len) + 1);
data/nvi-1.81.6/common/api.c:557: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(tp->fname, filename, flen + 1);
data/nvi-1.81.6/common/conv.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buffer[CONV_BUFFER_SIZE];
data/nvi-1.81.6/common/conv.c:221: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[CONV_BUFFER_SIZE];
data/nvi-1.81.6/common/db.h:9: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).
    (env)->open(env, path, flags, mode)
data/nvi-1.81.6/common/db.h:14: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).
    (env)->open(env, path, NULL, flags, mode)
data/nvi-1.81.6/common/db.h:21:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    (db)->open(db, NULL, file, NULL, type, flags, mode)
data/nvi-1.81.6/common/db.h:24:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    (db)->open(db, file, NULL, type, flags, mode)
data/nvi-1.81.6/common/db1.c:188:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ep->c_lp, data.data, nlen);
data/nvi-1.81.6/common/exf.c:132: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 *oname, tname[MAXPATHLEN];
data/nvi-1.81.6/common/exf.c:217:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		if ((fd = mkstemp(tname)) == -1) {
data/nvi-1.81.6/common/exf.c:411:17:  [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 ((ep->fd = open(oname, O_RDONLY)) == -1)
data/nvi-1.81.6/common/exf.c:541:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *name, *p, *t, path[MAXPATHLEN];
data/nvi-1.81.6/common/exf.c:586: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(p, path, len + 1);
data/nvi-1.81.6/common/exf.c:854: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 *p, *s, *t, buf[MAXPATHLEN + 64];
data/nvi-1.81.6/common/exf.c:940:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(name, oflags,
data/nvi-1.81.6/common/exf.c:1110: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 *bp, *estr, *p, *pct, *slash, *t, *wfname, buf[8192];
data/nvi-1.81.6/common/exf.c:1126:13:  [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 ((rfd = open(name, O_RDONLY, 0)) < 0) {
data/nvi-1.81.6/common/exf.c:1245:13:  [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 ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) {
data/nvi-1.81.6/common/exf.c:1575:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(name, O_RDWR, 0)) == -1)
data/nvi-1.81.6/common/exf.c:1618: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 path[MAXPATHLEN];
data/nvi-1.81.6/common/exf.c:1623:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(path)) == -1) {
data/nvi-1.81.6/common/key.h:97: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(to, from, (n) * sizeof(CHAR_T))
data/nvi-1.81.6/common/log.c:83: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    data[sizeof(u_char) /* type */ + sizeof(db_recno_t)];
data/nvi-1.81.6/common/main.c:65: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 *tag_f, *wsizearg, path[256];
data/nvi-1.81.6/common/main.c:449:11:  [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.
				(void)strcpy(argv[0], "-c$");
data/nvi-1.81.6/common/main.c:467:11:  [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.
				(void)strcpy(argv[0], "-s");
data/nvi-1.81.6/common/main.c:484:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_TTY, O_RDONLY, 0)) < 0) {
data/nvi-1.81.6/common/msg.c:152: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(mp, p, len);
data/nvi-1.81.6/common/msg.c:223: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).
		str[soff].arg = atoi(u);
data/nvi-1.81.6/common/msg.c:507:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, t, len);
data/nvi-1.81.6/common/msg.c:513:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, t, len);
data/nvi-1.81.6/common/msg.c:557: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(p, KEY_NAME(sp, *t), len);
data/nvi-1.81.6/common/msg.c:588: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(p, t, len);
data/nvi-1.81.6/common/msg.c:594:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, t, len);
data/nvi-1.81.6/common/msg.c:606: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(p, t, len);
data/nvi-1.81.6/common/msg.c:616: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(p, t, len);
data/nvi-1.81.6/common/msg.c:626: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(p, t, len);
data/nvi-1.81.6/common/msg.c:639:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, t, len);
data/nvi-1.81.6/common/msg.c:652:8:  [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(p, " (pid %lu)", (u_long)getpid());
data/nvi-1.81.6/common/msg.c:718: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 *p, *t, buf[MAXPATHLEN];
data/nvi-1.81.6/common/msg.c:850:11:  [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).
		msgno = atoi(str);
data/nvi-1.81.6/common/multibyte.h:50:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEMCPY(p, t, len)	memcpy(p, t, (len) * sizeof(*(p)))
data/nvi-1.81.6/common/options.c:816: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 nbuf[20];
data/nvi-1.81.6/common/options.c:1104: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(sp->opts, orig->opts, sizeof(orig->opts));
data/nvi-1.81.6/common/recover.c:129: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 *dp, path[MAXPATHLEN];
data/nvi-1.81.6/common/recover.c:251: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 *dp, buf[1024];
data/nvi-1.81.6/common/recover.c:329: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 *dp, *p, *t, buf[4096], mpath[MAXPATHLEN];
data/nvi-1.81.6/common/recover.c:340: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 host[MAXHOSTNAMELEN];
data/nvi-1.81.6/common/recover.c:485: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 *p, *t, file[MAXPATHLEN], path[MAXPATHLEN];
data/nvi-1.81.6/common/recover.c:509: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).
		if ((fp = fopen(dp->d_name, "r+")) == NULL)
data/nvi-1.81.6/common/recover.c:589: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 file[MAXPATHLEN], path[MAXPATHLEN], recpath[MAXPATHLEN];
data/nvi-1.81.6/common/recover.c:621:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(recpath, O_RDWR, 0)) == -1)
data/nvi-1.81.6/common/recover.c:767: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[8 * 1024];
data/nvi-1.81.6/common/recover.c:769:13:  [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 ((rfd = open(fname, O_RDONLY, 0)) == -1)
data/nvi-1.81.6/common/recover.c:819:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(path)) == -1)
data/nvi-1.81.6/common/recover.c:834: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[MAXPATHLEN * 2 + 20];
data/nvi-1.81.6/common/screen.c:103:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(sp->newl, orig->newl, len);
data/nvi-1.81.6/common/trace.c:56:29:  [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 (name == NULL || (tfp = fopen(name, "w")) == NULL)
data/nvi-1.81.6/common/util.c:132: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(copy, str, len);
data/nvi-1.81.6/common/vi_auto.c:59: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(bp, &rectype, sizeof(rectype));
data/nvi-1.81.6/common/vi_auto.c:62: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(bp, &txn_num, sizeof(txn_num));
data/nvi-1.81.6/common/vi_auto.c:65: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(bp, lsnp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:69: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:179: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(&argp->prev_lsn, bp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:232: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(bp, &rectype, sizeof(rectype));
data/nvi-1.81.6/common/vi_auto.c:235: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(bp, &txn_num, sizeof(txn_num));
data/nvi-1.81.6/common/vi_auto.c:238: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(bp, lsnp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:242: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:246: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:250: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:362: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(&argp->prev_lsn, bp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:418: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(bp, &rectype, sizeof(rectype));
data/nvi-1.81.6/common/vi_auto.c:421: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(bp, &txn_num, sizeof(txn_num));
data/nvi-1.81.6/common/vi_auto.c:424: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(bp, lsnp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:428: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(bp, lmp, sizeof(*lmp));
data/nvi-1.81.6/common/vi_auto.c:539: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(&argp->prev_lsn, bp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:589: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(bp, &rectype, sizeof(rectype));
data/nvi-1.81.6/common/vi_auto.c:592: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(bp, &txn_num, sizeof(txn_num));
data/nvi-1.81.6/common/vi_auto.c:595: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(bp, lsnp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_auto.c:599: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:603: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(bp, &uinttmp, sizeof(uinttmp));
data/nvi-1.81.6/common/vi_auto.c:714: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(&argp->prev_lsn, bp, sizeof(DB_LSN));
data/nvi-1.81.6/common/vi_rec.c:200: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	s[100];
data/nvi-1.81.6/ex/ex.h:185: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	 obp[1024];		/* Ex output buffer. */
data/nvi-1.81.6/ex/ex_argv.c:663:16:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	switch (pid = vfork()) {
data/nvi-1.81.6/ex/ex_cd.c:43: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[MAXPATHLEN * 2];
data/nvi-1.81.6/ex/ex_cscope.c:181: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(bp, cscopes, len + 1);
data/nvi-1.81.6/ex/ex_cscope.c:205: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 *dbname, path[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_cscope.c:264: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(csc->dname, np, len);
data/nvi-1.81.6/ex/ex_cscope.c:300: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 *p, **pathp, buf[MAXPATHLEN * 2];
data/nvi-1.81.6/ex/ex_cscope.c:319:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(buf, O_RDONLY, 0)) < 0 ||
data/nvi-1.81.6/ex/ex_cscope.c:371: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 cmd[MAXPATHLEN * 2];
data/nvi-1.81.6/ex/ex_cscope.c:382:21:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	switch (csc->pid = vfork()) {
data/nvi-1.81.6/ex/ex_cscope.c:642: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(tqp->tag + 2, p, tlen);
data/nvi-1.81.6/ex/ex_cscope.c:660: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 *dname, *name, *search, *p, *t, dummy[2], buf[2048];
data/nvi-1.81.6/ex/ex_cscope.c:709:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				slno = (db_recno_t)atol(t);
data/nvi-1.81.6/ex/ex_cscope.c:740:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tp->fname, dname, dlen);
data/nvi-1.81.6/ex/ex_cscope.c:744: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(tp->fname + dlen, name, nlen + 1);
data/nvi-1.81.6/ex/ex_cscope.c:773: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 **pp, buf[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_cscope.c:846:30:  [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).
	return (terminate(sp, NULL, atoi(np)));
data/nvi-1.81.6/ex/ex_filter.c:98:24:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	switch (utility_pid = vfork()) {
data/nvi-1.81.6/ex/ex_init.c:144: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 *p, path[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_init.c:350: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 *a, *b, buf[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_mkexrc.c:68:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY,
data/nvi-1.81.6/ex/ex_read.c:257: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(name, "r")) == NULL || fstat(fileno(fp), &sb)) {
data/nvi-1.81.6/ex/ex_script.c:379: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.
loop:	memcpy(&rdfd, fdset, sizeof(fd_set));
data/nvi-1.81.6/ex/ex_script.c:713:13:  [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 ((fdm = open(pts_name, O_RDWR)) < 0 )
data/nvi-1.81.6/ex/ex_script.c:749:13:  [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 ((fds = open(pts_name, O_RDWR)) < 0) {
data/nvi-1.81.6/ex/ex_script.c:799:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((master = open(line, O_RDWR, 0)) == -1) {
data/nvi-1.81.6/ex/ex_script.c:809:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((slave = open(line, O_RDWR, 0)) != -1) {
data/nvi-1.81.6/ex/ex_shell.c:44: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[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_shell.c:113:16:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	switch (pid = vfork()) {
data/nvi-1.81.6/ex/ex_shell.c:358:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[40];
data/nvi-1.81.6/ex/ex_source.c:49:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(name, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
data/nvi-1.81.6/ex/ex_tag.c:631: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(tqp, otqp, len);
data/nvi-1.81.6/ex/ex_tag.c:660: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(tp, otp, len);
data/nvi-1.81.6/ex/ex_tag.c:880: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(tfp->name, t, len);
data/nvi-1.81.6/ex/ex_tag.c:937:11:  [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).
		m.lno = atoi(np);
data/nvi-1.81.6/ex/ex_tag.c:1005: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(tqp->tag, np, (tqp->tlen = len) + 1);
data/nvi-1.81.6/ex/ex_tag.c:1058:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(tfp->name, O_RDONLY, 0)) < 0) {
data/nvi-1.81.6/ex/ex_tag.c:1165:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tp->fname, dname, dlen);
data/nvi-1.81.6/ex/ex_tag.c:1169: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(tp->fname + dlen, name, nlen + 1);
data/nvi-1.81.6/ex/ex_tag.c:1194: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 *p, buf[MAXPATHLEN];
data/nvi-1.81.6/ex/ex_tcl.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/nvi-1.81.6/ex/ex_visual.c:42: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[256];
data/nvi-1.81.6/ex/script.h:18: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	 sh_name[64];		/* Pty name */
data/nvi-1.81.6/ex/tag.h:35: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[1];	/* Variable length buffer. */
data/nvi-1.81.6/ex/tag.h:108: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[1];	/* Variable length buffer. */
data/nvi-1.81.6/gtk/gtkviscreen.c:739:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[3];
data/nvi-1.81.6/ip/ip_read.c:316:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&val, ipp->ibuf + skip, IPO_INT_LEN);
data/nvi-1.81.6/ip/ip_read.c:328:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&val, ipp->ibuf + skip, IPO_INT_LEN);
data/nvi-1.81.6/ipc/ip.h:37: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	 ibuf[256];	/* Input buffer. */
data/nvi-1.81.6/ipc/ip_run.c:216: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(largv + 2, *argvp, *argcp * sizeof(char *) + 1);
data/nvi-1.81.6/ipc/ip_run.c:252:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_TTY, O_RDONLY, 0)) < 0) {
data/nvi-1.81.6/ipc/ip_send.c:82: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(p, &ilen, IPO_INT_LEN);
data/nvi-1.81.6/ipc/ip_send.c:97: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(p, &ilen, IPO_INT_LEN);
data/nvi-1.81.6/ipc/ip_send.c:100:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(p, ipbp->str1, ipbp->len1);
data/nvi-1.81.6/ipc/ip_send.c:103:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(p, ipbp->str2, ipbp->len2);
data/nvi-1.81.6/ipc/ip_trans.c:36: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 ibuf[2048];				/* Input buffer. */
data/nvi-1.81.6/ipc/ip_trans.c:147: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(vp, p, IPO_INT_LEN);
data/nvi-1.81.6/ipc/ip_trans.c:161: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(vp, p, IPO_INT_LEN);
data/nvi-1.81.6/motif_l/m_copypaste.c:152: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( (char *) *value, buffer, *length );
data/nvi-1.81.6/motif_l/m_func.c:40: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(CharAt(__vi_screen, __vi_screen->cury, __vi_screen->curx),
data/nvi-1.81.6/motif_l/m_menu.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buffer[BufferSize];
data/nvi-1.81.6/motif_l/m_options.c:278:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(opt->value, str2, len2);
data/nvi-1.81.6/motif_l/m_options.c:333: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).
		ipb.val1 = atoi(str);
data/nvi-1.81.6/motif_l/m_options.c:443:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	XmTextFieldSetString( w, (char *) options[i].value );
data/nvi-1.81.6/motif_l/m_options.c:567: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[1024];
data/nvi-1.81.6/motif_l/m_ruler.c:63: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		text[256];
data/nvi-1.81.6/motif_l/m_ruler.c:82: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( text, "%9.d,%-9.d", row+1, col+1 );
data/nvi-1.81.6/motif_l/m_search.c:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/nvi-1.81.6/motif_l/m_vi.c:691: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	bp[BufferSize];
data/nvi-1.81.6/motif_l/m_vi.c:1047: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( clipboard,
data/nvi-1.81.6/motif_l/xtabbed.c:2976: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).
    *((Cardinal *) to->addr) = atoi( from->addr );
data/nvi-1.81.6/regex/engine.c:1072:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pbuf[10];
data/nvi-1.81.6/regex/engine.c:1075: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(pbuf, "%c", ch);
data/nvi-1.81.6/regex/engine.c:1077: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(pbuf, "\\%o", ch);
data/nvi-1.81.6/regex/regcomp.c:1422:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void) memcpy((char *)(p->strip + p->slen),
data/nvi-1.81.6/regex/regerror.c:122: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 convbuf[50];
data/nvi-1.81.6/regex/regerror.c:135: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(convbuf, "REG_0x%x", target);
data/nvi-1.81.6/regex/regerror.c:173: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(localbuf, "%d", r->code);
data/nvi-1.81.6/regex/regexec.c:118:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	ASSIGN(d, s)	memcpy(d, s, m->g->nstates)
data/nvi-1.81.6/regex/utils.h:56:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	memmove(d, s, c)	bcopy(s, d, c)
data/nvi-1.81.6/tcl_api/tcl.c:76:8:  [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(interp->result, "%d", sp->id);
data/nvi-1.81.6/tcl_api/tcl.c:257:8:  [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(interp->result, "%lu", (unsigned long)last);
data/nvi-1.81.6/tcl_api/tcl.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/nvi-1.81.6/tcl_api/tcl.c:397:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/nvi-1.81.6/tcl_api/tcl.c:523:8:  [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(interp->result, "%d", nsp->id);
data/nvi-1.81.6/tcl_api/tcl.c:613: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 command[256];
data/nvi-1.81.6/tcl_api/tcl.c:693:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	MALLOC(sp, setting, char *, strlen(argv[2])+6);
data/nvi-1.81.6/tcl_api/tcl.c:694:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(setting, ":set ");
data/nvi-1.81.6/tcl_api/tcl.c:797: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[64];
data/nvi-1.81.6/tcl_api/tcl.c:823: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[64];
data/nvi-1.81.6/vi/v_at.c:42: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 nbuf[20];
data/nvi-1.81.6/vi/v_increment.c:60: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 *ntype, nbuf[100 * sizeof(CHAR_T)];
data/nvi-1.81.6/vi/v_search.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/nvi-1.81.6/vi/vs_line.c:497: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 nbuf[10];
data/nvi-1.81.6/vi/vs_msg.c:399: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 *cbp, *ecbp, cbuf[128];
data/nvi-1.81.6/vi/vs_refresh.c:756: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 *p, buf[20];
data/nvi-1.81.6/vi/vs_split.c:110: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(_HMAP(sp), _HMAP(sp) + new->rows,
data/nvi-1.81.6/catalog/dump.c:28:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((s = getc(fp)) == EOF)					\
data/nvi-1.81.6/catalog/dump.c:34:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ch = getc(fp)) == EOF)					\
data/nvi-1.81.6/catalog/dump.c:41:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((ch = getc(fp)) == EOF)				\
data/nvi-1.81.6/catalog/dump.c:57:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((ch = getc(fp)) == EOF)
data/nvi-1.81.6/catalog/dump.c:63:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if ((ch = getc(fp)) == EOF)
data/nvi-1.81.6/cl/cl_read.c:107:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/nvi-1.81.6/cl/cl_read.c:121:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			goto read;
data/nvi-1.81.6/cl/cl_read.c:171:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		switch (nr = read(STDIN_FILENO, bp, blen)) {
data/nvi-1.81.6/cl/cl_read.c:257:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (nr = read(STDIN_FILENO, bp, blen - ONE_FOR_EOF)) {
data/nvi-1.81.6/cl/cl_screen.c:528: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).
	    t != (char *)-1 && (len = strlen(t)) != 0) {
data/nvi-1.81.6/cl/cl_term.c:100: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).
		CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:102: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).
		CHAR2INT(sp, t, strlen(t), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:104:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:106: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 (seq_set(sp, name, strlen(tkp->name), ts, strlen(t),
data/nvi-1.81.6/cl/cl_term.c:106:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t),
data/nvi-1.81.6/cl/cl_term.c:107: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).
		    output, strlen(tkp->output), SEQ_COMMAND,
data/nvi-1.81.6/cl/cl_term.c:121: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).
		CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:123: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).
		CHAR2INT(sp, t, strlen(t), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:125: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 (seq_set(sp, name, strlen(tkp->name), ts, strlen(t),
data/nvi-1.81.6/cl/cl_term.c:125:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t),
data/nvi-1.81.6/cl/cl_term.c:144: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).
			CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:146: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).
			CHAR2INT(sp, t, strlen(t), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:148: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 (seq_set(sp, name, strlen(tkp->name),
data/nvi-1.81.6/cl/cl_term.c:149: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).
			    ts, strlen(t), NULL, 0,
data/nvi-1.81.6/cl/cl_term.c:153: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).
			CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:155: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).
			CHAR2INT(sp, t, strlen(t), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:157: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).
			CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:159: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 (seq_set(sp, name, strlen(tkp->name),
data/nvi-1.81.6/cl/cl_term.c:160: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).
			    ts, strlen(t), output, strlen(tkp->output),
data/nvi-1.81.6/cl/cl_term.c:160:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    ts, strlen(t), output, strlen(tkp->output),
data/nvi-1.81.6/cl/cl_term.c:233: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).
	    p == (char *)-1 || strlen(p) == 0)
data/nvi-1.81.6/cl/cl_term.c:243: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).
	CHAR2INT(sp, p, strlen(p), wp, wlen);
data/nvi-1.81.6/cl/cl_term.c:246: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).
	    ts, strlen(p), to, tlen, stype, SEQ_NOOVERWRITE | SEQ_SCREEN));
data/nvi-1.81.6/clib/env.c:96: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).
	l_value = strlen(value);
data/nvi-1.81.6/clib/env.c:100: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(c) >= l_value) {	/* old larger; copy over */
data/nvi-1.81.6/clib/mmap.c:27:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, ptr, len) < 0) {
data/nvi-1.81.6/clib/snprintf.c:39: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).
	return (strlen(str));
data/nvi-1.81.6/clib/strdup.c:57: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(str) + 1;
data/nvi-1.81.6/clib/vsnprintf.c:27: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).
	return (strlen(str));
data/nvi-1.81.6/common/api.c:309: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).
		CHAR2INT(sp, file, strlen(file) + 1, wp, wlen);
data/nvi-1.81.6/common/api.c:375: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).
	CHAR2INT(sp, name, strlen(name) + 1, wp, wlen);
data/nvi-1.81.6/common/api.c:396: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).
	CHAR2INT(sp, name, strlen(name) + 1, wp, wlen);
data/nvi-1.81.6/common/api.c:442: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).
			    *value, char *, strlen(O_STR(sp, offset)) + 1);
data/nvi-1.81.6/common/api.c:514: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).
	CHAR2INT(sp, cmd, strlen(cmd)+1, wp, wlen);
data/nvi-1.81.6/common/api.c:528: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(tag);
data/nvi-1.81.6/common/api.c:549: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 flen = strlen(filename);
data/nvi-1.81.6/common/api.c:550: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 slen = strlen(search);
data/nvi-1.81.6/common/api.c:551: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 mlen = strlen(msg);
data/nvi-1.81.6/common/exf.c:213:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		orig_umask = umask(0);
data/nvi-1.81.6/common/exf.c:214:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(orig_umask & 0177);
data/nvi-1.81.6/common/exf.c:218:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(orig_umask);
data/nvi-1.81.6/common/exf.c:224:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(orig_umask);
data/nvi-1.81.6/common/exf.c:640: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).
		CHAR2INT(sp, gp->c_option, strlen(gp->c_option) + 1,
data/nvi-1.81.6/common/exf.c:1072: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).
		for (s = buf, t = buf + strlen(p); s < t &&
data/nvi-1.81.6/common/exf.c:1150: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).
	CHAR2INT(sp, bname, strlen(bname) + 1, wp, wlen);
data/nvi-1.81.6/common/exf.c:1251:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(rfd, buf, sizeof(buf))) > 0)
data/nvi-1.81.6/common/main.c:253: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).
		a.len = strlen(path);
data/nvi-1.81.6/common/main.c:323: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).
		CHAR2INT(sp, tag_f, strlen(tag_f) + 1, w, wlen);
data/nvi-1.81.6/common/main.c:337: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).
			    *--argv, char *, strlen(sp->frp->name) + 1);
data/nvi-1.81.6/common/main.c:452:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(argv[0]);
data/nvi-1.81.6/common/main.c:494:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &ch, 1) != 1) {
data/nvi-1.81.6/common/msg.c:550: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(sp->frp->name);
data/nvi-1.81.6/common/msg.c:570: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).
			p += strlen(p);
data/nvi-1.81.6/common/msg.c:644: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).
			p += strlen(p);
data/nvi-1.81.6/common/msg.c:649: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).
		p += strlen(p);
data/nvi-1.81.6/common/msg.c:653: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).
	p += strlen(p);
data/nvi-1.81.6/common/msg.c:872: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).
		*lenp = strlen(str);
data/nvi-1.81.6/common/multibyte.h:15:17:  [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).
#define STRLEN		wcslen
data/nvi-1.81.6/common/multibyte.h:34: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).
#define STRLEN		strlen
data/nvi-1.81.6/common/options.c:892: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).
			curlen += strlen(nbuf);
data/nvi-1.81.6/common/options.c:896: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).
				curlen += strlen(O_STR(sp, cnt));
data/nvi-1.81.6/common/options_f.c:151:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) & 1) {
data/nvi-1.81.6/common/options_f.c:234:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) & 1) {
data/nvi-1.81.6/common/recover.c:771:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(rfd, buf, sizeof(buf))) > 0)
data/nvi-1.81.6/common/recover.c:792:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((nr = read(fd, buf, len - 1)) == -1)
data/nvi-1.81.6/ex/ex_args.c:65:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			CHAR2INT(sp, sp->cargv[1], strlen(sp->cargv[1]) + 1,
data/nvi-1.81.6/ex/ex_args.c:189:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		CHAR2INT(sp, sp->cargv[-1], strlen(sp->cargv[-1]) + 1,
data/nvi-1.81.6/ex/ex_args.c:278: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).
		col += len = strlen(*ap) + sep + (ap == sp->cargv ? 2 : 0);
data/nvi-1.81.6/ex/ex_args.c:319:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((*ap = v_strdup(sp, name, strlen(name))) == NULL)
data/nvi-1.81.6/ex/ex_argv.c:349: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).
			tlen = strlen(t);
data/nvi-1.81.6/ex/ex_argv.c:365:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += tlen = strlen(t);
data/nvi-1.81.6/ex/ex_argv.c:534: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).
			dlen = strlen(path);
data/nvi-1.81.6/ex/ex_argv.c:538: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).
	nlen = strlen(name);
data/nvi-1.81.6/ex/ex_argv.c:553:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(dp->d_name);
data/nvi-1.81.6/ex/ex_argv.c:555:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(dp->d_name);
data/nvi-1.81.6/ex/ex_argv.c:705:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    (ch = getc(ifp)) != EOF; *p++ = ch, blen-=sizeof(CHAR_T), ++len)
data/nvi-1.81.6/ex/ex_cscope.c:179: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(cscopes);
data/nvi-1.81.6/ex/ex_cscope.c:185: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).
			CHAR2INT(sp, p, strlen(p) + 1, wp, wlen);
data/nvi-1.81.6/ex/ex_cscope.c:260: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(np);
data/nvi-1.81.6/ex/ex_cscope.c:320:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    read(fd, csc->pbuf, len) != len) {
data/nvi-1.81.6/ex/ex_cscope.c:631: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).
		tlen = strlen(p);
data/nvi-1.81.6/ex/ex_cscope.c:686:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((ch = getc(csc->from_fp)) != EOF && ch != '\n');
data/nvi-1.81.6/ex/ex_cscope.c:704: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).
				nlen = strlen(name);
data/nvi-1.81.6/ex/ex_cscope.c:717: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).
		slen = strlen(p);
data/nvi-1.81.6/ex/ex_cscope.c:786: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).
			*dlenp = strlen(*pp);
data/nvi-1.81.6/ex/ex_cscope.c:1005: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(name);
data/nvi-1.81.6/ex/ex_cscope.c:1024:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    getc(csc->from_fp)) != EOF && ch != CSCOPE_PROMPT[0]);
data/nvi-1.81.6/ex/ex_cscope.c:1029:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (getc(csc->from_fp) != CSCOPE_PROMPT[1])
data/nvi-1.81.6/ex/ex_cscope.c:1031:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (getc(csc->from_fp) != CSCOPE_PROMPT[2])
data/nvi-1.81.6/ex/ex_init.c:189: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).
		CHAR2INT(sp, p, strlen(p) + 1, wp, wlen);
data/nvi-1.81.6/ex/ex_init.c:193: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).
		CHAR2INT(sp, p, strlen(p) + 1, wp, wlen);
data/nvi-1.81.6/ex/ex_init.c:262: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).
	CHAR2INT(sp, name, strlen(name)+1, wp, wlen);
data/nvi-1.81.6/ex/ex_init.c:299:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((ecp->if_name = v_strdup(sp, name, strlen(name))) == NULL)
data/nvi-1.81.6/ex/ex_screen.c:116: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).
		col += len = strlen(tsp->frp->name) + sep;
data/nvi-1.81.6/ex/ex_script.c:237:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (nr = read(sc->sh_master, endp, len)) {
data/nvi-1.81.6/ex/ex_script.c:488:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
more:	switch (nr = read(sc->sh_master, endp, MINREAD)) {
data/nvi-1.81.6/ex/ex_shell.c:172:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(p);
data/nvi-1.81.6/ex/ex_shell.c:194:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(p);
data/nvi-1.81.6/ex/ex_source.c:75:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, bp, (int)sb.st_size);
data/nvi-1.81.6/ex/ex_tag.c:362: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).
filearg:	arglen = strlen(arg);
data/nvi-1.81.6/ex/ex_tag.c:521: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).
			if ((len = strlen(p)) > L_NAME) {
data/nvi-1.81.6/ex/ex_tag.c:533:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(tqp->tag);
data/nvi-1.81.6/ex/ex_tag.c:1132: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).
				nlen = strlen(name);
data/nvi-1.81.6/ex/ex_tag.c:1142: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).
		if ((slen = strlen(p)) == 0) {
data/nvi-1.81.6/ex/ex_tag.c:1211: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).
			*dlenp = strlen(*dirp);
data/nvi-1.81.6/ex/ex_util.c:70: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/nvi-1.81.6/ip/ip_funcs.c:160: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).
		ipb.len1 = strlen(str);
data/nvi-1.81.6/ip/ip_funcs.c:459: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).
	ipb.len1 = name ? strlen(name) : 0;
data/nvi-1.81.6/ip/ip_funcs.c:478: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).
	ipb.len1 = strlen(ipb.str1);
data/nvi-1.81.6/ip/ip_read.c:264:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (*nr = read(fd, termread ? (char *)ipp->tbuf : bp, 
data/nvi-1.81.6/ip/ip_term.c:123: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).
			ipb.len2 = strlen(str) + 1;
data/nvi-1.81.6/ipc/ip_run.c:258:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &ch, 1) != 1) {
data/nvi-1.81.6/ipc/ip_trans.c:53:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (nr = read(fd, ibuf + ibuf_len, sizeof(ibuf) - ibuf_len)) {
data/nvi-1.81.6/ipc/ip_trans.c:94:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    read(ipviwin->ifd, ibuf + ibuf_len, sizeof(ibuf) - ibuf_len)) {
data/nvi-1.81.6/motif/m_main.c:147: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).
	copy[i] = malloc( strlen(name) + strlen(fallback_rsrcs[i]) + 1 );
data/nvi-1.81.6/motif/m_main.c:147:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	copy[i] = malloc( strlen(name) + strlen(fallback_rsrcs[i]) + 1 );
data/nvi-1.81.6/motif_l/m_menu.c:95:6:  [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( buffer, "\n" );
data/nvi-1.81.6/motif_l/m_menu.c:101: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).
    ipb.len1 = strlen(buffer);
data/nvi-1.81.6/motif_l/m_menu.c:230: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).
		ipb.len1 = strlen(file);
data/nvi-1.81.6/motif_l/m_options.c:303: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).
	ipb.len1 = strlen(opt->name);
data/nvi-1.81.6/motif_l/m_options.c:340: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).
		ipb.len2 = strlen(ipb.str2);
data/nvi-1.81.6/motif_l/m_options.c:597:2:  [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( buffer, "|" );
data/nvi-1.81.6/motif_l/m_ruler.c:85: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).
    XTextExtents( ruler_font, text, strlen(text), &dir, asc, &des, &over );
data/nvi-1.81.6/motif_l/m_ruler.c:102:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 strlen(text)
data/nvi-1.81.6/motif_l/m_search.c:95: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( buffer, "*" );
data/nvi-1.81.6/motif_l/m_search.c:187: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).
	ipb.len1 = strlen(pattern);
data/nvi-1.81.6/motif_l/m_tags.c:267: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).
    ipb.len1 = strlen(str) + 1;
data/nvi-1.81.6/motif_l/m_tags.c:299: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).
    ipb.len1 = strlen(str) + 1;
data/nvi-1.81.6/motif_l/m_util.c:110: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).
	from.size = strlen( from.addr );
data/nvi-1.81.6/motif_l/m_vi.c:662: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).
    ipb.len1 = strlen( *str );
data/nvi-1.81.6/motif_l/m_vi.c:670: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).
    vtrace("insert_string {%.*s}\n", strlen( *str ), *str );
data/nvi-1.81.6/motif_l/xtabbed.c:617:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen(((XmTabsWidget)self)->xmTabs.labels[i]);
data/nvi-1.81.6/motif_l/xtabbed.c:822: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 w, y, x, len = strlen(((XmTabsWidget)self)->xmTabs.labels[i]);
data/nvi-1.81.6/motif_l/xtabbed.c:1610: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).
    s=(char *)malloc((unsigned)(strlen(str)+1));
data/nvi-1.81.6/motif_l/xtabbed.c:1640: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).
	len=strlen(str1);
data/nvi-1.81.6/motif_l/xtabbed.c:1651: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).
	for(j=0; j<strlen(str2); j++)
data/nvi-1.81.6/motif_l/xtabbed.c:1679:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str, XV_COPYRIGHT, n);
data/nvi-1.81.6/motif_l/xtabbed.c:1822: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).
    if(strlen(text)==0)
data/nvi-1.81.6/motif_l/xtabbed.c:2062: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).
	for(i=0; i<strlen(text)-1; i++)
data/nvi-1.81.6/motif_l/xtabbed.c:2093:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:2106:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    XDrawString(dpy, drawable, my_gc, xp, yp, str3, strlen(str3));
data/nvi-1.81.6/motif_l/xtabbed.c:2108:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    XDrawImageString(dpy, drawable, my_gc, xp, yp, str3, strlen(str3));
data/nvi-1.81.6/motif_l/xtabbed.c:2306: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).
	for(i=0; i<strlen(text)-1; i++)
data/nvi-1.81.6/motif_l/xtabbed.c:2323: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).
    XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:2333:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:2394: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).
	XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:2406:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XDrawString(dpy, canvas, font_gc, xp, yp, str3, strlen(str3));
data/nvi-1.81.6/motif_l/xtabbed.c:2588: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).
	sizeof(XImage) + strlen(item->text) + 
data/nvi-1.81.6/motif_l/xtabbed.c:2592: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).
	item->size+=strlen(item->font_name);
data/nvi-1.81.6/motif_l/xtabbed.c:2841: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).
	for(i=0; i<strlen(text)-1; i++)
data/nvi-1.81.6/motif_l/xtabbed.c:2858: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).
    XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:2868:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
data/nvi-1.81.6/motif_l/xtabbed.c:3130: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(tab_labels) + 1,
data/nvi-1.81.6/regex/regcomp.c:850:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (u = cp->multis; *u != '\0'; u += strlen(u) + 1)
data/nvi-1.81.6/regex/regcomp.c:1245: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).
	cs->smultis += strlen(cp) + 1;
data/nvi-1.81.6/regex/regcomp.c:1267: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).
	register size_t len = strlen(fp);
data/nvi-1.81.6/regex/regcomp.c:1305:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (p = cs->multis; *p != '\0'; p += strlen(p) + 1)
data/nvi-1.81.6/regex/regerror.c:136:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			assert(strlen(convbuf) < sizeof(convbuf));
data/nvi-1.81.6/regex/regerror.c:142: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(s) + 1;
data/nvi-1.81.6/regex/regerror.c:147:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(errbuf, s, errbuf_size-1);
data/nvi-1.81.6/tcl_api/tcl.c:108: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).
	rval = api_aline(sp, (db_recno_t)lno, argv[3], strlen(argv[3]));
data/nvi-1.81.6/tcl_api/tcl.c:219: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).
	rval = api_iline(sp, (db_recno_t)lno, argv[3], strlen(argv[3]));
data/nvi-1.81.6/tcl_api/tcl.c:289: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).
	rval = api_sline(sp, (db_recno_t)lno, argv[3], strlen(argv[3]));
data/nvi-1.81.6/tcl_api/tcl.c:625:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rval = api_map(sp, argv[2], command, strlen(command));
data/nvi-1.81.6/tcl_api/tcl.c:693: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).
	MALLOC(sp, setting, char *, strlen(argv[2])+6);
data/nvi-1.81.6/vi/v_ex.c:196: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).
	CHAR2INT(sp, name, strlen(name) + 1, wp, wlen);
data/nvi-1.81.6/vi/v_init.c:62: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).
		    v_strdup(sp, ovip->ps, strlen(ovip->ps))) == NULL)
data/nvi-1.81.6/vi/v_paragraph.c:322: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).
	p_len = p_p == NULL ? 0 : strlen(p_p);
data/nvi-1.81.6/vi/v_paragraph.c:323: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).
	s_len = s_p == NULL ? 0 : strlen(s_p);
data/nvi-1.81.6/vi/vs_msg.c:199: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).
		mlen = len = strlen(m1);

ANALYSIS SUMMARY:

Hits = 468
Lines analyzed = 72684 in approximately 1.80 seconds (40383 lines/second)
Physical Source Lines of Code (SLOC) = 45299
Hits@level = [0] 126 [1] 180 [2] 196 [3]  20 [4]  65 [5]   7
Hits@level+ = [0+] 594 [1+] 468 [2+] 288 [3+]  92 [4+]  72 [5+]   7
Hits/KSLOC@level+ = [0+] 13.1129 [1+] 10.3314 [2+] 6.35776 [3+] 2.03095 [4+] 1.58944 [5+] 0.154529
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.