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/maildrop-2.9.3/libs/makedat/makedatprog.c Examining data/maildrop-2.9.3/libs/numlib/strhdevt.c Examining data/maildrop-2.9.3/libs/numlib/strgidt.c Examining data/maildrop-2.9.3/libs/numlib/strhtimet.c Examining data/maildrop-2.9.3/libs/numlib/strofft.c Examining data/maildrop-2.9.3/libs/numlib/strinot.c Examining data/maildrop-2.9.3/libs/numlib/strhinot.c Examining data/maildrop-2.9.3/libs/numlib/atouidt.c Examining data/maildrop-2.9.3/libs/numlib/strsizet.c Examining data/maildrop-2.9.3/libs/numlib/strsize.c Examining data/maildrop-2.9.3/libs/numlib/strpidt.c Examining data/maildrop-2.9.3/libs/numlib/changeuidgid.c Examining data/maildrop-2.9.3/libs/numlib/strtimet.c Examining data/maildrop-2.9.3/libs/numlib/struidt.c Examining data/maildrop-2.9.3/libs/numlib/strdevt.c Examining data/maildrop-2.9.3/libs/numlib/strhpidt.c Examining data/maildrop-2.9.3/libs/numlib/numlib.h Examining data/maildrop-2.9.3/libs/numlib/atotimet.c Examining data/maildrop-2.9.3/libs/liblock/mail.c Examining data/maildrop-2.9.3/libs/liblock/locklockf.c Examining data/maildrop-2.9.3/libs/liblock/lockmail.c Examining data/maildrop-2.9.3/libs/liblock/locktest.c Examining data/maildrop-2.9.3/libs/liblock/mail.h Examining data/maildrop-2.9.3/libs/liblock/lockdaemon.c Examining data/maildrop-2.9.3/libs/liblock/lockflock.c Examining data/maildrop-2.9.3/libs/liblock/liblock.h Examining data/maildrop-2.9.3/libs/liblock/lockfcntl.c Examining data/maildrop-2.9.3/libs/maildrop/recipenode.C Examining data/maildrop-2.9.3/libs/maildrop/filelock.C Examining data/maildrop-2.9.3/libs/maildrop/formatmbox.C Examining data/maildrop-2.9.3/libs/maildrop/reformail.C Examining data/maildrop-2.9.3/libs/maildrop/alarmsleep.h Examining data/maildrop-2.9.3/libs/maildrop/mytime.h Examining data/maildrop-2.9.3/libs/maildrop/setgroupid.c Examining data/maildrop-2.9.3/libs/maildrop/dotlock.C Examining data/maildrop-2.9.3/libs/maildrop/recipenode.h Examining data/maildrop-2.9.3/libs/maildrop/deliverdotlock.h Examining data/maildrop-2.9.3/libs/maildrop/exittrap.h Examining data/maildrop-2.9.3/libs/maildrop/tempfile.h Examining data/maildrop-2.9.3/libs/maildrop/maildrop.h Examining data/maildrop-2.9.3/libs/maildrop/filter.C Examining data/maildrop-2.9.3/libs/maildrop/log.C Examining data/maildrop-2.9.3/libs/maildrop/rematchstr.h Examining data/maildrop-2.9.3/libs/maildrop/reeval.C Examining data/maildrop-2.9.3/libs/maildrop/messageinfo.C Examining data/maildrop-2.9.3/libs/maildrop/message.C Examining data/maildrop-2.9.3/libs/maildrop/pipefds.h Examining data/maildrop-2.9.3/libs/maildrop/dotlockmaildrop.C Examining data/maildrop-2.9.3/libs/maildrop/alarmtimer.h Examining data/maildrop-2.9.3/libs/maildrop/recipeparse.C Examining data/maildrop-2.9.3/libs/maildrop/mio.h Examining data/maildrop-2.9.3/libs/maildrop/pipefds.C Examining data/maildrop-2.9.3/libs/maildrop/recipe.h Examining data/maildrop-2.9.3/libs/maildrop/globaltimer.h Examining data/maildrop-2.9.3/libs/maildrop/maildir.C Examining data/maildrop-2.9.3/libs/maildrop/lexer.h Examining data/maildrop-2.9.3/libs/maildrop/maildir.h Examining data/maildrop-2.9.3/libs/maildrop/filelock.h Examining data/maildrop-2.9.3/libs/maildrop/mailbot.c Examining data/maildrop-2.9.3/libs/maildrop/rematchmsg.h Examining data/maildrop-2.9.3/libs/maildrop/mio.C Examining data/maildrop-2.9.3/libs/maildrop/token.C Examining data/maildrop-2.9.3/libs/maildrop/globaltimer.C Examining data/maildrop-2.9.3/libs/maildrop/exittrap.C Examining data/maildrop-2.9.3/libs/maildrop/varlist.h Examining data/maildrop-2.9.3/libs/maildrop/deliverdotlock.C Examining data/maildrop-2.9.3/libs/maildrop/dotlockrefresh.C Examining data/maildrop-2.9.3/libs/maildrop/search.C Examining data/maildrop-2.9.3/libs/maildrop/rematch.h Examining data/maildrop-2.9.3/libs/maildrop/dotlock.h Examining data/maildrop-2.9.3/libs/maildrop/varlist.C Examining data/maildrop-2.9.3/libs/maildrop/dovecotauth.c Examining data/maildrop-2.9.3/libs/maildrop/dovecotauth.h Examining data/maildrop-2.9.3/libs/maildrop/buffer.C Examining data/maildrop-2.9.3/libs/maildrop/alarm.C Examining data/maildrop-2.9.3/libs/maildrop/search.h Examining data/maildrop-2.9.3/libs/maildrop/formatmbox.h Examining data/maildrop-2.9.3/libs/maildrop/log.h Examining data/maildrop-2.9.3/libs/maildrop/maildrop.C Examining data/maildrop-2.9.3/libs/maildrop/setgroupid.h Examining data/maildrop-2.9.3/libs/maildrop/messageinfo.h Examining data/maildrop-2.9.3/libs/maildrop/alarmtimer.C Examining data/maildrop-2.9.3/libs/maildrop/alarm.h Examining data/maildrop-2.9.3/libs/maildrop/buffer.h Examining data/maildrop-2.9.3/libs/maildrop/message.h Examining data/maildrop-2.9.3/libs/maildrop/token.h Examining data/maildrop-2.9.3/libs/maildrop/rematch.C Examining data/maildrop-2.9.3/libs/maildrop/rematchstr.C Examining data/maildrop-2.9.3/libs/maildrop/reeval.h Examining data/maildrop-2.9.3/libs/maildrop/tempfile.C Examining data/maildrop-2.9.3/libs/maildrop/recipe.C Examining data/maildrop-2.9.3/libs/maildrop/mywait.h Examining data/maildrop-2.9.3/libs/maildrop/alarmsleep.C Examining data/maildrop-2.9.3/libs/maildrop/funcs.C Examining data/maildrop-2.9.3/libs/maildrop/rematchmsg.C Examining data/maildrop-2.9.3/libs/maildrop/dotlockrefresh.h Examining data/maildrop-2.9.3/libs/maildrop/funcs.h Examining data/maildrop-2.9.3/libs/maildrop/lexer.C Examining data/maildrop-2.9.3/libs/maildrop/regexpnode.h Examining data/maildrop-2.9.3/libs/maildrop/main.C Examining data/maildrop-2.9.3/libs/maildrop/deliver.C Examining data/maildrop-2.9.3/libs/rfc2045/rfc2231.c Examining data/maildrop-2.9.3/libs/rfc2045/base64.h Examining data/maildrop-2.9.3/libs/rfc2045/testrfc3676parser.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045acchk.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045src.h Examining data/maildrop-2.9.3/libs/rfc2045/makemime.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045cdecode.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045xdump.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045tryboundary.c Examining data/maildrop-2.9.3/libs/rfc2045/base64.c Examining data/maildrop-2.9.3/libs/rfc2045/headercheck.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045decodemsgtoutf8.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045decodemimesection.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045_fromfd.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc3676parser.h Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045.h Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045decode.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc3676parser.c Examining data/maildrop-2.9.3/libs/rfc2045/reformime.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045decodemimesectionu.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045acprep.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045header.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045find.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045enomem.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc3676parsercpp.C Examining data/maildrop-2.9.3/libs/rfc2045/rfc2045searchcontenttype.c Examining data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c Examining data/maildrop-2.9.3/libs/bdbobj/bdbobj2.c Examining data/maildrop-2.9.3/libs/bdbobj/bdbobj3.c Examining data/maildrop-2.9.3/libs/bdbobj/testbdb.C Examining data/maildrop-2.9.3/libs/bdbobj/bdbobj.h Examining data/maildrop-2.9.3/libs/bdbobj/bdbobj.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822.h Examining data/maildrop-2.9.3/libs/rfc822/imapsubj.c Examining data/maildrop-2.9.3/libs/rfc822/rfc2047u.c Examining data/maildrop-2.9.3/libs/rfc822/encodeautodetect.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822hdr.c Examining data/maildrop-2.9.3/libs/rfc822/rfc2047.c Examining data/maildrop-2.9.3/libs/rfc822/reftest.c Examining data/maildrop-2.9.3/libs/rfc822/encode.c Examining data/maildrop-2.9.3/libs/rfc822/imaprefs.h Examining data/maildrop-2.9.3/libs/rfc822/testsuite.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822_mkdate.c Examining data/maildrop-2.9.3/libs/rfc822/rfc2047.h Examining data/maildrop-2.9.3/libs/rfc822/encode.h Examining data/maildrop-2.9.3/libs/rfc822/imaprefs.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822_parsedt.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822_getaddr.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822.c Examining data/maildrop-2.9.3/libs/rfc822/rfc822hdr.h Examining data/maildrop-2.9.3/libs/rfc822/rfc822_getaddrs.c Examining data/maildrop-2.9.3/libs/gdbmobj/gdbmobj2.c Examining data/maildrop-2.9.3/libs/gdbmobj/gdbmobj.h Examining data/maildrop-2.9.3/libs/gdbmobj/gdbmobj3.c Examining data/maildrop-2.9.3/libs/gdbmobj/gdbmobj.c Examining data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C Examining data/maildrop-2.9.3/libs/maildir/maildirkeywords3.c Examining data/maildrop-2.9.3/libs/maildir/maildirkwtest.c Examining data/maildrop-2.9.3/libs/maildir/maildirmkdir.c Examining data/maildrop-2.9.3/libs/maildir/maildirkw.c Examining data/maildrop-2.9.3/libs/maildir/loginexec.c Examining data/maildrop-2.9.3/libs/maildir/maildircreate.c Examining data/maildrop-2.9.3/libs/maildir/maildirnewshared2.c Examining data/maildrop-2.9.3/libs/maildir/maildircache.c Examining data/maildrop-2.9.3/libs/maildir/maildirrequota.c Examining data/maildrop-2.9.3/libs/maildir/maildirmake.c Examining data/maildrop-2.9.3/libs/maildir/maildirlock.c Examining data/maildrop-2.9.3/libs/maildir/maildirshared.c Examining data/maildrop-2.9.3/libs/maildir/maildirsearch.h Examining data/maildrop-2.9.3/libs/maildir/autoresponse.c Examining data/maildrop-2.9.3/libs/maildir/maildirquota.h Examining data/maildrop-2.9.3/libs/maildir/maildircreate.h Examining data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c Examining data/maildrop-2.9.3/libs/maildir/maildirfilter.c Examining data/maildrop-2.9.3/libs/maildir/maildiraclt.h Examining data/maildrop-2.9.3/libs/maildir/maildirfilter.h Examining data/maildrop-2.9.3/libs/maildir/maildirwatch.c Examining data/maildrop-2.9.3/libs/maildir/maildirwatch.h Examining data/maildrop-2.9.3/libs/maildir/maildirmake2.c Examining data/maildrop-2.9.3/libs/maildir/maildirpath.c Examining data/maildrop-2.9.3/libs/maildir/testmaildirsearch.c Examining data/maildrop-2.9.3/libs/maildir/maildirgetnew.c Examining data/maildrop-2.9.3/libs/maildir/maildircache.h Examining data/maildrop-2.9.3/libs/maildir/loginexec.h Examining data/maildrop-2.9.3/libs/maildir/maildirnewshared.c Examining data/maildrop-2.9.3/libs/maildir/maildirkeywords.c Examining data/maildrop-2.9.3/libs/maildir/autoresponse.h Examining data/maildrop-2.9.3/libs/maildir/maildirfiltertypelist.h Examining data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c Examining data/maildrop-2.9.3/libs/maildir/maildirsearch.c Examining data/maildrop-2.9.3/libs/maildir/maildirkeywords.h Examining data/maildrop-2.9.3/libs/maildir/maildirlist.c Examining data/maildrop-2.9.3/libs/maildir/maildiropen.c Examining data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c Examining data/maildrop-2.9.3/libs/maildir/maildirmisc.h Examining data/maildrop-2.9.3/libs/maildir/maildirinfo.c Examining data/maildrop-2.9.3/libs/maildir/maildirparsequota.c Examining data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c Examining data/maildrop-2.9.3/libs/maildir/maildirnewshared.h Examining data/maildrop-2.9.3/libs/maildir/maildiracl.c Examining data/maildrop-2.9.3/libs/maildir/maildirshared2.c Examining data/maildrop-2.9.3/libs/maildir/maildirkeywords4.cpp Examining data/maildrop-2.9.3/libs/maildir/maildirrename.c Examining data/maildrop-2.9.3/libs/maildir/maildirinfo.h Examining data/maildrop-2.9.3/libs/maildir/maildirgetquota.c Examining data/maildrop-2.9.3/libs/maildir/maildirflags.c Examining data/maildrop-2.9.3/libs/maildir/deliverquota.c Examining data/maildrop-2.9.3/libs/maildir/maildirsearchC.cpp Examining data/maildrop-2.9.3/libs/maildir/maildirquota.c Examining data/maildrop-2.9.3/libs/maildir/testmaildirfilter.c Examining data/maildrop-2.9.3/libs/maildir/maildirfilter2.c Examining data/maildrop-2.9.3/libs/maildir/maildirrequota.h Examining data/maildrop-2.9.3/libs/maildir/maildirgetquota.h Examining data/maildrop-2.9.3/libs/maildir/maildiraclt.c Examining data/maildrop-2.9.3/libs/maildir/maildirfilename.c FINAL RESULTS: data/maildrop-2.9.3/libs/maildir/maildirfilter.c:717:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(filename, 0600)) data/maildrop-2.9.3/libs/maildir/maildirfilter.c:760:28: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. #define SET(f,b) { f[0]=0; strncat( (f), (b), sizeof(f)-1); } data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:156:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(createInfo.tmpname, 0600) data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:175: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(dir, stat_buf.st_mode & 0777); data/maildrop-2.9.3/libs/maildir/maildirmake2.c:48: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(maildir, perm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:50: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(q, subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:52: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(q, subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:54: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(q, subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildiropen.c:46: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. if ((n=readlink(filename, buf, bufsiz)) < 0) data/maildrop-2.9.3/libs/maildir/maildirshared.c:555: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. if ((n=readlink(cur_base, linked_name_buf, linked_name_len))< 0) data/maildrop-2.9.3/libs/maildrop/dotlock.C:160: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(filename, 0644); data/maildrop-2.9.3/libs/maildrop/maildir.C:293: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(newkname, stat_buf.st_mode & 0777); data/maildrop-2.9.3/libs/liblock/lockmail.c:170:4: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argvec[0], argvec); data/maildrop-2.9.3/libs/liblock/locktest.c:40:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(name, "%s/%s", tmpdir, FILENAME); data/maildrop-2.9.3/libs/liblock/mail.c:252: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(tmpname, dotlock); data/maildrop-2.9.3/libs/liblock/mail.c:254: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(tmpname, timebuf); data/maildrop-2.9.3/libs/liblock/mail.c:256: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(tmpname, pidbuf); data/maildrop-2.9.3/libs/liblock/mail.c:258: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(tmpname, strchr(idbuf, ':')+1); data/maildrop-2.9.3/libs/liblock/mail.c:373: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). strcat(strcpy(dotlock, p->file), ".lock"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:65: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). strcat(strcpy(d, maildir), "/autoresponses"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:173: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(strcat(strcpy(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/autoresponse.c:173:24: [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(strcat(strcpy(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/autoresponse.c:217:11: [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). unlink(strcat(strcat(strcpy(q, dir), "/"),de->d_name)); data/maildrop-2.9.3/libs/maildir/autoresponse.c:217:25: [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). unlink(strcat(strcat(strcpy(q, dir), "/"),de->d_name)); data/maildrop-2.9.3/libs/maildir/autoresponse.c:298: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). strcat(strcpy(p, maildir), "/autoresponsesquota"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:329: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). strcat(strcpy(p, maildir), "/autoresponses"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:347: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(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/autoresponse.c:347: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(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/deliverquota.c:123:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(qq, "%s,S=%ld", createInfo.newname, ss-s); data/maildrop-2.9.3/libs/maildir/loginexec.c:34:3: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("./" LOGINEXEC_FILE, LOGINEXEC_FILE, (char *)0); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:132: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(p, add_strs); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:353:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:434: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(strcat(strcpy(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:434:16: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:442:11: [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). fp=fopen(strcat(strcpy(q, p), "/" ACLFILE), "r"); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:442: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). fp=fopen(strcat(strcpy(q, p), "/" ACLFILE), "r"); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:466: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(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:466: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(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:608: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(strcat(strcpy(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:608:16: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:617:9: [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). unlink(strcat(strcpy(q, p), "/" ACLFILE)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:617:16: [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). unlink(strcat(strcpy(q, p), "/" ACLFILE)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:634: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(strcat(strcpy(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:634:16: [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(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:787: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(strcat(strcpy(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:787:16: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:810:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(q, p), "/" ACLFILE); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:810: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). strcat(strcpy(q, p), "/" ACLFILE); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:826: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(q, maildir), "/" ACLHIERDIR "/"), path+1); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:826: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(q, maildir), "/" ACLHIERDIR "/"), path+1); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:955: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(strcpy(p, maildir), "/" ACLHIERDIR); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:955: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). strcat(strcpy(p, maildir), "/" ACLHIERDIR); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1006: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(strcat(strcpy(p, maildir), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1006: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). strcat(strcat(strcpy(p, maildir), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1194: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(strcpy(a, "user="), c); data/maildrop-2.9.3/libs/maildir/maildircache.c:132:9: [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(strcat(strcpy(f, cachedir), "/"), buf), "/"); data/maildrop-2.9.3/libs/maildir/maildircache.c:132:23: [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(strcat(strcpy(f, cachedir), "/"), buf), "/"); data/maildrop-2.9.3/libs/maildir/maildircache.c:136: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(strcat(strcat(f, buf), "/"), g); data/maildrop-2.9.3/libs/maildir/maildircache.c:136:16: [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(strcat(f, buf), "/"), g); data/maildrop-2.9.3/libs/maildir/maildircache.c:288: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). strcat(strcpy(buf, a), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:289:9: [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(buf, libmail_str_time_t(b, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:290:9: [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(buf, libmail_str_uid_t(u, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:291:9: [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(buf, libmail_str_gid_t(g, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:303:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcat(strcpy(buf, authvars[i]), "="); data/maildrop-2.9.3/libs/maildir/maildircache.c:308:11: [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(buf, p), "\n"); data/maildrop-2.9.3/libs/maildir/maildircache.c:457: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(c, a); data/maildrop-2.9.3/libs/maildir/maildircreate.c:140: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(info->tmpname, maildir); data/maildrop-2.9.3/libs/maildir/maildircreate.c:142: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(info->tmpname, time_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:144: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(info->tmpname, usec_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:146: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(info->tmpname, pid_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:149: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(info->tmpname, "_"), uniq); data/maildrop-2.9.3/libs/maildir/maildircreate.c:151: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(info->tmpname, hostname); data/maildrop-2.9.3/libs/maildir/maildircreate.c:152: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(info->tmpname, len_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:211: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(info->newname, maildir); data/maildrop-2.9.3/libs/maildir/maildircreate.c:213: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(info->newname, time_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:215: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(info->newname, usec_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:217: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(info->newname, pid_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:219: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(info->newname, dev_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:221: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(info->newname, ino_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:223: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(info->newname, "_"), uniq); data/maildrop-2.9.3/libs/maildir/maildircreate.c:225: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(info->newname, hostname); data/maildrop-2.9.3/libs/maildir/maildircreate.c:226: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(info->newname, len_buf); data/maildrop-2.9.3/libs/maildir/maildircreate.c:228: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(info->curname, info->newname); data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:54: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(strcat(strcpy(s, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:54:16: [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(s, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:78: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(strcat(strcpy(p, dir), "/cur/"), filename); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:78:16: [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(p, dir), "/cur/"), filename); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:136: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(strcat(strcpy(p, dir), "/cur/"), data/maildrop-2.9.3/libs/maildir/maildirfilename.c:136: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). strcat(strcat(strcpy(p, dir), "/cur/"), data/maildrop-2.9.3/libs/maildir/maildirfilter.c:431: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->tofolder, folder); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:817: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(new_folder, INBOX); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:951: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(strcat(strcat(strcpy(p, i->name), dsn_arg), days_arg), data/maildrop-2.9.3/libs/maildir/maildirfilter.c:951:9: [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(strcat(strcpy(p, i->name), dsn_arg), days_arg), data/maildrop-2.9.3/libs/maildir/maildirfilter.c:951:16: [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(strcat(strcpy(p, i->name), dsn_arg), days_arg), data/maildrop-2.9.3/libs/maildir/maildirfilter.c:951:23: [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(strcat(strcpy(p, i->name), dsn_arg), days_arg), data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:31: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). strcat(strcpy(p, maildir), "/maildirfilterconfig"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:72: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). strcat(strcpy(q, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:73: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(q, p); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:107: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). strcat(strcpy(createInfo.newname, maildir), data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:177: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). strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:213: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). strcat(strcpy(createInfo.newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:238: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). strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:270: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). strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:59: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). strcat(strcpy(newd, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:60: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). strcat(strcpy(curd, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:101: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(np, newd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:101: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(np, newd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:103: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(cp, curd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:103: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(cp, curd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:111:14: [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). if (!a) strcat(cp, MDIRSEP "2,"); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:27: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). strcat(strcpy(p, dir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:30: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). strcat(strcpy(p, dir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:36: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). strcat(strcpy(p, dir), "/maildirsize"); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:187:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(info->owner, "user="), myId); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:345: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(info->owner, subhierarchy); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:380:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(info->maildir, INBOX), ifs.path); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:380: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). strcat(strcpy(info->maildir, INBOX), ifs.path); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:462: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). f=strcat(strcat(n, "."), p); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:464: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). f=strcpy(n, p); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:691:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(info->owner, "user="), myId); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:807: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(info->owner, subhierarchy); data/maildrop-2.9.3/libs/maildir/maildirkeywords.c:132: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(keywordName(eNew), name); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:134: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(strcpy(p, maildir), "/" KEYWORDDIR); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:134: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). strcat(strcpy(p, maildir), "/" KEYWORDDIR); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:162: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). strcat(strcpy(kwname, dir), "/:list"); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:416: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(strcat(strcpy(p, dir), "/"), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:416: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). strcat(strcat(strcpy(p, dir), "/"), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:443: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(p, dir), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:443: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(p, dir), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:524:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(q, "%s/.%s.%s", dir, b, r); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:581:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s", dir, fn); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:583:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/.%s.%s", dir, b, fn); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:824:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s", dir, fn); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:826:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(q, "%s/.%s.%s", dir, b, fn); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:856:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/.%s.%s", dir, b, fn); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:915: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(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:915:16: [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(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:977: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(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:977: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(strcat(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:977:24: [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(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirlist.c:63: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(strcat(strcat(strcpy(p, maildir), "/"), de->d_name), data/maildrop-2.9.3/libs/maildir/maildirlist.c:63:24: [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(strcat(strcpy(p, maildir), "/"), de->d_name), data/maildrop-2.9.3/libs/maildir/maildirlist.c:66:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(p, X_OK)) data/maildrop-2.9.3/libs/maildir/maildirlist.c:72: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(p, INBOX); data/maildrop-2.9.3/libs/maildir/maildirlist.c:75: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(p, de->d_name); data/maildrop-2.9.3/libs/maildir/maildirlock.c:53: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(strrchr(newname, '/')-3, WATCHDOTLOCK); data/maildrop-2.9.3/libs/maildir/maildirmake.c:54: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(c, name); data/maildrop-2.9.3/libs/maildir/maildirmake.c:61:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(s, R_OK)) data/maildrop-2.9.3/libs/maildir/maildirmake.c:171: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(buf2, buf); data/maildrop-2.9.3/libs/maildir/maildirmake.c:331: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(p, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirmake.c:331: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(p, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirmake2.c:49: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). mkdir(strcat(strcpy(q, maildir), "/tmp"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:51: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). mkdir(strcat(strcpy(q, maildir), "/new"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:53: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). mkdir(strcat(strcpy(q, maildir), "/cur"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:55:33: [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). (folder && (fd=open(strcat(strcpy(q, maildir), "/maildirfolder"), data/maildrop-2.9.3/libs/maildir/maildirmake2.c:93: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(strcat(strcpy(filenamebuf[n], maildir), data/maildrop-2.9.3/libs/maildir/maildirmake2.c:93: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). strcat(strcat(strcpy(filenamebuf[n], maildir), data/maildrop-2.9.3/libs/maildir/maildirmkdir.c:38: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, dir); data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:117: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(p+n, maildir); data/maildrop-2.9.3/libs/maildir/maildiropen.c:85: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(q, path); data/maildrop-2.9.3/libs/maildir/maildiropen.c:89: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(q, l); data/maildrop-2.9.3/libs/maildir/maildirpath.c:62:12: [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(strcat(strcpy(p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirpath.c:62:26: [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(strcat(strcpy(p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirpath.c:83: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(strcat(strcpy(p, homedir), "/"), maildir); data/maildrop-2.9.3/libs/maildir/maildirpath.c:83:16: [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(p, homedir), "/"), maildir); data/maildrop-2.9.3/libs/maildir/maildirpath.c:100: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(p, maildir); data/maildrop-2.9.3/libs/maildir/maildirpath.c:124: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). strcat(strcpy(p, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirpath.c:126: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(strcat(p, "."), foldername)); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:61: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(z, m), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:61: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(z, m), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:85: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). strcat(strcpy(m, maildir), "/tmp"); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:110: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). strcat(strcpy(m, maildir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.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). strcat(strcpy(m, maildir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:86: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). strcat(strcpy(buf, maildir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:89: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). strcat(strcpy(buf, maildir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirquota.c:104: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). strcat(strcpy(info->maildirsizefile=buf, maildir), "/maildirsize"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:597: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(strcat(buf, libmail_str_int64_t(info->quota.nbytes, n)), data/maildrop-2.9.3/libs/maildir/maildirquota.c:597:11: [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(buf, libmail_str_int64_t(info->quota.nbytes, n)), data/maildrop-2.9.3/libs/maildir/maildirquota.c:611: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(strcat(buf, data/maildrop-2.9.3/libs/maildir/maildirquota.c:611:11: [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(buf, data/maildrop-2.9.3/libs/maildir/maildirquota.c:618:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf + strlen(buf), data/maildrop-2.9.3/libs/maildir/maildirquota.c:621:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf + strlen(buf), data/maildrop-2.9.3/libs/maildir/maildirquota.c:663: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). strcat(strcpy(p, dir), "/tmp/"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:664:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p+strlen(p), "%s.%s_NeWmAiLdIrSiZe.%s", data/maildrop-2.9.3/libs/maildir/maildirquota.c:683: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). strcat(strcpy(p, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:686: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). strcat(strcpy(p, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:708: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(strcat(strcpy(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:708:16: [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(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:723: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). strcat(strcpy(p, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:727: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). strcat(strcpy(p, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:747: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(strcat(strcpy(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:747:16: [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(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:784: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(strcat(strcpy(p, dir), "/"), n); data/maildrop-2.9.3/libs/maildir/maildirquota.c:784: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). strcat(strcat(strcpy(p, dir), "/"), n); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1025: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). strcat(strcpy(qname, dir), "/quotawarn"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1135: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). strcat(strcpy(p, dir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1141: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). strcat(strcpy(p, dir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirrename.c:189:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(nn, 0) == 0) data/maildrop-2.9.3/libs/maildir/maildirrename.c:227:11: [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(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:227:25: [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(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:229:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(tst_cur, 0)) data/maildrop-2.9.3/libs/maildir/maildirrename.c:248: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(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:248: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). strcat(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:261: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(strcat(strcpy(new_p, maildir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:261: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). strcat(strcat(strcpy(new_p, maildir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:292: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(strcat(strcpy(tst_cur, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:292: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(strcat(strcat(strcpy(tst_cur, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:292:24: [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(strcat(strcpy(tst_cur, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:305: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(new_p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:305: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(new_p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:341:26: [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). rc=scan_aclhier2_rename(strcat(strcpy(aclhier, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:341:33: [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). rc=scan_aclhier2_rename(strcat(strcpy(aclhier, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:390: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(strcat(strcpy(tst_cur, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:390: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). strcat(strcat(strcpy(tst_cur, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:403: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(strcat(strcpy(new_p, aclhierdir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:403: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). strcat(strcat(strcpy(new_p, aclhierdir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:435: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(strcat(strcpy(tst_cur, aclhierdir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:435: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(strcat(strcat(strcpy(tst_cur, aclhierdir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:435:24: [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(strcat(strcpy(tst_cur, aclhierdir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:448: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(new_p, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:448: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(new_p, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrequota.c:30: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(p + (q-oldname), buf); data/maildrop-2.9.3/libs/maildir/maildirrequota.c:36: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(p, q); data/maildrop-2.9.3/libs/maildir/maildirrequota.c:41: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(p, oldname), buf)); data/maildrop-2.9.3/libs/maildir/maildirrequota.c:41: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(p, oldname), buf)); data/maildrop-2.9.3/libs/maildir/maildirshared.c:118: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(strcat(strcat(strcpy(z, path), data/maildrop-2.9.3/libs/maildir/maildirshared.c:118:24: [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(strcat(strcpy(z, path), data/maildrop-2.9.3/libs/maildir/maildirshared.c:129:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(z, pfix), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:129: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). strcat(strcpy(z, pfix), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:199:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(buf, maildir), "/" SHAREDSUBDIR); data/maildrop-2.9.3/libs/maildir/maildirshared.c:199: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). strcat(strcpy(buf, maildir), "/" SHAREDSUBDIR); data/maildrop-2.9.3/libs/maildir/maildirshared.c:205: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(buf, name+1); data/maildrop-2.9.3/libs/maildir/maildirshared.c:242: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). symlink( strcat(strcat(strcpy(link, dir), "/"), name), data/maildrop-2.9.3/libs/maildir/maildirshared.c:242:27: [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). symlink( strcat(strcat(strcpy(link, dir), "/"), name), data/maildrop-2.9.3/libs/maildir/maildirshared.c:277: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(strcpy(sh, maildir), "/" SHAREDSUBDIR); data/maildrop-2.9.3/libs/maildir/maildirshared.c:277: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). strcat(strcpy(sh, maildir), "/" SHAREDSUBDIR); data/maildrop-2.9.3/libs/maildir/maildirshared.c:290: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(z, sh), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:290: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(z, sh), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:301: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(strcat(strcpy(s, de->d_name), "."), de2->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:301: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). strcat(strcat(strcpy(s, de->d_name), "."), de2->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:344: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). strcat(strcpy(shareddir, dir),"/shared"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:415: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). strcat(strcpy(dummy, shared), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:440: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(a, de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:441: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(b, de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:507: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(cur_base, de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:534: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(cur_base, cur), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:534: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(cur_base, cur), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:602: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). strcat(strcpy(p, shareddir), "/cur/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:673: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). strcat(strcpy(slink, shared), "/cur/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:697: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). strcat(strcpy(slink, cur), "/new/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:700: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(q+keylen, MDIRSEP "2,"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:734: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). strcat(strcpy(shared_update_name, dir), "/shared-timestamp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:744: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). if ( stat( strcat(strcpy(cur, shared), "/new"), &stat2) == 0 && data/maildrop-2.9.3/libs/maildir/maildirshared.c:746: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). stat( strcat(strcpy(cur, shared), "/cur"), &stat2) data/maildrop-2.9.3/libs/maildir/maildirshared.c:782: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). strcat(strcpy(cur, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:785: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). strcat(strcpy(cur, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:808: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). strcat(strcpy(p, maildir), "/shared/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:810:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(p, W_OK) == 0) data/maildrop-2.9.3/libs/maildir/maildirshared2.c:26: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). strcat(strcpy(m, maildir), "/shared-maildirs"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:84: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). strcat(strcpy(p, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:85: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(p, SHAREDSUBDIR "/"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:87: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(q, sharedname); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:61: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(strcpy(w->maildir, wd), maildir); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:61: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). strcat(strcpy(w->maildir, wd), maildir); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:238: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(strcpy(p, w->maildir), "/" WATCHDOTLOCK); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:238: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). strcat(strcpy(p, w->maildir), "/" WATCHDOTLOCK); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:346: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). strcat(strcpy(s, w->maildir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:364: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). strcat(strcpy(s, w->maildir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:388:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(s, w->maildir), "/" KEYWORDDIR); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:388: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). strcat(strcpy(s, w->maildir), "/" KEYWORDDIR); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:443:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:44:9: [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(strcat(strcat(b, identifier), "."), data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:44: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). strcat(strcat(strcat(strcat(b, identifier), "."), data/maildrop-2.9.3/libs/maildrop/deliver.C:278:2: [4] (shell) execle: 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. execle(shell, q, "-c", cmd, (const char *)0, env); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:284: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, linebuf); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:422: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(strcat(strcpy(cmdbuf, cmdpart1), user), cmdpart2); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:422:9: [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(cmdbuf, cmdpart1), user), cmdpart2); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:422:16: [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(cmdbuf, cmdpart1), user), cmdpart2); data/maildrop-2.9.3/libs/maildrop/mailbot.c:154: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(strcat( prevhdr->buf, "\n"), buf); data/maildrop-2.9.3/libs/maildrop/mailbot.c:301: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, recips); data/maildrop-2.9.3/libs/maildrop/mailbot.c:357: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(strcpy(dbname, dbfile), "." DBNAME); data/maildrop-2.9.3/libs/maildrop/mailbot.c:357: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). strcat(strcpy(dbname, dbfile), "." DBNAME); data/maildrop-2.9.3/libs/maildrop/mailbot.c:358: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). strcat(strcpy(lockname, dbfile), ".lock"); data/maildrop-2.9.3/libs/maildrop/mailbot.c:432:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(newargv[0], newargv); data/maildrop-2.9.3/libs/maildrop/mailbot.c:593: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(dirbuf, maildirfolder), "/"), data/maildrop-2.9.3/libs/maildrop/mailbot.c:593: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(dirbuf, maildirfolder), "/"), data/maildrop-2.9.3/libs/maildrop/mailbot.c:621: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(strcat(strcpy(filenamebuf, dirbuf), "/"), data/maildrop-2.9.3/libs/maildrop/mailbot.c:621: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). strcat(strcat(strcpy(filenamebuf, dirbuf), "/"), data/maildrop-2.9.3/libs/maildrop/main.C:123: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, trusted_users); data/maildrop-2.9.3/libs/maildrop/main.C:140: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, trusted_groups); data/maildrop-2.9.3/libs/maildrop/main.C:551: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(embedded_filter, optarg); data/maildrop-2.9.3/libs/maildrop/recipenode.C:625:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. case system: data/maildrop-2.9.3/libs/maildrop/recipenode.h:100:3: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system, data/maildrop-2.9.3/libs/maildrop/recipeparse.C:178:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. n=alloc(RecipeNode::system); data/maildrop-2.9.3/libs/maildrop/reformail.C:978:4: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp( argv[argn], argv+argn); data/maildrop-2.9.3/libs/maildrop/tempfile.C:67: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(filename, fname); data/maildrop-2.9.3/libs/numlib/changeuidgid.c:66: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, uname); data/maildrop-2.9.3/libs/numlib/strdevt.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strgidt.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strhdevt.c:27: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strhinot.c:27: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strhpidt.c:27: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strhtimet.c:27: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strinot.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strofft.c:35: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strofft.c:60: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strpidt.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strsize.c:24:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, p); data/maildrop-2.9.3/libs/numlib/strsizet.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/strtimet.c:24: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(arg, p)); data/maildrop-2.9.3/libs/numlib/struidt.c:24: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(arg, p)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:223: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). argp->arg=strcpy((char *)(argp+1), q); data/maildrop-2.9.3/libs/rfc2045/makemime.c:853: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(bbuf, libmail_str_size_t(++n, buf)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:855: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(bbuf, libmail_str_time_t(t, buf)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:857: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(bbuf, libmail_str_pid_t(pid, buf)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:954: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(old_boundary, buffer); data/maildrop-2.9.3/libs/rfc2045/makemime.c:1060: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+1, libmail_str_size_t(pipefd[0], buf2)); data/maildrop-2.9.3/libs/rfc2045/reformime.c:124:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s.%s-%u.%s", tempdir, timebuf, pidbuf, counter++, data/maildrop-2.9.3/libs/rfc2045/reformime.c:430:26: [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). disposition_filename_s=strcat(strcat(strcpy( data/maildrop-2.9.3/libs/rfc2045/reformime.c:430:40: [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). disposition_filename_s=strcat(strcat(strcpy( data/maildrop-2.9.3/libs/rfc2045/reformime.c:447: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). if (pfix) strcpy(p, pfix); data/maildrop-2.9.3/libs/rfc2045/reformime.c:449: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). for (strcpy(q, disposition_filename_s); *q; q++) data/maildrop-2.9.3/libs/rfc2045/reformime.c:615:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcpy(f, "CONTENT_TYPE="), content_type_s); data/maildrop-2.9.3/libs/rfc2045/reformime.c:620: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(argv[0], argv); data/maildrop-2.9.3/libs/rfc2045/rfc2045.c:235: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, q); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:75: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, loc); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:98: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). strcat(strcpy(q, base_path), "/"); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:121: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(q, loc_path); data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:52:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cntbuf, "%4s", tempbuf); data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:63:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "=_%-1.30s-%s-%s-%s", hostnamebuf, data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:862:14: [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). if (oldref) strcat(buf, oldref); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:864:16: [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). if (oldmsgid) strcat(buf, oldmsgid); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1070: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). strcat(strcpy(newh, oldtocc), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1072: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(newh, value); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1090: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(newh, oldtolist), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1092: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(newh, p); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1696: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(mlbuffer, ri->mailinglists ? ri->mailinglists:""); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:384:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "\n--%s-%d\n", rw_boundary_root, bcnt); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:388:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "\n--%s-%d--\n", rw_boundary_root, bcnt); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:61: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(strcat(strcpy(p, "\""), value), "\""); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:81:9: [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(strcat(strcpy(p, charset), "'"),language), "'"); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:81:23: [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(strcat(strcpy(p, charset), "'"),language), "'"); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:123:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(r, "%s*%d*", name, n++); data/maildrop-2.9.3/libs/rfc822/imaprefs.c:110: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 ((msgp->msgid=(char *)(msgp+1)), msgid); data/maildrop-2.9.3/libs/rfc822/imapsubj.c:302: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(r, q); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:62: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(cpy, domain); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:92: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(q + pfix_len, p); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:343: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(cpy, p); data/maildrop-2.9.3/libs/rfc822/rfc822_mkdate.c:95:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s, %02d %s %04d %02d:%02d:%02d %+05d", data/maildrop-2.9.3/libs/rfc822/rfc822_parsedt.c:249:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s, %02d %s %04d %02d:%02d:%02d GMT", data/maildrop-2.9.3/libs/liblock/lockmail.c:73:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((optchar=getopt(argc, argv, "+rt:")) != -1) data/maildrop-2.9.3/libs/liblock/locktest.c:31:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((tmpdir = (char *)getenv("TMPDIR")) == NULL || !*tmpdir) data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1205: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. c=getenv("OPTIONS"); data/maildrop-2.9.3/libs/maildir/maildircache.c:304:6: [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. p=getenv(authvars[i]); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:739:22: [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. createInfo.hostname=getenv("HOSTNAME"); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:927:22: [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. createInfo.hostname=getenv("HOSTNAME"); data/maildrop-2.9.3/libs/maildir/maildirkw.c:316:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((optc=getopt(argc, argv, "arLlhc")) != -1) data/maildrop-2.9.3/libs/maildir/maildirlock.c:37:22: [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. createInfo.hostname=getenv("HOSTNAME"); data/maildrop-2.9.3/libs/maildir/testmaildirfilter.c:24:21: [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 *charset=getenv("CHARSET"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:135: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. const char *p=getenv("TIMEOUT_SOCK"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:143: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. const char *p=getenv("TIMEOUT_READ"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:151: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. const char *p=getenv("TIMEOUT_WRITE"); data/maildrop-2.9.3/libs/maildrop/mailbot.c:864: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. sender=getenv("SENDER"); data/maildrop-2.9.3/libs/maildrop/main.C:817: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. if ((p=getenv("HOME")) && *p) data/maildrop-2.9.3/libs/maildrop/main.C:820: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. if ((p=getenv("LOGNAME")) && *p) data/maildrop-2.9.3/libs/maildrop/main.C:823: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. if ((p=getenv("SHELL")) && *p) data/maildrop-2.9.3/libs/maildrop/main.C:826: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. p=getenv("MAILDROPDEFAULT"); data/maildrop-2.9.3/libs/maildrop/main.C:830:6: [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. p=getenv("LOCAL"); data/maildrop-2.9.3/libs/maildrop/main.C:839: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. if ((p=getenv("MAILDIRQUOTA")) && *p) data/maildrop-2.9.3/libs/maildrop/recipenode.C:808:19: [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 *val=getenv(name); data/maildrop-2.9.3/libs/maildrop/reformail.C:913:6: [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. env=getenv("FILENO"); data/maildrop-2.9.3/libs/bdbobj/bdbobj.c:133:20: [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 ( (*obj->dbf->open)(obj->dbf, data/maildrop-2.9.3/libs/bdbobj/bdbobj.c:212:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, p, *datalen); data/maildrop-2.9.3/libs/bdbobj/bdbobj2.c:47:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*val, value.data, *vallen); data/maildrop-2.9.3/libs/bdbobj/bdbobj2.c:77:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*val, value.data, *vallen); data/maildrop-2.9.3/libs/bdbobj/testbdb.C:62:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k->key, key, keylen); data/maildrop-2.9.3/libs/bdbobj/testbdb.C:64:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k->data, data, datalen); data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:63:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k->key, key, keylen); data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:65:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k->data, data, datalen); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:125:9: [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 fd=open("/dev/tty", O_RDWR); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:138:9: [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). lockfd=open(lockfile, O_RDWR|O_CREAT, 0600); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:145: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). lockfd=open(lockfile, O_RDWR|O_CREAT, 0600); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:200:6: [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 (open("/dev/null", O_RDONLY) != 0) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:204:4: [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). i=open(CONSOLE, O_WRONLY); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:205: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 (i < 0) i=open("/dev/null", O_WRONLY); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:209:4: [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). i=open(CONSOLE, O_WRONLY); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:210: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 (i < 0) i=open("/dev/null", O_WRONLY); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:217: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 buf[NUMBUFSIZE+1]; data/maildrop-2.9.3/libs/liblock/lockdaemon.c:222:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(pidfile, "w")) == NULL || data/maildrop-2.9.3/libs/liblock/lockdaemon.c:284: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 ((lockfd=open(lockfile, O_RDWR|O_CREAT, 0600)) < 0) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:314:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(pidfile, "r")) == NULL) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:345: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 ((lockfd=open(lockfile, O_RDWR|O_CREAT, 0600)) < 0) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:358:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(pidfile, "r")) == NULL) data/maildrop-2.9.3/libs/liblock/lockmail.c:79:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ntries=atoi(optarg); data/maildrop-2.9.3/libs/liblock/lockmail.c:112:9: [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 ((n=open(argv[optind], O_RDWR|O_CREAT, 0600)) >= 0) data/maildrop-2.9.3/libs/liblock/locktest.c:49:9: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if ((f=mkstemp(name)) < 0) data/maildrop-2.9.3/libs/liblock/locktest.c:69: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). if ((f=open(name, O_RDWR)) < 0) data/maildrop-2.9.3/libs/liblock/mail.c:62: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(idbuf, "localhost"); data/maildrop-2.9.3/libs/liblock/mail.c:105:10: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pid_t p=atol(idbuf); data/maildrop-2.9.3/libs/liblock/mail.c:118: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 idbuf[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:119: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 idbuf2[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:121: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 fn[NUMBUFSIZE*2 + 20]; data/maildrop-2.9.3/libs/liblock/mail.c:146: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). if ((fd=open(f, O_RDWR|O_CREAT|O_EXCL, 0644)) >= 0) data/maildrop-2.9.3/libs/liblock/mail.c:184: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). if ((fd=open(f, O_RDONLY)) >= 0) data/maildrop-2.9.3/libs/liblock/mail.c:232:36: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). static int try_dotlock(const char *tmpfile, data/maildrop-2.9.3/libs/liblock/mail.c:238: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 timebuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:239: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 pidbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:273: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). fd=open(tmpname, O_RDWR | O_CREAT, 0644); data/maildrop-2.9.3/libs/liblock/mail.c:302: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 idbuf[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:306: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). if ((fd=open(dotlock, O_RDONLY)) >= 0) data/maildrop-2.9.3/libs/liblock/mail.c:350:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char myidbuf[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:358:6: [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(p->file, ro ? O_RDONLY:O_RDWR); data/maildrop-2.9.3/libs/liblock/mail.c:373:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(dotlock, p->file), ".lock"); data/maildrop-2.9.3/libs/liblock/mail.c:377:6: [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(p->file, ro ? O_RDONLY:O_RDWR); data/maildrop-2.9.3/libs/liblock/mail.c:401:6: [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(p->file, ro ? O_RDONLY:O_RDWR); data/maildrop-2.9.3/libs/liblock/mail.c:444:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char myid[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:445: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 idbuf[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:464: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). int fd=open(p->dotlock, O_RDONLY); data/maildrop-2.9.3/libs/liblock/mail.c:487:49: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). int ll_dotlock(const char *dotlock, const char *tmpfile, data/maildrop-2.9.3/libs/liblock/mail.c:490: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 myidbuf[IDBUFSIZE]; data/maildrop-2.9.3/libs/liblock/mail.c:494:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (try_dotlock(tmpfile, dotlock, myidbuf)) data/maildrop-2.9.3/libs/liblock/mail.h:101:49: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). int ll_dotlock(const char *dotlock, const char *tmpfile, data/maildrop-2.9.3/libs/maildir/autoresponse.c:65:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(d, maildir), "/autoresponses"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:173:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. return (strcat(strcat(strcpy(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/autoresponse.c:242:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/autoresponse.c:246:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(f, "r")) == NULL) data/maildrop-2.9.3/libs/maildir/autoresponse.c:298:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, maildir), "/autoresponsesquota"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:329:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, maildir), "/autoresponses"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:347:10: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(p, maildir), "/autoresponses/"), data/maildrop-2.9.3/libs/maildir/autoresponse.c:375:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(p, ".tmp"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:376:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(p, "w"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:384: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). fp=fopen(p, "w"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:408:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(p, ".tmp"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:416:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(p, ".tmp"); data/maildrop-2.9.3/libs/maildir/autoresponse.c:442:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(p, "r"); data/maildrop-2.9.3/libs/maildir/deliverquota.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/deliverquota.c:179:25: [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). quota_warn_percent = atoi(argv[i+1]); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:397:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildiraclt.c:442:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(strcat(strcpy(q, p), "/" ACLFILE), "r"); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:466:10: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:469: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). fp=fopen(q, "r"); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:634:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(q, maildir), "/" ACLHIERDIR "/"), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:826:10: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(q, maildir), "/" ACLHIERDIR "/"), path+1); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1006:11: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(p, maildir), data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1194:9: [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. strcat(strcpy(a, "user="), c); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1225:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a, q, p-q); data/maildrop-2.9.3/libs/maildir/maildircache.c:80: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircache.c:147: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 buf[2048]; data/maildrop-2.9.3/libs/maildir/maildircache.c:234:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(f, "w")) == 0) /* Try creating subdirs */ data/maildrop-2.9.3/libs/maildir/maildircache.c:246:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(f, "w")) == 0) data/maildrop-2.9.3/libs/maildir/maildircache.c:283: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 buf[2048]; data/maildrop-2.9.3/libs/maildir/maildircache.c:284: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 buf2[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircache.c:337: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 dir[1024]; data/maildrop-2.9.3/libs/maildir/maildircache.c:343:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(f, "r"); data/maildrop-2.9.3/libs/maildir/maildircache.c:544:7: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atol(de->d_name) >= now) data/maildrop-2.9.3/libs/maildir/maildircreate.c:89: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 hostname_buf[256]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:90: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 time_buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:91: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 usec_buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pid_buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:93: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 len_buf[NUMBUFSIZE+3]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:94: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 dev_buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:95: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 ino_buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildircreate.c:110:4: [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(hostname_buf, "localhost"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:122: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(len_buf, ",S="); data/maildrop-2.9.3/libs/maildir/maildircreate.c:141:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(info->tmpname, "/tmp/"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:143:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(info->tmpname, ".M"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:212:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(info->newname, "/new/"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:214:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(info->newname, ".M"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:229:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(info->curname + strlen(maildir)+1, "cur", 3); data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:54:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(s, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:78:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(p, dir), "/cur/"), filename); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:136:12: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(p, dir), "/cur/"), data/maildrop-2.9.3/libs/maildir/maildirfilter.c:514:9: [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 *f=fopen(filename, "w"); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:725:9: [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 *f=fopen(filename, "r"); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:726: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:730: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 new_header[256]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:731: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 new_value[256]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:732: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 new_folder[256]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:733: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 new_autoreplyfrom[512]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:746:8: [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). flags=atoi(buf+12); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:906:15: [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). i->dsnflag=atoi(p+4) ? 1:0; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:908:12: [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). i->days=atoi(p+5); data/maildrop-2.9.3/libs/maildir/maildirfilter.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 days_buf[NUMBUFSIZE+10]; data/maildrop-2.9.3/libs/maildir/maildirfilter.c:938: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(days_buf, " days="); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:27:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char configbuf[256]; data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:31:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, maildir), "/maildirfilterconfig"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:32:4: [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). f=fopen(p, "r"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:35:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f) f=fopen(MAILDIRFILTERCONFIG, "r"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:107:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(createInfo.newname, maildir), data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:110:9: [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 ((i=fopen(maildirfilter, "r")) == 0) data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:132:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:177:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:213:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(createInfo.newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:238:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:270:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(newname, maildir), "/maildirfilter.tmp"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:59:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(newd, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:60:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(curd, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:77:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *new_buf[20]; data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:78: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 *cur_buf[20]; data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:17:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int maildir_getquota(const char *dir, char buf[QUOTABUFSIZE]) data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:17:39: [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. int maildir_getquota(const char *dir, char buf[QUOTABUFSIZE]) data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:27:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:30:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:36:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/maildirsize"); data/maildrop-2.9.3/libs/maildir/maildirgetquota.h:23:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int maildir_getquota(const char *, char [QUOTABUFSIZE]); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:187:10: [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. strcat(strcpy(info->owner, "user="), myId); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:344:4: [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(info->owner, "user="); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:593:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gefi->pathname, f, j); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:691:10: [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. strcat(strcpy(info->owner, "user="), myId); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:806:4: [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(info->owner, "user="); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:162:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(kwname, dir), "/:list"); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:164:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(kwname, "r"); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:327:7: [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). l=atoi(q); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:505:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:553:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:590: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). fp=fopen(p, "r"); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:792:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:915:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:965:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timeBuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:977:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcat(strcpy(n, maildir), data/maildrop-2.9.3/libs/maildir/maildirlist.c:63:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcat(strcpy(p, maildir), "/"), de->d_name), data/maildrop-2.9.3/libs/maildir/maildirmake.c:46: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirmake.c:78:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(MAILDIRSHAREDRC, "r")) != 0) data/maildrop-2.9.3/libs/maildir/maildirmake.c:136: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirmake.c:137: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 buf2[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirmake.c:331:10: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcpy(p, maildir), "/."), folder); data/maildrop-2.9.3/libs/maildir/maildirmake2.c:49:12: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. mkdir(strcat(strcpy(q, maildir), "/tmp"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:51:12: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. mkdir(strcat(strcpy(q, maildir), "/new"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:53:12: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. mkdir(strcat(strcpy(q, maildir), "/cur"), subdirperm) < 0 || data/maildrop-2.9.3/libs/maildir/maildirmake2.c:55:21: [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). (folder && (fd=open(strcat(strcpy(q, maildir), "/maildirfolder"), data/maildrop-2.9.3/libs/maildir/maildirmake2.c:55:26: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (folder && (fd=open(strcat(strcpy(q, maildir), "/maildirfolder"), data/maildrop-2.9.3/libs/maildir/maildirmake2.c:69: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 *filenamebuf[100]; data/maildrop-2.9.3/libs/maildir/maildirmkdir.c:39:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf+l, "/cur"); data/maildrop-2.9.3/libs/maildir/maildirmkdir.c:59:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf+l, "/new"); data/maildrop-2.9.3/libs/maildir/maildirmkdir.c:69:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf+l, "/tmp"); data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:27: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 ((info->fp=fopen(maildir_newshared_disabled ? data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:58: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 linebuf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:116:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, info->indexfile, n); data/maildrop-2.9.3/libs/maildir/maildiropen.c:116:9: [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 fd=open(path, mode data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:85:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(m, maildir), "/tmp"); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:110:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(m, maildir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:112:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(m, maildir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:86:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(buf, maildir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:89:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(buf, maildir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirquota.c:104:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(info->maildirsizefile=buf, maildir), "/maildirsize"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:120:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5120]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:131:28: [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 ((info->fd=(newquota ? open("/dev/null", O_RDWR): data/maildrop-2.9.3/libs/maildir/maildirquota.c:581: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 n[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:582:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[NUMBUFSIZE * 4 + 32 ]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:592: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 b[2]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:603: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 b[2]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:646: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 hostname[256]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:659: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 tbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:660:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:663:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/tmp/"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:683:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:686:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:723:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:727:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:996: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 hostname[256]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:997:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/maildrop-2.9.3/libs/maildir/maildirquota.c:1005:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdin=open(msgfile, O_RDONLY); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1010:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdin=open(msgfile, O_RDONLY); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1025:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(qname, dir), "/quotawarn"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1036: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(qname, O_WRONLY|O_CREAT|O_TRUNC, 0644); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1048:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "Date: "); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1055:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf+strlen(buf), "Message-Id: <%lu.overquota@%-1.256s>\n", data/maildrop-2.9.3/libs/maildir/maildirquota.c:1135:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1141:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, dir), "/.."); data/maildrop-2.9.3/libs/maildir/maildirrename.c:227:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrequota.c:16: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 buf[40]; data/maildrop-2.9.3/libs/maildir/maildirrequota.c:20:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, ",S=%lu", s); data/maildrop-2.9.3/libs/maildir/maildirrequota.c:29:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, oldname, q-oldname); data/maildrop-2.9.3/libs/maildir/maildirsearch.c:29:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sei->string, s, n * sizeof(*s)); data/maildrop-2.9.3/libs/maildir/maildirshared.c:72: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirshared.c:82: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). : fopen (MAILDIRSHAREDRC, "r"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:118:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcat(strcat(strcpy(z, path), data/maildrop-2.9.3/libs/maildir/maildirshared.c:138: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 linebuf[BUFSIZ]; data/maildrop-2.9.3/libs/maildir/maildirshared.c:167: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). : fopen (MAILDIRSHAREDRC, "r"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:209: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(s, "tmp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:217: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(s, "cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:220:4: [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(s, "tmp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:227: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(s, "new"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:230:4: [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(s, "cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:232:4: [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(s, "tmp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:240: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(s, "shared"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:246:4: [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(s, "new"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:248:4: [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(s, "cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:250:4: [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(s, "tmp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:344:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(shareddir, dir),"/shared"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:415:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(dummy, shared), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:602:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, shareddir), "/cur/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:604:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, msgfilename, msgfilenamelen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:673:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(slink, shared), "/cur/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:675:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, val, vallen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:697:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(slink, cur), "/new/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:699:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, key, keylen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:734:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(shared_update_name, dir), "/shared-timestamp"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:744:14: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if ( stat( strcat(strcpy(cur, shared), "/new"), &stat2) == 0 && data/maildrop-2.9.3/libs/maildir/maildirshared.c:746:10: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. stat( strcat(strcpy(cur, shared), "/cur"), &stat2) data/maildrop-2.9.3/libs/maildir/maildirshared.c:782:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(cur, dir), "/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:785:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(cur, dir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:808:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(p, maildir), "/shared/cur"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:26:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(m, maildir), "/shared-maildirs"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:28:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(m, mode); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:38: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 wd[PATH_MAX]; data/maildrop-2.9.3/libs/maildir/maildirwatch.c:346:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(s, w->maildir), "/new"); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:364:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(s, w->maildir), "/cur"); data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8192]; data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:103:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "confmdtest/new/msg%d", i); data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:104:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). CHK((fd=open(buf, O_RDWR|O_CREAT|O_TRUNC, 0600)) >= 0); data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:190:16: [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 const char *id[3]; data/maildrop-2.9.3/libs/maildrop/buffer.C:18:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (bufsize) memcpy(newbuf, buf, bufsize); data/maildrop-2.9.3/libs/maildrop/buffer.C:41:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, p, l); data/maildrop-2.9.3/libs/maildrop/buffer.C:84:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (o.buflength) memcpy(buf, o.buf, o.buflength); data/maildrop-2.9.3/libs/maildrop/buffer.C:101:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newbuf, buf, buflength); data/maildrop-2.9.3/libs/maildrop/buffer.C:107:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (l) memcpy(buf+buflength, p, l); data/maildrop-2.9.3/libs/maildrop/buffer.C:113: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 tbuf[40]; data/maildrop-2.9.3/libs/maildrop/buffer.C:127: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 tbuf[MAXLONGSIZE < 40 ? 40:MAXLONGSIZE+4]; data/maildrop-2.9.3/libs/maildrop/buffer.C:129:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tbuf, "%1.*g", MAXLONGSIZE, d); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:136:9: [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). int n=atoi(p ? p:"0"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:144:9: [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). int n=atoi(p ? p:"0"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:152:9: [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). int n=atoi(p ? p:"0"); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:194: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/maildrop-2.9.3/libs/maildrop/dovecotauth.c:300:6: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). u=atol(p+4); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:311:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). a.sysgroupid=atol(p+4); data/maildrop-2.9.3/libs/maildrop/filter.C:65: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 buffer[1024]; data/maildrop-2.9.3/libs/maildrop/filter.C:279: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). int devnull=open("/dev/null", O_RDONLY); data/maildrop-2.9.3/libs/maildrop/funcs.C:48: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 hostname[256]; data/maildrop-2.9.3/libs/maildrop/lexer.C:303:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (unsigned char)((const char *)pattern)[1]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:122:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:358:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(strcpy(lockname, dbfile), ".lock"); data/maildrop-2.9.3/libs/maildrop/mailbot.c:360:9: [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). lockfd=open(lockname, O_RDWR|O_CREAT, 0666); data/maildrop-2.9.3/libs/maildrop/mailbot.c:440:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:498:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:525:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:536:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:576:15: [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 const char * const newcur[2]={"new", "cur"}; data/maildrop-2.9.3/libs/maildrop/mailbot.c:623:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). new_file=fopen(filenamebuf, "r"); data/maildrop-2.9.3/libs/maildrop/mailbot.c:827:22: [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). interval=optarg ? atoi(optarg):1; data/maildrop-2.9.3/libs/maildrop/mailbot.c:904:8: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfp=tmpfile(); data/maildrop-2.9.3/libs/maildrop/mailbot.c:993:27: [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 ((replyinfo.contentf=fopen(mimefile, "r")) == NULL) data/maildrop-2.9.3/libs/maildrop/mailbot.c:1002: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/mailbot.c:1059:27: [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 ((replyinfo.contentf=fopen(txtfile, "r")) == NULL) data/maildrop-2.9.3/libs/maildrop/mailbot.c:1079:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). replyinfo.outf=tmpfile(); data/maildrop-2.9.3/libs/maildrop/maildir.C:249:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(n, p, keywords_s - p); data/maildrop-2.9.3/libs/maildrop/maildir.C:331: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). int syncfd=open(dir, O_RDONLY); data/maildrop-2.9.3/libs/maildrop/main.C:120:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[ sizeof(trusted_users) ]; data/maildrop-2.9.3/libs/maildrop/main.C:137:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[ sizeof(trusted_groups) ]; data/maildrop-2.9.3/libs/maildrop/main.C:161: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 hostname[256]; data/maildrop-2.9.3/libs/maildrop/main.C:532:27: [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). maildrop.verbose_level=atoi(optarg); data/maildrop-2.9.3/libs/maildrop/main.C:579:24: [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). quota_warn_percent=atoi(optarg); data/maildrop-2.9.3/libs/maildrop/main.C:1064: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 buf[80]; data/maildrop-2.9.3/libs/maildrop/main.C:1066: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(buf, "Unable to open filter file, errno=%d.", data/maildrop-2.9.3/libs/maildrop/message.C:115: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/maildrop/message.C:117: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 buf[8192]; data/maildrop-2.9.3/libs/maildrop/message.C:158:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bufptr, data, cnt); data/maildrop-2.9.3/libs/maildrop/message.C:209:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(extra_headers, (const char *)buf, buf.Length()); data/maildrop-2.9.3/libs/maildrop/mio.C:17:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). while ((rc=open(fname, flags, mode)) < 0 && errno == EINTR) data/maildrop-2.9.3/libs/maildrop/mio.C:188:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(writeptr, cp, l); data/maildrop-2.9.3/libs/maildrop/mio.h:34:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8192]; data/maildrop-2.9.3/libs/maildrop/recipenode.C:340:10: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long n=atol( (const char *) b); data/maildrop-2.9.3/libs/maildrop/recipenode.C:486:10: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long n=atol( (const char *) cc); data/maildrop-2.9.3/libs/maildrop/recipenode.C:509:7: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). n=atol( (const char *)cc); data/maildrop-2.9.3/libs/maildrop/reformail.C:412:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char hostname_buf[256]; data/maildrop-2.9.3/libs/maildrop/reformail.C:763:9: [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 fd=open(cache_name, O_RDWR | O_CREAT, 0600); data/maildrop-2.9.3/libs/maildrop/reformail.C:787:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). off_t maxlen_n=atol(cache_maxlen); data/maildrop-2.9.3/libs/maildrop/reformail.C:814:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(r, (const char *)buf, buf.Length()); data/maildrop-2.9.3/libs/maildrop/reformail.C:924:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). environ=atol(env); data/maildrop-2.9.3/libs/maildrop/reformail.C:1104:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). addcrs=atoi(optarg); data/maildrop-2.9.3/libs/maildrop/search.C:335:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, str + i, s); data/maildrop-2.9.3/libs/maildrop/tempfile.C:45:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). fp=tmpfile(); data/maildrop-2.9.3/libs/maildrop/varlist.C:130:16: [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. if ((envp=new char *[n+1]) == NULL) outofmem(); data/maildrop-2.9.3/libs/maildrop/varlist.C:137:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(envdatap, (const char *)v->name, data/maildrop-2.9.3/libs/maildrop/varlist.C:141:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(envdatap, (const char *)v->value, data/maildrop-2.9.3/libs/makedat/makedatprog.c:94:10: [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 ((i=fopen(argv[1], "r")) == 0) data/maildrop-2.9.3/libs/numlib/strdevt.c:15:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strgidt.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strhdevt.c:17: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 buf[sizeof(t)*2+1]; data/maildrop-2.9.3/libs/numlib/strhinot.c:17: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 buf[sizeof(t)*2+1]; data/maildrop-2.9.3/libs/numlib/strhpidt.c:17: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 buf[sizeof(t)*2+1]; data/maildrop-2.9.3/libs/numlib/strhtimet.c:17: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 buf[sizeof(t)*2+1]; data/maildrop-2.9.3/libs/numlib/strinot.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strofft.c:15:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strofft.c:40:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strpidt.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strsize.c:15: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 bb[NUMBUFSIZE+1]; data/maildrop-2.9.3/libs/numlib/strsize.c:33:17: [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(sizebuf, "0."); data/maildrop-2.9.3/libs/numlib/strsizet.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/strtimet.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/numlib/struidt.c:15: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/base64.c:114:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*(char **)vp, p, l); data/maildrop-2.9.3/libs/rfc2045/base64.h:20: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 workbuf[256]; data/maildrop-2.9.3/libs/rfc2045/headercheck.c:40:39: [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). while (rfc2045header_get(hi, &h, &v, atoi(argv[1])) == 0) data/maildrop-2.9.3/libs/rfc2045/makemime.c:77:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(filename+1); /* file descriptor */ data/maildrop-2.9.3/libs/rfc2045/makemime.c:98:6: [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(filename, (strcmp(mode, "r") ? data/maildrop-2.9.3/libs/rfc2045/makemime.c:129:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *t=tmpfile(); data/maildrop-2.9.3/libs/rfc2045/makemime.c:173: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 buffer[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:778:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char input_buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:801: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:845:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char bbuf[NUMBUFSIZE*4]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:846: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:852: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(bbuf, "=_"); data/maildrop-2.9.3/libs/rfc2045/makemime.c:890: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 buffer[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:1015: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 buf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/makemime.c:1016: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 buf2[NUMBUFSIZE+1]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:110: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 pidbuf[NUMBUFSIZE], timebuf[NUMBUFSIZE], hostnamebuf[256]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:131: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:139:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tempfp=tmpfile(); data/maildrop-2.9.3/libs/rfc2045/reformime.c:300:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:419: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 numbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:461:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char filenamebuf[256]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:465:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((tty=fopen("/dev/tty", "r+")) == 0) data/maildrop-2.9.3/libs/rfc2045/reformime.c:532:6: [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(f, O_WRONLY|O_CREAT|O_EXCL, 0666); data/maildrop-2.9.3/libs/rfc2045/reformime.c:615:10: [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. strcat(strcpy(f, "CONTENT_TYPE="), content_type_s); data/maildrop-2.9.3/libs/rfc2045/reformime.c:721: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:813:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char mimebuf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:863: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 boundarybuf[200]; data/maildrop-2.9.3/libs/rfc2045/reformime.c:876:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(boundarybuf, "reformime_%lu_%u", data/maildrop-2.9.3/libs/rfc2045/reformime.c:885:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(argv[i], "r")) == 0) data/maildrop-2.9.3/libs/rfc2045/reformime.c:913:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(argv[i], "r")) == 0) data/maildrop-2.9.3/libs/rfc2045/rfc2045.c:195:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*bufptr + *buflen, p, len); data/maildrop-2.9.3/libs/rfc2045/rfc2045.c:731:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p+l, h->tokens[start+i].ptr, l2); data/maildrop-2.9.3/libs/rfc2045/rfc2045.h:25:36: [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). #define RFC2045_ISMIME1(p) ((p) && atoi(p) == 1) data/maildrop-2.9.3/libs/rfc2045/rfc2045.h:26:40: [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). #define RFC2045_ISMIME1DEF(p) (!(p) || atoi(p) == 1) data/maildrop-2.9.3/libs/rfc2045/rfc2045_fromfd.c:24: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045_fromfd.c:49: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, loc_method, loc_method_l); data/maildrop-2.9.3/libs/rfc2045/rfc2045cdecode.c:64:23: [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 const unsigned char decode64tab[256]={ data/maildrop-2.9.3/libs/rfc2045/rfc2045cdecode.c:155:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/maildrop-2.9.3/libs/rfc2045/rfc2045cdecode.c:164:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, p->workbuf+i, j); data/maildrop-2.9.3/libs/rfc2045/rfc2045decodemimesection.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045header.c:83: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 readbuf[1024]; data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:30: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 hostnamebuf[256]; data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:32: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 pidbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:34: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 timebuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:36: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 cntbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:49:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempbuf[NUMBUFSIZE]; data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmtbuf[1024]; data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:53:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fmtstr, fmt_start, fmt_end - fmt_start); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:167:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*(char **)arg, str, cnt); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:471:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1478: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 buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:33:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fdout_buf[512]; data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:63:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fdout_ptr, p, cnt); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:73:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fdout_ptr, p, fdout_left); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:176:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80]; data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:179:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "-%d", rw_boundary_cnt); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:205:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/rfc2045tryboundary.c:68: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 buf[512]; data/maildrop-2.9.3/libs/rfc2045/rfc2231.c:71:16: [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). n->paramnum=atoi(p)+1; data/maildrop-2.9.3/libs/rfc2045/rfc3676parser.c:242:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ucs4buf, ucs4, cnt); data/maildrop-2.9.3/libs/rfc2045/testrfc3676parser.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/maildrop-2.9.3/libs/rfc2045/testrfc3676parser.c:47:5: [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). n=atoi(argv[1]); data/maildrop-2.9.3/libs/rfc822/encode.c:89:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(info->output_buffer + info->output_buf_cnt, ptr, i); data/maildrop-2.9.3/libs/rfc822/encode.c:128:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(info->input_buffer + info->input_buf_cnt, data/maildrop-2.9.3/libs/rfc822/encode.c:145: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 output_buf[ sizeof(info->input_buffer) / 3 * 4+1]; data/maildrop-2.9.3/libs/rfc822/encode.c:178: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 local_buf[256]; data/maildrop-2.9.3/libs/rfc822/encode.h:24: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 output_buffer[BUFSIZ]; data/maildrop-2.9.3/libs/rfc822/encode.h:27: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 input_buffer[57]; /* For base64 */ data/maildrop-2.9.3/libs/rfc822/reftest.c:31: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 buf[20]; data/maildrop-2.9.3/libs/rfc822/reftest.c:33:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "a@b"); data/maildrop-2.9.3/libs/rfc822/reftest.c:35:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "c@d"); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:90:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, pfix, pfix_len); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:268:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ibuf[3]; data/maildrop-2.9.3/libs/rfc822/rfc2047.c:269: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 obuf[4]; data/maildrop-2.9.3/libs/rfc822/rfc2047.c:326:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[3]; data/maildrop-2.9.3/libs/rfc822/rfc2047.c:662:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*s, c, l); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:52:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->bufptr+s->bufsize, p, l); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:93:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, content, cnt); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:172:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, i->ptr+1, l); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:176:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, i->ptr, l); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:651:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((struct rfc822_display_hdrvalue_tobuf_s *)s)->buf, data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:910:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chset, chset_str, j); data/maildrop-2.9.3/libs/rfc822/rfc822_mkdate.c:108:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[50]; data/maildrop-2.9.3/libs/rfc822/rfc822_parsedt.c:42:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char * const weekdays[7]={ data/maildrop-2.9.3/libs/rfc822/rfc822_parsedt.c:46:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char * const mnames[13]={ data/maildrop-2.9.3/libs/rfc822/rfc822_parsedt.c:243:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[80]; data/maildrop-2.9.3/libs/rfc822/testsuite.c:28: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 buf[2]; data/maildrop-2.9.3/libs/bdbobj/testbdb.C:91: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). fw(kdarray[kdcnt]->key, strlen(kdarray[kdcnt]->key), data/maildrop-2.9.3/libs/bdbobj/testbdb.C:94: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). fw(kdarray[kdcnt]->data, strlen(kdarray[kdcnt]->data), data/maildrop-2.9.3/libs/bdbobj/testbdb.C:115: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). if (dbw.Delete(argv[2]+1, strlen(argv[2]+1))) data/maildrop-2.9.3/libs/bdbobj/testbdb.C:130: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). char *val=dbw.Fetch(argv[2], strlen(argv[2]), len, 0); data/maildrop-2.9.3/libs/bdbobj/testbdb.C:154: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 (dbw.Store(argv[2], strlen(argv[2]), data/maildrop-2.9.3/libs/bdbobj/testbdb.C:155: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). argv[3], strlen(argv[3]), "R")) data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:92: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). fw(kdarray[kdcnt]->key, strlen(kdarray[kdcnt]->key), data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:95: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). fw(kdarray[kdcnt]->data, strlen(kdarray[kdcnt]->data), data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:115: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). if (dbw.Delete(argv[2]+1, strlen(argv[2]+1))) data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:130: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). char *val=dbw.Fetch(argv[2], strlen(argv[2]), len, 0); data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:154: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 (dbw.Store(argv[2], strlen(argv[2]), data/maildrop-2.9.3/libs/gdbmobj/testgdbm.C:155: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). argv[3], strlen(argv[3]), "R")) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:102:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(pipefd[0], &c, 1) <= 0) data/maildrop-2.9.3/libs/liblock/lockdaemon.c:218:9: [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. char *p=strcat(libmail_str_pid_t(getpid(), buf), "\n"); data/maildrop-2.9.3/libs/liblock/lockdaemon.c:319:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(fp)) != EOF && c != '\n') data/maildrop-2.9.3/libs/liblock/lockdaemon.c:363:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(fp)) != EOF && c != '\n') data/maildrop-2.9.3/libs/liblock/locktest.c:34: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). if ((name=malloc(strlen(tmpdir)+sizeof(FILENAME)+1)) == NULL) data/maildrop-2.9.3/libs/liblock/locktest.c:66:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fd[0], &c, 1); data/maildrop-2.9.3/libs/liblock/mail.c:67: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). int l=strlen(idbuf); data/maildrop-2.9.3/libs/liblock/mail.c:88:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int n=read(fd, p, l); data/maildrop-2.9.3/libs/liblock/mail.c:246: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). tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) + data/maildrop-2.9.3/libs/liblock/mail.c:246: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). tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) + data/maildrop-2.9.3/libs/liblock/mail.c:246:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) + data/maildrop-2.9.3/libs/liblock/mail.c:247: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). strlen(idbuf) + 10); data/maildrop-2.9.3/libs/liblock/mail.c:253:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmpname, "."); data/maildrop-2.9.3/libs/liblock/mail.c:255:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmpname, "."); data/maildrop-2.9.3/libs/liblock/mail.c:257:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmpname, "."); data/maildrop-2.9.3/libs/liblock/mail.c:370: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 ((dotlock=malloc(strlen(p->file)+sizeof(".lock"))) == NULL) data/maildrop-2.9.3/libs/maildir/autoresponse.c:22: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/autoresponse.c:60: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). d=malloc(strlen(maildir)+sizeof("/autoresponses")); data/maildrop-2.9.3/libs/maildir/autoresponse.c:168: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). p=malloc(strlen(maildir)+strlen(filename)+ data/maildrop-2.9.3/libs/maildir/autoresponse.c:168: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). p=malloc(strlen(maildir)+strlen(filename)+ data/maildrop-2.9.3/libs/maildir/autoresponse.c:193: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). int l=strlen(filename); data/maildrop-2.9.3/libs/maildir/autoresponse.c:213: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). q=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/autoresponse.c:213: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). q=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/autoresponse.c:217:18: [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. unlink(strcat(strcat(strcpy(q, dir), "/"),de->d_name)); data/maildrop-2.9.3/libs/maildir/autoresponse.c:295: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). p=malloc(strlen(maildir)+sizeof("/autoresponsesquota")); data/maildrop-2.9.3/libs/maildir/autoresponse.c:326: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). p=malloc(strlen(maildir)+sizeof("/autoresponses")); data/maildrop-2.9.3/libs/maildir/autoresponse.c:339: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). p=malloc(strlen(maildir)+strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/autoresponse.c:339:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=malloc(strlen(maildir)+strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/deliverquota.c:81:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fdin, buf, sizeof(buf))) > 0) data/maildrop-2.9.3/libs/maildir/deliverquota.c:116: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). qq=malloc(strlen(createInfo.newname)+100); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:15: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildiraclt.c:52: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). qsort(*aclt, strlen(*aclt), 1, compar_aclt); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:128: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). char *p=realloc(*aclt, strlen(*aclt)+strlen(add_strs)+1); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:128: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). char *p=realloc(*aclt, strlen(*aclt)+strlen(add_strs)+1); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:429: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:429: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:434:9: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:436: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). q=malloc(strlen(p)+sizeof("/" ACLFILE)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:461: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). q=malloc(strlen(maildir)+sizeof("/" ACLHIERDIR "/") + data/maildrop-2.9.3/libs/maildir/maildiraclt.c:462: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). strlen(path)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:603: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:603: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:608:9: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:610: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). q=malloc(strlen(p)+sizeof("/" ACLFILE)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:628: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). q=malloc(strlen(maildir)+sizeof("/" ACLHIERDIR "/") + data/maildrop-2.9.3/libs/maildir/maildiraclt.c:629:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(path)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:782: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:782: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). p=malloc(strlen(maildir)+strlen(path)+2); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:787:9: [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(p, maildir), "/"), path); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:801: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). q=malloc(strlen(p) + sizeof("/" ACLFILE)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:819: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). q=malloc(strlen(maildir)+sizeof("/" ACLHIERDIR "/") + data/maildrop-2.9.3/libs/maildir/maildiraclt.c:820: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). strlen(path)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:924: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). int cl= strlen( (*l)->mbox ); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:951: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). p=malloc(strlen(maildir) + sizeof("/" ACLHIERDIR)); data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1002: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). p=malloc(strlen(maildir)+strlen(r->mbox) + data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1002:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=malloc(strlen(maildir)+strlen(r->mbox) + data/maildrop-2.9.3/libs/maildir/maildiraclt.c:1190: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). a=malloc(sizeof("user=")+strlen(c)); data/maildrop-2.9.3/libs/maildir/maildircache.c:31: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildircache.c:123: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). l=sizeof("//xx/xxxxxxx") + strlen(cachedir); data/maildrop-2.9.3/libs/maildir/maildircache.c:124: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). l += strlen(libmail_str_time_t( login_time, buf)) + strlen(g); data/maildrop-2.9.3/libs/maildir/maildircache.c:124:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen(libmail_str_time_t( login_time, buf)) + strlen(g); data/maildrop-2.9.3/libs/maildir/maildircache.c:132:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(strcat(strcpy(f, cachedir), "/"), buf), "/"); data/maildrop-2.9.3/libs/maildir/maildircache.c:132:16: [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(strcat(strcpy(f, cachedir), "/"), buf), "/"); data/maildrop-2.9.3/libs/maildir/maildircache.c:133:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, g, 2); data/maildrop-2.9.3/libs/maildir/maildircache.c:135: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). while (strlen(buf) < 2) strcat(buf, "+"); data/maildrop-2.9.3/libs/maildir/maildircache.c:135:26: [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. while (strlen(buf) < 2) strcat(buf, "+"); data/maildrop-2.9.3/libs/maildir/maildircache.c:136:9: [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(strcat(f, buf), "/"), g); data/maildrop-2.9.3/libs/maildir/maildircache.c:185:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). j=read(pipefd[0], buf+i, sizeof(buf)-1-i); data/maildrop-2.9.3/libs/maildir/maildircache.c:236: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). char *p=f+strlen(cachedir); data/maildrop-2.9.3/libs/maildir/maildircache.c:253: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 ( fwrite(data, strlen(data), 1, fp) != 1 || fflush(fp) data/maildrop-2.9.3/libs/maildir/maildircache.c:288:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(buf, a), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:289:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(buf, libmail_str_time_t(b, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:290:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(buf, libmail_str_uid_t(u, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:291:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(buf, libmail_str_gid_t(g, buf2)), " "); data/maildrop-2.9.3/libs/maildir/maildircache.c:292: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(buf, homedir, sizeof(buf)-2-strlen(homedir)); data/maildrop-2.9.3/libs/maildir/maildircache.c:292:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(buf, homedir, sizeof(buf)-2-strlen(homedir)); data/maildrop-2.9.3/libs/maildir/maildircache.c:293:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "\n"); data/maildrop-2.9.3/libs/maildir/maildircache.c:295: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). if (savebuf(buf, strlen(buf)) == 0) data/maildrop-2.9.3/libs/maildir/maildircache.c:303: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(strcpy(buf, authvars[i]), "="); data/maildrop-2.9.3/libs/maildir/maildircache.c:305: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 (!p || strlen(p)+strlen(buf) >= sizeof(buf)-2 || data/maildrop-2.9.3/libs/maildir/maildircache.c:305: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). if (!p || strlen(p)+strlen(buf) >= sizeof(buf)-2 || data/maildrop-2.9.3/libs/maildir/maildircache.c:308: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(strcat(buf, p), "\n"); data/maildrop-2.9.3/libs/maildir/maildircache.c:309: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). if (savebuf(buf, strlen(buf))) break; data/maildrop-2.9.3/libs/maildir/maildircache.c:349:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(fp)) != ' ') data/maildrop-2.9.3/libs/maildir/maildircache.c:360:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(fp)) != ' ') data/maildrop-2.9.3/libs/maildir/maildircache.c:370:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (n=0; (c=getc(fp)) != EOF; n++) data/maildrop-2.9.3/libs/maildir/maildircache.c:405: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). int l=strlen(authvars[n]); data/maildrop-2.9.3/libs/maildir/maildircache.c:440: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). char *c=malloc(strlen(a) + 1); data/maildrop-2.9.3/libs/maildir/maildircreate.c:129: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). info->tmpname=malloc(strlen(maildir)+strlen(uniq)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:129: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). info->tmpname=malloc(strlen(maildir)+strlen(uniq)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:130: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(hostname)+strlen(time_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:130: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). strlen(hostname)+strlen(time_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:131: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(usec_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:132: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(pid_buf)+strlen(len_buf)+100); data/maildrop-2.9.3/libs/maildir/maildircreate.c:132: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). strlen(pid_buf)+strlen(len_buf)+100); data/maildrop-2.9.3/libs/maildir/maildircreate.c:145:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->tmpname, "P"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:149: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(info->tmpname, "_"), uniq); data/maildrop-2.9.3/libs/maildir/maildircreate.c:150:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->tmpname, "."); data/maildrop-2.9.3/libs/maildir/maildircreate.c:187: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). info->newname=malloc(strlen(info->tmpname)+strlen(ino_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:187: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). info->newname=malloc(strlen(info->tmpname)+strlen(ino_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:188: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(dev_buf)+3); data/maildrop-2.9.3/libs/maildir/maildircreate.c:192: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). info->curname=malloc(strlen(info->tmpname)+strlen(ino_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:192: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). info->curname=malloc(strlen(info->tmpname)+strlen(ino_buf)+ data/maildrop-2.9.3/libs/maildir/maildircreate.c:193: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). strlen(dev_buf)+3); data/maildrop-2.9.3/libs/maildir/maildircreate.c:216:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->newname, "P"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:218:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->newname, "V"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:220:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->newname, "I"); data/maildrop-2.9.3/libs/maildir/maildircreate.c:223: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(info->newname, "_"), uniq); data/maildrop-2.9.3/libs/maildir/maildircreate.c:224:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(info->newname, "."); data/maildrop-2.9.3/libs/maildir/maildircreate.c:229: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). memcpy(info->curname + strlen(maildir)+1, "cur", 3); data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:52: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). s=malloc(strlen(maildir)+strlen(folder)+3); data/maildrop-2.9.3/libs/maildir/maildirdelfolder.c:52: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). s=malloc(strlen(maildir)+strlen(folder)+3); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirfilename.c:70: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). p=malloc(strlen(dir)+strlen(filename)+sizeof("/cur/")); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:70: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). p=malloc(strlen(dir)+strlen(filename)+sizeof("/cur/")); data/maildrop-2.9.3/libs/maildir/maildirfilename.c:127: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). p=malloc(strlen(dir)+strlen(de->d_name)+ data/maildrop-2.9.3/libs/maildir/maildirfilename.c:127: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). p=malloc(strlen(dir)+strlen(de->d_name)+ data/maildrop-2.9.3/libs/maildir/maildirfilter.c:168: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). if (!*name || strlen(name) > 200) data/maildrop-2.9.3/libs/maildir/maildirfilter.c:206:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(c) > 200) return (-1); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:242:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(c) > 200) return (-1); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:377:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(c) > 200) return (-1); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:430: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 ((p->tofolder=malloc(strlen(folder)+1)) == 0) return (-1); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:823:5: [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(new_folder, p, data/maildrop-2.9.3/libs/maildir/maildirfilter.c:824: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). sizeof(new_folder)-1-strlen(new_folder)); data/maildrop-2.9.3/libs/maildir/maildirfilter.c:946: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). p=malloc(strlen(i->name)+1+strlen(dsn_arg)+strlen(days_arg)+ data/maildrop-2.9.3/libs/maildir/maildirfilter.c:946: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). p=malloc(strlen(i->name)+1+strlen(dsn_arg)+strlen(days_arg)+ data/maildrop-2.9.3/libs/maildir/maildirfilter.c:946: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). p=malloc(strlen(i->name)+1+strlen(dsn_arg)+strlen(days_arg)+ data/maildrop-2.9.3/libs/maildir/maildirfilter.c:947:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(noquote_arg)); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:25: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). char *p=malloc(strlen(maildir)+sizeof("/maildirfilterconfig")); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:66: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). q=malloc(strlen(maildir)+strlen(p)+2); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:66: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). q=malloc(strlen(maildir)+strlen(p)+2); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:72: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(strcpy(q, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:173:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *newname=malloc(strlen(maildir)+sizeof("/maildirfilter.tmp")); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:231: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). newname=malloc(strlen(maildir)+sizeof("/maildirfilter.tmp")); data/maildrop-2.9.3/libs/maildir/maildirfilter2.c:263: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). newname=malloc(strlen(maildir)+sizeof("/maildirfilter.tmp")); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:54: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). newd=malloc(strlen(dir)+sizeof("/new")); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:55: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). curd=malloc(strlen(dir)+sizeof("/cur")); data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:92: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). if ((np=malloc(strlen(newd)+strlen(de->d_name)+2)) data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:92: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 ((np=malloc(strlen(newd)+strlen(de->d_name)+2)) data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:95: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 ((cp=malloc(strlen(curd)+strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:95: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 ((cp=malloc(strlen(curd)+strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:101:13: [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(np, newd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:103:13: [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(cp, curd), "/"), data/maildrop-2.9.3/libs/maildir/maildirgetnew.c:105: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). a=strchr(cp+strlen(curd), MDIRSEP[0]); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:24: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). p=(char *)malloc(strlen(dir)+sizeof("/maildirfolder")); data/maildrop-2.9.3/libs/maildir/maildirgetquota.c:40:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((l=read(n, buf, QUOTABUFSIZE-1)) < 0) data/maildrop-2.9.3/libs/maildir/maildirinfo.c:178: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). info->owner=malloc(strlen(myId)+sizeof("user=")); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:239: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). ifs.path_l=strlen(ifs.path); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:261:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(n) == ifs.path_l && data/maildrop-2.9.3/libs/maildir/maildirinfo.c:333: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). info->owner=malloc(strlen(subhierarchy) data/maildrop-2.9.3/libs/maildir/maildirinfo.c:371: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). info->maildir=malloc(strlen(INBOX)+1+strlen(ifs.path)); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:371: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). info->maildir=malloc(strlen(INBOX)+1+strlen(ifs.path)); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:452: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). n= f ? realloc(f, strlen(f)+strlen(p)+2):malloc(strlen(p)+1); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:452: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). n= f ? realloc(f, strlen(f)+strlen(p)+2):malloc(strlen(p)+1); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:452: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). n= f ? realloc(f, strlen(f)+strlen(p)+2):malloc(strlen(p)+1); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:462:13: [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. f=strcat(strcat(n, "."), p); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:683: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). info->owner=malloc(strlen(myId)+sizeof("user=")); data/maildrop-2.9.3/libs/maildir/maildirinfo.c:796: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). info->owner=malloc(strlen(subhierarchy) data/maildrop-2.9.3/libs/maildir/maildirkeywords.c:124: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 ((eNew=malloc(sizeof(*e)+1+strlen(name))) == NULL) data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:27: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:116:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch=getc(f)) == EOF || ch == '\n') data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:129: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). char *p=malloc(strlen(maildir)+sizeof("/" KEYWORDDIR)); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:147:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *kwname=malloc(strlen(dir)+sizeof("/:list")); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:407: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). p=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:407: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). p=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:416:12: [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(p, dir), "/"), data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:434: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). p=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:434: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). p=malloc(strlen(dir)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:443: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(p, dir), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:514: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). q=malloc(strlen(dir)+strlen(r)+ data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:514: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). q=malloc(strlen(dir)+strlen(r)+ data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:515: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(b)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:571: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:571: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:571: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:807:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l=strlen(dir)+strlen(b)+strlen(fn)+4; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:807: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). l=strlen(dir)+strlen(b)+strlen(fn)+4; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:807: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). l=strlen(dir)+strlen(b)+strlen(fn)+4; data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:848: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:848: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:848: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). p=malloc(strlen(dir)+strlen(b)+strlen(fn)+4); data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:908: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). char *n=malloc(strlen(maildir)+strlen(filename)+10+ data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:908: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). char *n=malloc(strlen(maildir)+strlen(filename)+10+ data/maildrop-2.9.3/libs/maildir/maildirkeywords2.c:967: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). char *n=malloc(strlen(*tmpname) data/maildrop-2.9.3/libs/maildir/maildirlist.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirlist.c:59:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((p=malloc(strlen(maildir) + strlen(de->d_name)+20)) data/maildrop-2.9.3/libs/maildir/maildirlist.c:59: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). if ((p=malloc(strlen(maildir) + strlen(de->d_name)+20)) data/maildrop-2.9.3/libs/maildir/maildirlist.c:63:17: [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(strcat(strcpy(p, maildir), "/"), de->d_name), data/maildrop-2.9.3/libs/maildir/maildirmake.c:43: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). char *c=malloc(strlen(name)+1); data/maildrop-2.9.3/libs/maildir/maildirmake.c:326:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((p=(char *)malloc(strlen(maildir)+strlen(folder)+4)) == 0) data/maildrop-2.9.3/libs/maildir/maildirmake.c:326:41: [1] (buffer) strlen: Does not handle 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 ((p=(char *)malloc(strlen(maildir)+strlen(folder)+4)) == 0) data/maildrop-2.9.3/libs/maildir/maildirmake.c:344:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/maildrop-2.9.3/libs/maildir/maildirmake.c:347: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). tmp=(char *)malloc(strlen(maildir)+14); data/maildrop-2.9.3/libs/maildir/maildirmake.c:352: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). snprintf(tmp, 14+strlen(maildir), "maildirmake: %s", maildir); data/maildrop-2.9.3/libs/maildir/maildirmake2.c:24: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirmake2.c:41: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). char *q=malloc(strlen(maildir)+sizeof("/maildirfolder")); data/maildrop-2.9.3/libs/maildir/maildirmake2.c:84: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 ((filenamebuf[n]=malloc(strlen(maildir)+ data/maildrop-2.9.3/libs/maildir/maildirmake2.c:85: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). strlen(de->d_name)+2)) data/maildrop-2.9.3/libs/maildir/maildirmake2.c:93:11: [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(filenamebuf[n], maildir), data/maildrop-2.9.3/libs/maildir/maildirmkdir.c:32:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(dir); data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:76: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). nbytes=strlen(linebuf); data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:109: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). n=strlen(info->indexfile)-strlen(q); data/maildrop-2.9.3/libs/maildir/maildirnewshared.c:109: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). n=strlen(info->indexfile)-strlen(q); data/maildrop-2.9.3/libs/maildir/maildirnewshared.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). p=malloc(n+strlen(maildir)+1); data/maildrop-2.9.3/libs/maildir/maildiropen.c:76: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). char *q=malloc(strlen(path)+strlen(l)+2); data/maildrop-2.9.3/libs/maildir/maildiropen.c:76: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). char *q=malloc(strlen(path)+strlen(l)+2); data/maildrop-2.9.3/libs/maildir/maildirpath.c:29: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). int l=strlen(inbox); data/maildrop-2.9.3/libs/maildir/maildirpath.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). p=malloc(strlen(maildir)+strlen(r) + 2); data/maildrop-2.9.3/libs/maildir/maildirpath.c:57: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). p=malloc(strlen(maildir)+strlen(r) + 2); data/maildrop-2.9.3/libs/maildir/maildirpath.c:62:19: [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. return (strcat(strcat(strcpy(p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirpath.c:79: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). p=malloc(strlen(homedir)+strlen(maildir)+2); data/maildrop-2.9.3/libs/maildir/maildirpath.c:79: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). p=malloc(strlen(homedir)+strlen(maildir)+2); data/maildrop-2.9.3/libs/maildir/maildirpath.c:83:9: [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(p, homedir), "/"), maildir); data/maildrop-2.9.3/libs/maildir/maildirpath.c:94:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l=strlen(maildir); data/maildrop-2.9.3/libs/maildir/maildirpath.c:121: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 ((p=malloc(l+strlen(foldername)+3)) == 0) return (0); data/maildrop-2.9.3/libs/maildir/maildirpath.c:124: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(strcpy(p, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirpath.c:126:17: [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. return (strcat(strcat(p, "."), foldername)); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:14: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:58: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). z=malloc(strlen(m)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:58: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). z=malloc(strlen(m)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:61: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(z, m), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:80: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). char *m=malloc(strlen(maildir)+sizeof("/tmp")); data/maildrop-2.9.3/libs/maildir/maildirpurgetmp.c:92: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). char *m=malloc(strlen(maildir)+sizeof("/cur")); data/maildrop-2.9.3/libs/maildir/maildirquota.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirquota.c:77: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). char *buf=(char *)malloc(strlen(maildir)+sizeof("/maildirfolder")); data/maildrop-2.9.3/libs/maildir/maildirquota.c:157:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n=read(info->fd, p, l); data/maildrop-2.9.3/libs/maildir/maildirquota.c:609: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(buf, ","); data/maildrop-2.9.3/libs/maildir/maildirquota.c:615: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(buf, "\n"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:618: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). sprintf(buf + strlen(buf), data/maildrop-2.9.3/libs/maildir/maildirquota.c:621: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). sprintf(buf + strlen(buf), data/maildrop-2.9.3/libs/maildir/maildirquota.c:625:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cnt=strlen(buf); data/maildrop-2.9.3/libs/maildir/maildirquota.c:654: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). p=(char *)malloc(strlen(dir)+strlen(hostname)+130); data/maildrop-2.9.3/libs/maildir/maildirquota.c:654: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). p=(char *)malloc(strlen(dir)+strlen(hostname)+130); data/maildrop-2.9.3/libs/maildir/maildirquota.c:664: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). sprintf(p+strlen(p), "%s.%s_NeWmAiLdIrSiZe.%s", data/maildrop-2.9.3/libs/maildir/maildirquota.c:679: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). char *p=(char *)malloc(strlen(dir)+5); data/maildrop-2.9.3/libs/maildir/maildirquota.c:706: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). p=(char *)malloc(strlen(dir)+strlen(subdir)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:706: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). p=(char *)malloc(strlen(dir)+strlen(subdir)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:708:9: [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(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:719: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). char *p=(char *)malloc(strlen(dir)+5); data/maildrop-2.9.3/libs/maildir/maildirquota.c:745: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). p=(char *)malloc(strlen(dir)+strlen(subdir)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:745: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). p=(char *)malloc(strlen(dir)+strlen(subdir)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:747:9: [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(p, dir), "/"), subdir); data/maildrop-2.9.3/libs/maildir/maildirquota.c:778: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). p=(char *)malloc(strlen(dir)+strlen(n)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:778: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). p=(char *)malloc(strlen(dir)+strlen(n)+2); data/maildrop-2.9.3/libs/maildir/maildirquota.c:784:11: [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(p, dir), "/"), n); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1016:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(dir)+sizeof("/quotawarn"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1049: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). rfc822_mkdate_buf(t, buf+strlen(buf)); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1050:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "\n"); data/maildrop-2.9.3/libs/maildir/maildirquota.c:1055: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). sprintf(buf+strlen(buf), "Message-Id: <%lu.overquota@%-1.256s>\n", data/maildrop-2.9.3/libs/maildir/maildirquota.c:1062: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). msg_len=strlen(buf)+sb.st_size; data/maildrop-2.9.3/libs/maildir/maildirquota.c:1080:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fdin, buf, sizeof(buf))) > 0) data/maildrop-2.9.3/libs/maildir/maildirquota.c:1131:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(dir)+sizeof("/maildirfolder"); data/maildrop-2.9.3/libs/maildir/maildirrename.c:23: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:45: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). size_t l=strlen(oldname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:206: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). int oldname_l=strlen(oldname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:220: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 ((tst_cur=malloc(strlen(maildir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:220:41: [1] (buffer) strlen: Does not handle 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 ((tst_cur=malloc(strlen(maildir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:227:18: [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(strcat(strcpy(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:248:11: [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(tst_cur, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:251: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). new_p=malloc(strlen(maildir)+sizeof("/") data/maildrop-2.9.3/libs/maildir/maildirrename.c:252:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). +strlen(newname)); data/maildrop-2.9.3/libs/maildir/maildirrename.c:261:11: [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(new_p, maildir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:282: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). tst_cur=malloc(strlen(maildir) + data/maildrop-2.9.3/libs/maildir/maildirrename.c:283:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(newname) + strlen(de->d_name+oldname_l) data/maildrop-2.9.3/libs/maildir/maildirrename.c:283: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). strlen(newname) + strlen(de->d_name+oldname_l) data/maildrop-2.9.3/libs/maildir/maildirrename.c:292:17: [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(strcat(strcpy(tst_cur, maildir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:295: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). new_p=malloc(strlen(maildir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:295: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). new_p=malloc(strlen(maildir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:305: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(new_p, maildir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:335: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). char *aclhier=malloc(strlen(maildir)+sizeof("/" ACLHIERDIR)); data/maildrop-2.9.3/libs/maildir/maildirrename.c:357: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). int oldname_l=strlen(oldname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:374: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 ((tst_cur=malloc(strlen(aclhierdir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:374:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((tst_cur=malloc(strlen(aclhierdir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:390:11: [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(tst_cur, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrename.c:393: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). new_p=malloc(strlen(aclhierdir)+sizeof("/") data/maildrop-2.9.3/libs/maildir/maildirrename.c:394:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). +strlen(newname)); data/maildrop-2.9.3/libs/maildir/maildirrename.c:403:11: [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(new_p, aclhierdir), "/"), newname); data/maildrop-2.9.3/libs/maildir/maildirrename.c:425: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). tst_cur=malloc(strlen(aclhierdir) + data/maildrop-2.9.3/libs/maildir/maildirrename.c:426:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(newname) + strlen(de->d_name+oldname_l) data/maildrop-2.9.3/libs/maildir/maildirrename.c:426: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). strlen(newname) + strlen(de->d_name+oldname_l) data/maildrop-2.9.3/libs/maildir/maildirrename.c:435:17: [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(strcat(strcpy(tst_cur, aclhierdir), data/maildrop-2.9.3/libs/maildir/maildirrename.c:438: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). new_p=malloc(strlen(aclhierdir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:438:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_p=malloc(strlen(aclhierdir) + strlen(de->d_name) data/maildrop-2.9.3/libs/maildir/maildirrename.c:448: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(new_p, aclhierdir), "/"), data/maildrop-2.9.3/libs/maildir/maildirrequota.c:22: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). if ((p=malloc(strlen(oldname)+strlen(buf)+1)) == 0) return (0); data/maildrop-2.9.3/libs/maildir/maildirrequota.c:22: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 ((p=malloc(strlen(oldname)+strlen(buf)+1)) == 0) return (0); data/maildrop-2.9.3/libs/maildir/maildirsearch.c:57: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). char32_t *uc=malloc((strlen(s)+1) * sizeof(char32_t)); data/maildrop-2.9.3/libs/maildir/maildirsearch.c:88: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 (unicode_convert(h, string, strlen(string))) data/maildrop-2.9.3/libs/maildir/maildirshared.c:13: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/maildrop-2.9.3/libs/maildir/maildirshared.c:115: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). z=malloc(strlen(path)+strlen(de->d_name)+12); data/maildrop-2.9.3/libs/maildir/maildirshared.c:115: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). z=malloc(strlen(path)+strlen(de->d_name)+12); data/maildrop-2.9.3/libs/maildir/maildirshared.c:118:17: [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(strcat(strcpy(z, path), data/maildrop-2.9.3/libs/maildir/maildirshared.c:127: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). z=malloc(strlen(pfix)+strlen(de->d_name)+1); data/maildrop-2.9.3/libs/maildir/maildirshared.c:127: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). z=malloc(strlen(pfix)+strlen(de->d_name)+1); data/maildrop-2.9.3/libs/maildir/maildirshared.c:177:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(n) == name - folder && data/maildrop-2.9.3/libs/maildir/maildirshared.c:196:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(maildir) + strlen(folder); data/maildrop-2.9.3/libs/maildir/maildirshared.c:196: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). strlen(maildir) + strlen(folder); data/maildrop-2.9.3/libs/maildir/maildirshared.c:201: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(buf, "/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:202: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(buf, folder, name-folder); data/maildrop-2.9.3/libs/maildir/maildirshared.c:204: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(buf, "/"); data/maildrop-2.9.3/libs/maildir/maildirshared.c:207: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). s=buf+strlen(buf); data/maildrop-2.9.3/libs/maildir/maildirshared.c:241: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 ((link=malloc(strlen(dir)+strlen(name)+2)) == 0 || data/maildrop-2.9.3/libs/maildir/maildirshared.c:241: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 ((link=malloc(strlen(dir)+strlen(name)+2)) == 0 || data/maildrop-2.9.3/libs/maildir/maildirshared.c:242:20: [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. symlink( strcat(strcat(strcpy(link, dir), "/"), name), data/maildrop-2.9.3/libs/maildir/maildirshared.c:274: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). sh=malloc(strlen(maildir)+sizeof("/" SHAREDSUBDIR)); data/maildrop-2.9.3/libs/maildir/maildirshared.c:288: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). z=malloc(strlen(sh)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:288: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). z=malloc(strlen(sh)+strlen(de->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:290: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(z, sh), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:299: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). s=malloc(strlen(de->d_name)+strlen(de2->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:299:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s=malloc(strlen(de->d_name)+strlen(de2->d_name)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:301:11: [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(s, de->d_name), "."), de2->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:338: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). shareddir=malloc(strlen(dir)+sizeof("/shared")); data/maildrop-2.9.3/libs/maildir/maildirshared.c:405: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). char *dummy=malloc(strlen(shared)+sizeof("/cur")); data/maildrop-2.9.3/libs/maildir/maildirshared.c:425:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((a=malloc(strlen(de->d_name)+1)) == 0) data/maildrop-2.9.3/libs/maildir/maildirshared.c:432:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((b=malloc(strlen(de->d_name)+1)) == 0) data/maildrop-2.9.3/libs/maildir/maildirshared.c:445: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). if (dbobj_store(obj, a, strlen(a), b, strlen(b), "R")) data/maildrop-2.9.3/libs/maildir/maildirshared.c:445:41: [1] (buffer) strlen: Does not handle 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 (dbobj_store(obj, a, strlen(a), b, strlen(b), "R")) data/maildrop-2.9.3/libs/maildir/maildirshared.c:500: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). cur_base=malloc(strlen(de->d_name)+1); data/maildrop-2.9.3/libs/maildir/maildirshared.c:511: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). cur_name_ptr=dbobj_fetch(obj, cur_base, strlen(cur_base), data/maildrop-2.9.3/libs/maildir/maildirshared.c:517: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). dbobj_delete(obj, cur_base, strlen(cur_base)); data/maildrop-2.9.3/libs/maildir/maildirshared.c:526: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). cur_base=malloc(strlen(de->d_name)+strlen(cur)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:526:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cur_base=malloc(strlen(de->d_name)+strlen(cur)+2); data/maildrop-2.9.3/libs/maildir/maildirshared.c:534: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(cur_base, cur), "/"), de->d_name); data/maildrop-2.9.3/libs/maildir/maildirshared.c:543: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). linked_name_len=strlen(shared)+strlen(de->d_name)+100; data/maildrop-2.9.3/libs/maildir/maildirshared.c:543: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). linked_name_len=strlen(shared)+strlen(de->d_name)+100; data/maildrop-2.9.3/libs/maildir/maildirshared.c:591: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). char *p=malloc(strlen(shareddir)+sizeof("/cur/")+msgfilenamelen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:603:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q=p+strlen(p); data/maildrop-2.9.3/libs/maildir/maildirshared.c:663: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). char *slink=malloc(strlen(shared)+sizeof("/cur/")+vallen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:674: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). q=slink+strlen(slink); data/maildrop-2.9.3/libs/maildir/maildirshared.c:689: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). slink=malloc(strlen(cur)+sizeof("/new/" MDIRSEP "2,")+keylen); data/maildrop-2.9.3/libs/maildir/maildirshared.c:698: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). q=slink+strlen(slink); data/maildrop-2.9.3/libs/maildir/maildirshared.c:732: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). shared_update_name=malloc(strlen(dir)+sizeof("/shared-timestamp")); data/maildrop-2.9.3/libs/maildir/maildirshared.c:735: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). cur=malloc(strlen(shared)+sizeof("/new")); data/maildrop-2.9.3/libs/maildir/maildirshared.c:774: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 ((cur=malloc(strlen(dir)+sizeof("/cur"))) == 0) data/maildrop-2.9.3/libs/maildir/maildirshared.c:801: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). char *p=malloc(strlen(maildir)+sizeof("/shared/cur")); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:20: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). m=malloc(strlen(maildir)+sizeof("/shared-maildirs")); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:79: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). p=malloc(strlen(maildir)+sizeof("/" SHAREDSUBDIR "/")+strlen(sharedname)); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:79:56: [1] (buffer) strlen: Does not handle 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=malloc(strlen(maildir)+sizeof("/" SHAREDSUBDIR "/")+strlen(sharedname)); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:84: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(strcpy(p, maildir), "/"); data/maildrop-2.9.3/libs/maildir/maildirshared2.c:86:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q=p+strlen(p); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:50: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(wd, "/"); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:55:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((w->maildir=malloc(strlen(wd)+strlen(maildir)+1)) == NULL) data/maildrop-2.9.3/libs/maildir/maildirwatch.c:55: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). if ((w->maildir=malloc(strlen(wd)+strlen(maildir)+1)) == NULL) data/maildrop-2.9.3/libs/maildir/maildirwatch.c:233: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). p=malloc(strlen(w->maildir)+ sizeof("/" WATCHDOTLOCK)); data/maildrop-2.9.3/libs/maildir/maildirwatch.c:340: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). char *s=malloc(strlen(w->maildir) data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:41:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cb) > 7000) data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:44:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(strcat(strcat(b, identifier), "."), data/maildrop-2.9.3/libs/maildir/testmaildiraclt.c:44:16: [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(strcat(strcat(b, identifier), "."), data/maildrop-2.9.3/libs/maildir/testmaildirsearch.c:25: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). if (unicode_convert(h, haystack, strlen(haystack))) data/maildrop-2.9.3/libs/maildrop/buffer.C:27: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). int l=strlen(p); data/maildrop-2.9.3/libs/maildrop/buffer.C:149: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). l=strlen(def); data/maildrop-2.9.3/libs/maildrop/buffer.h:51:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). void append(const char *p) { append(p, strlen(p)); } data/maildrop-2.9.3/libs/maildrop/buffer.h:57: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). Buffer &operator += (const char *p) { append(p, strlen(p)); return (*this); } data/maildrop-2.9.3/libs/maildrop/deliver.C:105: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). if (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/deliver.C:113: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). if (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/deliver.C:196:13: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask_val=umask(umask_val); data/maildrop-2.9.3/libs/maildrop/deliver.C:200:14: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask_val=umask(umask_val); data/maildrop-2.9.3/libs/maildrop/deliver.C:203:13: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask_val=umask(umask_val); data/maildrop-2.9.3/libs/maildrop/deliver.C:280: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). write (2, shell, strlen(shell)) < 0 || data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:126:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(skun.sun_path, addr, sizeof(skun.sun_path)); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:227:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n=read(fd, eg->buffer, sizeof(eg->buffer)); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:281: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). buf = (char *)malloc(strlen(linebuf)+1); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:367: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). cmdbuf=(char *)malloc(strlen(cmdpart1)+strlen(cmdpart2)+strlen(user)+20); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:367:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdbuf=(char *)malloc(strlen(cmdpart1)+strlen(cmdpart2)+strlen(user)+20); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:367: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). cmdbuf=(char *)malloc(strlen(cmdpart1)+strlen(cmdpart2)+strlen(user)+20); data/maildrop-2.9.3/libs/maildrop/dovecotauth.c:425: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 (writeauth(wrfd, cmdbuf, strlen(cmdbuf))) data/maildrop-2.9.3/libs/maildrop/filter.C:101: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 (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/filter.C:109: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 (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/filter.C:218:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int readbuflen=::read(pipe1.fds[0], buffer, sizeof(buffer)); data/maildrop-2.9.3/libs/maildrop/filter.C:302: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 (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/filter.C:310: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 (write(2, p, strlen(p)) < 0 || data/maildrop-2.9.3/libs/maildrop/mailbot.c:127: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). size_t l=strlen(buf); data/maildrop-2.9.3/libs/maildrop/mailbot.c:139:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getc(stdin) != EOF) data/maildrop-2.9.3/libs/maildrop/mailbot.c:148:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (prevhdr->buf)+2+strlen(buf))) data/maildrop-2.9.3/libs/maildrop/mailbot.c:148: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). strlen (prevhdr->buf)+2+strlen(buf))) data/maildrop-2.9.3/libs/maildrop/mailbot.c:154:11: [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( prevhdr->buf, "\n"), buf); data/maildrop-2.9.3/libs/maildrop/mailbot.c:177: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). size_t l=strlen(hdrname); data/maildrop-2.9.3/libs/maildrop/mailbot.c:345: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). dbname=malloc(strlen(dbfile)+ sizeof( "." DBNAME)); data/maildrop-2.9.3/libs/maildrop/mailbot.c:346: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). lockname=malloc(strlen(dbfile)+ sizeof(".lock")); data/maildrop-2.9.3/libs/maildrop/mailbot.c:378: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). val=dbobj_fetch(&db, sender_key, strlen(sender_key), &val_len, ""); data/maildrop-2.9.3/libs/maildrop/mailbot.c:399: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). dbobj_store(&db, sender_key, strlen(sender_key), data/maildrop-2.9.3/libs/maildrop/mailbot.c:510: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). mimeautoreply_write_func(buf, strlen(buf), ptr); data/maildrop-2.9.3/libs/maildrop/mailbot.c:517: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). mimeautoreply_write_func(buf, strlen(buf), ptr); data/maildrop-2.9.3/libs/maildrop/mailbot.c:529: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). mimeautoreply_write_func(buf, strlen(buf), ptr); data/maildrop-2.9.3/libs/maildrop/mailbot.c:561: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). mimeautoreply_write_func(buf, strlen(buf), ptr); data/maildrop-2.9.3/libs/maildrop/mailbot.c:566: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). mimeautoreply_write_func(buf, strlen(buf), ptr); data/maildrop-2.9.3/libs/maildrop/mailbot.c:583: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). char *dirbuf=malloc(strlen(maildirfolder)+10); data/maildrop-2.9.3/libs/maildrop/mailbot.c:593: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(dirbuf, maildirfolder), "/"), data/maildrop-2.9.3/libs/maildrop/mailbot.c:615: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). filenamebuf=malloc(strlen(dirbuf)+strlen(filename)+2); data/maildrop-2.9.3/libs/maildrop/mailbot.c:615:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filenamebuf=malloc(strlen(dirbuf)+strlen(filename)+2); data/maildrop-2.9.3/libs/maildrop/mailbot.c:621:11: [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(filenamebuf, dirbuf), "/"), data/maildrop-2.9.3/libs/maildrop/maildir.C:126:13: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask_val=umask(umask_val); data/maildrop-2.9.3/libs/maildrop/maildir.C:129:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(umask_val); data/maildrop-2.9.3/libs/maildrop/main.C:506:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask( 0007 ); data/maildrop-2.9.3/libs/maildrop/main.C:549: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). embedded_filter=(char *)malloc(strlen(optarg)+1); data/maildrop-2.9.3/libs/maildrop/message.C:121:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fd, buf, sizeof(buf))) > 0) data/maildrop-2.9.3/libs/maildrop/message.h:149: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). if (extra_headers) pos += strlen(extra_headers); data/maildrop-2.9.3/libs/maildrop/message.h:158: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 (extra_headers && n < (l=strlen(extra_headers))) data/maildrop-2.9.3/libs/maildrop/message.h:183: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). s += strlen(extra_headers); data/maildrop-2.9.3/libs/maildrop/mio.C:26:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fd, buf, count)) < 0 && errno == EINTR) data/maildrop-2.9.3/libs/maildrop/mio.h:64: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). void write(const char *p) { write(p, strlen(p)); } data/maildrop-2.9.3/libs/maildrop/mio.h:79: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). void write(const char *p) { write(p, strlen(p)); } data/maildrop-2.9.3/libs/maildrop/recipenode.C:114:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. case equal: data/maildrop-2.9.3/libs/maildrop/recipenode.C:182:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. case equal: data/maildrop-2.9.3/libs/maildrop/recipenode.h:75:3: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal, data/maildrop-2.9.3/libs/maildrop/recipeparse.C:357:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. o=alloc(RecipeNode::equal); data/maildrop-2.9.3/libs/maildrop/reformail.C:448: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(hdr, buf2, strlen(hdr)) == 0) return (1); data/maildrop-2.9.3/libs/maildrop/reformail.C:468: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 (p[strlen(p)-1] == ':') data/maildrop-2.9.3/libs/maildrop/reformail.C:561: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). q += pos + strlen(buf1); data/maildrop-2.9.3/libs/maildrop/reformail.C:564:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(buf1); data/maildrop-2.9.3/libs/maildrop/reformail.C:796:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). off_t readcnt=read(fd, charbuf, newpos); data/maildrop-2.9.3/libs/maildrop/reformail.C:923: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). environ_len=strlen(env); data/maildrop-2.9.3/libs/maildrop/search.C:170: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). orig_str, strlen(orig_str), data/maildrop-2.9.3/libs/maildrop/search.C:265: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). strlen(orig_str), data/maildrop-2.9.3/libs/maildrop/tempfile.C:64: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). filename=new char[strlen(fname)+1]; data/maildrop-2.9.3/libs/makedat/makedatprog.c:32: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). if (dbobj_store(o, key, strlen(key), val, strlen(val), "I")) data/maildrop-2.9.3/libs/makedat/makedatprog.c:32:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (dbobj_store(o, key, strlen(key), val, strlen(val), "I")) data/maildrop-2.9.3/libs/makedat/makedatprog.c:67:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(i); data/maildrop-2.9.3/libs/numlib/changeuidgid.c:59: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). char *p=malloc(strlen(uname)+1); data/maildrop-2.9.3/libs/numlib/strsize.c:35:17: [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(sizebuf, "K"); data/maildrop-2.9.3/libs/numlib/strsize.c:43:17: [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(sizebuf, "K"); data/maildrop-2.9.3/libs/numlib/strsize.c:54:17: [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(sizebuf, "."); data/maildrop-2.9.3/libs/numlib/strsize.c:56:17: [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(sizebuf, "M"); data/maildrop-2.9.3/libs/rfc2045/base64.c:133: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). base64_decode(&b, s, strlen(s)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:138:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(fp)) != EOF) data/maildrop-2.9.3/libs/rfc2045/makemime.c:184:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else while ((c=getc(fp)) != '\n' && c != EOF) data/maildrop-2.9.3/libs/rfc2045/makemime.c:210:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(q)); data/maildrop-2.9.3/libs/rfc2045/makemime.c:622:3: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(m->inputfp1); data/maildrop-2.9.3/libs/rfc2045/makemime.c:625:3: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(m->inputfp2); data/maildrop-2.9.3/libs/rfc2045/makemime.c:803: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). int l=strlen(bbuf); data/maildrop-2.9.3/libs/rfc2045/makemime.c:821:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else while ((c=getc(f)) != EOF && c != '\n') data/maildrop-2.9.3/libs/rfc2045/makemime.c:854: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(bbuf, "_"); data/maildrop-2.9.3/libs/rfc2045/makemime.c:856: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(bbuf, "_"); data/maildrop-2.9.3/libs/rfc2045/makemime.c:880:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp1)) != EOF) data/maildrop-2.9.3/libs/rfc2045/makemime.c:917:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp2)) != EOF && c != '\n') data/maildrop-2.9.3/libs/rfc2045/makemime.c:923:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp2)) != EOF && c != '\n') data/maildrop-2.9.3/libs/rfc2045/makemime.c:933:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(m->inputfp2); data/maildrop-2.9.3/libs/rfc2045/makemime.c:937:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp2)) != EOF && c != '\n') data/maildrop-2.9.3/libs/rfc2045/makemime.c:948: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). old_boundary=malloc(strlen(buffer)+1); data/maildrop-2.9.3/libs/rfc2045/makemime.c:961: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). p=old_boundary+strlen(old_boundary); data/maildrop-2.9.3/libs/rfc2045/makemime.c:965: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). old_boundary_len=strlen(old_boundary); data/maildrop-2.9.3/libs/rfc2045/makemime.c:974:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else while ((c=getc(m->inputfp2)) != '\n' data/maildrop-2.9.3/libs/rfc2045/makemime.c:978: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). c=strlen(buffer); data/maildrop-2.9.3/libs/rfc2045/makemime.c:991:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp2)) != '\n' && c != EOF) data/maildrop-2.9.3/libs/rfc2045/makemime.c:997:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c=getc(m->inputfp1)) != EOF) data/maildrop-2.9.3/libs/rfc2045/reformime.c:121: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). p=malloc(strlen(tempdir)+strlen(pidbuf)+strlen(timebuf)+ data/maildrop-2.9.3/libs/rfc2045/reformime.c:121:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=malloc(strlen(tempdir)+strlen(pidbuf)+strlen(timebuf)+ data/maildrop-2.9.3/libs/rfc2045/reformime.c:121:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=malloc(strlen(tempdir)+strlen(pidbuf)+strlen(timebuf)+ data/maildrop-2.9.3/libs/rfc2045/reformime.c:122:3: [1] (buffer) strlen: Does not handle 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(hostnamebuf)+100); data/maildrop-2.9.3/libs/rfc2045/reformime.c:389:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filename_buf) > 32) data/maildrop-2.9.3/libs/rfc2045/reformime.c:392: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). q=filename_buf + strlen(filename_buf)-32; data/maildrop-2.9.3/libs/rfc2045/reformime.c:423: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). dyn_disp_name=malloc(strlen(disposition_filename_s) data/maildrop-2.9.3/libs/rfc2045/reformime.c:424:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p)+2); data/maildrop-2.9.3/libs/rfc2045/reformime.c:430:33: [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. disposition_filename_s=strcat(strcat(strcpy( data/maildrop-2.9.3/libs/rfc2045/reformime.c:440: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). p=malloc((pfix ? strlen(pfix):0)+strlen(disposition_filename_s)+1); data/maildrop-2.9.3/libs/rfc2045/reformime.c:440:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=malloc((pfix ? strlen(pfix):0)+strlen(disposition_filename_s)+1); data/maildrop-2.9.3/libs/rfc2045/reformime.c:448:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q=p+strlen(p); data/maildrop-2.9.3/libs/rfc2045/reformime.c:476:5: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(tty); data/maildrop-2.9.3/libs/rfc2045/reformime.c:481:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((cc=getc(tty)) != '\n' && cc != EOF) data/maildrop-2.9.3/libs/rfc2045/reformime.c:608: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). f=malloc(strlen(content_type_s) data/maildrop-2.9.3/libs/rfc2045/reformime.c:750:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch=getchar()) == EOF) break; data/maildrop-2.9.3/libs/rfc2045/reformime.c:755:6: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=getchar(); data/maildrop-2.9.3/libs/rfc2045/reformime.c:879: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). l=strlen(boundarybuf); data/maildrop-2.9.3/libs/rfc2045/rfc2045.c:229:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((*p=(char *)malloc(strlen(q)+1)) == 0) data/maildrop-2.9.3/libs/rfc2045/rfc2045.c:474: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). l=strlen(cb); data/maildrop-2.9.3/libs/rfc2045/rfc2045_fromfd.c:32:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fd, buf, sizeof(buf))) > 0) data/maildrop-2.9.3/libs/rfc2045/rfc2045_fromfd.c:57:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (rfc->workinheader && (n=read(fd, buf, sizeof(buf))) > 0) data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:71: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). buf=malloc(strlen(loc)+1); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:85: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). buf=malloc(loc_method_l + strlen(base_path)+strlen(loc_path) + 3); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:85: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). buf=malloc(loc_method_l + strlen(base_path)+strlen(loc_path) + 3); data/maildrop-2.9.3/libs/rfc2045/rfc2045appendurl.c:98:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(q, base_path), "/"); data/maildrop-2.9.3/libs/rfc2045/rfc2045cdecode.c:170: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). rfc2045_add_workbuf(p, buf, strlen(buf)); data/maildrop-2.9.3/libs/rfc2045/rfc2045decodemsgtoutf8.c:79: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). doconvtoutf8_write(header, strlen(header), &info); data/maildrop-2.9.3/libs/rfc2045/rfc2045header.c:72:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(s->fd, buf, cnt); data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:55: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). p=malloc(strlen(hostnamebuf)+strlen(pidbuf) data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:55: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). p=malloc(strlen(hostnamebuf)+strlen(pidbuf) data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:56:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). +strlen(timebuf)+strlen(cntbuf)+11); data/maildrop-2.9.3/libs/rfc2045/rfc2045mkboundary.c:56: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). +strlen(timebuf)+strlen(cntbuf)+11); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:38: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). fmt_end=fmt_start + strlen(fmt_start); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:61: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). (*callback_func)(fmtbuf, strlen(fmtbuf), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:67: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). (*callback_func)(date, strlen(date), callback_arg); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:114: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). #define CBSTR(s) s, strlen(s), callback_arg data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:466: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). (*ri->write_func)(c, strlen(c), ri->voidarg); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:750: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). strlen(header), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:754: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). strlen(subject), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:850: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). char *buf=malloc((oldref ? strlen(oldref):0) data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:851: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). + (oldmsgid ? strlen(oldmsgid):0)+2); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:863:26: [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. if (oldref && oldmsgid) strcat(buf, " "); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1061: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). strlen(oldtocc):0) data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1062: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). + strlen(value)+2); data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1070:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(newh, oldtocc), data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1078: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). strlen(oldtolist):0) data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1079:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p)+2)) == NULL) data/maildrop-2.9.3/libs/rfc2045/rfc2045reply.c:1090:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(newh, oldtolist), data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:92: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). fdout_add(oldte, strlen(oldte)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:94: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). fdout_add(newte, strlen(newte)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:96: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). fdout_add(rw_appname, strlen(rw_appname)))) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:105:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fdout_add(a->name, strlen(a->name))) return (-1); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:161: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). fdout_add(p->content_type, strlen(p->content_type))) data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:181: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). fdout_add(rw_boundary_root, strlen(rw_boundary_root)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:182: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). fdout_add(buf, strlen(buf)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.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). fdout_add(te, strlen(te)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:274: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). if (fdout_add(name, strlen(name)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:276: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). fdout_add(value, strlen(value)) || data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:385: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 (fdout_add(buf, strlen(buf))) return (-1); data/maildrop-2.9.3/libs/rfc2045/rfc2045rewrite.c:389: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). if (fdout_add(buf, strlen(buf))) return (-1); data/maildrop-2.9.3/libs/rfc2045/rfc2045tryboundary.c:113: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). boundary_chk_val_len=strlen(boundary_chk_val=boundary); data/maildrop-2.9.3/libs/rfc2045/rfc2231.c:41:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int nameLen=strlen(name); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:44:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name)>60) data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:54: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 (value[l] == 0 && strlen(name)+strlen(value)<75) /* No need to encode */ data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:54: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). if (value[l] == 0 && strlen(name)+strlen(value)<75) /* No need to encode */ data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:56: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). char *p=malloc(strlen(value)+3); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:61: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(strcat(strcpy(p, "\""), value), "\""); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:61:17: [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. strcat(strcat(strcpy(p, "\""), value), "\""); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:71:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l=strlen(charset)+strlen(language)+strlen(value)+3; data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:71: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). l=strlen(charset)+strlen(language)+strlen(value)+3; data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:71:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l=strlen(charset)+strlen(language)+strlen(value)+3; data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:81:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(strcat(strcpy(p, charset), "'"),language), "'"); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:81:16: [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(strcat(strcpy(p, charset), "'"),language), "'"); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:82:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q=p+strlen(p); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:114: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). r=malloc(strlen(name)+20); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:125: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). l=strlen(q); data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:126: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 (l > 70-strlen(r)) data/maildrop-2.9.3/libs/rfc2045/rfc2231encode.c:127: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). l=70-strlen(r); data/maildrop-2.9.3/libs/rfc2045/testrfc3676parser.c:64: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). rfc3676parser(parser, buf, strlen(buf)); data/maildrop-2.9.3/libs/rfc822/encodeautodetect.c:82:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fi->fp); data/maildrop-2.9.3/libs/rfc822/imaprefs.c:105:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). malloc(sizeof(struct imap_refmsg)+1+strlen(msgid)); data/maildrop-2.9.3/libs/rfc822/imaprefs.c:455: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). tArray[i].len=strlen(msgidList[i]); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:50: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). size_t s=strlen(domain)+16; data/maildrop-2.9.3/libs/rfc822/rfc2047.c:81: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). q=malloc(strlen(p)+pfix_len+1); data/maildrop-2.9.3/libs/rfc822/rfc2047.c:273: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). (rc=(*func)(charset, strlen(charset), arg))|| data/maildrop-2.9.3/libs/rfc822/rfc2047.c:329: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). (rc=(*func)(charset, strlen(charset), arg))|| data/maildrop-2.9.3/libs/rfc822/rfc2047.c:678:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (unicode_convert_tou_tobuf(str, strlen(str), charset, data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:71: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). (*print_func)(chset, strlen(chset), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:73: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). (*print_func)(tochset, strlen(tochset), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:101: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). (*s->print_func)(ptr, strlen(ptr), s->ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:191: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). (*print_func)(p, strlen(p), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:337: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). size_t s=strlen(p)+16; data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:356: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). (*print_func)(p, strlen(p), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:364: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). (*print_func)(q, strlen(q), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:369: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). (*print_func)(p, strlen(p), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:376: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). (*print_func)(tok, strlen(tok), ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:603: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). (*s->display_func)(cp, strlen(cp), s->ptr); data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:1001: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). rc=rfc822_decode_rfc2047_atom(text, strlen(text), data/maildrop-2.9.3/libs/rfc822/rfc2047u.c:1025:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rc=rfc822_decode_rfc2047_atom(text+i, strlen(text+i), NULL, data/maildrop-2.9.3/libs/rfc822/rfc822hdr.c:44:5: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(f); data/maildrop-2.9.3/libs/rfc822/rfc822hdr.c:66:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(f); ANALYSIS SUMMARY: Hits = 1340 Lines analyzed = 48216 in approximately 1.08 seconds (44667 lines/second) Physical Source Lines of Code (SLOC) = 35907 Hits@level = [0] 292 [1] 561 [2] 408 [3] 21 [4] 338 [5] 12 Hits@level+ = [0+] 1632 [1+] 1340 [2+] 779 [3+] 371 [4+] 350 [5+] 12 Hits/KSLOC@level+ = [0+] 45.4507 [1+] 37.3186 [2+] 21.6949 [3+] 10.3322 [4+] 9.7474 [5+] 0.334197 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.