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/checkinstall-1.6.2+git20170426.d24a630/installwatch/libcfiletest.c
Examining data/checkinstall-1.6.2+git20170426.d24a630/installwatch/libctest.c
Examining data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c
Examining data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c

FINAL RESULTS:

data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2347:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
int chmod(const char *path, mode_t mode) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2386:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
int chown(const char *path, uid_t owner, gid_t group) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2428:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
   return chown(path, owner, group);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2942:9:  [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.
ssize_t readlink(const char *path,char *buf,size_t bufsiz) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3918:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		 return chmod(path, mode);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3942:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
 	result=chmod(instw.path,mode);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3968:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		    return chown(path, owner, group);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:4010:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
 	    result=chown(instw.path, owner, group);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:4284: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.
		 return readlink(path, buf, bufsiz);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:4308:10:  [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.
 	result=readlink(instw.path, buf, bufsiz);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:80: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(TESTFILE, 0600);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:89:2:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	chown(TESTFILE, geteuid(), getegid());
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:316:24:  [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/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:322:24:  [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, 2, 3)))
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:441:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	count=vsnprintf(buffer,BUFSIZE,format,ap);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:567: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(resolved_path,path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:876: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(wpath,truepath);	
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:878: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(wpath,went->d_name);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:937: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((*list)->string,prefix);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:944: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(nprefix,prefix);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:945:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(nprefix,pnp);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:946: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(nsuffix,pns);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:958: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(nprefix,prefix);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:962: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(nwork,lnkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:963: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(nwork,nsuffix);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:964: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(nsuffix,nwork);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:970: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(nwork,lnkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:971: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(nwork,nsuffix);	
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:972: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(nsuffix,nwork);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:991: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(pnp,suffix);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1002: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(pns,p);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1216: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(__instw.root,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1239: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(__instw.backup,__instw.root);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1240: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(__instw.backup,_BACKUP);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1269: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(__instw.transl,__instw.root);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1270: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(__instw.transl,_TRANSL);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1283: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(__instw.meta,__instw.root);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1284: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(__instw.meta,_META);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1291: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(__instw.mtransl,__instw.meta);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1292: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(__instw.mtransl,_MTRANSL);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1299: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(__instw.mdirls,__instw.meta);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1300: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(__instw.mdirls,_MDIRLS);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1332: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((*ppnext)->string,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1338: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(exclude,pexclude);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1350: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((*ppnext)->string,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1520: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(mtranslpath,instw->mtransl);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1521: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(mtranslpath,pthis->string);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1522: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(reslvpath,pthis->string);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1526: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(mtransldir,mtranslpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1582: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(instw->truepath,instw->path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1585: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(instw->truepath,instw->path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1609: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(instw->reslvpath,instw->truepath+strlen(instw->transl));
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1611: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(instw->reslvpath,instw->truepath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1621: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(instw->path,instw->reslvpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1701: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(newpath + l + 1, relpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1839: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(basepart,instw->reslvpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1840: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(dirpart,instw->reslvpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1867: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(linkpath,pdir);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1869: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(linkpath,wpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1871: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(linkpath,wpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1929: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(spath,instw->translpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1931: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(spath,went->d_name);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1935: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(dpath,instw->mdirlspath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1937: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(dpath,went->d_name);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2006: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(spath,instw->reslvpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2008: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(spath,went->d_name);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2023: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(dpath,instw->mdirlspath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2025: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(dpath,went->d_name);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2124: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(instw->mdirlspath,instw->path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2133: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(instw->mdirlspath,instw->path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2141: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(instw->mdirlspath,instw->translpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2150: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(instw->mdirlspath,instw->mdirls);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2151: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(instw->mdirlspath,wdirname);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2228: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(backup_path,__instw.backup );
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2230: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(backup_path, path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2245: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 (backup_path,__instw.backup);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2247:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (backup_path, path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2262: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 (backup_path,__instw.backup);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2263:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (backup_path, path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2642: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(result,wptr);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2647:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(buffer,wptr);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3381:5:  [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.
int access (const char *pathname, int type) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:235:3:  [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.
		printf(TESTFILE " already exists. Please remove it and run %s again\n", argv[0]);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:239:3:  [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.
		printf(TESTFILE2 " already exists. Please remove it and run %s again\n", argv[0]);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:512:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	logname=getenv("INSTW_LOGFILE");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:530:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	logname=getenv("INSTW_DBGFILE");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:557:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if(!realpath(path,resolved_path)) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1173:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if((pdbglvl=getenv("INSTW_DBGLVL"))) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1210: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((proot=getenv("INSTW_ROOTPATH"))) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1211:3:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		realpath(proot,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1227:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if((pbackup=getenv("INSTW_BACKUP"))) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1257:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if((ptransl=getenv("INSTW_TRANSL"))) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1330:3:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		realpath(__instw.root,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1336:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if((pexclude=getenv("INSTW_EXCLUDE"))) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1348:4:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			realpath(pexclude,wrkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2432:5:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
int chroot(const char *path) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2979:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
char *realpath(const char *file_name,char *resolved_name) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:94:2:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	chroot("/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:244: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[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:246: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 reslvpath[PATH_MAX+1];  
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:248: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 truepath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:250: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 translpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:254: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 mtranslpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:256: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 mdirlspath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:429: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[BUFSIZE];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:444:3:  [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(&(buffer[BUFSIZE - 5]), "...\n");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:662: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 checkdir[BUFSIZ];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:710: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[BUFSIZ];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:712: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 translpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:719: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 linkpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:853: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 wpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:915: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 nprefix[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:916: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 nwork[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:917: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 nsuffix[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:918: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 lnkpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:925: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 pnp[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:926: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 pns[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1159: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 wrkpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1174: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).
		__instw.dbglvl=atoi(pdbglvl);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1493: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 mtransldir[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1494: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 mtranslpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1495: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 reslvpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1684: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 proc_path[PROC_PATH_LEN];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1810: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 dirpart[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1811: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 basepart[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1816: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 wpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1818: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 linkpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1907: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 spath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1908: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 dpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1909: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 lpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2112: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 wdirname[NAME_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2145:4:  [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(wdirname,"/%d_%lld_%lld",
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2175: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 checkdir[BUFSIZ];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2176: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_path[BUFSIZ];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2434: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 canonic[MAXPATHLEN];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2528: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).
FILE *fopen(const char *pathname, const char *mode) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2602: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 wpath[PATH_MAX+1];
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2825:5:  [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 open(const char *pathname, int flags, ...) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3877:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                 return open(path, flags, mode);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:3900:10:  [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).
 	result=open(instw.path,flags,mode);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:126: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).
        fd = fopen(TESTFILE,"w");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/test-installwatch.c:167:7:  [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(TESTFILE, O_CREAT, O_RDWR, 0700);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:449: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).
                count = strlen(buffer);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:564: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(resolved_path, "/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:565:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(resolved_path, path, MAXPATHLEN - 1 - strlen(resolved_path));
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:565:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat(resolved_path, path, MAXPATHLEN - 1 - strlen(resolved_path));
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:611: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(path);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:729: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).
		if((truesz=strlen(truepath)+strlen(translpath))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:729: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).
		if((truesz=strlen(truepath)+strlen(translpath))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:734:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(translpath,translroot,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:735:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(translpath,truepath,PATH_MAX-truesz);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:756:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while((bytes=read(truefd,buffer,BUFSIZ))>0)
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:877: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(wpath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:936:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(*list)->string=malloc(strlen(prefix)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:959: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(lnkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:961:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(nwork,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:967: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(lnkpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:969:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(nprefix,"");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:992:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(pns,"");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:997:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(pns,"");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1212: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).
		if(wrkpath[strlen(wrkpath)-1]=='/')
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1213: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).
			wrkpath[strlen(wrkpath)-1]='\0';
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1214: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).
		__instw.root=malloc(strlen(wrkpath)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1232: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(__instw.root)+strlen(_BACKUP))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1232:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if((strlen(__instw.root)+strlen(_BACKUP))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1237:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.backup=malloc(strlen(__instw.root)+strlen(_BACKUP)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1237:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.backup=malloc(strlen(__instw.root)+strlen(_BACKUP)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1262: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(__instw.root)+strlen(_TRANSL))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1262:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if((strlen(__instw.root)+strlen(_TRANSL))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1267:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.transl=malloc(strlen(__instw.root)+strlen(_TRANSL)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1267:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.transl=malloc(strlen(__instw.root)+strlen(_TRANSL)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1275: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(__instw.root)+strlen(_META))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1275:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if((strlen(__instw.root)+strlen(_META))>PATH_MAX) {
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1281: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).
				__instw.meta=malloc(strlen(__instw.root)+strlen(_META)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1281:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.meta=malloc(strlen(__instw.root)+strlen(_META)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1289:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.mtransl=malloc(strlen(__instw.meta)+strlen(_MTRANSL)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1289: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).
				__instw.mtransl=malloc(strlen(__instw.meta)+strlen(_MTRANSL)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1297:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.mdirls=malloc(strlen(__instw.meta)+strlen(_MDIRLS)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1297:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				__instw.mdirls=malloc(strlen(__instw.meta)+strlen(_MDIRLS)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1331:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(*ppnext)->string=malloc(strlen(wrkpath)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1337: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).
		exclude=malloc(strlen(pexclude)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1347: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(pexclude)>PATH_MAX) return -1;
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1349: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).
			(*ppnext)->string=malloc(strlen(wrkpath)+1);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1527: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).
			mesz=strlen(instw->mtransl);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1574:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(instw->path,path,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1579: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).
		if(instw->truepath[strlen(instw->truepath)-1]!='/'){
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1580: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(instw->truepath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1587: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).
	relen=strlen(instw->truepath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1599:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(instw->reslvpath,instw->truepath,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1600:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(instw->translpath,instw->truepath,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1609: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).
		strcpy(instw->reslvpath,instw->truepath+strlen(instw->transl));
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1628:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(instw->translpath,instw->truepath,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1632:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(instw->translpath,instw->transl,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1633: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).
		trlen=strlen(instw->translpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1638:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(instw->translpath,instw->reslvpath,PATH_MAX-trlen);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1643:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(instw->mtranslpath,instw->mtransl,PATH_MAX);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1645: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).
	melen=strlen(instw->mtranslpath);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1650:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(instw->mtranslpath,instw->reslvpath,PATH_MAX-trlen);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1696:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(!(newpath = malloc(s.st_size+strlen(relpath)+2)))
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1868:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(linkpath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1930: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(spath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:1936: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(dpath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2007: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(spath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2024: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(dpath,"/");
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2229:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(backup_path, "/no-backup", 11);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2246:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat (backup_path, "/no-backup", 11);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2274: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).
	blen = strlen (__instw.backup);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2626: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).
			wptr=wpath+strlen(__instw.transl);
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2627: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).
			wsize=strlen(wptr)+1;
data/checkinstall-1.6.2+git20170426.d24a630/installwatch/installwatch.c:2630: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).
			wsize=strlen(wptr)+1;

ANALYSIS SUMMARY:

Hits = 210
Lines analyzed = 4828 in approximately 0.13 seconds (37675 lines/second)
Physical Source Lines of Code (SLOC) = 3214
Hits@level = [0]  18 [1]  68 [2]  44 [3]  14 [4]  72 [5]  12
Hits@level+ = [0+] 228 [1+] 210 [2+] 142 [3+]  98 [4+]  84 [5+]  12
Hits/KSLOC@level+ = [0+] 70.9396 [1+] 65.3391 [2+] 44.1817 [3+] 30.4916 [4+] 26.1357 [5+] 3.73367
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.