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/smartlist-3.15/src/gethome.c
Examining data/smartlist-3.15/src/multigram.c
Examining data/smartlist-3.15/src/hsort.c
Examining data/smartlist-3.15/src/hsort.h
Examining data/smartlist-3.15/src/mailfold.c
Examining data/smartlist-3.15/src/acommon.c
Examining data/smartlist-3.15/src/exopen.c
Examining data/smartlist-3.15/src/exopen.h
Examining data/smartlist-3.15/src/authenticate.h
Examining data/smartlist-3.15/src/acommon.h
Examining data/smartlist-3.15/src/cstdio.h
Examining data/smartlist-3.15/src/common.c
Examining data/smartlist-3.15/src/goodies.c
Examining data/smartlist-3.15/src/common.h
Examining data/smartlist-3.15/src/header.h
Examining data/smartlist-3.15/src/ecommon.c
Examining data/smartlist-3.15/src/ecommon.h
Examining data/smartlist-3.15/src/fields.h
Examining data/smartlist-3.15/src/formail.c
Examining data/smartlist-3.15/src/formisc.h
Examining data/smartlist-3.15/src/formail.h
Examining data/smartlist-3.15/src/formisc.c
Examining data/smartlist-3.15/src/robust.h
Examining data/smartlist-3.15/src/goodies.h
Examining data/smartlist-3.15/src/robust.c
Examining data/smartlist-3.15/src/includes.h
Examining data/smartlist-3.15/src/cstdio.c
Examining data/smartlist-3.15/src/foldinfo.c
Examining data/smartlist-3.15/src/fields.c
Examining data/smartlist-3.15/src/lockfile.c
Examining data/smartlist-3.15/src/locking.c
Examining data/smartlist-3.15/src/authenticate.c
Examining data/smartlist-3.15/src/lastdirsep.c
Examining data/smartlist-3.15/src/lastdirsep.h
Examining data/smartlist-3.15/src/mailfold.h
Examining data/smartlist-3.15/src/manconf.c
Examining data/smartlist-3.15/src/locking.h
Examining data/smartlist-3.15/src/mcommon.h
Examining data/smartlist-3.15/src/procmail.h
Examining data/smartlist-3.15/src/misc.h
Examining data/smartlist-3.15/src/pipes.c
Examining data/smartlist-3.15/src/regexp.c
Examining data/smartlist-3.15/src/sublib.c
Examining data/smartlist-3.15/src/setid.c
Examining data/smartlist-3.15/src/misc.c
Examining data/smartlist-3.15/src/sublib.h
Examining data/smartlist-3.15/src/mcommon.c
Examining data/smartlist-3.15/src/network.h
Examining data/smartlist-3.15/src/pipes.h
Examining data/smartlist-3.15/src/regexp.h
Examining data/smartlist-3.15/src/shell.h
Examining data/smartlist-3.15/src/procmail.c
Examining data/smartlist-3.15/src/recommend.c
Examining data/smartlist-3.15/src/foldinfo.h
Examining data/smartlist-3.15/patchlevel.h
Examining data/smartlist-3.15/config.h

FINAL RESULTS:

data/smartlist-3.15/src/exopen.c:87:3:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	 chown(full,uid,sgid))
data/smartlist-3.15/src/foldinfo.c:81:23:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	     !stbuf.st_uid&&!chown(dir,uid,sgid))))  /* or be safely fixable */
data/smartlist-3.15/src/foldinfo.c:273:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	      chmod(buf,stbuf.st_mode&=~cumask);
data/smartlist-3.15/src/mailfold.c:224:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	   chmod(boxname,mode|UPDATE_MASK);
data/smartlist-3.15/src/mailfold.c:298:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
     chmod(buf,mode|UPDATE_MASK);
data/smartlist-3.15/src/mailfold.c:312:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		    chmod(buf,mode|UPDATE_MASK);
data/smartlist-3.15/src/procmail.c:439:4:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			chown(buf2,ROOT_uid,stbuf.st_gid)||
data/smartlist-3.15/src/procmail.c:441:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod(buf2,S_IRWXU)||		   /* to no one else */
data/smartlist-3.15/src/acommon.c:32: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(name,names.nodename);
data/smartlist-3.15/src/authenticate.c:111:22:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
  return !strcmp(rpw,crypt(pw,rpw));		    /* compare the passwords */
data/smartlist-3.15/src/authenticate.c:159: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(pass->mbox,pass->pw->pw_dir);
data/smartlist-3.15/src/authenticate.c:160: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(pass->mbox+i,mailfile);
data/smartlist-3.15/src/authenticate.c:166: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(pass->mbox,mailspooldir);
data/smartlist-3.15/src/authenticate.c:174: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,pass->pw->pw_name);
data/smartlist-3.15/src/authenticate.c:176: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(p,MAILSPOOLSUFFIX);
data/smartlist-3.15/src/common.c:26:27:  [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.
  signal(SIGPIPE,SIG_DFL);execvp(*argv,(char*const*)argv);
data/smartlist-3.15/src/common.c:30:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execv(*newargv,newargv);free(newargv);nlog("Failed to execute");
data/smartlist-3.15/src/cstdio.c:122:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      { strcpy(buf2,md);*(md=buf2+len)= *dirsep;strcpy(++md,name);
data/smartlist-3.15/src/cstdio.c:122:49:  [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(buf2,md);*(md=buf2+len)= *dirsep;strcpy(++md,name);
data/smartlist-3.15/src/foldinfo.c:55:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  p=strchr(strcpy(strcpy(buf2+i,bogusprefix)+STRLEN(bogusprefix),
data/smartlist-3.15/src/foldinfo.c:55:19:  [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).
  p=strchr(strcpy(strcpy(buf2+i,bogusprefix)+STRLEN(bogusprefix),
data/smartlist-3.15/src/foldinfo.c:63:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
   { syslog(LOG_ALERT,renfbogus,name,buf2);		 /* danger!  danger! */
data/smartlist-3.15/src/foldinfo.c:66:3:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
  syslog(LOG_CRIT,renbogus,name,buf2);
data/smartlist-3.15/src/foldinfo.c:103: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(chp,maildirnew),mode=trymkdir(buffer,paranoid,i),S_ISDIR(mode))&&
data/smartlist-3.15/src/foldinfo.c:104: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(chp,maildircur),mode=trymkdir(buffer,paranoid,i),S_ISDIR(mode))&&
data/smartlist-3.15/src/foldinfo.c:105: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(chp,maildirtmp),mode=trymkdir(buffer,paranoid,i),S_ISDIR(mode));
data/smartlist-3.15/src/foldinfo.c:176: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,chp);
data/smartlist-3.15/src/foldinfo.c:272:8:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	      syslog(LOG_NOTICE,slogstr,enfperm,buf);setids();
data/smartlist-3.15/src/foldinfo.c:296: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(chp=strchr(buf,'\0'),lockext);
data/smartlist-3.15/src/formail.c:261:8:  [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(chp,savetmp);chp=tmp;	     /* attach the user part */
data/smartlist-3.15/src/formail.c:295:29:  [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).
pnewname:  lastm=nowm;saddr=strcpy(malloc(strlen(saddr)+1),saddr);
data/smartlist-3.15/src/formail.c:716:56:  [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).
	      *(p=ultoan(h2,p+1))='.';*(p=ultoan(h1,p+1))='@';strcpy(p+1,name);
data/smartlist-3.15/src/goodies.c:116:8:  [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(startb,p),sh=1;
data/smartlist-3.15/src/includes.h:311:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define syslog				(void)
data/smartlist-3.15/src/lockfile.c:137:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		       strcat(strcpy(ma,p),lockext);
data/smartlist-3.15/src/lockfile.c:137:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		       strcat(strcpy(ma,p),lockext);
data/smartlist-3.15/src/locking.c:112: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(strcpy(lckfile=malloc(len+strlen(lockext)+1),buf2)+len,lockext);
data/smartlist-3.15/src/locking.c:112:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(strcpy(lckfile=malloc(len+strlen(lockext)+1),buf2)+len,lockext);
data/smartlist-3.15/src/mailfold.c:172:41:  [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).
     ultoan((unsigned long)stbuf.st_ino,strcpy(chp,msgprefix)+mpl);
data/smartlist-3.15/src/mailfold.c:186:13:  [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).
	p[len]=' ';strcpy(p+len+1,buf);retbStdout(p);
data/smartlist-3.15/src/mailfold.c:207:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(buf,boxname);		 /* boxname can be found back in buf */
data/smartlist-3.15/src/mailfold.c:226: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(chp,lockext);
data/smartlist-3.15/src/mailfold.c:256: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(buf2,buf);
data/smartlist-3.15/src/mailfold.c:263: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(chp2,maildirnew);
data/smartlist-3.15/src/mailfold.c:266: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(chp2,chp);
data/smartlist-3.15/src/mailfold.c:281: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(buf2,buf);
data/smartlist-3.15/src/mailfold.c:287:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	 { strcpy(buf,buf2);
data/smartlist-3.15/src/mailfold.c:293: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(buf2,buf);
data/smartlist-3.15/src/mailfold.c:302:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      { strcpy(buf,boxname);
data/smartlist-3.15/src/manconf.c:78:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   { sprintf(filebuf,"%s.%04d",*gargv,filecount++);freopen(filebuf,"w",stdout);
data/smartlist-3.15/src/misc.c:336:18:  [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).
  didchd=1;*(chp=strcpy(buf2,maildir)+STRLEN(maildir))='=';
data/smartlist-3.15/src/misc.c:337: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(++chp,newdir);sputenv(buf2);
data/smartlist-3.15/src/misc.c:367: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(strcat(strcpy((char*)(sgetcp=buf2),name),"="),contents);
data/smartlist-3.15/src/misc.c:367:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
{ strcat(strcat(strcpy((char*)(sgetcp=buf2),name),"="),contents);
data/smartlist-3.15/src/misc.c:374:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     strcpy(buf,p);			 /* copy literally, shell will parse */
data/smartlist-3.15/src/misc.c:382: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(buf,p),sh=1;		   /* oops, overflow or `test' found */
data/smartlist-3.15/src/misc.c:396:10:  [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).
{ return strcat(strcpy(buf,a),b);
data/smartlist-3.15/src/misc.c:396:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
{ return strcat(strcpy(buf,a),b);
data/smartlist-3.15/src/misc.c:420: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(chp=malloc(STRLEN(lastfolder)+1+strlen(folder)+1),lastfolder);
data/smartlist-3.15/src/misc.c:421:34:  [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).
     chp[STRLEN(lastfolder)]='=';strcpy(chp+STRLEN(lastfolder)+1,folder);
data/smartlist-3.15/src/misc.c:470:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
     *(chp=strcpy(buf,slinebuf)+STRLEN(slinebuf))='=';
data/smartlist-3.15/src/misc.c:711:19:  [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).
	 for(chp=buf2+1;;strcpy(buf2,buf))
data/smartlist-3.15/src/misc.c:831: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(buf2,skpspace(buf));
data/smartlist-3.15/src/misc.c:834:13:  [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).
copyrest:	  strcpy(buf,chp2);
data/smartlist-3.15/src/misc.c:848: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(buf2,buf);
data/smartlist-3.15/src/misc.c:857:28:  [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).
		  skipped(skpspace(chp));strcpy(buf2,buf);
data/smartlist-3.15/src/multigram.c:141:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
{ return strcpy(malloc(strlen(p)+1),p);
data/smartlist-3.15/src/multigram.c:233: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(chp=malloc((i=strlen(first))+strlen(last)+1),first);
data/smartlist-3.15/src/multigram.c:234: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(chp+i,last);
data/smartlist-3.15/src/multigram.c:408:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(pmexec[0],(char*const*)pmexec);nlog("Couldn't exec");
data/smartlist-3.15/src/multigram.c:478:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf((char*)(mailfile=lmailfile),tmpmailfile,(long)getpid());
data/smartlist-3.15/src/multigram.c:627:6:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			  execv(nargv[1],nargv+1);execv(nargv[0],nargv);
data/smartlist-3.15/src/multigram.c:627:30:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			  execv(nargv[1],nargv+1);execv(nargv[0],nargv);
data/smartlist-3.15/src/multigram.c:843:21:  [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).
	      chp[len]='@';strcpy(chp+len+1,ldomain);len+=lldomain;
data/smartlist-3.15/src/pipes.c:80:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
   { syslog(LOG_ERR,slogstr,"Attempt to execute",newname);
data/smartlist-3.15/src/pipes.c:328:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      { strcpy(p=buf2,exitcode);*(p+=STRLEN(exitcode))='=';
data/smartlist-3.15/src/procmail.c:253:23:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	 { writeerr(devnull);syslog(LOG_EMERG,slogstr,errwwriting,devnull);
data/smartlist-3.15/src/procmail.c:288:4:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		 syslog(LOG_ERR,slogstr,attemptst,fwhom);fromwhom=0;
data/smartlist-3.15/src/procmail.c:298:23:  [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).
		 t=time((time_t*)0);strcat(strcpy(buf2,"  "),ctime(&t));
data/smartlist-3.15/src/procmail.c:327:10:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		       syslog(LOG_ERR,slogstr,attemptst,fwhom);
data/smartlist-3.15/src/procmail.c:352:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		       strcat(strcpy(themail,From_),fwhom);	/* From user */
data/smartlist-3.15/src/procmail.c:352:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		       strcat(strcpy(themail,From_),fwhom);	/* From user */
data/smartlist-3.15/src/procmail.c:357: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(rstart-tstamp,buf2);
data/smartlist-3.15/src/procmail.c:359: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(strcat(strcpy(themail,From_),fwhom),buf2);
data/smartlist-3.15/src/procmail.c:359:13:  [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(strcat(strcpy(themail,From_),fwhom),buf2);
data/smartlist-3.15/src/procmail.c:359:20:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			  strcat(strcat(strcpy(themail,From_),fwhom),buf2);
data/smartlist-3.15/src/procmail.c:360: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(strcpy(rstart,Fakefield),chp2);     /* fake alert */
data/smartlist-3.15/src/procmail.c:360:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcat(strcpy(rstart,Fakefield),chp2);     /* fake alert */
data/smartlist-3.15/src/procmail.c:362: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(themail,buf2);themail[lfr+linv]=r;
data/smartlist-3.15/src/procmail.c:387:35:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	      nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2);
data/smartlist-3.15/src/procmail.c:426:13:  [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).
		    *(chp=strcpy(buf2,etcrcs)+STRLEN(etcrcs))=chCURDIR;
data/smartlist-3.15/src/procmail.c:452:10:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		       syslog(LOG_ALERT,slogstr,densppr,rcfile);
data/smartlist-3.15/src/procmail.c:561:15:  [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).
	       { if(*strcpy((char*)(rcfile=buf2),pmrc2buf())=='\0')
data/smartlist-3.15/src/procmail.c:562:18:  [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).
pm_overflow:	  { strcpy(buf,pmrc);
data/smartlist-3.15/src/procmail.c:569:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		 strcpy(buf,rcfile);	/* do not put anything in front then */
data/smartlist-3.15/src/procmail.c:575: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(chp,rcfile);			/* append the rcfile */
data/smartlist-3.15/src/procmail.c:595:8:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	      syslog(LOG_ALERT,slogstr,susprcf,buf);
data/smartlist-3.15/src/procmail.c:769: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(buf2,buf);strcpy(buf,chp);free(chp);
data/smartlist-3.15/src/procmail.c:769:22:  [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(buf2,buf);strcpy(buf,chp);free(chp);
data/smartlist-3.15/src/procmail.c:900:18:  [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).
		  { if(!tolock)strcpy(buf2,buf);
data/smartlist-3.15/src/robust.c:102:21:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
     writeerr(file),syslog(LOG_NOTICE,slogstr,errwwriting,file);
data/smartlist-3.15/src/setid.c:33:44:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
nodir:	nargv[0]=getenv("SHELL"),nargv[1]=0,execv(nargv[0],nargv);
data/smartlist-3.15/src/foldinfo.c:56:4:  [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.
   getenv(lgname)),'\0');
data/smartlist-3.15/src/goodies.c:28:32:  [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.
	  (unsigned)(j=(*buf2)-'0')>9?getenv(buf2):
data/smartlist-3.15/src/includes.h:98: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.
const char*getenv();
data/smartlist-3.15/src/lockfile.c:126:23:  [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(!((ma=(char*)getenv(lgname))&&
data/smartlist-3.15/src/misc.c:407:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return (b=getenv(a))?b:empty;
data/smartlist-3.15/src/pipes.c:139: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.
   !(backblock=getenv(Stdout))))			/* no current value? */
data/smartlist-3.15/src/pipes.c:323:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     if(setxit&&(p=getenv(exitcode)))		 /* user specified exitcode? */
data/smartlist-3.15/src/procmail.c:197:9:  [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.
	idhint=getenv(lgname);
data/smartlist-3.15/src/procmail.c:508:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     chp=(char*)getenv(orgmail);
data/smartlist-3.15/src/regexp.c:597:5:  [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(getenv(match)==(const char*)text)	     /* anal retentive match */
data/smartlist-3.15/src/setid.c:33:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
nodir:	nargv[0]=getenv("SHELL"),nargv[1]=0,execv(nargv[0],nargv);
data/smartlist-3.15/src/acommon.c:22: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 name[MAXHOSTNAMELEN]="";
data/smartlist-3.15/src/formail.c:102: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 ffileno[LEN_FILENO_VAR+8*sizeof(initfileno)*4/10+1+1]=DEFfileno;
data/smartlist-3.15/src/formail.c:428:23:  [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(!(idcache=fopen(chp,"r+b"))&&	  /* existing cache? */
data/smartlist-3.15/src/formail.c:429: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).
			  !(idcache=fopen(chp,"w+b")))	    /* create cache? */
data/smartlist-3.15/src/formail.h:35: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 fld_text[255];
data/smartlist-3.15/src/formisc.c:229: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(!(mystdout=fopen(DevNull,"a")))
data/smartlist-3.15/src/includes.h:510:24:  [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.
#define charNUM(num,v)	char num[sizeNUM(v)]
data/smartlist-3.15/src/lockfile.c:254: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).
{ return open(name,mode,mask);					     /* stub */
data/smartlist-3.15/src/misc.h:4:41:  [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.
struct dynstring{struct dynstring*enext;char ename[255];};
data/smartlist-3.15/src/multigram.c:463: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 lmailfile[STRLEN(TMPMAILFILE)+8*sizeof(pid_t)*4/10+1+1];
data/smartlist-3.15/src/multigram.c:488:15:  [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(0>(mailfd=open(mailfile,O_RDWR|O_CREAT|O_EXCL,NORMperm)))
data/smartlist-3.15/src/multigram.c:518: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(!(hardfile=fopen(chp=distfile,"r")))
data/smartlist-3.15/src/multigram.c:616:14:  [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(STDIN!=open(mailfile,O_RDONLY))
data/smartlist-3.15/src/multigram.c:729:24:  [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(!(*hfiles=hardfile=fopen(chp,accstr)))
data/smartlist-3.15/src/multigram.c:734:18:  [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(hfiles[i]=fopen(*nargv,accstr))
data/smartlist-3.15/src/procmail.c:298:30:  [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.
		 t=time((time_t*)0);strcat(strcpy(buf2,"  "),ctime(&t));
data/smartlist-3.15/src/procmail.c:666:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	   static char flags[maxindex(exflags)];
data/smartlist-3.15/src/robust.c:121:44:  [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).
  for(r=noresretry,lcking|=lck_FILDES;0>(i=open(name,mode,mask));)
data/smartlist-3.15/src/setid.c:20:6:  [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(fopen(CHECK_FILE,"r"))
data/smartlist-3.15/src/sublib.c:38:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
{ bcopy(From,To,count);
data/smartlist-3.15/src/acommon.c:30: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).
     if(!(name=malloc(strlen(names.nodename)+1)))
data/smartlist-3.15/src/authenticate.c:157: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).
     if(!(pass->mbox=malloc((i=strlen(pass->pw->pw_dir))+STRLEN(mailfile)+1)))
data/smartlist-3.15/src/authenticate.c:164: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(pass->pw->pw_name)+1+STRLEN(MAILSPOOLSUFFIX))))
data/smartlist-3.15/src/cstdio.c:121: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).
	(len=strlen(md))+strlen(name)+2<linebuf)
data/smartlist-3.15/src/cstdio.c:121:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(len=strlen(md))+strlen(name)+2<linebuf)
data/smartlist-3.15/src/exopen.c:43:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p,hostname(),end-p);
data/smartlist-3.15/src/foldinfo.c:101:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     strncpy(buf2,buffer,i=chp-buffer+1),buf2[i-1]=*MCDIRSEP_,buf2[i]='\0';
data/smartlist-3.15/src/foldinfo.c:145:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     strncpy(buf2,buf,i=lastdirsep(buf)-buf),buf2[i]='\0';
data/smartlist-3.15/src/foldinfo.c:250:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		 strncpy(buf2,buf,i);buf2[i]='\0';
data/smartlist-3.15/src/foldinfo.c:301:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf2,buf,i);buf2[i]='\0';     /* try & rename bogus lockfile */
data/smartlist-3.15/src/formail.c:120:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   { putssn(sfolder,STRLEN(sfolder));putssn(logsummary,i=strlen(logsummary));
data/smartlist-3.15/src/formail.c:124: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).
     ultstr(7,Totallen,num);putssn(num,strlen(num));putcs('\n');
data/smartlist-3.15/src/formail.c:295: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).
pnewname:  lastm=nowm;saddr=strcpy(malloc(strlen(saddr)+1),saddr);
data/smartlist-3.15/src/formail.c:321:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for(p=key;(j=fgetc(idcache))==*p;p++)
data/smartlist-3.15/src/formail.c:336:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    { switch(fgetc(idcache))
data/smartlist-3.15/src/formail.c:350:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     fseek(idcache,insoffs,SEEK_SET);fwrite(key,1,strlen(key)+1,idcache);
data/smartlist-3.15/src/formail.c:406: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(logsummary=chp)>MAXfoldlen)
data/smartlist-3.15/src/formail.c:450: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).
		 i=breakfield(chp,lnl=strlen(chp));
data/smartlist-3.15/src/formail.c:493: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).
			    (!(i=breakfield(chp,strlen(chp)))&& /* fieldish? */
data/smartlist-3.15/src/formail.c:511: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).
  escaplen=strlen(escap);mystdout=stdout;signal(SIGPIPE,SIG_IGN);
data/smartlist-3.15/src/formail.c:517:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   { while(getchar()!=BABYL_SEP1||getchar()!=BABYL_SEP2||getchar()!='\n')
data/smartlist-3.15/src/formail.c:517:35:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   { while(getchar()!=BABYL_SEP1||getchar()!=BABYL_SEP2||getchar()!='\n')
data/smartlist-3.15/src/formail.c:517:58:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   { while(getchar()!=BABYL_SEP1||getchar()!=BABYL_SEP2||getchar()!='\n')
data/smartlist-3.15/src/formail.c:518:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(getchar()!='\n');
data/smartlist-3.15/src/formail.c:519:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     while(getchar()!='\n');
data/smartlist-3.15/src/formail.c:521:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((buflast=getchar())=='\n');		     /* skip leading garbage */
data/smartlist-3.15/src/formail.c:535:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if((lenfileno=strlen(chp= *vfileno+LEN_FILENO_VAR))>
data/smartlist-3.15/src/formail.c:656:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   loadbuf(namep,strlen(namep));	      /* then insert it here */
data/smartlist-3.15/src/formail.c:692:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   loadbuf(namep,strlen(namep));
data/smartlist-3.15/src/formail.c:697: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).
	   loadchar(' '),chp=ctime(&t),loadbuf(chp,strlen(chp)); /* no Date: */
data/smartlist-3.15/src/formail.c:713:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       strlen(name=hostname())+2);     /* allocate worst case length */
data/smartlist-3.15/src/formail.c:714:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(p,fldp->fld_text,fldp->id_len);*(p+=fldp->id_len)=' ';
data/smartlist-3.15/src/formail.c:752:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     for(lc=0;c=getchar(),c!=EOF&&(c!='\n'||lc!='\n');lc=c);
data/smartlist-3.15/src/formail.c:760:48:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   lnl=lwr==tbl&&lwr=='\n',putcs(lwr=tbl),tbl=getchar();
data/smartlist-3.15/src/formail.c:762:25:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   putcs('\n'),buflast=getchar();		/* wrap up loose end */
data/smartlist-3.15/src/formisc.c:125:16:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     while((ch=getchar())!=EOF&&ch!='\n')
data/smartlist-3.15/src/formisc.c:129:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return buflast=getchar();			/* look ahead, one character */
data/smartlist-3.15/src/goodies.c:39:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc() (*fpgetc)()	   /* some compilers previously choked on it */
data/smartlist-3.15/src/goodies.c:55:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   { i=fgetc();
data/smartlist-3.15/src/goodies.c:73:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   i=fgetc();
data/smartlist-3.15/src/goodies.c:99:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    { switch(i=fgetc())			 /* copy till next backquote */
data/smartlist-3.15/src/goodies.c:133:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    switch(i=fgetc())
data/smartlist-3.15/src/goodies.c:183:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   while((i=fgetc())!=EOF&&i!='\n');		    /* skip till EOL */
data/smartlist-3.15/src/goodies.c:189:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   switch(i=fgetc())
data/smartlist-3.15/src/goodies.c:199:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		 while(EOF!=(i=fgetc())&&alphanum(i))
data/smartlist-3.15/src/goodies.c:212:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		       switch(i=fgetc())
data/smartlist-3.15/src/goodies.c:263:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    quoted=1,i=fgetc();
data/smartlist-3.15/src/goodies.c:270:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    while(EOF!=(i=fgetc())&&alphanum(i));
data/smartlist-3.15/src/goodies.c:306:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
copyit:	    { strncpy(p,startb,fencepost-p+2);		   /* simply copy it */
data/smartlist-3.15/src/goodies.c:435: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).
  Stdfilled=ioffsetof(struct dynstring,ename[0])+strlen(varname);
data/smartlist-3.15/src/lockfile.c:44:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p,name,i);
data/smartlist-3.15/src/lockfile.c:52: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).
{ write(STDERR,a,strlen(a));
data/smartlist-3.15/src/lockfile.c:135: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).
			!(ma=malloc(strlen(p)+STRLEN(lockext)+1)))
data/smartlist-3.15/src/lockfile.c:211:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 if(0<(permanent=strlen(cp)-1)&&      /* can we truncate it? */
data/smartlist-3.15/src/locking.c:80:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   if(0<(i=strlen(name)-1)&&!strchr(dirsep,name[i-1]))
data/smartlist-3.15/src/locking.c:111: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).
      { int len=strlen(buf2);
data/smartlist-3.15/src/locking.c:112:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strcpy(strcpy(lckfile=malloc(len+strlen(lockext)+1),buf2)+len,lockext);
data/smartlist-3.15/src/locking.c:143:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  i=lastdirsep(name)-name;strncpy(p=malloc(i+UNIQnamelen),name,i);
data/smartlist-3.15/src/mailfold.c:164:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     strncpy(chp-MAILDIRLEN-1,maildirnew,MAILDIRLEN);	/* but link directly */
data/smartlist-3.15/src/mailfold.c:168:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     size_t mpl=strlen(msgprefix);
data/smartlist-3.15/src/mailfold.c:184: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).
	len=Stdfilled+strlen(Stdout+Stdfilled);
data/smartlist-3.15/src/mailfold.c:185:36:  [1] (buffer) strlen:
  Does not handle 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=realloc(Stdout,(Stdfilled=len+1+strlen(buf))+1);
data/smartlist-3.15/src/mailfold.c:345: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).
     elog(sfolder);i=strlen(strncpy(buf,lstfolder,MAXfoldlen))+STRLEN(sfolder);
data/smartlist-3.15/src/mailfold.c:345:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     elog(sfolder);i=strlen(strncpy(buf,lstfolder,MAXfoldlen))+STRLEN(sfolder);
data/smartlist-3.15/src/manconf.c:75:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!filebuf&&!(filebuf=malloc(strlen(*gargv)+1+4+1)))
data/smartlist-3.15/src/misc.c:57:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!(lnew=strlen(newt))||nextexit)			     /* force flush? */
data/smartlist-3.15/src/misc.c:193:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      { if(strlen(p)>linebuf-1)
data/smartlist-3.15/src/misc.c:251: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(chp=tgetenv(lgname))+2<=linebuf)	  /* first pass length check */
data/smartlist-3.15/src/misc.c:298: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).
	sendto(s,buf,strlen(buf),0,(const void*)&addr,sizeof(addr));rclose(s);
data/smartlist-3.15/src/misc.c:367:10:  [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(strcat(strcpy((char*)(sgetcp=buf2),name),"="),contents);
data/smartlist-3.15/src/misc.c:401:5:  [1] (buffer) strlen:
  Does not handle 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(a)+1;
data/smartlist-3.15/src/misc.c:420: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).
     strcpy(chp=malloc(STRLEN(lastfolder)+1+strlen(folder)+1),lastfolder);
data/smartlist-3.15/src/misc.c:451:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   { erestrict=1;setids();chp++;strncpy(buf,src,chp-src);
data/smartlist-3.15/src/misc.c:633:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  curr=malloc(ioffsetof(struct dynstring,ename[0])+(len=strlen(chp)+1));
data/smartlist-3.15/src/misc.c:753: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).
			ltobesent=strlen(lstartchar=(char*)tgetenv(chp));
data/smartlist-3.15/src/misc.c:775: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).
			lregk=strlen(regsp->regkey);		/* insert it */
data/smartlist-3.15/src/misc.c:776: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).
			tmemmove(chp2+(lregs=strlen(regsp->regsubst)),
data/smartlist-3.15/src/misc.c:777: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).
			 chp2+lregk,strlen(chp2)-lregk+1);
data/smartlist-3.15/src/multigram.c:100:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     switch(i=getc(file))
data/smartlist-3.15/src/multigram.c:141:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
{ return strcpy(malloc(strlen(p)+1),p);
data/smartlist-3.15/src/multigram.c:196: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).
     q=malloc((l=strlen(str->text))+1);
data/smartlist-3.15/src/multigram.c:233:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy(chp=malloc((i=strlen(first))+strlen(last)+1),first);
data/smartlist-3.15/src/multigram.c:233:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy(chp=malloc((i=strlen(first))+strlen(last)+1),first);
data/smartlist-3.15/src/multigram.c:262: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((minlen=hardstr->textlen=strlen(hardstr->text))>(maxlen=fuzzstr->textlen))
data/smartlist-3.15/src/multigram.c:425:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(i=fgetc(stdin),!feof(stdin))		       /* hash away! */
data/smartlist-3.15/src/multigram.c:508:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
jin:	      while(0>(i=read(STDIN,buf,(size_t)COPYBUF))&&errno==EINTR);
data/smartlist-3.15/src/multigram.c:564:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    envc++,maxensize-=strlen(*nam++)+1+sizeof*nam);
data/smartlist-3.15/src/multigram.c:592: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).
		 for(maxnsize=0;*nam;maxnsize+=strlen(*nam++)+1+sizeof*nam);
data/smartlist-3.15/src/multigram.c:600: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).
		 cnsize=strlen(*(first=nam=revarr+n))+1+sizeof*nam;cnames=0;
data/smartlist-3.15/src/multigram.c:609: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).
		       maxensize>=(cnsize+=strlen(*++nam)+1+sizeof*nam)&&
data/smartlist-3.15/src/multigram.c:666: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).
		 lldomain=strlen(ldomain=chp)+1;
data/smartlist-3.15/src/multigram.c:722:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      { excstr.textlen=strlen(excstr.text);lowcase(&excstr);
data/smartlist-3.15/src/multigram.c:724: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).
	   exc2str.textlen=strlen(exc2str.text),lowcase(&exc2str);
data/smartlist-3.15/src/multigram.c:750:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      { switch(getc(hardfile))			    /* step through the file */
data/smartlist-3.15/src/multigram.c:839: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(!(len=strlen(chp)))		    /* still something left? */
data/smartlist-3.15/src/multigram.c:885:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      curmatch->hard=malloc(hardlen+=strlen(hardstr.text+hardlen)+1);
data/smartlist-3.15/src/multigram.c:919:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   printf("%s\n",strcmp(mp->hard+strlen(mp->hard)+1,NOT_METOO)
data/smartlist-3.15/src/pipes.c:146: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).
	backlen=strlen(backblock);
data/smartlist-3.15/src/procmail.c:202: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).
	   for(i=strlen(*kp),ep=emax;chp2=(char*)*ep;ep++)
data/smartlist-3.15/src/procmail.c:217:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if(!strncmp(*ep,p,strlen(p)))	/* if it starts with LD_ (or */
data/smartlist-3.15/src/procmail.c:294: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).
	    malloc(2*linebuf+(lfr=strlen(fwhom))+(linv=strlen(chp2)));
data/smartlist-3.15/src/procmail.c:294: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).
	    malloc(2*linebuf+(lfr=strlen(fwhom))+(linv=strlen(chp2)));
data/smartlist-3.15/src/procmail.c:300: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).
	      lfr+=STRLEN(From_)+(r=strlen(buf2));
data/smartlist-3.15/src/procmail.c:725:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(buf,sendmail,linebuf-1);
data/smartlist-3.15/src/procmail.c:966: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).
	if(linebuf<(len=strlen(chp)+strlen(lockext)+UNIQnamelen))
data/smartlist-3.15/src/procmail.c:966: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(linebuf<(len=strlen(chp)+strlen(lockext)+UNIQnamelen))
data/smartlist-3.15/src/robust.c:156:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(0>(i=read(fd,a,(size_t)len))&&errno==EINTR);
data/smartlist-3.15/src/robust.c:177:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
{ umask(cumask=mask);

ANALYSIS SUMMARY:

Hits = 241
Lines analyzed = 10244 in approximately 0.39 seconds (26296 lines/second)
Physical Source Lines of Code (SLOC) = 9124
Hits@level = [0]  37 [1] 108 [2]  20 [3]  11 [4]  94 [5]   8
Hits@level+ = [0+] 278 [1+] 241 [2+] 133 [3+] 113 [4+] 102 [5+]   8
Hits/KSLOC@level+ = [0+] 30.4691 [1+] 26.4139 [2+] 14.5769 [3+] 12.3849 [4+] 11.1793 [5+] 0.876808
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.