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/direvent-5.2/tests/envdump.c
Examining data/direvent-5.2/grecs/wordsplit/wordsplit.h
Examining data/direvent-5.2/grecs/wordsplit/wordsplit.c
Examining data/direvent-5.2/grecs/wordsplit/wsp.c
Examining data/direvent-5.2/grecs/tests/gcfpeek.c
Examining data/direvent-5.2/grecs/tests/distck.c
Examining data/direvent-5.2/grecs/tests/json.c
Examining data/direvent-5.2/grecs/tests/gcfver.c
Examining data/direvent-5.2/grecs/tests/gcffmt.c
Examining data/direvent-5.2/grecs/tests/wordsplit-version.h
Examining data/direvent-5.2/grecs/tests/gcfset.c
Examining data/direvent-5.2/grecs/tests/gcfenum.c
Examining data/direvent-5.2/grecs/gitid.h
Examining data/direvent-5.2/grecs/src/json-gram.c
Examining data/direvent-5.2/grecs/src/list.c
Examining data/direvent-5.2/grecs/src/parser.c
Examining data/direvent-5.2/grecs/src/asprintf.c
Examining data/direvent-5.2/grecs/src/preproc.c
Examining data/direvent-5.2/grecs/src/bind-gram.c
Examining data/direvent-5.2/grecs/src/sockaddr.c
Examining data/direvent-5.2/grecs/src/git-parser.c
Examining data/direvent-5.2/grecs/src/txtacc.c
Examining data/direvent-5.2/grecs/src/grecs-gram.h
Examining data/direvent-5.2/grecs/src/opthelp.c
Examining data/direvent-5.2/grecs/src/jsonfmt.c
Examining data/direvent-5.2/grecs/src/path-parser.c
Examining data/direvent-5.2/grecs/src/dhcpd-lex.c
Examining data/direvent-5.2/grecs/src/json-lex.c
Examining data/direvent-5.2/grecs/src/format.c
Examining data/direvent-5.2/grecs/src/diag.c
Examining data/direvent-5.2/grecs/src/meta1-lex.c
Examining data/direvent-5.2/grecs/src/grecs-lex.c
Examining data/direvent-5.2/grecs/src/version.c
Examining data/direvent-5.2/grecs/src/tree.c
Examining data/direvent-5.2/grecs/src/meta1-gram.c
Examining data/direvent-5.2/grecs/src/lookup.c
Examining data/direvent-5.2/grecs/src/lineacc.c
Examining data/direvent-5.2/grecs/src/cidr.c
Examining data/direvent-5.2/grecs/src/grecs-gram.c
Examining data/direvent-5.2/grecs/src/dhcpd-gram.c
Examining data/direvent-5.2/grecs/src/symtab.c
Examining data/direvent-5.2/grecs/src/parsertab.c
Examining data/direvent-5.2/grecs/src/bind-lex.c
Examining data/direvent-5.2/grecs/src/mem.c
Examining data/direvent-5.2/grecs/src/assert.c
Examining data/direvent-5.2/grecs/src/join.c
Examining data/direvent-5.2/grecs/src/text.c
Examining data/direvent-5.2/grecs/src/ipstr.c
Examining data/direvent-5.2/grecs/src/sort.c
Examining data/direvent-5.2/grecs/include/grecs.h
Examining data/direvent-5.2/grecs/include/grecs/json.h
Examining data/direvent-5.2/grecs/include/grecs/mem.h
Examining data/direvent-5.2/grecs/include/grecs/parser.h
Examining data/direvent-5.2/grecs/include/grecs/error.h
Examining data/direvent-5.2/grecs/include/grecs/opt.h
Examining data/direvent-5.2/grecs/include/grecs/table.h
Examining data/direvent-5.2/grecs/include/grecs/lex.h
Examining data/direvent-5.2/grecs/include/grecs/format.h
Examining data/direvent-5.2/grecs/include/grecs/sockaddr.h
Examining data/direvent-5.2/grecs/include/grecs/locus.h
Examining data/direvent-5.2/grecs/include/grecs/doc.h
Examining data/direvent-5.2/grecs/include/grecs/version.h
Examining data/direvent-5.2/grecs/include/grecs/list.h
Examining data/direvent-5.2/grecs/include/grecs/tree.h
Examining data/direvent-5.2/grecs/include/grecs/txtacc.h
Examining data/direvent-5.2/grecs/include/grecs/value.h
Examining data/direvent-5.2/grecs/include/grecs/symtab.h
Examining data/direvent-5.2/grecs/include/grecs/util.h
Examining data/direvent-5.2/grecs/include/grecs/preproc.h
Examining data/direvent-5.2/grecs/include/grecs/types.h
Examining data/direvent-5.2/grecs/include/grecs/node.h
Examining data/direvent-5.2/src/gettext.h
Examining data/direvent-5.2/src/detach-darwin.c
Examining data/direvent-5.2/src/cmdline.h
Examining data/direvent-5.2/src/config.c
Examining data/direvent-5.2/src/fnpat.c
Examining data/direvent-5.2/src/environ.c
Examining data/direvent-5.2/src/handler.c
Examining data/direvent-5.2/src/sigv.c
Examining data/direvent-5.2/src/watcher.c
Examining data/direvent-5.2/src/ev_inotify.c
Examining data/direvent-5.2/src/detach-bsd.c
Examining data/direvent-5.2/src/direvent.h
Examining data/direvent-5.2/src/ev_kqueue.c
Examining data/direvent-5.2/src/direvent.c
Examining data/direvent-5.2/src/progman.c
Examining data/direvent-5.2/src/event.c
Examining data/direvent-5.2/src/detach-std.c

FINAL RESULTS:

data/direvent-5.2/grecs/src/asprintf.c:46:7:  [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.
		n = vsnprintf(buf, buflen, fmt, aq);
data/direvent-5.2/grecs/src/bind-gram.c:763:21:  [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.
#  define YYFPRINTF fprintf
data/direvent-5.2/grecs/src/bind-lex.c:2425: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(name, F_OK)) {
data/direvent-5.2/grecs/src/bind-lex.c:2455:22:  [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.
                fp = popen(cmd, "r");
data/direvent-5.2/grecs/src/dhcpd-gram.c:799:21:  [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.
#  define YYFPRINTF fprintf
data/direvent-5.2/grecs/src/dhcpd-lex.c:2543: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(name, F_OK)) {
data/direvent-5.2/grecs/src/dhcpd-lex.c:2573:22:  [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.
                fp = popen(cmd, "r");
data/direvent-5.2/grecs/src/grecs-gram.c:766:21:  [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.
#  define YYFPRINTF fprintf
data/direvent-5.2/grecs/src/grecs-lex.c:2628:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(str, p);
data/direvent-5.2/grecs/src/json-gram.c:764:21:  [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.
#  define YYFPRINTF fprintf
data/direvent-5.2/grecs/src/mem.c:90: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).
	return strcpy(newstr, str);
data/direvent-5.2/grecs/src/meta1-gram.c:749:21:  [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.
#  define YYFPRINTF fprintf
data/direvent-5.2/grecs/src/opthelp.c:317:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(&buf[n], opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:322:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(&buf[n], opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:366:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(&buf[n], longopt);
data/direvent-5.2/grecs/src/opthelp.c:372:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(&buf[n], opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:376:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(&buf[n], opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:389:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf + n, pinfo->args_doc);
data/direvent-5.2/grecs/src/opthelp.c:416:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(buf + n, ws.ws_wordv[i]);
data/direvent-5.2/grecs/src/opthelp.c:457:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stream, version_etc_copyright, _("(C)"),
data/direvent-5.2/grecs/src/preproc.c:120: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(putback_buffer, str);
data/direvent-5.2/grecs/src/preproc.c:145: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(putback_buffer + putback_size, linebufbase);
data/direvent-5.2/grecs/src/preproc.c:164:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(linebuf, putback_buffer);
data/direvent-5.2/grecs/src/preproc.c:305:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(dptr->buf, dir);
data/direvent-5.2/grecs/src/preproc.c:307:3:  [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(dptr->buf, dptr->name);
data/direvent-5.2/grecs/src/preproc.c:308:17:  [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.
		dptr->found = access(dptr->buf, F_OK) == 0;
data/direvent-5.2/grecs/src/preproc.c:695:13:  [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.
		outfile = popen(cmd, "w");
data/direvent-5.2/grecs/src/sockaddr.c:74: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_un->sun_path, addrstr);
data/direvent-5.2/grecs/src/tree.c:396:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s_un.sun_path, string);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:74:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   __attribute__ ((format (printf, 1, 2)));
data/direvent-5.2/grecs/wordsplit/wordsplit.c:82:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, ap);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1206: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(v + namelen, value);
data/direvent-5.2/grecs/wordsplit/wsp.c:622:3:  [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 (strcpy (*ret, msg), argv[0]);
data/direvent-5.2/grecs/wordsplit/wsp.c:622: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).
  strcat (strcpy (*ret, msg), argv[0]);
data/direvent-5.2/src/config.c:240: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(p->path, s);
data/direvent-5.2/src/direvent.c:86:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, tmp);
data/direvent-5.2/src/direvent.c:434:2:  [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(args[0], args);
data/direvent-5.2/src/environ.c:90:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(res + namelen + 1, a);
data/direvent-5.2/src/environ.c:91:3:  [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(res + namelen + 1, b);
data/direvent-5.2/src/environ.c:105:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(res + namelen + 1, b);
data/direvent-5.2/grecs/src/parser.c:60: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.
		char *p = getenv("GRECS_DEBUG");
data/direvent-5.2/src/cmdline.h:421:15:  [3] (buffer) getopt_long:
  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 ((c = getopt_long(argc, argv, "dl:F:fI:T:P:tu:HhV",
data/direvent-5.2/src/cmdline.h:427: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 ((c = getopt(argc, argv, "dl:F:fI:T:P:tu:HhV")) != EOF)
data/direvent-5.2/tests/envdump.c:193:14:  [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 ((i = getopt(argc, argv, "af:hi:k:s")) != EOF)
data/direvent-5.2/grecs/include/grecs/sockaddr.h:58:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char address[GRECS_INADDR_BYTES];
data/direvent-5.2/grecs/include/grecs/sockaddr.h:59:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char netmask[GRECS_INADDR_BYTES];
data/direvent-5.2/grecs/src/bind-gram.c:1066: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 const *grecs_bind_arg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/direvent-5.2/grecs/src/bind-gram.c:1320: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 grecs_bind_msgbuf[128];
data/direvent-5.2/grecs/src/bind-lex.c:2436:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/direvent-5.2/grecs/src/cidr.c:47: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(&u, buf, sizeof u);
data/direvent-5.2/grecs/src/cidr.c:52: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(bytes, buf, 16);
data/direvent-5.2/grecs/src/cidr.c:68: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(bytes, &((struct sockaddr_in6*)sa)->sin6_addr, 16);
data/direvent-5.2/grecs/src/cidr.c:77:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char address[GRECS_INADDR_BYTES];
data/direvent-5.2/grecs/src/cidr.c:113: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 ipbuf[41];
data/direvent-5.2/grecs/src/cidr.c:134: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(ipbuf, str, len);
data/direvent-5.2/grecs/src/cidr.c:193: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(pcidr, &cidr, sizeof(*pcidr));
data/direvent-5.2/grecs/src/dhcpd-gram.c:1102: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 const *grecs_dhcpdarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/direvent-5.2/grecs/src/dhcpd-gram.c:1356: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 grecs_dhcpdmsgbuf[128];
data/direvent-5.2/grecs/src/dhcpd-lex.c:2554:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/direvent-5.2/grecs/src/format.c:245: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 delim[2] = ".";
data/direvent-5.2/grecs/src/git-parser.c:40: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 chbuf[2];
data/direvent-5.2/grecs/src/git-parser.c:417:11:  [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).
	infile = fopen(name, "r");
data/direvent-5.2/grecs/src/grecs-gram.c:1069: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 const *grecs_grecs_arg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/direvent-5.2/grecs/src/grecs-gram.c:1323: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 grecs_grecs_msgbuf[128];
data/direvent-5.2/grecs/src/grecs-lex.c:2498: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).
		fd = open(name, O_RDONLY);
data/direvent-5.2/grecs/src/grecs-lex.c:2606: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(multiline_delimiter, p, multiline_delimiter_len);
data/direvent-5.2/grecs/src/json-gram.c:1067: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 const *grecs_json_arg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/direvent-5.2/grecs/src/json-gram.c:1321: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 grecs_json_msgbuf[128];
data/direvent-5.2/grecs/src/json-gram.c:1986: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(pa, pb, sizeof(*pa));
data/direvent-5.2/grecs/src/json-lex.c:649:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, input_ptr, n);			\
data/direvent-5.2/grecs/src/json-lex.c:679: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 r[6];
data/direvent-5.2/grecs/src/lookup.c:308: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 static_delim[2] = { 0, 0 };
data/direvent-5.2/grecs/src/meta1-gram.c:1052: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 const *grecs_meta1_arg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/direvent-5.2/grecs/src/meta1-gram.c:1306: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 grecs_meta1_msgbuf[128];
data/direvent-5.2/grecs/src/meta1-gram.c:1945:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/direvent-5.2/grecs/src/path-parser.c:60:11:  [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).
	infile = fopen(name, "r");
data/direvent-5.2/grecs/src/preproc.c:210: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(buf, linebuf, len);
data/direvent-5.2/grecs/src/preproc.c:407: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(dst, src, sizeof(struct input_file_ident));
data/direvent-5.2/grecs/src/preproc.c:477:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/direvent-5.2/grecs/src/preproc.c:676:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[512];
data/direvent-5.2/grecs/src/sockaddr.c:92: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 portbuf[64];
data/direvent-5.2/grecs/src/sockaddr.c:107: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(nodebuf, addrstr, len);
data/direvent-5.2/grecs/src/sockaddr.c:134: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(nodebuf, addrstr, len);
data/direvent-5.2/grecs/src/sockaddr.c:197: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->sa, ap->ai_addr, ap->ai_addrlen);
data/direvent-5.2/grecs/src/sockaddr.c:298: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 host[NI_MAXHOST];
data/direvent-5.2/grecs/src/sockaddr.c:299: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 srv[NI_MAXSERV];
data/direvent-5.2/grecs/src/tree.c:377: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(in, hp->h_addr, sizeof(struct in_addr));
data/direvent-5.2/grecs/src/tree.c:399: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(sp->sa, &s_un, sp->len);
data/direvent-5.2/grecs/src/tree.c:415: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(host, string, len);
data/direvent-5.2/grecs/src/tree.c:457: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(sp->sa, &sa, sp->len);
data/direvent-5.2/grecs/src/txtacc.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(ent->buf + ent->len, p, size);
data/direvent-5.2/grecs/tests/json.c:62:17:  [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).
			fmt.indent = atoi(arg + 8);
data/direvent-5.2/grecs/tests/json.c:66:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			fmt.precision = atoi(arg + 11);
data/direvent-5.2/grecs/tests/json.c:81: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).
		fd = open(file, O_RDONLY);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:125:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (wsp->ws_errctx, str, len);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:414:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char retbuf[7];
data/direvent-5.2/grecs/wordsplit/wordsplit.c:653:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (cur, str, slen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:704:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (newstr, str, slen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:904:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (newstr, str, slen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:968:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (newstr, str + beg, len);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1187:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (p, name, namelen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1204:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (v, name, namelen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1403:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char b[16];
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1719:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (newnode->v.word, start, size);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2034:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (uname, str + 1, i);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2054: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 (newstr, pw->pw_dir, dlen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2055: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 (newstr + dlen, str + i + 1, slen - i - 1);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2118: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 (pattern, str, slen);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  char buf[128];
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2557:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char tmp[4];
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2562:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (dst, tmp, 3);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2574: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 (dst, tmp, 3);
data/direvent-5.2/grecs/wordsplit/wordsplit.h:53: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.
  const char *ws_escape[2]; /* [Input] (WRDSF_ESCAPE) Characters to be escaped
data/direvent-5.2/grecs/wordsplit/wordsplit.h:127: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 ws_sep[2];           /* Temporary storage used during splitting */
data/direvent-5.2/grecs/wordsplit/wsp.c:501:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (p, environ[i], len);
data/direvent-5.2/grecs/wordsplit/wsp.c:545: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 (*ret, str + alen, len);
data/direvent-5.2/grecs/wordsplit/wsp.c:565:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (p, argv[i], s);
data/direvent-5.2/grecs/wordsplit/wsp.c:587:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (p, argv[i], s);
data/direvent-5.2/grecs/wordsplit/wsp.c:630: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 *fenvbase[128];
data/direvent-5.2/grecs/wordsplit/wsp.c:631: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[1024], *ptr, *saved_ptr;
data/direvent-5.2/src/detach-bsd.c:83:2:  [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_DEVNULL, O_RDONLY);
data/direvent-5.2/src/detach-bsd.c:84:2:  [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_DEVNULL, O_WRONLY);
data/direvent-5.2/src/detach-darwin.c:108:2:  [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_DEVNULL, O_RDONLY);
data/direvent-5.2/src/detach-darwin.c:109:2:  [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_DEVNULL, O_WRONLY);
data/direvent-5.2/src/detach-std.c:76:2:  [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_DEVNULL, O_RDONLY);
data/direvent-5.2/src/detach-std.c:77:2:  [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_DEVNULL, O_WRONLY);
data/direvent-5.2/src/direvent.c:175:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, str, len);
data/direvent-5.2/src/direvent.c:197: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(tmp, dir, dirlen);
data/direvent-5.2/src/direvent.c:200: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(tmp + dirlen, file, fillen);
data/direvent-5.2/src/direvent.c:272: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).
	FILE *fp = fopen(pidfile, "w");
data/direvent-5.2/src/direvent.c:415: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 *args[4];
data/direvent-5.2/src/direvent.h: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 path[1];
data/direvent-5.2/src/environ.c:97: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(res + namelen + 1, a, len);
data/direvent-5.2/src/environ.c:107: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(res, name, namelen);
data/direvent-5.2/src/environ.c:124: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 *empty[1] = { NULL };
data/direvent-5.2/src/environ.c:231: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[512];
data/direvent-5.2/src/ev_inotify.c:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/direvent-5.2/src/ev_kqueue.c:78: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).
	int wd = open(wpt->dirname, O_RDONLY);
data/direvent-5.2/src/fnpat.c:115:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char errbuf[128];
data/direvent-5.2/src/gettext.h:210: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/direvent-5.2/src/gettext.h:212: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[1024];
data/direvent-5.2/src/gettext.h:220:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/direvent-5.2/src/gettext.h:222:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/direvent-5.2/src/gettext.h:256: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/direvent-5.2/src/gettext.h:258: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[1024];
data/direvent-5.2/src/gettext.h:266:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/direvent-5.2/src/gettext.h:268:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/direvent-5.2/src/progman.c:316: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[512];
data/direvent-5.2/src/progman.c:372: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 *kve[13];
data/direvent-5.2/src/progman.c:374: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[1024];
data/direvent-5.2/src/progman.c:377: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 *xargv[4];
data/direvent-5.2/tests/envdump.c:146:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *fp = fopen(++arg, "r");
data/direvent-5.2/tests/envdump.c:219:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(file, mode);
data/direvent-5.2/grecs/src/bind-gram.c:951:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define grecs_bind_strlen strlen
data/direvent-5.2/grecs/src/bind-gram.c:2022: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).
		grecs_txtacc_grow(acc, node->ident, strlen(node->ident));
data/direvent-5.2/grecs/src/bind-lex.c:831:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( grecs_bind_in )) != EOF && c != '\n'; ++n ) \
data/direvent-5.2/grecs/src/bind-lex.c:2042:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return grecs_bind__scan_bytes(grecs_bind_str,strlen(grecs_bind_str) );
data/direvent-5.2/grecs/src/cidr.c:126: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(str);
data/direvent-5.2/grecs/src/dhcpd-gram.c:987:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define grecs_dhcpdstrlen strlen
data/direvent-5.2/grecs/src/dhcpd-lex.c:837:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( grecs_dhcpdin )) != EOF && c != '\n'; ++n ) \
data/direvent-5.2/grecs/src/dhcpd-lex.c:2148:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return grecs_dhcpd_scan_bytes(grecs_dhcpdstr,strlen(grecs_dhcpdstr) );
data/direvent-5.2/grecs/src/format.c:85:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(docstring);
data/direvent-5.2/grecs/src/format.c:384: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).
	grecs_txtacc_grow(acc, str, strlen(str));
data/direvent-5.2/grecs/src/git-parser.c:56:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	input_char = fgetc(infile);
data/direvent-5.2/grecs/src/git-parser.c:320: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(tok.buf);
data/direvent-5.2/grecs/src/grecs-gram.c:954: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).
#   define grecs_grecs_strlen strlen
data/direvent-5.2/grecs/src/grecs-gram.c:1697: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).
			  grecs_line_add(ep->data, strlen(ep->data));
data/direvent-5.2/grecs/src/grecs-lex.c:928:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( grecs_grecs_in )) != EOF && c != '\n'; ++n ) \
data/direvent-5.2/grecs/src/grecs-lex.c:1341: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).
				p = grecs_grecs_lval.string + strlen(grecs_grecs_lval.string) - 1;
data/direvent-5.2/grecs/src/grecs-lex.c:2193: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).
	return grecs_grecs__scan_bytes(grecs_grecs_str,strlen(grecs_grecs_str) );
data/direvent-5.2/grecs/src/grecs-lex.c:2561: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).
		grecs_line_add(s, strlen(s));
data/direvent-5.2/grecs/src/grecs-lex.c:2626: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(p);
data/direvent-5.2/grecs/src/json-gram.c:952:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define grecs_json_strlen strlen
data/direvent-5.2/grecs/src/json-lex.c:917:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( grecs_json_in )) != EOF && c != '\n'; ++n ) \
data/direvent-5.2/grecs/src/json-lex.c:2081:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return grecs_json__scan_bytes(grecs_json_str,strlen(grecs_json_str) );
data/direvent-5.2/grecs/src/jsonfmt.c:28:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(str);
data/direvent-5.2/grecs/src/lookup.c:254:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen (str);
data/direvent-5.2/grecs/src/mem.c:89:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *newstr = grecs_malloc(strlen(str) + 1);
data/direvent-5.2/grecs/src/meta1-gram.c:937: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).
#   define grecs_meta1_strlen strlen
data/direvent-5.2/grecs/src/meta1-gram.c:1628: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).
			  grecs_line_add(ep->data, strlen(ep->data));
data/direvent-5.2/grecs/src/meta1-lex.c:770:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( grecs_meta1_in )) != EOF && c != '\n'; ++n ) \
data/direvent-5.2/grecs/src/meta1-lex.c:1946: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).
	return grecs_meta1__scan_bytes(grecs_meta1_str,strlen(grecs_meta1_str) );
data/direvent-5.2/grecs/src/opthelp.c:150:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(opthelp[i].opt) == 2) {
data/direvent-5.2/grecs/src/opthelp.c:306:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = 5 + strlen(opt->arg)
data/direvent-5.2/grecs/src/opthelp.c:318: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).
				n += strlen(opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:323: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).
				n += strlen(opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:352: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).
			len = 3 + strlen(longopt)
data/direvent-5.2/grecs/src/opthelp.c:353: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).
				+ (opt->arg ? 1 + strlen(opt->arg)
data/direvent-5.2/grecs/src/opthelp.c:367: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).
			n += strlen(longopt);
data/direvent-5.2/grecs/src/opthelp.c:373: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).
					n += strlen(opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:377: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).
					n += strlen(opt->arg);
data/direvent-5.2/grecs/src/opthelp.c:386: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 len = strlen(pinfo->args_doc) + 1;
data/direvent-5.2/grecs/src/opthelp.c:403: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(ws.ws_wordv[i]) + 1;
data/direvent-5.2/grecs/src/opthelp.c:497: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).
		width = strlen(written_by);
data/direvent-5.2/grecs/src/opthelp.c:501:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(author);
data/direvent-5.2/grecs/src/opthelp.c:507: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 (delim);
data/direvent-5.2/grecs/src/path-parser.c:29:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int c = fgetc(infile);
data/direvent-5.2/grecs/src/path-parser.c:35:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int nc = fgetc(infile);
data/direvent-5.2/grecs/src/path-parser.c:38:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = fgetc(infile);
data/direvent-5.2/grecs/src/preproc.c:100: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).
		off += strlen(buf + off);
data/direvent-5.2/grecs/src/preproc.c:115: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/direvent-5.2/grecs/src/preproc.c:136: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).
	ls_size = strlen(linebufbase);
data/direvent-5.2/grecs/src/preproc.c:192: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).
			l = strlen(p);
data/direvent-5.2/grecs/src/preproc.c:205: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(linebuf);
data/direvent-5.2/grecs/src/preproc.c:300:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t size = strlen (dir) + 1 + dptr->namelen + 1;
data/direvent-5.2/grecs/src/preproc.c:306:3:  [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(dptr->buf, "/");
data/direvent-5.2/grecs/src/preproc.c:492: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).
	ctx->namelen = strlen(ctx->locus.beg.file);
data/direvent-5.2/grecs/src/preproc.c:554: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).
	fd.namelen = strlen(name);
data/direvent-5.2/grecs/src/preproc.c:604: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/direvent-5.2/grecs/src/sockaddr.c:63: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(addrstr);
data/direvent-5.2/grecs/src/sockaddr.c:275: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).
	else if (strlen(arg) > 5 && memcmp(arg, "unix:", 5) == 0) {
data/direvent-5.2/grecs/src/tree.c:389: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(string) >= sizeof(s_un.sun_path)) {
data/direvent-5.2/grecs/src/tree.c:409: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(string);
data/direvent-5.2/grecs/src/txtacc.c:133: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).
	grecs_txtacc_grow(acc, buf, strlen(buf));
data/direvent-5.2/grecs/tests/json.c:94:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, input, size);
data/direvent-5.2/grecs/tests/json.c:110: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).
		size = strlen(input);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:464: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).
    return strlen (p->v.word);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1052:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t elen = strlen (wsp->ws_env[i]);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1201: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).
      v = malloc (namelen + strlen(value) + 2);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1315: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).
				wsp->ws_paramv[i], strlen (wsp->ws_paramv[i]),
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1689:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  rc = _wsplt_subsplit (wsp, &ws, value, strlen (value),
data/direvent-5.2/grecs/wordsplit/wordsplit.c:1908:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  rc = _wsplt_subsplit (wsp, &ws, value, strlen (value),
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2044: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 (pw->pw_dir);
data/direvent-5.2/grecs/wordsplit/wordsplit.c:2752:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return wordsplit_len (command, command ? strlen (command) : 0, ws, flags);
data/direvent-5.2/grecs/wordsplit/wsp.c:562:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t s = strlen (argv[i]);
data/direvent-5.2/grecs/wordsplit/wsp.c:584:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t s = strlen (argv[i]);
data/direvent-5.2/grecs/wordsplit/wsp.c:619: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).
  *ret = malloc (sizeof (msg) + strlen (argv[0]));
data/direvent-5.2/grecs/wordsplit/wsp.c:700:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t len = strlen (ptr);
data/direvent-5.2/src/config.c:237:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(s);
data/direvent-5.2/src/direvent.c:95:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(fmt) + strlen(s) + 4;
data/direvent-5.2/src/direvent.c:95: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).
			size_t len = strlen(fmt) + strlen(s) + 4;
data/direvent-5.2/src/direvent.c:173:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(str);
data/direvent-5.2/src/direvent.c:185:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t dirlen = strlen(dir);
data/direvent-5.2/src/direvent.c:186:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t fillen = strlen(file);
data/direvent-5.2/src/environ.c:89: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).
		res = emalloc(namelen + 1 + strlen(a) + strlen(b) + 1);
data/direvent-5.2/src/environ.c:89:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		res = emalloc(namelen + 1 + strlen(a) + strlen(b) + 1);
data/direvent-5.2/src/environ.c:93: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(a);
data/direvent-5.2/src/environ.c:103: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(b);
data/direvent-5.2/src/ev_inotify.c:232:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rdbytes = read(ifd, buffer, sizeof(buffer));
data/direvent-5.2/src/fnpat.c:43: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).
	return strcspn(str, "[]*?") < strlen(str);
data/direvent-5.2/src/gettext.h:206: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/direvent-5.2/src/gettext.h:207:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgid_len = strlen (msgid) + 1;
data/direvent-5.2/src/gettext.h:252: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/direvent-5.2/src/gettext.h:253:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgid_len = strlen (msgid) + 1;
data/direvent-5.2/src/progman.c:345: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).
			int len = strlen(buf);

ANALYSIS SUMMARY:

Hits = 245
Lines analyzed = 41756 in approximately 1.18 seconds (35449 lines/second)
Physical Source Lines of Code (SLOC) = 29494
Hits@level = [0] 192 [1]  92 [2] 109 [3]   4 [4]  40 [5]   0
Hits@level+ = [0+] 437 [1+] 245 [2+] 153 [3+]  44 [4+]  40 [5+]   0
Hits/KSLOC@level+ = [0+] 14.8166 [1+] 8.30677 [2+] 5.1875 [3+] 1.49183 [4+] 1.35621 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.