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/xutils-dev-7.7+5/imake/mergelib.cpp
Examining data/xutils-dev-7.7+5/imake/imakemdep.h
Examining data/xutils-dev-7.7+5/imake/imake.c
Examining data/xutils-dev-7.7+5/imake/xmkmf.cpp
Examining data/xutils-dev-7.7+5/imake/mdepend.cpp
Examining data/xutils-dev-7.7+5/imake/revpath.c
Examining data/xutils-dev-7.7+5/lndir/lndir.c
Examining data/xutils-dev-7.7+5/makedepend/def.h
Examining data/xutils-dev-7.7+5/makedepend/pr.c
Examining data/xutils-dev-7.7+5/makedepend/imakemdep.h
Examining data/xutils-dev-7.7+5/makedepend/include.c
Examining data/xutils-dev-7.7+5/makedepend/main.c
Examining data/xutils-dev-7.7+5/makedepend/ifparser.c
Examining data/xutils-dev-7.7+5/makedepend/cppsetup.c
Examining data/xutils-dev-7.7+5/makedepend/ifparser.h
Examining data/xutils-dev-7.7+5/makedepend/tests/28045/foo.cpp
Examining data/xutils-dev-7.7+5/makedepend/parse.c

FINAL RESULTS:

data/xutils-dev-7.7+5/lndir/lndir.c:233:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if (readlink (dp->d_name, symbuf, sizeof(symbuf) - 1) >= 0) {
data/xutils-dev-7.7+5/lndir/lndir.c:252:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	symlen = readlink (dp->d_name, symbuf, sizeof(symbuf) - 1);
data/xutils-dev-7.7+5/lndir/lndir.c:261:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	    basesymlen = readlink(buf, basesym, sizeof(basesym) - 1);
data/xutils-dev-7.7+5/makedepend/main.c:795:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(makefile, st.st_mode);
data/xutils-dev-7.7+5/imake/imake.c:407:7:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		if (mktemp(tmpMakefileName) == NULL ||
data/xutils-dev-7.7+5/imake/imake.c:424:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(makeMacro, "MAKE=%s", program);
data/xutils-dev-7.7+5/imake/imake.c:426:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(makefileMacro, "MAKEFILE=%s", Imakefile);
data/xutils-dev-7.7+5/imake/imake.c:665:7:  [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(Imakefile, R_OK) < 0)
data/xutils-dev-7.7+5/imake/imake.c:668:7:  [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("Imakefile", R_OK) < 0) {
data/xutils-dev-7.7+5/imake/imake.c:669:8:  [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("imakefile", R_OK) < 0)
data/xutils-dev-7.7+5/imake/imake.c:689:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/xutils-dev-7.7+5/imake/imake.c:737: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(masterc, F_OK) == 0) {
data/xutils-dev-7.7+5/imake/imake.c:763: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(fname, R_OK) == 0) {
data/xutils-dev-7.7+5/imake/imake.c:765:11:  [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.
		return (fprintf(inFile, LocalDefineFmt, defsym, fname) < 0 ||
data/xutils-dev-7.7+5/imake/imake.c:766:4:  [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(inFile, IncludeFmt, defsym) < 0);
data/xutils-dev-7.7+5/imake/imake.c:806:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(cmd, argv);
data/xutils-dev-7.7+5/imake/imake.c:835: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(ptr, name->sysname);
data/xutils-dev-7.7+5/imake/imake.c:842: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(ptr, name->nodename);
data/xutils-dev-7.7+5/imake/imake.c:849: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(ptr, name->release);
data/xutils-dev-7.7+5/imake/imake.c:856: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(ptr, name->version);
data/xutils-dev-7.7+5/imake/imake.c:863: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(ptr, name->machine);
data/xutils-dev-7.7+5/imake/imake.c:878:10:  [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.
  (void) sscanf(buf, fmt + arg + 1, result);
data/xutils-dev-7.7+5/imake/imake.c:972: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(aout, tmpdir);
data/xutils-dev-7.7+5/imake/imake.c:995:7:  [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.
  if (snprintf (command , len, format, cc, aout) == len)
data/xutils-dev-7.7+5/imake/imake.c:998:8:  [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 (command, "w");
data/xutils-dev-7.7+5/imake/imake.c:1003:8:  [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 (aout, "r");
data/xutils-dev-7.7+5/imake/imake.c:1030:8:  [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(command, "r");
data/xutils-dev-7.7+5/imake/imake.c:1111: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 (cmd, CrossCompileDir);
data/xutils-dev-7.7+5/imake/imake.c:1113:7:  [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 (cmd,ld);
data/xutils-dev-7.7+5/imake/imake.c:1114:16:  [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.
      ldprog = popen (cmd, "r");
data/xutils-dev-7.7+5/imake/imake.c:1117:16:  [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.
      ldprog = popen (ld, "r");
data/xutils-dev-7.7+5/imake/imake.c:1155: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 (cmd, CrossCompileDir);
data/xutils-dev-7.7+5/imake/imake.c:1162:18:  [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.
      (objprog = popen(cmd, "r")) != NULL &&
data/xutils-dev-7.7+5/imake/imake.c:1202:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmdtorun, "%s/%s %s", path, cmd, vflag);
data/xutils-dev-7.7+5/imake/imake.c:1204:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmdtorun, "%s %s", cmd, vflag);
data/xutils-dev-7.7+5/imake/imake.c:1207:21:  [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.
      if ((ccproc = popen (cmdtorun, "r")) != NULL) {
data/xutils-dev-7.7+5/imake/imake.c:1368: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 (cmd, CrossCompileDir);
data/xutils-dev-7.7+5/imake/imake.c:1370:6:  [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 (cmd, cross_cc_name[i]);
data/xutils-dev-7.7+5/imake/imake.c:1382: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 (cmd, gcc_path[i]);
data/xutils-dev-7.7+5/imake/imake.c:1399: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(cmd,name);
data/xutils-dev-7.7+5/imake/imake.c:1403:18:  [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.
  if ((gccproc = popen (cmd, "r")) != NULL) {
data/xutils-dev-7.7+5/imake/imake.c:1461: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(name->release, e);
data/xutils-dev-7.7+5/imake/imake.c:1462: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(name->version, name->sysname);
data/xutils-dev-7.7+5/imake/imake.c:1464:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(name->version, e);
data/xutils-dev-7.7+5/imake/imake.c:1704:6:  [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(inFile, LocalDefineFmt, ImakeTmplSym, template) < 0 ||
data/xutils-dev-7.7+5/imake/imake.c:1705:6:  [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(inFile, IncludeFmt, ImakeTmplSym) < 0 ||
data/xutils-dev-7.7+5/imake/imake.c:1787:8:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
			if (mktemp(tmpImakefileName) == NULL ||
data/xutils-dev-7.7+5/imake/imake.c:2152: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(new, cp);
data/xutils-dev-7.7+5/lndir/lndir.c:80:5:  [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, args);
data/xutils-dev-7.7+5/lndir/lndir.c:102:5:  [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, args);
data/xutils-dev-7.7+5/lndir/lndir.c:127: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(s+1, s+2);
data/xutils-dev-7.7+5/lndir/lndir.c:164: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 (buf, fn);
data/xutils-dev-7.7+5/lndir/lndir.c:186: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, dp->d_name);
data/xutils-dev-7.7+5/lndir/lndir.c:286: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 (symbuf, buf);
data/xutils-dev-7.7+5/lndir/lndir.c:311: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 (end, &basesym[i]);
data/xutils-dev-7.7+5/makedepend/include.c:139: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(path, newpath);
data/xutils-dev-7.7+5/makedepend/include.c:272: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(path, include);
data/xutils-dev-7.7+5/makedepend/include.c:276: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(path + (p-file) + 1, include);
data/xutils-dev-7.7+5/makedepend/main.c:58:38:  [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 DBG_PRINT(file, fmt, args)   fprintf(file, fmt, args)
data/xutils-dev-7.7+5/makedepend/main.c:594:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf,"%s%s%s",DASH_INC_PRE,inc,DASH_INC_POST);
data/xutils-dev-7.7+5/makedepend/main.c:807:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/xutils-dev-7.7+5/makedepend/main.c:818:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/xutils-dev-7.7+5/makedepend/main.c:827:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/xutils-dev-7.7+5/makedepend/pr.c:84: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(buf+1, ip->i_file);
data/xutils-dev-7.7+5/imake/imake.c:523: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("IMAKEINCLUDE"))) {
data/xutils-dev-7.7+5/imake/imake.c:534: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("IMAKECPP")))
data/xutils-dev-7.7+5/imake/imake.c:536: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("IMAKEMAKE")))
data/xutils-dev-7.7+5/imake/imake.c:971:16:  [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((tmpdir = getenv("TMPDIR")) != NULL && strlen(tmpdir) < (4096-13))
data/xutils-dev-7.7+5/imake/imake.c:987:8:  [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.
  cc = getenv ("CC");
data/xutils-dev-7.7+5/imake/imake.c:1025:8:  [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.
  cc = getenv("CC");
data/xutils-dev-7.7+5/imake/imake.c:1459: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 ((e = getenv("OSREL")) != NULL &&
data/xutils-dev-7.7+5/imake/imake.c:309: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.
const char	*make_argv[ ARGUMENTS ] = {
data/xutils-dev-7.7+5/imake/imake.c:378: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	makeMacro[ BUFSIZ ];
data/xutils-dev-7.7+5/imake/imake.c:379: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	makefileMacro[ BUFSIZ ];
data/xutils-dev-7.7+5/imake/imake.c:399:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((tmpfd = fopen(tmpMakefile, "w+")) == NULL)
data/xutils-dev-7.7+5/imake/imake.c:408:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		    (tmpfd = fopen(tmpMakefileName, "w+")) == NULL) {
data/xutils-dev-7.7+5/imake/imake.c:412:8:  [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).
		fd = mkstemp(tmpMakefileName);
data/xutils-dev-7.7+5/imake/imake.c:444: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[ BUFSIZ ];
data/xutils-dev-7.7+5/imake/imake.c:500: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 argument[512];
data/xutils-dev-7.7+5/imake/imake.c:734: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 mkcbuf[1024];
data/xutils-dev-7.7+5/imake/imake.c:738: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).
		inFile = fopen(masterc, "r");
data/xutils-dev-7.7+5/imake/imake.c:816: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[SYS_NMLN * 5 + 1];
data/xutils-dev-7.7+5/imake/imake.c:960: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 aout[4096], *tmpdir;
data/xutils-dev-7.7+5/imake/imake.c:974:5:  [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(aout, "/tmp");
data/xutils-dev-7.7+5/imake/imake.c:975:3:  [2] (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 string.
  strcat(aout, "/imakeXXXXXX");
data/xutils-dev-7.7+5/imake/imake.c:981:18:  [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 ((tmpfd = mkstemp(aout)) == -1) {
data/xutils-dev-7.7+5/imake/imake.c:1023: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 command[1024], buf[1024];
data/xutils-dev-7.7+5/imake/imake.c:1110: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 cmd[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1147: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[10];
data/xutils-dev-7.7+5/imake/imake.c:1148: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 cmd[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1157:7:  [2] (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 string.
      strcat (cmd,"objformat");
data/xutils-dev-7.7+5/imake/imake.c:1159:7:  [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 (cmd, "objformat");
data/xutils-dev-7.7+5/imake/imake.c:1187: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[BUFSIZ];
data/xutils-dev-7.7+5/imake/imake.c:1188: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 cmdtorun[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1395: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[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1396: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 cmd[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1402:3:  [2] (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 string.
  strcat (cmd, " --print-libgcc-file-name");
data/xutils-dev-7.7+5/imake/imake.c:1406:13:  [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.
	  if (ptr) strcpy (ptr, "include");
data/xutils-dev-7.7+5/imake/imake.c:1432: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[SYS_NMLN * 5 + 1];
data/xutils-dev-7.7+5/imake/imake.c:1636: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 name[PATH_MAX];
data/xutils-dev-7.7+5/imake/imake.c:1696: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(masterc, "w");
data/xutils-dev-7.7+5/imake/imake.c:1744:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(inFile = fopen(imakefile, "r")))
data/xutils-dev-7.7+5/imake/imake.c:1788:19:  [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).
			    (outFile = fopen(tmpImakefileName, "w+")) == NULL) {
data/xutils-dev-7.7+5/imake/imake.c:1793:7:  [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).
			fd=mkstemp(tmpImakefileName);
data/xutils-dev-7.7+5/imake/imake.c:1919: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 varbuf[5];
data/xutils-dev-7.7+5/imake/imake.c:1926: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.
			    sprintf(varbuf, "%0.4d", xvariable);
data/xutils-dev-7.7+5/imake/imake.c:1936: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.
			    sprintf(varbuf, "%0.4d", xvariables[i]);
data/xutils-dev-7.7+5/imake/imakemdep.h:354: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.
const char *cpp_argv[ARGUMENTS] = {
data/xutils-dev-7.7+5/lndir/lndir.c:146: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[MAXPATHLEN + 1], *p;
data/xutils-dev-7.7+5/lndir/lndir.c:147: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 symbuf[MAXPATHLEN + 1];
data/xutils-dev-7.7+5/lndir/lndir.c:148: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 basesym[MAXPATHLEN + 1];
data/xutils-dev-7.7+5/lndir/lndir.c:161: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 (buf, "../");
data/xutils-dev-7.7+5/makedepend/cppsetup.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[300];
data/xutils-dev-7.7+5/makedepend/cppsetup.c:68: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 tmpbuf[MAXNAMELEN + 1];
data/xutils-dev-7.7+5/makedepend/def.h:183: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.
extern const char        *includedirs[ ];
data/xutils-dev-7.7+5/makedepend/def.h:186: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.
extern char              *notdotdot[ ];
data/xutils-dev-7.7+5/makedepend/include.c:51: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[ BUFSIZ ], **pp;
data/xutils-dev-7.7+5/makedepend/include.c:77: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		*components[ MAXFILES ],
data/xutils-dev-7.7+5/makedepend/include.c:228: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		path[ BUFSIZ ];
data/xutils-dev-7.7+5/makedepend/main.c:96: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	*filelist[ MAXFILES ];
data/xutils-dev-7.7+5/makedepend/main.c:97: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.
const char	*includedirs[ MAXDIRS + 1 ],
data/xutils-dev-7.7+5/makedepend/main.c:99:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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		*notdotdot[ MAXDIRS ];
data/xutils-dev-7.7+5/makedepend/main.c:101: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	*cmdinc_list[ 2 * MAXINCFILES ];
data/xutils-dev-7.7+5/makedepend/main.c:165: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 osrevdef[SYS_NMLN + SYS_NMLN + 5];
data/xutils-dev-7.7+5/makedepend/main.c:187: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 ((afd = open(argv[1]+1, O_RDONLY)) < 0)
data/xutils-dev-7.7+5/makedepend/main.c:299:13:  [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).
				width = atoi(argv[0]);
data/xutils-dev-7.7+5/makedepend/main.c:301:13:  [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).
				width = atoi(argv[0]+2);
data/xutils-dev-7.7+5/makedepend/main.c:330:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				_debugmask = atoi(argv[0]+2);
data/xutils-dev-7.7+5/makedepend/main.c:524: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(file, O_RDONLY)) < 0) {
data/xutils-dev-7.7+5/makedepend/main.c:734: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	backup[ BUFSIZ ],
data/xutils-dev-7.7+5/makedepend/main.c:769:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fdin = fopen(backup, "r")) == NULL) {
data/xutils-dev-7.7+5/makedepend/pr.c:72: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[ BUFSIZ ];
data/xutils-dev-7.7+5/imake/imake.c:385: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).
	lenCrossCompileDir = strlen(CrossCompileDir);
data/xutils-dev-7.7+5/imake/imake.c:836: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).
	  ptr += strlen(ptr);
data/xutils-dev-7.7+5/imake/imake.c:843: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).
	  ptr += strlen(ptr);
data/xutils-dev-7.7+5/imake/imake.c:850: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).
	  ptr += strlen(ptr);
data/xutils-dev-7.7+5/imake/imake.c:857: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).
	  ptr += strlen(ptr);
data/xutils-dev-7.7+5/imake/imake.c:864: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).
	  ptr += strlen(ptr);
data/xutils-dev-7.7+5/imake/imake.c:873: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(buf) >= sizeof(buf))
data/xutils-dev-7.7+5/imake/imake.c:971:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((tmpdir = getenv("TMPDIR")) != NULL && strlen(tmpdir) < (4096-13))
data/xutils-dev-7.7+5/imake/imake.c:990: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 (aout) + strlen (format) + strlen (cc);
data/xutils-dev-7.7+5/imake/imake.c:990:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (aout) + strlen (format) + strlen (cc);
data/xutils-dev-7.7+5/imake/imake.c:990: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).
  len = strlen (aout) + strlen (format) + strlen (cc);
data/xutils-dev-7.7+5/imake/imake.c:1112:7:  [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 (cmd,"/");
data/xutils-dev-7.7+5/imake/imake.c:1121:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (ldprog);
data/xutils-dev-7.7+5/imake/imake.c:1156:7:  [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 (cmd, "/");
data/xutils-dev-7.7+5/imake/imake.c:1194: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).
  int len = strlen(cmd) + sizeof(vflag);
data/xutils-dev-7.7+5/imake/imake.c:1197: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 += strlen(path) + 1;
data/xutils-dev-7.7+5/imake/imake.c:1369: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 (cmd, "/");
data/xutils-dev-7.7+5/imake/imake.c:1446:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(uts_name.sysname,cross_uts_sysname,SYS_NMLN);
data/xutils-dev-7.7+5/imake/imake.c:1447:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(uts_name.release,cross_uts_release,SYS_NMLN);
data/xutils-dev-7.7+5/imake/imake.c:1448:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(uts_name.version,cross_uts_version,SYS_NMLN);
data/xutils-dev-7.7+5/imake/imake.c:1449:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(uts_name.machine,cross_uts_machine,SYS_NMLN);
data/xutils-dev-7.7+5/imake/imake.c:1460:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     strlen(name->sysname) + strlen(e) + 1 < SYS_NMLN) {
data/xutils-dev-7.7+5/imake/imake.c:1460: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).
	     strlen(name->sysname) + strlen(e) + 1 < SYS_NMLN) {
data/xutils-dev-7.7+5/imake/imake.c:1463:4:  [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(name->version, " ");
data/xutils-dev-7.7+5/imake/imake.c:1852: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).
			writetmpfile(tmpfd, input, strlen(input), tmpfname);
data/xutils-dev-7.7+5/imake/imake.c:1909: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).
		    memmove(pend+1, pend+5, strlen(pend+5)+1);
data/xutils-dev-7.7+5/imake/imake.c:1927:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			    strncpy(pend+4, varbuf, 4);
data/xutils-dev-7.7+5/imake/imake.c:1937:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			    strncpy(pend+4, varbuf, 4);
data/xutils-dev-7.7+5/imake/imake.c:2150: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).
	char *new = Emalloc(strlen(cp) + 1);
data/xutils-dev-7.7+5/imake/imake.c:2171: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(cpp) + strlen(CrossCompileDir) + 2;
data/xutils-dev-7.7+5/imake/imake.c:2171:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(cpp) + strlen(CrossCompileDir) + 2;
data/xutils-dev-7.7+5/lndir/lndir.c:171: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).
    p = buf + strlen (buf);
data/xutils-dev-7.7+5/lndir/lndir.c:178: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).
	if (dp->d_name[strlen(dp->d_name) - 1] == '~')
data/xutils-dev-7.7+5/makedepend/cppsetup.c:49: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).
    prefixlen = strlen(prefix);
data/xutils-dev-7.7+5/makedepend/cppsetup.c:74:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpbuf, var, len);
data/xutils-dev-7.7+5/makedepend/cppsetup.c:104: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).
	s = lookup_variable (ip, var, strlen(var));
data/xutils-dev-7.7+5/makedepend/include.c:186: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).
			    i = strlen(newfile->i_file);
data/xutils-dev-7.7+5/makedepend/include.c:268: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).
			for (p=file+strlen(file); p>file; p--)
data/xutils-dev-7.7+5/makedepend/include.c:274:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(path, file, (p-file) + 1);
data/xutils-dev-7.7+5/makedepend/main.c:191:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if ((ast.st_size = read(afd, args, ast.st_size)) < 0)
data/xutils-dev-7.7+5/makedepend/main.c:221: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 = args; argc < nargc; p += strlen(p) + 1)
data/xutils-dev-7.7+5/makedepend/main.c:377:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				buf = malloc(strlen(DASH_INC_PRE) +
data/xutils-dev-7.7+5/makedepend/main.c:378: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).
					     strlen(argv[0]) +
data/xutils-dev-7.7+5/makedepend/main.c:379: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).
					     strlen(DASH_INC_POST) + 1);
data/xutils-dev-7.7+5/makedepend/main.c:534:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((st.st_size = read(fd, content->f_base, st.st_size)) < 0)
data/xutils-dev-7.7+5/makedepend/main.c:709: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(p=file+strlen(file); p>file && *p != '.'; p--) ;
data/xutils-dev-7.7+5/makedepend/main.c:777: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(line);
data/xutils-dev-7.7+5/makedepend/parse.c:157: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).
	q = p + strlen(p);
data/xutils-dev-7.7+5/makedepend/parse.c:232: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).
		memmove (line, p, strlen(p) + 1);
data/xutils-dev-7.7+5/makedepend/pr.c:75: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(ip->i_file)+1;
data/xutils-dev-7.7+5/makedepend/pr.c:80: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).
		len = current_len = strlen(buf);

ANALYSIS SUMMARY:

Hits = 183
Lines analyzed = 7927 in approximately 0.24 seconds (33676 lines/second)
Physical Source Lines of Code (SLOC) = 6348
Hits@level = [0] 105 [1]  51 [2]  61 [3]   7 [4]  60 [5]   4
Hits@level+ = [0+] 288 [1+] 183 [2+] 132 [3+]  71 [4+]  64 [5+]   4
Hits/KSLOC@level+ = [0+] 45.3686 [1+] 28.828 [2+] 20.794 [3+] 11.1846 [4+] 10.0819 [5+] 0.63012
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.