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/nmh-1.7.1/config/config.c
Examining data/nmh-1.7.1/config/version.c
Examining data/nmh-1.7.1/h/addrsbr.h
Examining data/nmh-1.7.1/h/aliasbr.h
Examining data/nmh-1.7.1/h/crawl_folders.h
Examining data/nmh-1.7.1/h/dropsbr.h
Examining data/nmh-1.7.1/h/fmt_compile.h
Examining data/nmh-1.7.1/h/fmt_scan.h
Examining data/nmh-1.7.1/h/icalendar.h
Examining data/nmh-1.7.1/h/md5.h
Examining data/nmh-1.7.1/h/mf.h
Examining data/nmh-1.7.1/h/mh.h
Examining data/nmh-1.7.1/h/mhcachesbr.h
Examining data/nmh-1.7.1/h/mhparse.h
Examining data/nmh-1.7.1/h/mime.h
Examining data/nmh-1.7.1/h/mts.h
Examining data/nmh-1.7.1/h/netsec.h
Examining data/nmh-1.7.1/h/nmh.h
Examining data/nmh-1.7.1/h/oauth.h
Examining data/nmh-1.7.1/h/picksbr.h
Examining data/nmh-1.7.1/h/popsbr.h
Examining data/nmh-1.7.1/h/prototypes.h
Examining data/nmh-1.7.1/h/rcvmail.h
Examining data/nmh-1.7.1/h/scansbr.h
Examining data/nmh-1.7.1/h/signals.h
Examining data/nmh-1.7.1/h/tws.h
Examining data/nmh-1.7.1/h/utils.h
Examining data/nmh-1.7.1/mts/smtp/smtp.c
Examining data/nmh-1.7.1/mts/smtp/smtp.h
Examining data/nmh-1.7.1/sbr/addrsbr.c
Examining data/nmh-1.7.1/sbr/ambigsw.c
Examining data/nmh-1.7.1/sbr/arglist.c
Examining data/nmh-1.7.1/sbr/atooi.c
Examining data/nmh-1.7.1/sbr/base64.c
Examining data/nmh-1.7.1/sbr/brkstring.c
Examining data/nmh-1.7.1/sbr/charstring.c
Examining data/nmh-1.7.1/sbr/check_charset.c
Examining data/nmh-1.7.1/sbr/client.c
Examining data/nmh-1.7.1/sbr/closefds.c
Examining data/nmh-1.7.1/sbr/concat.c
Examining data/nmh-1.7.1/sbr/context_del.c
Examining data/nmh-1.7.1/sbr/context_find.c
Examining data/nmh-1.7.1/sbr/context_foil.c
Examining data/nmh-1.7.1/sbr/context_read.c
Examining data/nmh-1.7.1/sbr/context_replace.c
Examining data/nmh-1.7.1/sbr/context_save.c
Examining data/nmh-1.7.1/sbr/copyip.c
Examining data/nmh-1.7.1/sbr/cpydata.c
Examining data/nmh-1.7.1/sbr/cpydgst.c
Examining data/nmh-1.7.1/sbr/crawl_folders.c
Examining data/nmh-1.7.1/sbr/credentials.c
Examining data/nmh-1.7.1/sbr/ctype-checked.c
Examining data/nmh-1.7.1/sbr/ctype-checked.h
Examining data/nmh-1.7.1/sbr/datetime.c
Examining data/nmh-1.7.1/sbr/discard.c
Examining data/nmh-1.7.1/sbr/done.c
Examining data/nmh-1.7.1/sbr/dtime.c
Examining data/nmh-1.7.1/sbr/dtimep.c
Examining data/nmh-1.7.1/sbr/encode_rfc2047.c
Examining data/nmh-1.7.1/sbr/error.c
Examining data/nmh-1.7.1/sbr/escape_addresses.c
Examining data/nmh-1.7.1/sbr/ext_hook.c
Examining data/nmh-1.7.1/sbr/fdcompare.c
Examining data/nmh-1.7.1/sbr/fmt_addr.c
Examining data/nmh-1.7.1/sbr/fmt_compile.c
Examining data/nmh-1.7.1/sbr/fmt_new.c
Examining data/nmh-1.7.1/sbr/fmt_rfc2047.c
Examining data/nmh-1.7.1/sbr/fmt_scan.c
Examining data/nmh-1.7.1/sbr/folder_addmsg.c
Examining data/nmh-1.7.1/sbr/folder_delmsgs.c
Examining data/nmh-1.7.1/sbr/folder_free.c
Examining data/nmh-1.7.1/sbr/folder_pack.c
Examining data/nmh-1.7.1/sbr/folder_read.c
Examining data/nmh-1.7.1/sbr/folder_realloc.c
Examining data/nmh-1.7.1/sbr/getarguments.c
Examining data/nmh-1.7.1/sbr/getcpy.c
Examining data/nmh-1.7.1/sbr/geteditor.c
Examining data/nmh-1.7.1/sbr/getfolder.c
Examining data/nmh-1.7.1/sbr/getline.c
Examining data/nmh-1.7.1/sbr/getpass.c
Examining data/nmh-1.7.1/sbr/icalendar.c
Examining data/nmh-1.7.1/sbr/icalparse.c
Examining data/nmh-1.7.1/sbr/icalparse.h
Examining data/nmh-1.7.1/sbr/lock_file.c
Examining data/nmh-1.7.1/sbr/lock_file.h
Examining data/nmh-1.7.1/sbr/m_atoi.c
Examining data/nmh-1.7.1/sbr/m_backup.c
Examining data/nmh-1.7.1/sbr/m_convert.c
Examining data/nmh-1.7.1/sbr/m_draft.c
Examining data/nmh-1.7.1/sbr/m_getfld.c
Examining data/nmh-1.7.1/sbr/m_gmprot.c
Examining data/nmh-1.7.1/sbr/m_maildir.c
Examining data/nmh-1.7.1/sbr/m_maildir.h
Examining data/nmh-1.7.1/sbr/m_mktemp.c
Examining data/nmh-1.7.1/sbr/m_mktemp.h
Examining data/nmh-1.7.1/sbr/m_name.c
Examining data/nmh-1.7.1/sbr/m_popen.c
Examining data/nmh-1.7.1/sbr/m_popen.h
Examining data/nmh-1.7.1/sbr/m_rand.c
Examining data/nmh-1.7.1/sbr/m_rand.h
Examining data/nmh-1.7.1/sbr/makedir.c
Examining data/nmh-1.7.1/sbr/makedir.h
Examining data/nmh-1.7.1/sbr/md5.c
Examining data/nmh-1.7.1/sbr/message_id.c
Examining data/nmh-1.7.1/sbr/message_id.h
Examining data/nmh-1.7.1/sbr/mf.c
Examining data/nmh-1.7.1/sbr/mime_type.c
Examining data/nmh-1.7.1/sbr/mime_type.h
Examining data/nmh-1.7.1/sbr/mts.c
Examining data/nmh-1.7.1/sbr/netsec.c
Examining data/nmh-1.7.1/sbr/oauth.c
Examining data/nmh-1.7.1/sbr/oauth_prof.c
Examining data/nmh-1.7.1/sbr/path.c
Examining data/nmh-1.7.1/sbr/pidstatus.c
Examining data/nmh-1.7.1/sbr/pidwait.c
Examining data/nmh-1.7.1/sbr/print_help.c
Examining data/nmh-1.7.1/sbr/print_sw.c
Examining data/nmh-1.7.1/sbr/print_version.c
Examining data/nmh-1.7.1/sbr/push.c
Examining data/nmh-1.7.1/sbr/r1bindex.c
Examining data/nmh-1.7.1/sbr/read_line.c
Examining data/nmh-1.7.1/sbr/read_switch.c
Examining data/nmh-1.7.1/sbr/read_switch_multiword.c
Examining data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c
Examining data/nmh-1.7.1/sbr/read_yes_or_no_if_tty.c
Examining data/nmh-1.7.1/sbr/readconfig.c
Examining data/nmh-1.7.1/sbr/refile.c
Examining data/nmh-1.7.1/sbr/remdir.c
Examining data/nmh-1.7.1/sbr/seq_add.c
Examining data/nmh-1.7.1/sbr/seq_bits.c
Examining data/nmh-1.7.1/sbr/seq_del.c
Examining data/nmh-1.7.1/sbr/seq_getnum.c
Examining data/nmh-1.7.1/sbr/seq_list.c
Examining data/nmh-1.7.1/sbr/seq_nameok.c
Examining data/nmh-1.7.1/sbr/seq_print.c
Examining data/nmh-1.7.1/sbr/seq_read.c
Examining data/nmh-1.7.1/sbr/seq_save.c
Examining data/nmh-1.7.1/sbr/seq_setcur.c
Examining data/nmh-1.7.1/sbr/seq_setprev.c
Examining data/nmh-1.7.1/sbr/seq_setunseen.c
Examining data/nmh-1.7.1/sbr/showfile.c
Examining data/nmh-1.7.1/sbr/signals.c
Examining data/nmh-1.7.1/sbr/smatch.c
Examining data/nmh-1.7.1/sbr/snprintb.c
Examining data/nmh-1.7.1/sbr/ssequal.c
Examining data/nmh-1.7.1/sbr/strindex.c
Examining data/nmh-1.7.1/sbr/terminal.c
Examining data/nmh-1.7.1/sbr/trimcpy.c
Examining data/nmh-1.7.1/sbr/unquote.c
Examining data/nmh-1.7.1/sbr/unquote.h
Examining data/nmh-1.7.1/sbr/uprf.c
Examining data/nmh-1.7.1/sbr/vector.c
Examining data/nmh-1.7.1/sbr/vfgets.c
Examining data/nmh-1.7.1/sbr/utils.c
Examining data/nmh-1.7.1/sbr/ruserpass.c
Examining data/nmh-1.7.1/test/fakehttp.c
Examining data/nmh-1.7.1/test/fakepop.c
Examining data/nmh-1.7.1/test/fakesmtp.c
Examining data/nmh-1.7.1/test/getcanon.c
Examining data/nmh-1.7.1/test/getcwidth.c
Examining data/nmh-1.7.1/test/getfullname.c
Examining data/nmh-1.7.1/test/runpty.c
Examining data/nmh-1.7.1/test/server.c
Examining data/nmh-1.7.1/thirdparty/jsmn/jsmn.c
Examining data/nmh-1.7.1/thirdparty/jsmn/jsmn.h
Examining data/nmh-1.7.1/uip/ali.c
Examining data/nmh-1.7.1/uip/aliasbr.c
Examining data/nmh-1.7.1/uip/anno.c
Examining data/nmh-1.7.1/uip/annosbr.c
Examining data/nmh-1.7.1/uip/ap.c
Examining data/nmh-1.7.1/uip/burst.c
Examining data/nmh-1.7.1/uip/comp.c
Examining data/nmh-1.7.1/uip/dist.c
Examining data/nmh-1.7.1/uip/distsbr.c
Examining data/nmh-1.7.1/uip/dp.c
Examining data/nmh-1.7.1/uip/dropsbr.c
Examining data/nmh-1.7.1/uip/flist.c
Examining data/nmh-1.7.1/uip/fmtdump.c
Examining data/nmh-1.7.1/uip/fmttest.c
Examining data/nmh-1.7.1/uip/folder.c
Examining data/nmh-1.7.1/uip/forw.c
Examining data/nmh-1.7.1/uip/forwsbr.c
Examining data/nmh-1.7.1/uip/inc.c
Examining data/nmh-1.7.1/uip/install-mh.c
Examining data/nmh-1.7.1/uip/mark.c
Examining data/nmh-1.7.1/uip/mhbuild.c
Examining data/nmh-1.7.1/uip/mhbuildsbr.c
Examining data/nmh-1.7.1/uip/mhcachesbr.c
Examining data/nmh-1.7.1/uip/mhfixmsg.c
Examining data/nmh-1.7.1/uip/mhfree.c
Examining data/nmh-1.7.1/uip/mhfree.h
Examining data/nmh-1.7.1/uip/mhical.c
Examining data/nmh-1.7.1/uip/mhl.c
Examining data/nmh-1.7.1/uip/mhlist.c
Examining data/nmh-1.7.1/uip/mhlistsbr.c
Examining data/nmh-1.7.1/uip/mhlogin.c
Examining data/nmh-1.7.1/uip/mhlsbr.c
Examining data/nmh-1.7.1/uip/mhmisc.c
Examining data/nmh-1.7.1/uip/mhn.c
Examining data/nmh-1.7.1/uip/mhoutsbr.c
Examining data/nmh-1.7.1/uip/mhoutsbr.h
Examining data/nmh-1.7.1/uip/mhparam.c
Examining data/nmh-1.7.1/uip/mhparse.c
Examining data/nmh-1.7.1/uip/mhpath.c
Examining data/nmh-1.7.1/uip/mhshow.c
Examining data/nmh-1.7.1/uip/mhshowsbr.c
Examining data/nmh-1.7.1/uip/mhshowsbr.h
Examining data/nmh-1.7.1/uip/mhstore.c
Examining data/nmh-1.7.1/uip/mhstoresbr.c
Examining data/nmh-1.7.1/uip/mkstemp.c
Examining data/nmh-1.7.1/uip/msgchk.c
Examining data/nmh-1.7.1/uip/new.c
Examining data/nmh-1.7.1/uip/packf.c
Examining data/nmh-1.7.1/uip/pick.c
Examining data/nmh-1.7.1/uip/picksbr.c
Examining data/nmh-1.7.1/uip/popsbr.c
Examining data/nmh-1.7.1/uip/prompter.c
Examining data/nmh-1.7.1/uip/rcvdist.c
Examining data/nmh-1.7.1/uip/rcvpack.c
Examining data/nmh-1.7.1/uip/rcvstore.c
Examining data/nmh-1.7.1/uip/rcvtty.c
Examining data/nmh-1.7.1/uip/refile.c
Examining data/nmh-1.7.1/uip/repl.c
Examining data/nmh-1.7.1/uip/replsbr.c
Examining data/nmh-1.7.1/uip/rmf.c
Examining data/nmh-1.7.1/uip/rmm.c
Examining data/nmh-1.7.1/uip/scan.c
Examining data/nmh-1.7.1/uip/scansbr.c
Examining data/nmh-1.7.1/uip/send.c
Examining data/nmh-1.7.1/uip/sendsbr.c
Examining data/nmh-1.7.1/uip/show.c
Examining data/nmh-1.7.1/uip/slocal.c
Examining data/nmh-1.7.1/uip/sortm.c
Examining data/nmh-1.7.1/uip/viamail.c
Examining data/nmh-1.7.1/uip/whatnow.c
Examining data/nmh-1.7.1/uip/whatnowproc.c
Examining data/nmh-1.7.1/uip/whatnowsbr.c
Examining data/nmh-1.7.1/uip/whom.c
Examining data/nmh-1.7.1/uip/post.c

FINAL RESULTS:

data/nmh-1.7.1/uip/annosbr.c:192: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 (tmpfil, mode);
data/nmh-1.7.1/uip/burst.c:468: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 (f2, mode);
data/nmh-1.7.1/uip/distsbr.c:42: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 (drft, m_gmprot ());
data/nmh-1.7.1/uip/dropsbr.c:79:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown (file, uid, gid) < 0) {
data/nmh-1.7.1/uip/dropsbr.c:82: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 (file, mode) < 0) {
data/nmh-1.7.1/uip/inc.c:573: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 (audfile, m_gmprot ());
data/nmh-1.7.1/uip/inc.c:608:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod (cp, m_gmprot ());
data/nmh-1.7.1/uip/inc.c:758: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 (cp, m_gmprot ());
data/nmh-1.7.1/uip/mhcachesbr.c:162: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 (cachefile, cachetype ? m_gmprot () : 0444);
data/nmh-1.7.1/uip/mhparse.c:2607: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 (cachefile, cachetype ? m_gmprot () : 0444);
data/nmh-1.7.1/uip/mhparse.c:2868: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(cachefile, cachetype ? m_gmprot() : 0444);
data/nmh-1.7.1/uip/rcvstore.c:165: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 (tmpfilenam, m_gmprot());
data/nmh-1.7.1/config/config.c:64:10:  [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 (epath, R_OK) != NOTOK)
data/nmh-1.7.1/config/config.c:71:10:  [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 ((cp = m_mailpath (file)), R_OK) != NOTOK) {
data/nmh-1.7.1/config/config.c:80:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
data/nmh-1.7.1/config/config.c:81:13:  [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.
    return (access (epath, R_OK) != NOTOK ? epath : file);
data/nmh-1.7.1/mts/smtp/smtp.c:340:6:  [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 (sendmail, vec);
data/nmh-1.7.1/mts/smtp/smtp.c:646:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (sm_reply.text, sizeof(sm_reply.text), fmt, ap);
data/nmh-1.7.1/mts/smtp/smtp.c:796:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy (*ehlo++, buffer + 4);
data/nmh-1.7.1/sbr/encode_rfc2047.c:615: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(mn->m_pers, tmpbuf);
data/nmh-1.7.1/sbr/error.c:105:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (buffer, sizeof(buffer), fmt, ap);
data/nmh-1.7.1/sbr/ext_hook.c:37: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(program, vec);
data/nmh-1.7.1/sbr/folder_delmsgs.c:75:6:  [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 (prog, vec);
data/nmh-1.7.1/sbr/folder_read.c:54:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (name, W_OK) == -1)
data/nmh-1.7.1/sbr/icalparse.c:636:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/nmh-1.7.1/sbr/lock_file.c:112:34:  [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.
lkopendata(const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:128:25:  [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.
    return lkopen(file, access, mode, datalocktype, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:136:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int lkopenspool(const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:145:25:  [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.
    return lkopen(file, access, mode, spoollocktype, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:295:31:  [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.
lkopen (const char *file, int access, mode_t mode, enum locktype ltype,
data/nmh-1.7.1/sbr/lock_file.c:301:32:  [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.
    	return lkopen_fcntl(file, access, mode, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:304:30:  [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.
    	return lkopen_dot(file, access, mode, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:308:32:  [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.
    	return lkopen_flock(file, access, mode, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:313:32:  [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.
    	return lkopen_lockf(file, access, mode, failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.c:348:36:  [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.
lkopen_fcntl(const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:359:27:  [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 ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:364:16:  [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.
	flk.l_type = (access & O_ACCMODE) == O_RDONLY ? F_RDLCK : F_WRLCK;
data/nmh-1.7.1/sbr/lock_file.c:387:36:  [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.
lkopen_flock(const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:396:19:  [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.
    locktype = (((access & O_ACCMODE) == O_RDONLY) ? LOCK_SH : LOCK_EX) |
data/nmh-1.7.1/sbr/lock_file.c:400:27:  [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 ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:422:36:  [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.
lkopen_lockf(const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:436:20:  [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.
    saved_access = access;
data/nmh-1.7.1/sbr/lock_file.c:438:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access &= ~O_APPEND;
data/nmh-1.7.1/sbr/lock_file.c:440:10:  [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 & O_ACCMODE) == O_RDONLY) {
data/nmh-1.7.1/sbr/lock_file.c:441: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.
    	access &= ~O_RDONLY;
data/nmh-1.7.1/sbr/lock_file.c:442:2:  [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.
	access |= O_RDWR;
data/nmh-1.7.1/sbr/lock_file.c:446:27:  [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 ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:475:35:  [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.
lkopen_dot (const char *file, int access, mode_t mode, int *failed_to_lock)
data/nmh-1.7.1/sbr/lock_file.c:481:27:  [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 ((fd = open (file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.h:22:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int lkopendata(const char *file, int access, mode_t mode, int *failed_to_lock);
data/nmh-1.7.1/sbr/lock_file.h:23:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int lkopenspool(const char *file, int access, mode_t mode, int *failed_to_lock);
data/nmh-1.7.1/sbr/m_getfld.c:830: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 (s->msg_delim, delimstr);
data/nmh-1.7.1/sbr/m_maildir.c:91: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 (cp, folder);
data/nmh-1.7.1/sbr/m_popen.c:47:6:  [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 (file, arglist);
data/nmh-1.7.1/sbr/makedir.c:48:13:  [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(path, X_OK)) {
data/nmh-1.7.1/sbr/message_id.c:43:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf (message_id_, sizeof message_id_, format,
data/nmh-1.7.1/sbr/message_id.c:98:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf (message_id_, sizeof message_id_, format,
data/nmh-1.7.1/sbr/mf.c:229: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 (adr, ap);
data/nmh-1.7.1/sbr/mime_type.c:134:19:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if ((fp = popen(cmd, "r")) != NULL) {
data/nmh-1.7.1/sbr/mts.c:253: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 (buf, localdomain);
data/nmh-1.7.1/sbr/netsec.c:812:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    rc = vsnprintf((char *) nsc->ns_outptr,
data/nmh-1.7.1/sbr/netsec.c:1094: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((char *) (*psecret)->data, password);
data/nmh-1.7.1/sbr/netsec.c:1707:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	rc = vsnprintf(errbuf, errbufsize, fmt, ap);
data/nmh-1.7.1/sbr/oauth.c:705:51:  [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.
save_user(FILE *fp, const char *user, const char *access, const char *refresh,
data/nmh-1.7.1/sbr/oauth.c:708:9:  [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 != NULL) {
data/nmh-1.7.1/sbr/oauth.c:709:50:  [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 (fprintf(fp, "access-%s: %s\n", user, access) < 0) return FALSE;
data/nmh-1.7.1/sbr/oauth.c:848:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(s, base_url);
data/nmh-1.7.1/sbr/oauth.c:867:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(s + len, "%s%s=%s", prefix, name_esc, val_esc);
data/nmh-1.7.1/sbr/path.c:126: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).
                strcpy (cp--, dp);
data/nmh-1.7.1/sbr/path.c:151: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).
                    strcpy (dp, cp + LEN(PWD) - 1);
data/nmh-1.7.1/sbr/path.c:156: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).
                    strcpy (cp - 1, cp + LEN(CWD) - 1);
data/nmh-1.7.1/sbr/print_sw.c:47:7:  [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(fp, optno ? "  %s[no]%s\n" : "  %s%s\n",
data/nmh-1.7.1/sbr/refile.c:43:6:  [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 (program, vec);
data/nmh-1.7.1/sbr/ruserpass.c:143:16:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	if ((myname = getlogin()) == NULL) {
data/nmh-1.7.1/sbr/seq_list.c:86: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(bp, m_name(i));
data/nmh-1.7.1/sbr/seq_list.c:99: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(bp, m_name(i - 1));
data/nmh-1.7.1/sbr/showfile.c:54: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 (program, vec);
data/nmh-1.7.1/sbr/snprintb.c:18:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (buffer, n, bits && *bits == 010 ? "0%o" : "0x%x", v);
data/nmh-1.7.1/sbr/terminal.c:142:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (fmt, ap);
data/nmh-1.7.1/sbr/utils.c:111: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).
                || (strcpy (curwd, mypath), chdir (curwd)) == -1) {
data/nmh-1.7.1/sbr/utils.c:351:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(dst, src);
data/nmh-1.7.1/test/fakepop.c:298: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(buffer, linebuf);
data/nmh-1.7.1/test/fakepop.c:302: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(buffer, linebuf);
data/nmh-1.7.1/test/runpty.c:113: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(argv[2], argv + 2);
data/nmh-1.7.1/uip/distsbr.c:35: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).
    if (rename (drft, strcpy (backup, m_backup (drft))) == NOTOK)
data/nmh-1.7.1/uip/fmtdump.c:438:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(buf, "/* ??? #%d */", t);
data/nmh-1.7.1/uip/fmtdump.c:446: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(buf, s); }
data/nmh-1.7.1/uip/fmtdump.c:456:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(buf, "0x%x ", t);
data/nmh-1.7.1/uip/fmtdump.c:473:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(buf, "0x%x ", t);
data/nmh-1.7.1/uip/folder.c:299: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 (cp, F_OK) == NOTOK)
data/nmh-1.7.1/uip/forw.c:389:19:  [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 (filter && access (filter, R_OK) == NOTOK)
data/nmh-1.7.1/uip/forw.c:397:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf (buf, sizeof(buf), IFORMAT, digest);
data/nmh-1.7.1/uip/forw.c:405:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf (buf, sizeof(buf), VFORMAT, digest);
data/nmh-1.7.1/uip/forw.c:456:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf (buf, sizeof(buf), IFORMAT, digest);
data/nmh-1.7.1/uip/forw.c:458:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf (buf, sizeof(buf), VFORMAT, digest);
data/nmh-1.7.1/uip/forw.c:543:6:  [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 (program, vec.msgs);
data/nmh-1.7.1/uip/inc.c:541: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 (newmail, W_OK) != NOTOK) {
data/nmh-1.7.1/uip/mhbuildsbr.c:418: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(at_entry->filename, R_OK) != 0) {
data/nmh-1.7.1/uip/mhbuildsbr.c:928: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 (ce->ce_file, R_OK) == NOTOK)
data/nmh-1.7.1/uip/mhbuildsbr.c:1140:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (contentid, sizeof(contentid), msgfmt, top ? 0 : ++partno);
data/nmh-1.7.1/uip/mhbuildsbr.c:1340:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp ("/bin/sh", vec);
data/nmh-1.7.1/uip/mhcachesbr.c:192: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 (buffer, R_OK) != NOTOK) {
data/nmh-1.7.1/uip/mhcachesbr.c:204:18:  [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 (writing || access (buffer, R_OK) != NOTOK) {
data/nmh-1.7.1/uip/mhcachesbr.c:216:18:  [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 (writing || access (buffer, R_OK) != NOTOK)
data/nmh-1.7.1/uip/mhcachesbr.c:304:20:  [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 (!usemap && access (mapfile, W_OK) == NOTOK)
data/nmh-1.7.1/uip/mhfixmsg.c:2788:22:  [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.
        int status = system (rmm_command);
data/nmh-1.7.1/uip/mhlistsbr.c:61:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf (LSTFMT1, "msg", "part", "type/subtype", "size", "description");
data/nmh-1.7.1/uip/mhlistsbr.c:150:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    	printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
data/nmh-1.7.1/uip/mhlistsbr.c:152:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    	printf(toplevel < 0 ? "part " : "     ");
data/nmh-1.7.1/uip/mhlistsbr.c:157:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf (LSTFMT2bv, FENDNULL(ct->c_partno), buffer);
data/nmh-1.7.1/uip/mhlistsbr.c:159:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf (LSTFMT2b, FENDNULL(ct->c_partno), buffer);
data/nmh-1.7.1/uip/mhlistsbr.c:175:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (LSTFMT2c1, size);
data/nmh-1.7.1/uip/mhlistsbr.c:177:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (LSTFMT2c4);
data/nmh-1.7.1/uip/mhlistsbr.c:181:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (LSTFMT2c2, size, *cp);
data/nmh-1.7.1/uip/mhlistsbr.c:185:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (LSTFMT2c3);
data/nmh-1.7.1/uip/mhlistsbr.c:194:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (LSTFMT2d1v, dp);
data/nmh-1.7.1/uip/mhlistsbr.c:196:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (LSTFMT2d1, dp);
data/nmh-1.7.1/uip/mhlistsbr.c:220:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (LSTFMT2d2, buffer);
data/nmh-1.7.1/uip/mhlogin.c:89:18:  [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.
        status = system(command);
data/nmh-1.7.1/uip/mhlogin.c:107:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(!*code  ?  "Empty code; try again? "  :  "Code rejected; try again? ");
data/nmh-1.7.1/uip/mhlsbr.c:1870: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(formatproc, args);
data/nmh-1.7.1/uip/mhmisc.c:189:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (bp, buflen, fmt, arglist);
data/nmh-1.7.1/uip/mhn.c:386: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 ("mhbuild", vec);
data/nmh-1.7.1/uip/mhn.c:413: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 ("mhbuild", vec);
data/nmh-1.7.1/uip/mhparse.c:2589:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp (ftp, vec);
data/nmh-1.7.1/uip/mhparse.c:2725:6:  [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 (mailproc, vec);
data/nmh-1.7.1/uip/mhparse.c:2853: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(program, args.msgs);
data/nmh-1.7.1/uip/mhshowsbr.c:237: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 (file, vec);
data/nmh-1.7.1/uip/mhshowsbr.c:494:6:  [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 (file, vec);
data/nmh-1.7.1/uip/mhshowsbr.c:1060:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf (buffer, buflen, ct->c_termproc, term);
data/nmh-1.7.1/uip/mkstemp.c:236:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) printf(usage, argv[0]);
data/nmh-1.7.1/uip/mkstemp.c:239:20:  [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.
            (void) fprintf(stderr, usage, argv[0]);
data/nmh-1.7.1/uip/msgchk.c:349:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (personal ? "You don't %s%s" : "%s doesn't %s",
data/nmh-1.7.1/uip/msgchk.c:411:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (personal ? "You don't %s%s" : "%s doesn't %s",
data/nmh-1.7.1/uip/new.c:401:15:  [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.
	    status = system(command);
data/nmh-1.7.1/uip/popsbr.c:122: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 (c, host);
data/nmh-1.7.1/uip/popsbr.c:183:5:  [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[0],argv);
data/nmh-1.7.1/uip/post.c:735:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		    snprintf(sbuf, sizeof(sbuf),
data/nmh-1.7.1/uip/post.c:1571:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp (program, vec);
data/nmh-1.7.1/uip/post.c:1743: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 (program, argp);
data/nmh-1.7.1/uip/post.c:2051:6:  [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 (program, arglist);
data/nmh-1.7.1/uip/rcvdist.c:191:6:  [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 (program, vec);
data/nmh-1.7.1/uip/rcvtty.c:241:9:  [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.
    if (execvp (vec[0], vec) == NOTOK) {
data/nmh-1.7.1/uip/refile.c:354: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 (program, vec);
data/nmh-1.7.1/uip/replsbr.c:425:9:  [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 (filter, R_OK) == NOTOK)
data/nmh-1.7.1/uip/replsbr.c:463:6:  [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 (mhl, arglist);
data/nmh-1.7.1/uip/rmf.c:135:10:  [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 (".", W_OK) != NOTOK && access ("..", W_OK) != NOTOK)
data/nmh-1.7.1/uip/rmf.c:135:41:  [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 (".", W_OK) != NOTOK && access ("..", W_OK) != NOTOK)
data/nmh-1.7.1/uip/sendsbr.c:100: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(buildprogram, buildvec);
data/nmh-1.7.1/uip/sendsbr.c:468: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 (program, vec);
data/nmh-1.7.1/uip/sendsbr.c:573:6:  [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 (program, arglist);
data/nmh-1.7.1/uip/show.c:357:5:  [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 (program, vec.msgs);
data/nmh-1.7.1/uip/slocal.c:679: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 (s - 1, s);
data/nmh-1.7.1/uip/slocal.c:849: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 (s1, p->p_value);
data/nmh-1.7.1/uip/slocal.c:1094:6:  [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 (pgm, vec);
data/nmh-1.7.1/uip/slocal.c:1339:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/nmh-1.7.1/uip/slocal.c:1362:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/nmh-1.7.1/uip/slocal.c:1389:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, ap);
data/nmh-1.7.1/uip/whatnowproc.c:117:5:  [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 (whatnowproc, vec);
data/nmh-1.7.1/uip/whatnowsbr.c:227:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (prompt, sizeof(prompt), myprompt, invo_name);
data/nmh-1.7.1/uip/whatnowsbr.c:570: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(cp, trailcmd);
data/nmh-1.7.1/uip/whatnowsbr.c:606:9:  [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.
    r = system(cmd);
data/nmh-1.7.1/uip/whatnowsbr.c:627:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    f = popen(cmd, type);
data/nmh-1.7.1/uip/whatnowsbr.c:723:6:  [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 (prog, vec);
data/nmh-1.7.1/uip/whatnowsbr.c:838:6:  [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 (program, vec);
data/nmh-1.7.1/uip/whatnowsbr.c:1282:6:  [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 (program, vec);
data/nmh-1.7.1/uip/whom.c:194:6:  [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 (postproc, vec);
data/nmh-1.7.1/h/mts.h:19:53:  [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.
#define	MAILDIR	(mmdfldir && *mmdfldir ? mmdfldir : getenv ("HOME"))
data/nmh-1.7.1/sbr/addrsbr.c:352:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((cp = getenv ("MHWDEBUG")) && *cp) {
data/nmh-1.7.1/sbr/context_foil.c:58:34:  [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 (mypath == NULL && (mypath = getenv ("HOME")) != NULL)
data/nmh-1.7.1/sbr/context_read.c:53: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.
    if ((mypath = getenv("HOME")) == NULL) {
data/nmh-1.7.1/sbr/context_read.c:67:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv("MH")) && *cp != '\0') {
data/nmh-1.7.1/sbr/context_read.c:129:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHCONTEXT")) == NULL || *cp == '\0')
data/nmh-1.7.1/sbr/credentials.c:25:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            char *hdir = getenv ("HOME");
data/nmh-1.7.1/sbr/fmt_scan.c:707:18:  [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 (!(str = getenv (fmt->f_text)))
data/nmh-1.7.1/sbr/geteditor.c:21:52:  [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 (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
data/nmh-1.7.1/sbr/geteditor.c:22:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    	!(str = getenv("EDITOR"))) {
data/nmh-1.7.1/sbr/m_mktemp.c:238:18:  [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.
        tmpdir = getenv("MHTMPDIR");
data/nmh-1.7.1/sbr/m_mktemp.c:241:18:  [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.
        tmpdir = getenv("TMPDIR");
data/nmh-1.7.1/sbr/m_rand.c:42:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (seed);
data/nmh-1.7.1/sbr/mts.c:398:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("SIGNATURE")) && *cp)
data/nmh-1.7.1/sbr/mts.c:420: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.
    const char *cp = getenv ( "MHMTSCONF" );
data/nmh-1.7.1/sbr/mts.c:430: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.
    const char *cp = getenv ( "MHMTSUSERCONF" );
data/nmh-1.7.1/sbr/readconfig.c:111: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.
        lproc = getenv("PAGER");
data/nmh-1.7.1/sbr/readconfig.c:116:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        moreproc = getenv("PAGER");
data/nmh-1.7.1/sbr/utils.c:451:26:  [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.
        } else if ((cp = getenv ("MHCONTEXT")) != NULL && *cp != '\0') {
data/nmh-1.7.1/test/fakesmtp.c:42:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *xoauth = getenv("XOAUTH");
data/nmh-1.7.1/test/fakesmtp.c:43:25:  [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 *smtputf8 = getenv("SMTPUTF8");
data/nmh-1.7.1/uip/inc.c:219:34:  [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 ((MAILHOST_env_variable = getenv("MAILHOST")) != NULL)
data/nmh-1.7.1/uip/inc.c:453: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.
	else if ((newmail = getenv ("MAILDROP")) && *newmail)
data/nmh-1.7.1/uip/install-mh.c:84: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.
    if ((mypath = getenv("HOME")) == NULL) {
data/nmh-1.7.1/uip/install-mh.c:98:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv("MH")) && *cp != '\0')
data/nmh-1.7.1/uip/mhbuild.c:292:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHBUILD"))) {
data/nmh-1.7.1/uip/mhlsbr.c:354:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHLDEBUG")) && *cp)
data/nmh-1.7.1/uip/mhlsbr.c:478:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	folder = getenv ("mhfolder");
data/nmh-1.7.1/uip/mhn.c:327:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHN"))) {
data/nmh-1.7.1/uip/mhn.c:396:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	&& (cp = getenv ("mhdraft"))
data/nmh-1.7.1/uip/mhshow.c:306:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHSHOW"))) {
data/nmh-1.7.1/uip/mhstore.c:235:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHSTORE"))) {
data/nmh-1.7.1/uip/mkstemp.c:224:19:  [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 ((opt = getopt(argc, argv, optstring)) != -1) {
data/nmh-1.7.1/uip/msgchk.c:255:40:  [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 (!geteuid() || NULL == (home = getenv("HOME"))) {
data/nmh-1.7.1/uip/pick.c:78:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("MHPDEBUG")) && *cp)
data/nmh-1.7.1/uip/replsbr.c:172:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((cp = getenv("USER")))
data/nmh-1.7.1/uip/send.c:383:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("SIGNATURE")) == NULL || *cp == 0)
data/nmh-1.7.1/uip/send.c:391: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.
    if ((annotext = getenv ("mhannotate")) == NULL || *annotext == 0)
data/nmh-1.7.1/uip/send.c:393:28:  [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 (annotext && ((cp = getenv ("mhinplace")) != NULL && *cp != 0))
data/nmh-1.7.1/uip/send.c:395: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.
    if ((altmsg = getenv ("mhaltmsg")) == NULL || *altmsg == 0)
data/nmh-1.7.1/uip/send.c:398:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhdist"))
data/nmh-1.7.1/uip/sendsbr.c:668: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.
    if ((folder = getenv ("mhfolder")) == NULL || *folder == 0) {
data/nmh-1.7.1/uip/sendsbr.c:692:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhmessages")) == NULL || *cp == 0) {
data/nmh-1.7.1/uip/whatnowproc.c:49:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((bp = getenv ("mhaltmsg")))/* XXX */
data/nmh-1.7.1/uip/whatnowsbr.c:206:34:  [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 ((drft == NULL && (drft = getenv ("mhdraft")) == NULL) || *drft == 0)
data/nmh-1.7.1/uip/whatnowsbr.c:209:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    msgnam = (cp = getenv ("mhaltmsg")) && *cp ? mh_xstrdup(cp) : NULL;
data/nmh-1.7.1/uip/whatnowsbr.c:211:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhatfile")) && *cp)
data/nmh-1.7.1/uip/whatnowsbr.c:214:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhuse")) && *cp)
data/nmh-1.7.1/uip/whatnowsbr.c:217:30:  [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 (ed == NULL && ((ed = getenv ("mheditor")) == NULL || *ed == 0)) {
data/nmh-1.7.1/uip/whatnowsbr.c:1197:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("SIGNATURE")) == NULL || *cp == 0)
data/nmh-1.7.1/uip/whatnowsbr.c:1201: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.
    if ((annotext = getenv ("mhannotate")) == NULL || *annotext == 0)
data/nmh-1.7.1/uip/whatnowsbr.c:1203: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.
    if ((altmsg = getenv ("mhaltmsg")) == NULL || *altmsg == 0)
data/nmh-1.7.1/uip/whatnowsbr.c:1205:28:  [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 (annotext && ((cp = getenv ("mhinplace")) != NULL && *cp != 0))
data/nmh-1.7.1/uip/whatnowsbr.c:1208:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhdist"))
data/nmh-1.7.1/uip/whom.c:170:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((cp = getenv ("mhdist"))
data/nmh-1.7.1/uip/whom.c:173:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    && (cp = getenv ("mhaltmsg"))
data/nmh-1.7.1/config/config.c:32:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char epath[PATH_MAX];
data/nmh-1.7.1/h/md5.h:81:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[64];                         /* input buffer */
data/nmh-1.7.1/h/mhparse.h:149:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c_digest[16];	/* decoded MD5 checksum              */
data/nmh-1.7.1/mts/smtp/smtp.c:51: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 *EHLOkeys[MAXEHLO + 1];
data/nmh-1.7.1/mts/smtp/smtp.c:262: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 *vec[15], *errstr;
data/nmh-1.7.1/mts/smtp/smtp.c:409: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 response[BUFSIZ];
data/nmh-1.7.1/mts/smtp/smtp.c:592: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 (sm_note.text, sm_reply.text, sm_reply.length + 1);
data/nmh-1.7.1/mts/smtp/smtp.c:617: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 (sm_reply.text, sm_note.text, sm_note.length + 1);
data/nmh-1.7.1/mts/smtp/smtp.c:814: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).
	code = atoi ((char *) bp);
data/nmh-1.7.1/mts/smtp/smtp.c:839: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 (rp, bp, i);
data/nmh-1.7.1/mts/smtp/smtp.c:844: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 (rp, sm_moreply, i); /* safe because of check in if() */
data/nmh-1.7.1/mts/smtp/smtp.c:874:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ + 19];
data/nmh-1.7.1/mts/smtp/smtp.h:10: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 text[BUFSIZ];
data/nmh-1.7.1/sbr/addrsbr.c:75: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 err[BUFSIZ];
data/nmh-1.7.1/sbr/addrsbr.c:76: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 adr[BUFSIZ];
data/nmh-1.7.1/sbr/addrsbr.c:222:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char addr[BUFSIZ];
data/nmh-1.7.1/sbr/addrsbr.c:223:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/addrsbr.c:281: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 buffer[BUFSIZ];
data/nmh-1.7.1/sbr/base64.c:13: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 nib2b64[0x40+1] =
data/nmh-1.7.1/sbr/base64.c:20:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char inbuf[3];
data/nmh-1.7.1/sbr/base64.c: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 outbuf[4];
data/nmh-1.7.1/sbr/base64.c:209: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 b642nib[0x80] = {
data/nmh-1.7.1/sbr/base64.c:349:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s[16];
data/nmh-1.7.1/sbr/charstring.c:62: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 (s->buffer, src->buffer, num);
data/nmh-1.7.1/sbr/charstring.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.
        memcpy (dest->cur, src->buffer, num);
data/nmh-1.7.1/sbr/charstring.c:119: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.
        memcpy (dest->cur, src, num);  /* Exclude src's trailing newline. */
data/nmh-1.7.1/sbr/charstring.c:153: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 (copy, charstring_buffer (s), s->cur - s->buffer + 1);
data/nmh-1.7.1/sbr/client.c:52:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 address[NI_MAXHOST];
data/nmh-1.7.1/sbr/client.c:53:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 port[NI_MAXSERV];
data/nmh-1.7.1/sbr/context_read.c:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char			buf[BUFSIZ];	/* path name buffer */
data/nmh-1.7.1/sbr/context_read.c:75: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 ((ib = fopen(defpath, "r")) == NULL)
data/nmh-1.7.1/sbr/context_read.c:81: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 ((ib = fopen(defpath, "r")) == NULL)
data/nmh-1.7.1/sbr/cpydata.c:14: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 buffer[BUFSIZ];
data/nmh-1.7.1/sbr/cpydgst.c:39: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 buffer[BUFSIZ], outbuf[BUFSIZ];
data/nmh-1.7.1/sbr/datetime.c:90: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).
        int offset = atoi (zone ? zone : "0");
data/nmh-1.7.1/sbr/datetime.c:279: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.
        char buf[32];
data/nmh-1.7.1/sbr/datetime.c:299:21:  [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).
            month = atoi (cp + 8);
data/nmh-1.7.1/sbr/datetime.c:406: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.
        char buf[5];
data/nmh-1.7.1/sbr/datetime.c:409: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.
        memcpy (buf, node->value, sizeof buf - 1);
data/nmh-1.7.1/sbr/datetime.c:411: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).
        year = atoi (buf);
data/nmh-1.7.1/sbr/dtime.c:182:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[26];
data/nmh-1.7.1/sbr/dtime.c:251: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 buffer[80];
data/nmh-1.7.1/sbr/dtime.c:252:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[80];
data/nmh-1.7.1/sbr/dtime.c:290:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[sizeof "+3579139459"]; /* 2,147,483,648 / 60 = 35,791,394 */
data/nmh-1.7.1/sbr/dtimep.c:970: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 SETMON_NUM() { tw.tw_mon = atoi(cp)-1; \
data/nmh-1.7.1/sbr/dtimep.c:972:37:  [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 SETYEAR()    { tw.tw_year = atoi(cp); \
data/nmh-1.7.1/sbr/dtimep.c:974:37:  [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 SETDAY()     { tw.tw_mday = atoi(cp); \
data/nmh-1.7.1/sbr/dtimep.c:977:37:  [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 SETTIME()    { tw.tw_hour = atoi(cp); \
data/nmh-1.7.1/sbr/dtimep.c:980: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).
                       tw.tw_min = atoi(cp); \
data/nmh-1.7.1/sbr/dtimep.c:983: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).
                          tw.tw_sec = atoi(++cp); SKIPD(); } }
data/nmh-1.7.1/sbr/dtimep.c:1452:45:  [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).
                                    SETZONE(atoi(cp));
data/nmh-1.7.1/sbr/dtimep.c:1463:46:  [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).
                                    SETZONE(-atoi(cp));
data/nmh-1.7.1/sbr/encode_rfc2047.c:467:5:  [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(q, "?=");
data/nmh-1.7.1/sbr/encode_rfc2047.c:559: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 errbuf[BUFSIZ];
data/nmh-1.7.1/sbr/error.c:86: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 buffer[NMH_BUFSIZ], *err;
data/nmh-1.7.1/sbr/ext_hook.c:53:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    	char errbuf[BUFSIZ];
data/nmh-1.7.1/sbr/fdcompare.c:16: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 b1[BUFSIZ], b2[BUFSIZ];
data/nmh-1.7.1/sbr/fmt_new.c:34: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 (etcpath (form), "r")) == NULL)
data/nmh-1.7.1/sbr/fmt_rfc2047.c:33: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 signed char index_64[128] = {
data/nmh-1.7.1/sbr/fmt_scan.c:362: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 given[BUFSIZ], surname[BUFSIZ];
data/nmh-1.7.1/sbr/fmt_scan.c:409: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 buffer[NMH_BUFSIZ], buffer2[NMH_BUFSIZ];
data/nmh-1.7.1/sbr/fmt_scan.c:550: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(buffer, "huge");
data/nmh-1.7.1/sbr/fmt_scan.c:758:45:  [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).
	    value = (comp = fmt->f_comp)->c_text ? atoi(comp->c_text) : 0;
data/nmh-1.7.1/sbr/folder_addmsg.c:21: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 *nmsg, newmsg[BUFSIZ];
data/nmh-1.7.1/sbr/folder_addmsg.c:22: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 oldmsg[BUFSIZ];
data/nmh-1.7.1/sbr/folder_addmsg.c:170:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((infd = open (msgfile, O_RDONLY)) == -1) {
data/nmh-1.7.1/sbr/folder_delmsgs.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100], *dp, **vec, *prog;
data/nmh-1.7.1/sbr/folder_delmsgs.c:28: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	msgpath[BUFSIZ];
data/nmh-1.7.1/sbr/folder_pack.c:20: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 newmsg[BUFSIZ], oldmsg[BUFSIZ];
data/nmh-1.7.1/sbr/folder_read.c:159: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.
        char seqfile[PATH_MAX];
data/nmh-1.7.1/sbr/getpass.c:54: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[MAX_PASSWORD_LEN + 1];
data/nmh-1.7.1/sbr/getpass.c:61:32:  [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 (!istty || !(fout = fin = fopen("/dev/tty", "w+"))) {
data/nmh-1.7.1/sbr/icalparse.c:882:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/nmh-1.7.1/sbr/icalparse.c:1069:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/nmh-1.7.1/sbr/icalparse.c:1714: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.
        memcpy (cline->input_line + cline->input_line_len, src, src_len);
data/nmh-1.7.1/sbr/lock_file.c:42: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 curlock[BUFSIZ];
data/nmh-1.7.1/sbr/lock_file.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmplock[BUFSIZ];
data/nmh-1.7.1/sbr/lock_file.c:359:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    	if ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:400:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    	if ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:446:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    	if ((fd = open(file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:481: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 ((fd = open (file, access, mode)) == -1)
data/nmh-1.7.1/sbr/lock_file.c:550:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *curlock, *tmpfile;
data/nmh-1.7.1/sbr/lock_file.c:553: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 buffer[128];
data/nmh-1.7.1/sbr/lock_file.c:575:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = link(tmpfile, curlock);
data/nmh-1.7.1/sbr/lock_file.c:576:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    (void) m_unlink(tmpfile);
data/nmh-1.7.1/sbr/m_backup.c:16:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/m_convert.c:146: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).
	if ((count = atoi (bp = cp)) == 0)
data/nmh-1.7.1/sbr/m_convert.c:267:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/nmh-1.7.1/sbr/m_convert.c:275:6:  [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 = atoi (cp);
data/nmh-1.7.1/sbr/m_draft.c:18:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/m_getfld.c:230: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 msg_buf[2 * MSG_INPUT_SIZE + MAX_DELIMITER_SIZE];
data/nmh-1.7.1/sbr/m_getfld.c:489:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
m_getfld (m_getfld_state_t *gstate, char name[NAMESZ], char *buf, int *bufsz,
data/nmh-1.7.1/sbr/m_getfld.c:589: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, name, n - 1);
data/nmh-1.7.1/sbr/m_getfld.c:750: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( buf, bp, c );
data/nmh-1.7.1/sbr/m_getfld.c:779: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 text[MAX_DELIMITER_SIZE];
data/nmh-1.7.1/sbr/m_getfld.c:886: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 text[MAX_DELIMITER_SIZE];
data/nmh-1.7.1/sbr/m_maildir.c:17: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 mailfold[BUFSIZ];
data/nmh-1.7.1/sbr/m_maildir.c:43: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 maildir[BUFSIZ];
data/nmh-1.7.1/sbr/m_mktemp.c:52:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char tmpfil[BUFSIZ];
data/nmh-1.7.1/sbr/m_mktemp.c:63:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(tmpfil);
data/nmh-1.7.1/sbr/m_mktemp.c:114:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/m_mktemp.c:181:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(tmpfil);
data/nmh-1.7.1/sbr/m_rand.c:28:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((devurandom = fopen ("/dev/urandom", "r"))) {
data/nmh-1.7.1/sbr/makedir.c:19: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            path[PATH_MAX];
data/nmh-1.7.1/sbr/md5.c:58:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char PADDING[64] = {
data/nmh-1.7.1/sbr/md5.c:137: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 ((POINTER)&context->buffer[index], (POINTER)input, partLen);
data/nmh-1.7.1/sbr/md5.c:149: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 ((POINTER)&context->buffer[index], (POINTER)&input[i], inputLen-i);
data/nmh-1.7.1/sbr/md5.c:157: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.
unsigned char digest[16];                         /* message digest */
data/nmh-1.7.1/sbr/md5.c:160:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char bits[8];
data/nmh-1.7.1/sbr/md5.c:185: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.
unsigned char block[64];
data/nmh-1.7.1/sbr/message_id.c:19: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 message_id_[BUFSIZ];
data/nmh-1.7.1/sbr/message_id.c:56: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.
      unsigned char rnd[9];
data/nmh-1.7.1/sbr/message_id.c:67:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rnd_base64[2 * sizeof rnd];
data/nmh-1.7.1/sbr/mf.c:143: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 err[BUFSIZ];
data/nmh-1.7.1/sbr/mf.c:144: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 adr[BUFSIZ];
data/nmh-1.7.1/sbr/mf.c:207:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(err, "Address contains 8-bit characters");
data/nmh-1.7.1/sbr/mf.c:251: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 buffer[BUFSIZ];
data/nmh-1.7.1/sbr/mf.c:263: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 (err, "extraneous semi-colon");
data/nmh-1.7.1/sbr/mf.c:367: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 (err, "extraneous semi-colon");
data/nmh-1.7.1/sbr/mf.c:385: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 (err, "extraneous semi-colon");
data/nmh-1.7.1/sbr/mf.c:707:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/mime_type.c:63: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).
			(fp = fopen(p = etcpath("mhn.defaults"), "r"))) {
data/nmh-1.7.1/sbr/mime_type.c:89:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if (!(fp = fopen(file_name, "r"))) {
data/nmh-1.7.1/sbr/mime_type.c:135:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[max(BUFSIZ, 2048)];
data/nmh-1.7.1/sbr/mts.c:52: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 username[BUFSIZ];
data/nmh-1.7.1/sbr/mts.c:53: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 fullname[BUFSIZ];
data/nmh-1.7.1/sbr/mts.c:54: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 localmbox[BUFSIZ];
data/nmh-1.7.1/sbr/mts.c:137: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 (inited++ || (fp = fopen (get_mtsconf_pathname(), "r")) == NULL)
data/nmh-1.7.1/sbr/mts.c:144:20:  [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 (get_mtsuserconf_pathname(), "r")) != NULL)) {
data/nmh-1.7.1/sbr/mts.c:165: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 buffer[BUFSIZ];
data/nmh-1.7.1/sbr/mts.c:212:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer0[BUFSIZ] = "";
data/nmh-1.7.1/sbr/mts.c:213:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer1[BUFSIZ] = "";
data/nmh-1.7.1/sbr/mts.c:268:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ] = "";
data/nmh-1.7.1/sbr/mts.c:440: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 *bp, *cp, buffer[BUFSIZ];
data/nmh-1.7.1/sbr/netsec.c:397: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(buffer, nsc->ns_inptr, retlen);
data/nmh-1.7.1/sbr/netsec.c:710: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(end, tmpout, tmpoutlen);
data/nmh-1.7.1/sbr/netsec.c:744: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(nsc->ns_outptr, bufptr, remaining);
data/nmh-1.7.1/sbr/netsec.c:766: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(nsc->ns_outptr, bufptr, size);
data/nmh-1.7.1/sbr/oauth.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[URL_MAX];
data/nmh-1.7.1/sbr/oauth.c:99: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 err_buf[CURL_ERROR_SIZE];
data/nmh-1.7.1/sbr/oauth.c:125: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 res_body[RESPONSE_BODY_MAX];
data/nmh-1.7.1/sbr/oauth.c:616: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 name[NAMESZ], value_buf[BUFSIZ];
data/nmh-1.7.1/sbr/oauth.c:925: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(ctx->res_body + ctx->res_len, ptr, size);
data/nmh-1.7.1/sbr/oauth.c:1082:13:  [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, input + tokens[i].start, val_len);
data/nmh-1.7.1/sbr/path.c:49: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 buffer[BUFSIZ];
data/nmh-1.7.1/sbr/print_sw.c:17:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/nmh-1.7.1/sbr/print_sw.c:37:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy (cp, "[no]");
data/nmh-1.7.1/sbr/read_line.c:7:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[BUFSIZ];
data/nmh-1.7.1/sbr/read_switch.c:17: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 ansbuf[BUFSIZ];
data/nmh-1.7.1/sbr/read_switch_multiword.c:12: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 ansbuf[BUFSIZ];
data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c:20: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 ansbuf[BUFSIZ];
data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/nmh-1.7.1/sbr/readconfig.c:47: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 name[NAMESZ], field[NMH_BUFSIZ];
data/nmh-1.7.1/sbr/ruserpass.c:72: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).
    cfile = fopen (credentials_file, "r");
data/nmh-1.7.1/sbr/ruserpass.c:77: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.
        char tokval[MAX_TOKVAL_SIZE];
data/nmh-1.7.1/sbr/ruserpass.c:140: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 tmp[80];
data/nmh-1.7.1/sbr/ruserpass.c:163: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 prompt[256];
data/nmh-1.7.1/sbr/seq_bits.c:16:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/sbr/seq_read.c:63: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 *cp, seqfile[PATH_MAX];
data/nmh-1.7.1/sbr/seq_read.c:64: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 name[NAMESZ], field[NMH_BUFSIZ];
data/nmh-1.7.1/sbr/seq_save.c:28: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 flags, *cp, attr[BUFSIZ], seqfile[PATH_MAX];
data/nmh-1.7.1/sbr/utils.c:86: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(dest, src, n);
data/nmh-1.7.1/sbr/utils.c:106:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char curwd[PATH_MAX];
data/nmh-1.7.1/sbr/utils.c:149: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.
        memcpy (cp, s1, len1);
data/nmh-1.7.1/sbr/utils.c:155: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.
        memcpy (cp + len1, s2, len2);
data/nmh-1.7.1/sbr/utils.c:316: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.
        char first[3];
data/nmh-1.7.1/sbr/utils.c:353: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.
        memcpy(dst, src, size - 1);
data/nmh-1.7.1/sbr/utils.c:562:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/sbr/utils.c:598:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[SIZE(-INT_MAX)];
data/nmh-1.7.1/sbr/vector.c:86: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 (dest->bits, src->bits, bytes);
data/nmh-1.7.1/sbr/vector.c:143: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.
        memcpy(vec->bits, vec->tiny, sizeof vec->tiny);
data/nmh-1.7.1/test/fakehttp.c:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/test/fakehttp.c:117:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(req = fopen(argv[1], "w"))) {
data/nmh-1.7.1/test/fakehttp.c:123:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(res = fopen(argv[3], "r"))) {
data/nmh-1.7.1/test/fakepop.c:42: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 line[LINESIZE];
data/nmh-1.7.1/test/fakepop.c:79:21:  [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 (!(mfiles[j] = fopen(argv[i], "r"))) {
data/nmh-1.7.1/test/fakepop.c:110: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 linebuf[LINESIZE];
data/nmh-1.7.1/test/fakepop.c:284: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[LINESIZE];
data/nmh-1.7.1/test/fakepop.c:292: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(buffer, "..\r\n");
data/nmh-1.7.1/test/fakepop.c:299:5:  [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(buffer, "\r\n");
data/nmh-1.7.1/test/fakepop.c:313: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(buffer, ".\r\n");
data/nmh-1.7.1/test/fakesmtp.c:50: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 = fopen(argv[1], "w"))) {
data/nmh-1.7.1/test/fakesmtp.c:66: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 line[LINESIZE];
data/nmh-1.7.1/test/fakesmtp.c:147: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 buffer[LINESIZE * 2], *p;
data/nmh-1.7.1/test/getcanon.c:21: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[_POSIX_HOST_NAME_MAX + 1];
data/nmh-1.7.1/test/getfullname.c:22: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], *p;
data/nmh-1.7.1/test/runpty.c:29:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char readbuf[1024];
data/nmh-1.7.1/test/runpty.c:86: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 ((slave = open(slavename, O_RDWR)) < 0) {
data/nmh-1.7.1/test/runpty.c:102: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 ((slave = open(slavename, O_RDWR | O_NOCTTY)) < 0) {
data/nmh-1.7.1/test/runpty.c:123:20:  [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 (!(output = fopen(argv[1], "w"))) {
data/nmh-1.7.1/test/server.c:67:15:  [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 (!(pid = fopen(pidfn, "r"))) {
data/nmh-1.7.1/test/server.c:162:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(pid = fopen(pidfn, "w"))) {
data/nmh-1.7.1/uip/ali.c:48: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 *cp, **ap, **argp, buf[BUFSIZ];
data/nmh-1.7.1/uip/aliasbr.c:179:15:  [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 (file, "r")) == NULL) {
data/nmh-1.7.1/uip/aliasbr.c:259:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/nmh-1.7.1/uip/aliasbr.c:326: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/aliasbr.c:329: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 (!(fp = fopen (etcpath (file), "r"))) {
data/nmh-1.7.1/uip/anno.c:170:28:  [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).
		    	else if (!(number = atoi(*argp)))
data/nmh-1.7.1/uip/anno.c:272: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 *cp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/annosbr.c:91:15:  [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(file, "r")) == NULL)
data/nmh-1.7.1/uip/annosbr.c:175: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 buffer[BUFSIZ], tmpfil[BUFSIZ];
data/nmh-1.7.1/uip/annosbr.c:402: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 ((tmpfd = open (tmpfil, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/ap.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 buf[BUFSIZ], **argp;
data/nmh-1.7.1/uip/ap.c:52: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 *addrs[NADDRS + 1]; /* Includes terminating NULL. */
data/nmh-1.7.1/uip/ap.c:92: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).
		    width = atoi (cp);
data/nmh-1.7.1/uip/ap.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error[BUFSIZ];
data/nmh-1.7.1/uip/burst.c:232: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/burst.c:263:15:  [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 ((in = fopen (msgnam, "r")) == NULL)
data/nmh-1.7.1/uip/burst.c:370: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 f1[BUFSIZ], f2[BUFSIZ], f3[BUFSIZ];
data/nmh-1.7.1/uip/burst.c:375:15:  [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 ((in = fopen (msgnam = m_name (msgnum), "r")) == NULL)
data/nmh-1.7.1/uip/comp.c:80: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 drft[BUFSIZ], **argp, **arguments;
data/nmh-1.7.1/uip/comp.c:200:28:  [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).
		    if ((outputlinelen = atoi(cp)) < 10)
data/nmh-1.7.1/uip/comp.c:272:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((in = open (form = mh_xstrdup(m_name (mp->lowsel)), O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/comp.c:322:26:  [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 (!build && (out = open (drft, O_RDONLY)) != NOTOK) {
data/nmh-1.7.1/uip/dist.c:195:28:  [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).
		    if ((outputlinelen = atoi(cp)) < 10)
data/nmh-1.7.1/uip/dist.c:314: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 ((in = open (msgnam, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/distsbr.c:31: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 name[NAMESZ], buffer[NMH_BUFSIZ];
data/nmh-1.7.1/uip/distsbr.c:37: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 ((ifp = fopen (backup, "r")) == NULL)
data/nmh-1.7.1/uip/distsbr.c:40: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 ((ofp = fopen (drft, "w")) == NULL)
data/nmh-1.7.1/uip/distsbr.c:128: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 name[NAMESZ], buffer[NMH_BUFSIZ], tmpfil[BUFSIZ];
data/nmh-1.7.1/uip/distsbr.c:142: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 ((ifp = fopen (msgnam, "r")) == NULL)
data/nmh-1.7.1/uip/dp.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **argp;
data/nmh-1.7.1/uip/dp.c:50: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 *dates[NDATES + 1]; /* Includes terminating NULL. */
data/nmh-1.7.1/uip/dp.c:87: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).
		    width = atoi (cp);
data/nmh-1.7.1/uip/dropsbr.c:134: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 ldelim[BUFSIZ];
data/nmh-1.7.1/uip/dropsbr.c:163: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 *cp, buffer[BUFSIZ + 1];   /* Space for NUL. */
data/nmh-1.7.1/uip/dropsbr.c:230: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 tmpbuffer[sizeof buffer];
data/nmh-1.7.1/uip/dropsbr.c:245: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 tmpbuffer[sizeof buffer];
data/nmh-1.7.1/uip/dropsbr.c:256: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 tmpbuffer[sizeof buffer];
data/nmh-1.7.1/uip/flist.c:83: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 curfolder[BUFSIZ];	/* name of the current folder */
data/nmh-1.7.1/uip/flist.c:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/uip/flist.c:372: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 *base, name[PATH_MAX];
data/nmh-1.7.1/uip/flist.c:522: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 tmpname[BUFSIZ];
data/nmh-1.7.1/uip/flist.c:665: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 atrcur[BUFSIZ];
data/nmh-1.7.1/uip/fmtdump.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], *nfs, **argp, **arguments;
data/nmh-1.7.1/uip/fmtdump.c:339: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 buf[32];
data/nmh-1.7.1/uip/fmtdump.c:452: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 buf[64];
data/nmh-1.7.1/uip/fmtdump.c:469: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 buf[64];
data/nmh-1.7.1/uip/fmttest.c:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], *nfs, **argp, **arguments;
data/nmh-1.7.1/uip/fmttest.c:177:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			outputsize = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:239:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    colwidth = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:244: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).
		    msgnum = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:249: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).
		    msgcur = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:254:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    msgsize = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:259:19:  [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).
		    msgunseen = atoi(cp);
data/nmh-1.7.1/uip/fmttest.c:407: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 *cp, error[BUFSIZ];
data/nmh-1.7.1/uip/fmttest.c:488: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 ((in = fopen(cp = msgs->msgs[i], "r")) == NULL) {
data/nmh-1.7.1/uip/fmttest.c:543: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 ((in = fopen(cp = m_name(msgnum), "r")) == NULL) {
data/nmh-1.7.1/uip/fmttest.c:591: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 name[NAMESZ], rbuf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/fmttest.c:1010: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 buf[32];
data/nmh-1.7.1/uip/fmttest.c:1117: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 buf[64];
data/nmh-1.7.1/uip/fmttest.c:1126: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 buf[64];
data/nmh-1.7.1/uip/fmttest.c:1217: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 error[BUFSIZ];
data/nmh-1.7.1/uip/folder.c:62: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 folder[BUFSIZ];
data/nmh-1.7.1/uip/folder.c:112: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 **ap, **argp, buf[BUFSIZ], **arguments;
data/nmh-1.7.1/uip/folder.c:483: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 tmpname[BUFSIZ];
data/nmh-1.7.1/uip/folder.c:635: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 atrcur[BUFSIZ];
data/nmh-1.7.1/uip/forw.c:83: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 drft[BUFSIZ];
data/nmh-1.7.1/uip/forw.c:220:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    if ((issue = atoi (cp)) < 1)
data/nmh-1.7.1/uip/forw.c:226:21:  [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).
		    if ((volume = atoi (cp)) < 1)
data/nmh-1.7.1/uip/forw.c:285:28:  [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).
		    if ((outputlinelen = atoi(cp)) < 10)
data/nmh-1.7.1/uip/forw.c:400:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    && ((issue = atoi (cp)) < 0))
data/nmh-1.7.1/uip/forw.c:406:57:  [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).
	    if ((cp = context_find (buf)) == NULL || (volume = atoi (cp)) <= 0)
data/nmh-1.7.1/uip/forw.c:437:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((in = open (file, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/forw.c:489: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 buf1[BUFSIZ];
data/nmh-1.7.1/uip/forw.c:490: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 buf2[BUFSIZ];
data/nmh-1.7.1/uip/forw.c:570: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/forw.c:604:16:  [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 (msgnam = m_name (msgnum), O_RDONLY)) == NOTOK) {
data/nmh-1.7.1/uip/forw.c:656: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/forwsbr.c:20: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 msgbuf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/forwsbr.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 tmpfil[BUFSIZ], name[NAMESZ], **ap;
data/nmh-1.7.1/uip/forwsbr.c:63: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 ((tmp = fopen(inputfile, "r")) == NULL)
data/nmh-1.7.1/uip/inc.c:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **argp, *nfs, **arguments;
data/nmh-1.7.1/uip/inc.c:192: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[PATH_MAX + 1];
data/nmh-1.7.1/uip/inc.c:311: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).
		width = atoi (cp);
data/nmh-1.7.1/uip/inc.c:558: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 ((in = fopen (newmail, "r")) == NULL)
data/nmh-1.7.1/uip/inc.c:570: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).
	if ((aud = fopen (audfile, "a")) == NULL)
data/nmh-1.7.1/uip/inc.c:606:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((pf = fopen (cp, "w+")) == NULL)
data/nmh-1.7.1/uip/inc.c:737: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[65536];
data/nmh-1.7.1/uip/inc.c:740: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).
		if ((sf = fopen (sp, "r")) == NULL)
data/nmh-1.7.1/uip/inc.c:742: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).
		if ((pf = fopen (cp, "w+")) == NULL)
data/nmh-1.7.1/uip/inc.c:756:30:  [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 (pf == NULL && (pf = fopen (cp, "r")) == NULL)
data/nmh-1.7.1/uip/install-mh.c:33: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 *cp, buf[BUFSIZ];
data/nmh-1.7.1/uip/install-mh.c:195:15:  [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 ((in = fopen (mh_defaults, "r"))) {
data/nmh-1.7.1/uip/install-mh.c:209: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 ((out = fopen (defpath, "w")) == NULL)
data/nmh-1.7.1/uip/mark.c:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/nmh-1.7.1/uip/mark.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/uip/mhbuild.c:84: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 infile[BUFSIZ];
data/nmh-1.7.1/uip/mhbuild.c:87: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 outfile[BUFSIZ];
data/nmh-1.7.1/uip/mhbuild.c:100: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 *cp, buf[BUFSIZ];
data/nmh-1.7.1/uip/mhbuild.c:101: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 buffer[BUFSIZ], *compfile = NULL;
data/nmh-1.7.1/uip/mhbuild.c:257:23:  [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).
		if ((maxunencoded = atoi(cp)) < 1)
data/nmh-1.7.1/uip/mhbuild.c:293: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 (cp, "r"))) {
data/nmh-1.7.1/uip/mhbuild.c:304:15:  [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 (cp = etcpath ("mhn.defaults"), "r"))) {
data/nmh-1.7.1/uip/mhbuild.c:356:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if (! (fp = fopen(infile, "r"))) {
data/nmh-1.7.1/uip/mhbuildsbr.c:85:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char directives_stack[32];
data/nmh-1.7.1/uip/mhbuildsbr.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:146:15:  [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 ((in = fopen (infile, "r")) == NULL)
data/nmh-1.7.1/uip/mhbuildsbr.c:648: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 buffer[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:685: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 content[BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:959: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 *folder, *arguments[MAXARGS];
data/nmh-1.7.1/uip/mhbuildsbr.c:1129: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 contentid[BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:1161: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 partnam[BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:1176:6:  [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 (pp, "%d", partnum);
data/nmh-1.7.1/uip/mhbuildsbr.c:1231:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *vec[4], buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:1326:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if ((out = fopen (ce->ce_file, "w")) == NULL)
data/nmh-1.7.1/uip/mhbuildsbr.c:1509: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 ((in = fopen (ce->ce_file, "r")) == NULL)
data/nmh-1.7.1/uip/mhbuildsbr.c:1643: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 *np, *vp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhbuildsbr.c:1863: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 nib2b64[0x40+1] =
data/nmh-1.7.1/uip/mhbuildsbr.c:1872:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[16];
data/nmh-1.7.1/uip/mhbuildsbr.c:1873:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outbuf[25];
data/nmh-1.7.1/uip/mhbuildsbr.c:1880:15:  [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 ((in = fopen (infilename, "r")) == NULL)
data/nmh-1.7.1/uip/mhbuildsbr.c:1905: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/nmh-1.7.1/uip/mhbuildsbr.c:2292: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).
                    open ((*text_plain_ct)->c_cefile.ce_file,
data/nmh-1.7.1/uip/mhbuildsbr.c:2294:34:  [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 addl_reply = open (reply_file, O_RDONLY);
data/nmh-1.7.1/uip/mhbuildsbr.c:2360:22:  [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 ((*reply_fp = fopen (reply_file, "r+")) == NULL  ||
data/nmh-1.7.1/uip/mhbuildsbr.c:2398:22:  [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 ((tmp_f = fopen (tmp_file, "w"))  &&
data/nmh-1.7.1/uip/mhcachesbr.c:92: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 *file, cachefile[BUFSIZ];
data/nmh-1.7.1/uip/mhcachesbr.c:128: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 (cachefile, "w"))) {
data/nmh-1.7.1/uip/mhcachesbr.c:130:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/nmh-1.7.1/uip/mhcachesbr.c:225: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 *bp, query[BUFSIZ];
data/nmh-1.7.1/uip/mhcachesbr.c:280: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 mapfile[BUFSIZ], mapname[BUFSIZ];
data/nmh-1.7.1/uip/mhcachesbr.c:370:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/mhfixmsg.c:311:15:  [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 (cp = etcpath ("mhn.defaults"), "r"))) {
data/nmh-1.7.1/uip/mhfixmsg.c:332:29:  [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).
        } else if ((outfp = fopen (outfile, "w")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:384:29:  [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 ((infp = fopen (file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:461:37:  [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 ((infp = fopen (input_filename, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:540:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((*infp = fopen (input_filename, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:730: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 buffer[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhfixmsg.c:742:37:  [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 (! ct->c_fp  &&  (ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:819:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/mhfixmsg.c:829:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fpin = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:834:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fpout = fopen (file, "w")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:1451: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.
        char buffer[16];
data/nmh-1.7.1/uip/mhfixmsg.c:1771:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 buffer2[16];
data/nmh-1.7.1/uip/mhfixmsg.c:1839: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 buffer[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhfixmsg.c:1844: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 (! *fp  &&  (*fp = fopen (file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:2131: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.
        char buffer[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhfixmsg.c:2134:43:  [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 (! ce->ce_fp  &&  (ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:2217:28:  [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 (*file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhfixmsg.c:2227:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhfixmsg.c:2585: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.
        char decoded[PATH_MAX + 1];
data/nmh-1.7.1/uip/mhfixmsg.c:2687:35:  [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 old = open (outfile, O_RDONLY);
data/nmh-1.7.1/uip/mhfixmsg.c:2689:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                            open (infile, O_WRONLY | O_CREAT, m_gmprot ());
data/nmh-1.7.1/uip/mhfixmsg.c:2693:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhical.c:97:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[128];
data/nmh-1.7.1/uip/mhical.c:168:26:  [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 ((inputfile = fopen (infile, "r"))) {
data/nmh-1.7.1/uip/mhical.c:178: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 ((outputfile = fopen (outfile, "w"))) {
data/nmh-1.7.1/uip/mhical.c:376: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).
        int sequence = atoi (node->value);
data/nmh-1.7.1/uip/mhical.c:377: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.
        char buf[32];
data/nmh-1.7.1/uip/mhical.c:458:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[32];
data/nmh-1.7.1/uip/mhical.c:704:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[32];
data/nmh-1.7.1/uip/mhlist.c:57:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *parts[NPARTS + 1];
data/nmh-1.7.1/uip/mhlist.c:58:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *types[NTYPES + 1];
data/nmh-1.7.1/uip/mhlist.c:94: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 *maildir, buf[100], **argp;
data/nmh-1.7.1/uip/mhlistsbr.c:145: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 *cp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhlistsbr.c:150: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).
    	printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
data/nmh-1.7.1/uip/mhlogin.c:39:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[BUFSIZ];
data/nmh-1.7.1/uip/mhlogin.c:152:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 help[BUFSIZ];
data/nmh-1.7.1/uip/mhlsbr.c:297: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 *ignores[MAXARGS];
data/nmh-1.7.1/uip/mhlsbr.c:345:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], *files[MAXARGS];
data/nmh-1.7.1/uip/mhlsbr.c:405:14:  [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).
			sleepsw = atoi (cp);/* ZERO ok! */
data/nmh-1.7.1/uip/mhlsbr.c:427:26:  [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).
		    else if ((length = atoi (cp)) < 1)
data/nmh-1.7.1/uip/mhlsbr.c:433: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).
		    else if ((width = atoi (cp)) < 1)
data/nmh-1.7.1/uip/mhlsbr.c:444: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).
		    else if ((issue = atoi (cp)) < 1)
data/nmh-1.7.1/uip/mhlsbr.c:450:26:  [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).
		    else if ((volume = atoi (cp)) < 1)
data/nmh-1.7.1/uip/mhlsbr.c:548: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 *ap, name[NAMESZ];
data/nmh-1.7.1/uip/mhlsbr.c:565:15:  [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 (etcpath (file), "r")) == NULL)
data/nmh-1.7.1/uip/mhlsbr.c:667:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/nmh-1.7.1/uip/mhlsbr.c:713: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 *cp, name[NAMESZ];
data/nmh-1.7.1/uip/mhlsbr.c:808: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).
    *i = atoi (cp);
data/nmh-1.7.1/uip/mhlsbr.c:848:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[NAMESZ];
data/nmh-1.7.1/uip/mhlsbr.c:889:45:  [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 = mhl_action ? (*mhl_action) (fname) : fopen (fname, "r");
data/nmh-1.7.1/uip/mhlsbr.c:939: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 **ip, name[NAMESZ], buf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/mhlsbr.c:1153: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 error[BUFSIZ];
data/nmh-1.7.1/uip/mhlsbr.c:1516:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/uip/mhlsbr.c:1733: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 name[NAMESZ];
data/nmh-1.7.1/uip/mhmisc.c:21: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 *parts[NPARTS + 1];
data/nmh-1.7.1/uip/mhmisc.c:22: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 *types[NTYPES + 1];
data/nmh-1.7.1/uip/mhmisc.c:90: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhmisc.c:174: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 *bp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhn.c:81:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *parts[NPARTS + 1];
data/nmh-1.7.1/uip/mhn.c:82:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *types[NTYPES + 1];
data/nmh-1.7.1/uip/mhn.c:124: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 *maildir, buf[100], **argp;
data/nmh-1.7.1/uip/mhn.c:328: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 (cp, "r"))) {
data/nmh-1.7.1/uip/mhn.c:339:15:  [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 (cp = etcpath ("mhn.defaults"), "r"))) {
data/nmh-1.7.1/uip/mhn.c:365: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 *vec[MAXARGS];
data/nmh-1.7.1/uip/mhn.c:399: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 *vec[MAXARGS];
data/nmh-1.7.1/uip/mhoutsbr.c:292: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 c, *file, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhparam.c:144: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 *cp, buf[BUFSIZ], **argp;
data/nmh-1.7.1/uip/mhparam.c:145: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 **arguments, *comps[MAXARGS];
data/nmh-1.7.1/uip/mhparse.c:47: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 *preferred_types[NPREFS],
data/nmh-1.7.1/uip/mhparse.c:199: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:246:22:  [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).
    } else if ((fp = fopen (file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/mhparse.c:955: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 c, buffer[BUFSIZ], *dp;
data/nmh-1.7.1/uip/mhparse.c:1033: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:1172:34:  [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 (!ct->c_fp && (ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1259: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 partnam[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:1272:6:  [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 (pp, "%d", partnum);
data/nmh-1.7.1/uip/mhparse.c:1481:26:  [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).
		        && (ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1758:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[16];
data/nmh-1.7.1/uip/mhparse.c:1766:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1801:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1812:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1903: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 hex2nib[0x80] = {
data/nmh-1.7.1/uip/mhparse.c:1950:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1985:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:1994:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2105: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 digest[16];
data/nmh-1.7.1/uip/mhparse.c:2158: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:2170:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2205:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2251:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2317: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 cachefile[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:2325:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2334:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ce->ce_fp = fopen (cachefile, "r"))) {
data/nmh-1.7.1/uip/mhparse.c:2366: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 cachefile[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:2389:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2401: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 (cachefile, "w"))) {
data/nmh-1.7.1/uip/mhparse.c:2403:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/nmh-1.7.1/uip/mhparse.c:2451: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 buffer[BUFSIZ], cachefile[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:2557:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2564: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 *vec[9];
data/nmh-1.7.1/uip/mhparse.c:2613: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 ((fp = fopen (cachefile, "w"))) {
data/nmh-1.7.1/uip/mhparse.c:2663: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 *bp, buffer[BUFSIZ], *vec[7];
data/nmh-1.7.1/uip/mhparse.c:2750:22:  [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 ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2783: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 buffer[BUFSIZ], cachefile[BUFSIZ];
data/nmh-1.7.1/uip/mhparse.c:2837:22:  [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 ((ce->ce_fp = fopen(ce->ce_file, "w+")) == NULL) {
data/nmh-1.7.1/uip/mhparse.c:2874: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 ((fp = fopen(cachefile, "w"))) {
data/nmh-1.7.1/uip/mhparse.c:2917:13:  [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 (ct->c_digest, digest, maxlen);
data/nmh-1.7.1/uip/mhparse.c:3629: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(q, sp->value, sp->len);
data/nmh-1.7.1/uip/mhparse.c:3675: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 line[CPERLIN * 2], *q;
data/nmh-1.7.1/uip/mhparse.c:4147:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096];		/* I hope no parameters are larger */
data/nmh-1.7.1/uip/mhpath.c:30: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 **arguments, buf[BUFSIZ];
data/nmh-1.7.1/uip/mhshow.c:73:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *parts[NPARTS + 1];
data/nmh-1.7.1/uip/mhshow.c:74:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *types[NTYPES + 1];
data/nmh-1.7.1/uip/mhshow.c:106: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 *maildir, buf[100], **argp;
data/nmh-1.7.1/uip/mhshow.c:307: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 (cp, "r"))) {
data/nmh-1.7.1/uip/mhshow.c:318:15:  [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 (cp = etcpath ("mhn.defaults"), "r"))) {
data/nmh-1.7.1/uip/mhshowsbr.c:433: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[BUFSIZ];
data/nmh-1.7.1/uip/mhshowsbr.c:526: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 *cp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhshowsbr.c:1057: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 term[BUFSIZ];
data/nmh-1.7.1/uip/mhshowsbr.c:1082: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.
        char src_buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhshowsbr.c:1115:28:  [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 (*file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhstore.c:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *parts[NPARTS + 1];
data/nmh-1.7.1/uip/mhstore.c:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *types[NTYPES + 1];
data/nmh-1.7.1/uip/mhstore.c:86: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 *maildir, buf[100], **argp;
data/nmh-1.7.1/uip/mhstore.c:236: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 (cp, "r"))) {
data/nmh-1.7.1/uip/mhstore.c:247:15:  [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 (cp = etcpath ("mhn.defaults"), "r"))) {
data/nmh-1.7.1/uip/mhstoresbr.c:498: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 *cp, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhstoresbr.c:694: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 *file, buffer[BUFSIZ];
data/nmh-1.7.1/uip/mhstoresbr.c:746: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 ((fp = fopen (ct->c_storage, appending ? "a" : "w")) == NULL) {
data/nmh-1.7.1/uip/mhstoresbr.c:792:34:  [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 (!ct->c_fp && (ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
data/nmh-1.7.1/uip/mhstoresbr.c:815: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 (ct->c_storage, appending ? "a" : "w")) == NULL) {
data/nmh-1.7.1/uip/mhstoresbr.c:1192: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 ((fd = open (buffer, O_CREAT | O_EXCL,
data/nmh-1.7.1/uip/mhstoresbr.c:1298: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.
              char buf[PATH_MAX];
data/nmh-1.7.1/uip/mkstemp.c:57:19:  [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 ((fd = mkstemp(template)) < 0) { perror("mkstemp"); }
data/nmh-1.7.1/uip/mkstemp.c:150: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 **argp, **arguments, *cp, buf[100];
data/nmh-1.7.1/uip/msgchk.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], *saslmech = NULL, *auth_svc = NULL;
data/nmh-1.7.1/uip/msgchk.c:96: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 **argp, **arguments, *vec[MAXVEC];
data/nmh-1.7.1/uip/msgchk.c:317: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/new.c:101: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 name[NAMESZ], field[NMH_BUFSIZ];
data/nmh-1.7.1/uip/new.c:276:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(folders, "r");
data/nmh-1.7.1/uip/new.c:309: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(cp, sequences[i], len);
data/nmh-1.7.1/uip/new.c:442: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 help[BUFSIZ];
data/nmh-1.7.1/uip/packf.c:150:16:  [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 (msgnam = m_name (msgnum), O_RDONLY)) == NOTOK) {
data/nmh-1.7.1/uip/pick.c:64: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 *vec[MAXARGS];
data/nmh-1.7.1/uip/pick.c:251: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 ((fp = fopen (cp = m_name (msgnum), "r")) == NULL)
data/nmh-1.7.1/uip/picksbr.c:69: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 linebuf[LBSIZE + 1];
data/nmh-1.7.1/uip/picksbr.c:70: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 decoded_linebuf[LBSIZE + 1];
data/nmh-1.7.1/uip/picksbr.c:132:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  un_expbuf[ESIZE];
data/nmh-1.7.1/uip/picksbr.c:352: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 buffer[BUFSIZ], temp[64];
data/nmh-1.7.1/uip/picksbr.c:648: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 ibuf[BUFSIZ];
data/nmh-1.7.1/uip/picksbr.c:843: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/picksbr.c:913:6:  [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 = atoi (ap);	/* we should error check this */
data/nmh-1.7.1/uip/picksbr.c:926:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/popsbr.c:20: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 response[BUFSIZ];
data/nmh-1.7.1/uip/popsbr.c:138: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/popsbr.c:246:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char server_mechs[256];
data/nmh-1.7.1/uip/popsbr.c:495: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 buffer[sizeof(response)];
data/nmh-1.7.1/uip/popsbr.c:616: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 buffer[BUFSIZ + LEN(TRM)];
data/nmh-1.7.1/uip/popsbr.c:666: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(s, p, destlen);
data/nmh-1.7.1/uip/post.c:259: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 tmpfil[BUFSIZ];
data/nmh-1.7.1/uip/post.c:260: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 bccfil[BUFSIZ];
data/nmh-1.7.1/uip/post.c:262: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 from[BUFSIZ];	/* my network address            */
data/nmh-1.7.1/uip/post.c:263: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 sender[BUFSIZ];	/* my Sender: header		 */
data/nmh-1.7.1/uip/post.c:264: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 efrom[BUFSIZ];	/* my Envelope-From: header	 */
data/nmh-1.7.1/uip/post.c:265: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 fullfrom[BUFSIZ];	/* full contents of From header  */
data/nmh-1.7.1/uip/post.c:268: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 *fccfold[FCCS];	/* foldernames for FCC'ing       */
data/nmh-1.7.1/uip/post.c:324:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ], *auth_svc = NULL;
data/nmh-1.7.1/uip/post.c:441:28:  [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).
		    if ((outputlinelen = atoi (cp)) < 10)
data/nmh-1.7.1/uip/post.c:448:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    if ((pfd = atoi (cp)) <= 2)
data/nmh-1.7.1/uip/post.c:599:15:  [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 ((in = fopen (msg, "r")) == NULL)
data/nmh-1.7.1/uip/post.c:608:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if ((out = fopen ("/dev/null", "w")) == NULL)
data/nmh-1.7.1/uip/post.c:727: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 sbuf[128];
data/nmh-1.7.1/uip/post.c:793: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 namep[BUFSIZ], error[BUFSIZ];
data/nmh-1.7.1/uip/post.c:1247: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/post.c:1431: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/post.c:1581:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (tmpfil, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/post.c:1614: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/post.c:1617:15:  [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 ((in = fopen (tmpfil, "r")) == NULL)
data/nmh-1.7.1/uip/post.c:1751:24:  [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).
        const int fd = open (file, O_RDONLY);
data/nmh-1.7.1/uip/post.c:1855: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 addr[BUFSIZ];
data/nmh-1.7.1/uip/post.c:1918:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/uip/post.c:2020: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 fold[BUFSIZ];
data/nmh-1.7.1/uip/prompter.c:63: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/prompter.c:136:15:  [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 ((in = fopen (drft, "r")) == NULL)
data/nmh-1.7.1/uip/prompter.c:300:16:  [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 ((fdi = open (tmpfil, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/rcvdist.c:77: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 backup[BUFSIZ] = "";
data/nmh-1.7.1/uip/rcvdist.c:78: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 drft[BUFSIZ] = "";
data/nmh-1.7.1/uip/rcvdist.c:79: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 tmpfil[BUFSIZ] = "";
data/nmh-1.7.1/uip/rcvdist.c:233: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 *cp, name[NAMESZ], tmpbuf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/rcvdist.c:239:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(out = fopen (drft, "w")))
data/nmh-1.7.1/uip/rcvtty.c:81: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 *cp, *user, buf[BUFSIZ], tty[BUFSIZ];
data/nmh-1.7.1/uip/rcvtty.c:82: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 **argp, **arguments, *vec[MAXARGS];
data/nmh-1.7.1/uip/rcvtty.c:127: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).
		    width = atoi(cp);
data/nmh-1.7.1/uip/rcvtty.c:293: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 buffer[BUFSIZ], ttyspec[BUFSIZ];
data/nmh-1.7.1/uip/rcvtty.c:309: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).
	td = open (ttyspec, O_WRONLY);
data/nmh-1.7.1/uip/refile.c:40: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 maildir[BUFSIZ];
data/nmh-1.7.1/uip/refile.c:65: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 *filevec[NFOLDERS + 2];
data/nmh-1.7.1/uip/refile.c:277: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 nmaildir[BUFSIZ];
data/nmh-1.7.1/uip/repl.c:296:28:  [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).
		    if ((outputlinelen = atoi (cp)) < 10)
data/nmh-1.7.1/uip/repl.c:439:15:  [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 ((in = fopen (msg, "r")) == NULL)
data/nmh-1.7.1/uip/replsbr.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpbuf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/replsbr.c:63: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 name[NAMESZ], *cp;
data/nmh-1.7.1/uip/replsbr.c:73: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 ((out = fopen (drft, "w")) == NULL)
data/nmh-1.7.1/uip/replsbr.c:282: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 baddr[BUFSIZ], error[BUFSIZ];
data/nmh-1.7.1/uip/replsbr.c:377: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/replsbr.c:513:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 error[BUFSIZ];
data/nmh-1.7.1/uip/rmf.c:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **argp, **arguments;
data/nmh-1.7.1/uip/rmf.c:129: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 cur[BUFSIZ];
data/nmh-1.7.1/uip/rmm.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **argp;
data/nmh-1.7.1/uip/scan.c:110: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).
		    width = atoi (cp);
data/nmh-1.7.1/uip/scan.c:158: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 ((in = fopen (file, "r")) == NULL)
data/nmh-1.7.1/uip/scan.c:235: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 ((in = fopen (cp = m_name (msgnum), "r")) == NULL) {
data/nmh-1.7.1/uip/scansbr.c:58: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 name[NAMESZ];
data/nmh-1.7.1/uip/scansbr.c:163:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((scnout = fopen (scnmsg, "w")) == NULL)
data/nmh-1.7.1/uip/send.c:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **ap, **argp, **arguments, *program;
data/nmh-1.7.1/uip/send.c:120: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 *msgs[MAXARGS], **vec;
data/nmh-1.7.1/uip/send.c:394: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).
	inplace = atoi (cp);
data/nmh-1.7.1/uip/send.c:400:19:  [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).
	    && (distsw = atoi (cp))
data/nmh-1.7.1/uip/send.c:427: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).
		if ((in = open (altmsg, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/sendsbr.c:74: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 buffer[BUFSIZ], file[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:197: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 *cp, *dp, buffer[NMH_BUFSIZ], msgid[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:198: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 subject[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:199: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 name[NAMESZ], partnum[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:203:15:  [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 ((in = fopen (drft, "r")) == NULL)
data/nmh-1.7.1/uip/sendsbr.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 tmpdrf[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:427: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 backup[BUFSIZ], buf[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:517:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/nmh-1.7.1/uip/sendsbr.c:537: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).
		if ((in = open (file, O_RDONLY)) == NOTOK) {
data/nmh-1.7.1/uip/sendsbr.c:664: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 buffer[BUFSIZ], **ap;
data/nmh-1.7.1/uip/sendsbr.c:699:16:  [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).
	    && (fd3 = open ("/dev/null", O_RDWR)) != NOTOK
data/nmh-1.7.1/uip/sendsbr.c:794: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 errbuf[256];
data/nmh-1.7.1/uip/sendsbr.c:865:15:  [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 ((in = fopen (filename, "r")) != NULL) {
data/nmh-1.7.1/uip/sendsbr.c:932: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.
        char name[NAMESZ], rbuf[NMH_BUFSIZ];
data/nmh-1.7.1/uip/show.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **argp, **arguments;
data/nmh-1.7.1/uip/show.c:371:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/show.c:375:15:  [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 (msgnam, "r")) == NULL)
data/nmh-1.7.1/uip/slocal.c:101:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ddate[BUFSIZ];	/* record the delivery date */
data/nmh-1.7.1/uip/slocal.c:188: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 mailbox[BUFSIZ], tmpfil[BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:315:16:  [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 ((tempfd = open (file, O_RDONLY)) == -1)
data/nmh-1.7.1/uip/slocal.c:425: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 buffer[BUFSIZ], tmpbuf[BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:426: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 *vec[NVEC];
data/nmh-1.7.1/uip/slocal.c:432:15:  [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 (delivery, "r")) == NULL)
data/nmh-1.7.1/uip/slocal.c:713: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 name[NAMESZ], field[NMH_BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:868: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:1018: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 folder[BUFSIZ], *vec[3];
data/nmh-1.7.1/uip/slocal.c:1081:16:  [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 ("/dev/tty", O_RDWR)) != -1) {
data/nmh-1.7.1/uip/slocal.c:1159: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:1197: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/slocal.c:1298: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 buffer[BUFSIZ*4];
data/nmh-1.7.1/uip/slocal.c:1404: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 *cp, buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/sortm.c:136:54:  [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).
		if (!isdigit((unsigned char) *cp) || !(datelimit = atoi(cp)))
data/nmh-1.7.1/uip/sortm.c:247: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 *)slist, (char *)dlist, (nmsgs+1)*sizeof(*slist));
data/nmh-1.7.1/uip/sortm.c:339: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 *msgnam, buf[NMH_BUFSIZ], nam[NAMESZ];
data/nmh-1.7.1/uip/sortm.c:345:15:  [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 ((in = fopen (msgnam = m_name (msg), "r")) == NULL) {
data/nmh-1.7.1/uip/sortm.c:506: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 *newname, oldname[BUFSIZ];
data/nmh-1.7.1/uip/sortm.c:507: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 newbuf[PATH_MAX + 1];
data/nmh-1.7.1/uip/sortm.c:544: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 f1[BUFSIZ], tmpfil[BUFSIZ];
data/nmh-1.7.1/uip/sortm.c:545: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 newbuf[PATH_MAX + 1];
data/nmh-1.7.1/uip/viamail.c:56: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 *cp, buf[BUFSIZ];
data/nmh-1.7.1/uip/viamail.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfil[BUFSIZ], *program;
data/nmh-1.7.1/uip/whatnowproc.c:28: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 buffer[BUFSIZ], *vec[MAXARGS];
data/nmh-1.7.1/uip/whatnowsbr.c:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], prompt[BUFSIZ];
data/nmh-1.7.1/uip/whatnowsbr.c:128: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	cwd[PATH_MAX + 1];	/* current working directory */
data/nmh-1.7.1/uip/whatnowsbr.c:129: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	file[PATH_MAX + 1];	/* file name buffer */
data/nmh-1.7.1/uip/whatnowsbr.c:130: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	shell[PATH_MAX + 1];	/* shell response buffer */
data/nmh-1.7.1/uip/whatnowsbr.c:212: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).
    	atfile = atoi(cp);
data/nmh-1.7.1/uip/whatnowsbr.c:215: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).
	use = atoi (cp);
data/nmh-1.7.1/uip/whatnowsbr.c:312: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(buf, "$SHELL -c \"cd&&pwd\"");
data/nmh-1.7.1/uip/whatnowsbr.c:486: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).
			n = atoi(*arguments);
data/nmh-1.7.1/uip/whatnowsbr.c:490: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).
			    if (atoi(*argp) > n) {
data/nmh-1.7.1/uip/whatnowsbr.c:491: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).
				if (atoi(*argp) == 1)
data/nmh-1.7.1/uip/whatnowsbr.c:494:15:  [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.
				    (void)sprintf(*argp, "%d", atoi(*argp) - 1);
data/nmh-1.7.1/uip/whatnowsbr.c:494: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).
				    (void)sprintf(*argp, "%d", atoi(*argp) - 1);
data/nmh-1.7.1/uip/whatnowsbr.c:565: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(cp, *argp, ln+1);
data/nmh-1.7.1/uip/whatnowsbr.c:595: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 olddir[BUFSIZ];
data/nmh-1.7.1/uip/whatnowsbr.c:616: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 olddir[BUFSIZ];
data/nmh-1.7.1/uip/whatnowsbr.c:647: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 altpath[BUFSIZ], linkpath[BUFSIZ];
data/nmh-1.7.1/uip/whatnowsbr.c:774: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 buffer[BUFSIZ];
data/nmh-1.7.1/uip/whatnowsbr.c:776: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 ((in = open (ifile, O_RDONLY)) == NOTOK)
data/nmh-1.7.1/uip/whatnowsbr.c:778:16:  [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 ((out = open (ofile, O_WRONLY | O_TRUNC)) == NOTOK) {
data/nmh-1.7.1/uip/whatnowsbr.c:977: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 *cp, buf[BUFSIZ], **argp, *program;
data/nmh-1.7.1/uip/whatnowsbr.c:978: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 **arguments, *savearg[MAXARGS], **vec;
data/nmh-1.7.1/uip/whatnowsbr.c:1206: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).
	inplace = atoi (cp);
data/nmh-1.7.1/uip/whatnowsbr.c:1211:19:  [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).
	    && (distsw = atoi (cp))
data/nmh-1.7.1/uip/whatnowsbr.c:1316:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NMH_BUFSIZ], name[NAMESZ];
data/nmh-1.7.1/uip/whatnowsbr.c:1319:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(drft, "r")) == NULL) {
data/nmh-1.7.1/uip/whom.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], **arguments, *vec[MAXARGS];
data/nmh-1.7.1/uip/whom.c:172:19:  [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).
	    && (distsw = atoi (cp))
data/nmh-1.7.1/mts/smtp/smtp.c:649: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).
    sm_reply.length = strlen (sm_reply.text);
data/nmh-1.7.1/mts/smtp/smtp.c:662:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sm_reply.text, str, sizeof(sm_reply.text));
data/nmh-1.7.1/mts/smtp/smtp.c:664: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).
    sm_reply.length = strlen(sm_reply.text);
data/nmh-1.7.1/mts/smtp/smtp.c:795:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((*ehlo = malloc ((size_t) (strlen (buffer + 4) + 1)))) {
data/nmh-1.7.1/mts/smtp/smtp.c:834: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).
		buflen = strlen (sm_noreply);
data/nmh-1.7.1/mts/smtp/smtp.c:842: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).
	    i = strlen(sm_moreply);
data/nmh-1.7.1/mts/smtp/smtp.c:927:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (s);
data/nmh-1.7.1/mts/smtp/smtp.c:974: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).
	    snoopoffset = 6 + strlen(mech);
data/nmh-1.7.1/sbr/addrsbr.c:96:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (adr, ap->text, sizeof(adr));
data/nmh-1.7.1/sbr/addrsbr.c:105:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (err, ap->err, sizeof(err));
data/nmh-1.7.1/sbr/addrsbr.c:119:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (eresult, err, eresultsize);
data/nmh-1.7.1/sbr/addrsbr.c:128:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy (eresult, "null address", eresultsize);
data/nmh-1.7.1/sbr/addrsbr.c:135:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy (eresult, "no mailbox in address", eresultsize);
data/nmh-1.7.1/sbr/addrsbr.c:226:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (addr, FENDNULL(mp->m_mbox), sizeof(addr));
data/nmh-1.7.1/sbr/addrsbr.c:255:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (buffer, addr, sizeof(buffer));
data/nmh-1.7.1/sbr/addrsbr.c:331: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 (*(cp = mp->m_mbox + strlen (mp->m_mbox) - 1) == '*') {
data/nmh-1.7.1/sbr/addrsbr.c:340: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).
			if (*(cp = mp->m_host + strlen (mp->m_host) - 1) == '*') {
data/nmh-1.7.1/sbr/addrsbr.c:374:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (cp = LocalName (0));
data/nmh-1.7.1/sbr/addrsbr.c:401: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 ((len = strlen (cp = np->m_mbox))
data/nmh-1.7.1/sbr/addrsbr.c:402: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).
		< (i = strlen (pp = mp->m_mbox)))
data/nmh-1.7.1/sbr/addrsbr.c:427:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen (cp = np->m_host))
data/nmh-1.7.1/sbr/addrsbr.c:428: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).
		< (i = strlen (pp = mp->m_host)))
data/nmh-1.7.1/sbr/base64.c:240:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    charstring_t decoded_c = charstring_create (strlen (encoded));
data/nmh-1.7.1/sbr/charstring.c:115: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).
    const size_t num = strlen (src);
data/nmh-1.7.1/sbr/check_charset.c:44: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).
	mm_len = strlen (mm_charset);
data/nmh-1.7.1/sbr/check_charset.c:50: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).
	    alt_len = strlen (alt_charset);
data/nmh-1.7.1/sbr/concat.c:25:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (s1) + 1;
data/nmh-1.7.1/sbr/concat.c:28:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += strlen (cp);
data/nmh-1.7.1/sbr/context_find.c:64:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (np->n_name  &&  ! strncasecmp (np->n_name, prefix, strlen(prefix))) {
data/nmh-1.7.1/sbr/cpydata.c:16:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((i = read(in, buffer, sizeof(buffer))) > 0) {
data/nmh-1.7.1/sbr/cpydgst.c:42:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (state = S1; (i = read (in, buffer, sizeof buffer)) > 0;)
data/nmh-1.7.1/sbr/credentials.c:134: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).
	memset(creds->pass, 0, strlen(creds->pass));
data/nmh-1.7.1/sbr/datetime.c:212: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 *buf = mh_xmalloc(strlen(node->value) + 1);
data/nmh-1.7.1/sbr/datetime.c:350: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).
            char *buf = mh_xmalloc(strlen(p->values->value) + 1);
data/nmh-1.7.1/sbr/dtime.c:275:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(result, buffer, sizeof(result));
data/nmh-1.7.1/sbr/dtimep.c:1127:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/nmh-1.7.1/sbr/dtimep.c:2329: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/nmh-1.7.1/sbr/encode_rfc2047.c:162: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).
    int prefixlen = name ? strlen(name) + 2: 0, outlen = 0, column, newline = 1;
data/nmh-1.7.1/sbr/encode_rfc2047.c:163: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).
    int charsetlen = strlen(charset), utf8;
data/nmh-1.7.1/sbr/encode_rfc2047.c:320: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).
    int prefixlen = name ? strlen(name) + 2 : 0, charsetlen = strlen(charset);
data/nmh-1.7.1/sbr/encode_rfc2047.c:320:63:  [1] (buffer) strlen:
  Does not handle 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 prefixlen = name ? strlen(name) + 2 : 0, charsetlen = strlen(charset);
data/nmh-1.7.1/sbr/encode_rfc2047.c:340: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).
    while (prefixlen && ((base64len(strlen(p)) + 7 + charsetlen +
data/nmh-1.7.1/sbr/encode_rfc2047.c:452: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).
    outlen += prefixlen + 9 + charsetlen + base64len(strlen(p));
data/nmh-1.7.1/sbr/encode_rfc2047.c:461: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 (writeBase64raw((unsigned char *) p, strlen(p),
data/nmh-1.7.1/sbr/encode_rfc2047.c:470: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(q, "\n");
data/nmh-1.7.1/sbr/encode_rfc2047.c:552: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).
    int prefixlen = strlen(name) + 2, column = prefixlen, groupflag;
data/nmh-1.7.1/sbr/encode_rfc2047.c:594:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(mn->m_pers)) + 1 > tmpbufsize) {
data/nmh-1.7.1/sbr/encode_rfc2047.c:656:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(mn->m_note)) + 1 > tmpbufsize) {
data/nmh-1.7.1/sbr/encode_rfc2047.c:667:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmpbuf, mn->m_note + 1, len - 1);
data/nmh-1.7.1/sbr/encode_rfc2047.c:710: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).
	    tmpbufsize = strlen(tmpbuf) + 1;
data/nmh-1.7.1/sbr/encode_rfc2047.c:755:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cp);
data/nmh-1.7.1/sbr/error.c:98: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).
#define ADD_VAR(s) APPEND_IOV((s), strlen(s))
data/nmh-1.7.1/sbr/error.c:133:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(2, buffer, strlen(buffer)) == -1) {
data/nmh-1.7.1/sbr/escape_addresses.c:48: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).
        char *tmp = mh_xmalloc (2*strlen(name) + 3);
data/nmh-1.7.1/sbr/escape_addresses.c:78: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).
            assert ((ssize_t) strlen(tmp) + 1 == destp - tmp);
data/nmh-1.7.1/sbr/escape_addresses.c:79:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (name, tmp, min(len, namesize));
data/nmh-1.7.1/sbr/escape_addresses.c:82:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy (name, "\"\\\"\"", namesize);
data/nmh-1.7.1/sbr/fdcompare.c:19:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((n1 = read (fd1, b1, sizeof(b1))) >= 0
data/nmh-1.7.1/sbr/fdcompare.c:20:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    && (n2 = read (fd2, b2, sizeof(b2))) >= 0
data/nmh-1.7.1/sbr/fmt_addr.c:24: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 ((len = strlen (str)) >= bufend - dst) {\
data/nmh-1.7.1/sbr/fmt_compile.c:407: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).
    i = strlen(fstring)/2 + 1;
data/nmh-1.7.1/sbr/fmt_compile.c:1057: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).
		i = strlen(cp = cptr->c_text) - 1;
data/nmh-1.7.1/sbr/fmt_new.c:42:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read (fileno(fp), formats, (int) st.st_size) != st.st_size)
data/nmh-1.7.1/sbr/fmt_scan.c:93:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(s);
data/nmh-1.7.1/sbr/fmt_scan.c:162: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).
	end = strlen(str);
data/nmh-1.7.1/sbr/fmt_scan.c:272: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).
    end = str + strlen(str);
data/nmh-1.7.1/sbr/fmt_scan.c:396: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).
	    || !(cp = strchr(mbox += idx + strlen (key), '/')))
data/nmh-1.7.1/sbr/fmt_scan.c:446: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).
		(i = strlen(comp->c_text)) > 0) {
data/nmh-1.7.1/sbr/fmt_scan.c:508: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).
	    if (str) charstring_push_back_chars (scanlp, str, strlen (str), 0);
data/nmh-1.7.1/sbr/fmt_scan.c:732:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buffer, str, sizeof(buffer));
data/nmh-1.7.1/sbr/fmt_scan.c:743: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 (!rjust && i > 0 && (int) strlen(str) > i)
data/nmh-1.7.1/sbr/fmt_scan.c:746: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).
		    xp += strlen(str) - 1;
data/nmh-1.7.1/sbr/fmt_scan.c:749: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 (rjust && i > 0 && (int) strlen(str) > i)
data/nmh-1.7.1/sbr/fmt_scan.c:750: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).
			str += strlen(str) - i;
data/nmh-1.7.1/sbr/fmt_scan.c:768: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).
		    value = strlen(str);
data/nmh-1.7.1/sbr/fmt_scan.c:926:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (buffer, str, sizeof(buffer));
data/nmh-1.7.1/sbr/fmt_scan.c:931: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).
	            sp = str + strlen(str) - 1;
data/nmh-1.7.1/sbr/fmt_scan.c:971:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(buffer, str, sizeof(buffer));
data/nmh-1.7.1/sbr/fmt_scan.c:1038: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).
	    len = str ? strlen (str) : 0;
data/nmh-1.7.1/sbr/fmt_scan.c:1040: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).
	    indent = strlen (sp);
data/nmh-1.7.1/sbr/folder_delmsgs.c:119:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (buf, m_backup (dp), sizeof(buf));
data/nmh-1.7.1/sbr/folder_pack.c:47:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (newmsg, m_name (hole), sizeof(newmsg));
data/nmh-1.7.1/sbr/folder_pack.c:48:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (oldmsg, m_name (msgnum), sizeof(oldmsg));
data/nmh-1.7.1/sbr/getline.c:44:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(stream);
data/nmh-1.7.1/sbr/getpass.c:75:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for (p = buf; (ch = getc(fin)) != EOF &&
data/nmh-1.7.1/sbr/icalendar.c:757:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( icalin )) != EOF && c != '\n'; ++n ) \
data/nmh-1.7.1/sbr/icalendar.c:1922: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).
	return ical_scan_bytes(yystr,strlen(yystr) );
data/nmh-1.7.1/sbr/icalparse.c:782: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 yystrlen strlen
data/nmh-1.7.1/sbr/icalparse.c:1272:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1281:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1289:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1298:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1320:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1329:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1337:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1346:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1358:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1366:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1374:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1383:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1391:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1400:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/icalparse.c:1408:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          append (vevents.last->contentlines->last, (yyvsp[0]), strlen ((yyvsp[0])));
data/nmh-1.7.1/sbr/lock_file.c:566: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(fd, buffer, strlen(buffer) + 1);
data/nmh-1.7.1/sbr/lock_file.c:604: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).
    tmplen = strlen (bp);
data/nmh-1.7.1/sbr/lock_file.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).
	tmplen = strlen (bp);
data/nmh-1.7.1/sbr/lock_file.c:640:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy (li->tmplock, ",LCK.XXXXXX", sizeof(li->tmplock));
data/nmh-1.7.1/sbr/m_convert.c:369: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).
	cp += strlen (dp);
data/nmh-1.7.1/sbr/m_draft.c:34:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buffer, m_maildir (folder), sizeof(buffer));
data/nmh-1.7.1/sbr/m_getfld.c:824: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).
    c = strlen (delimstr);
data/nmh-1.7.1/sbr/m_maildir.c:31: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).
	    && (ep = cp + strlen (cp) - 1) > cp
data/nmh-1.7.1/sbr/m_maildir.c:50:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (maildir, mailfold, sizeof(maildir));	/* preserve... */
data/nmh-1.7.1/sbr/m_maildir.c:52:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (mailfold, maildir, sizeof(mailfold));
data/nmh-1.7.1/sbr/m_maildir.c:75:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (mailfold, folder, sizeof(mailfold));
data/nmh-1.7.1/sbr/m_maildir.c:83: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).
	    cp += strlen (cp);
data/nmh-1.7.1/sbr/m_mktemp.c:55:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t oldmode = umask(077);
data/nmh-1.7.1/sbr/m_mktemp.c:66:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(oldmode);
data/nmh-1.7.1/sbr/m_mktemp.c:83:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(oldmode);
data/nmh-1.7.1/sbr/m_mktemp.c:92:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldmode);
data/nmh-1.7.1/sbr/m_mktemp.c:155:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t oldmode = umask(077);
data/nmh-1.7.1/sbr/m_mktemp.c:171: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).
    fd = mkstemps(tmpfil, (int) strlen(suffix));
data/nmh-1.7.1/sbr/m_mktemp.c:198:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(oldmode);
data/nmh-1.7.1/sbr/m_mktemp.c:216:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(oldmode);
data/nmh-1.7.1/sbr/m_mktemp.c:226:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldmode);
data/nmh-1.7.1/sbr/makedir.c:42:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    saved_umask = umask(0);
data/nmh-1.7.1/sbr/makedir.c:44:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    c = strncpy(path, dir, sizeof(path));
data/nmh-1.7.1/sbr/makedir.c:71:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(saved_umask);  /* put the user's umask back */
data/nmh-1.7.1/sbr/message_id.c:73: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).
        for (i = strlen ((const char *) rnd_base64) - 1;
data/nmh-1.7.1/sbr/mf.c:230: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).
    bp = adr + strlen (adr) - 1;
data/nmh-1.7.1/sbr/mime_type.c:94:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c = getc(fp)) != EOF) {
data/nmh-1.7.1/sbr/mts.c:231:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buf, localname, sizeof(buffer0));
data/nmh-1.7.1/sbr/mts.c:242:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buf, res->ai_canonname, sizeof(buffer0) - 1);
data/nmh-1.7.1/sbr/mts.c:252: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, ".");
data/nmh-1.7.1/sbr/mts.c:278:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, systemname, sizeof(buffer));
data/nmh-1.7.1/sbr/mts.c:345:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (username, "unknown", sizeof(username));
data/nmh-1.7.1/sbr/mts.c:363:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(localmbox, np, sizeof(localmbox));
data/nmh-1.7.1/sbr/mts.c:368:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(username, left_angle_bracket + 1,
data/nmh-1.7.1/sbr/mts.c:375:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (username, pw->pw_name, sizeof(username));
data/nmh-1.7.1/sbr/mts.c:399:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (fullname, cp, sizeof(fullname));
data/nmh-1.7.1/sbr/mts.c:401:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    	strncpy (fullname, cp, sizeof(fullname));
data/nmh-1.7.1/sbr/netsec.c:461: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).
		    nsc->ns_snoop_cb(nsc, sptr, strlen(sptr),
data/nmh-1.7.1/sbr/netsec.c:665:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read(nsc->ns_readfd, readbuf, readbufsize);
data/nmh-1.7.1/sbr/netsec.c:1057:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*len = strlen(*result);
data/nmh-1.7.1/sbr/netsec.c:1081:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(password);
data/nmh-1.7.1/sbr/oauth.c:818: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).
    *res_len = strlen(*p);
data/nmh-1.7.1/sbr/oauth.c:845: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).
        len = strlen(base_url);
data/nmh-1.7.1/sbr/oauth.c:858: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(prefix)
data/nmh-1.7.1/sbr/oauth.c:859: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(name_esc)
data/nmh-1.7.1/sbr/oauth.c:861: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(val_esc);
data/nmh-1.7.1/sbr/path.c:37: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).
	    && (ep = cp + strlen (cp) - 1) > cp
data/nmh-1.7.1/sbr/path.c:58: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).
	    name = mh_xstrdup(name + strlen(buffer));
data/nmh-1.7.1/sbr/path.c:78: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).
    ep = pwds + strlen (pwds);
data/nmh-1.7.1/sbr/print_sw.c:19:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(substr);
data/nmh-1.7.1/sbr/print_sw.c:38: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).
		    cp += strlen (cp);
data/nmh-1.7.1/sbr/read_switch.c:23:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = getchar ()) != '\n') {
data/nmh-1.7.1/sbr/read_switch_multiword.c:39:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = getchar ()) != '\n') {
data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c:50:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ansbuf, ans, sizeof(ansbuf));
data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c:99:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(text);
data/nmh-1.7.1/sbr/read_switch_multiword_via_readline.c:104:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, name, sizeof(buf));
data/nmh-1.7.1/sbr/ruserpass.c:191:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(cfile)) != EOF && c && strchr(stop, c))
data/nmh-1.7.1/sbr/ruserpass.c:207:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(cfile)) != EOF && c && !strchr(stop, c)) {
data/nmh-1.7.1/sbr/ruserpass.c:208:31:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (c == '\\' && (c = getc(cfile)) == EOF)
data/nmh-1.7.1/sbr/seq_bits.c:18:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buffer, MBITS, sizeof(buffer));
data/nmh-1.7.1/sbr/seq_bits.c:21:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (buffer);
data/nmh-1.7.1/sbr/seq_list.c:87: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).
	bp += strlen(bp);
data/nmh-1.7.1/sbr/seq_list.c:100: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).
	    bp += strlen(bp);
data/nmh-1.7.1/sbr/seq_read.c:145: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).
    plen = strlen (mp->foldpath) + 1;
data/nmh-1.7.1/sbr/seq_read.c:149: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).
		&& (j = strlen (np->n_name) - plen) > alen
data/nmh-1.7.1/sbr/smatch.c:22:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(string);
data/nmh-1.7.1/sbr/snprintb.c:19:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buffer);
data/nmh-1.7.1/sbr/trimcpy.c:24: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).
    for (sp = cp + strlen(cp) - 1; sp >= cp; sp--) {
data/nmh-1.7.1/sbr/trimcpy.c:62: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).
    for (cp = dp + strlen (dp) - 1;
data/nmh-1.7.1/sbr/trimcpy.c:88: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).
    for (cp = sp + strlen (sp) - 1;
data/nmh-1.7.1/sbr/utils.c:84:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(src) + 1; /* Ignore possibility of overflow. */
data/nmh-1.7.1/sbr/utils.c:112:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy (curwd, "/");
data/nmh-1.7.1/sbr/utils.c:120: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 ((cp = curwd + strlen (curwd) - 1) > curwd && *cp == '/')
data/nmh-1.7.1/sbr/utils.c:141: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).
        len1 = strlen (s1);
data/nmh-1.7.1/sbr/utils.c:143: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).
        len2 = strlen (s2);
data/nmh-1.7.1/sbr/utils.c:280: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).
    const size_t len = strlen (str);
data/nmh-1.7.1/sbr/utils.c:299: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).
    const size_t len = strlen (str);
data/nmh-1.7.1/sbr/utils.c:313: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).
    const size_t len = strlen (s2);
data/nmh-1.7.1/sbr/utils.c:376: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).
    ls = strlen(s);
data/nmh-1.7.1/sbr/utils.c:377: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).
    lsuf = strlen(suffix);
data/nmh-1.7.1/sbr/utils.c:387: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).
    return *s && s[strlen(s) - 1] == c;
data/nmh-1.7.1/sbr/utils.c:398: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).
    s += strlen(s) - 1;
data/nmh-1.7.1/sbr/utils.c:567:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((state = read (fd, buf, sizeof buf)) > 0) {
data/nmh-1.7.1/sbr/vfgets.c:34:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((dp = cp + strlen (cp) - 2) < cp || *dp != QUOTE) {
data/nmh-1.7.1/test/fakehttp.c:51:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(conn, buf, sizeof buf);
data/nmh-1.7.1/test/fakepop.c:93: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).
			octets[j] += strlen(line);
data/nmh-1.7.1/test/fakepop.c:224: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).
	ssize_t datalen = strlen(data);
data/nmh-1.7.1/test/fakepop.c:242:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cc = read(socket, data + offset, len - offset);
data/nmh-1.7.1/test/fakepop.c:294: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).
			i = strlen(linebuf);
data/nmh-1.7.1/test/fakesmtp.c:157:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(data, buffer, LINESIZE);
data/nmh-1.7.1/test/fakesmtp.c:159: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).
			cc = strlen(buffer);
data/nmh-1.7.1/test/fakesmtp.c:178:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cc = read(socket, buffer + bytesinbuf,
data/nmh-1.7.1/test/getcwidth.c:107: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).
	int charlen, charleft = strlen(string);
data/nmh-1.7.1/test/getfullname.c:33:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, pwd->pw_gecos, sizeof(buf));
data/nmh-1.7.1/test/getfullname.c:36:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, argv[1], sizeof(buf));
data/nmh-1.7.1/test/runpty.c:158:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    cc = read(master_out, readbuf, sizeof(readbuf));
data/nmh-1.7.1/test/server.c:218: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).
	iov[0].iov_len = strlen(data);
data/nmh-1.7.1/uip/ali.c:147: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).
		pos += strlen (ak->ak_name) + 1;
data/nmh-1.7.1/uip/anno.c:283: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 ((cp = *ap + strlen (*ap) - 1) > *ap && *cp == ':')
data/nmh-1.7.1/uip/anno.c:289:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (*ap) >= NAMESZ)
data/nmh-1.7.1/uip/annosbr.c:105: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).
    length = strlen(comp);
data/nmh-1.7.1/uip/annosbr.c:117:31:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (n = 0, cp = field; (c = getc(fp)) != EOF; *cp++ = c) {
data/nmh-1.7.1/uip/annosbr.c:118:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (c == '\n' && (c = getc(fp)) != ' ' && c != '\t') {
data/nmh-1.7.1/uip/annosbr.c:191:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, cp, sizeof(tmpfil));
data/nmh-1.7.1/uip/annosbr.c:228: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).
	length = strlen(comp);
data/nmh-1.7.1/uip/annosbr.c:252:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    for (n = 0, cp = field; (c = getc(fp)) != EOF; *cp++ = c) {
data/nmh-1.7.1/uip/annosbr.c:253:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (c == '\n' && (c = getc(fp)) != ' ' && c != '\t') {
data/nmh-1.7.1/uip/annosbr.c:351:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if ((c = getc(fp)) == '\n')
data/nmh-1.7.1/uip/annosbr.c:357:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	        while ((c = getc(fp)) != EOF) {
data/nmh-1.7.1/uip/annosbr.c:361:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		        (void)ungetc(c = getc(fp), fp);
data/nmh-1.7.1/uip/annosbr.c:419:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, m_backup (file), sizeof(buffer));
data/nmh-1.7.1/uip/burst.c:273: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).
	    pos += (long) strlen (buffer);
data/nmh-1.7.1/uip/burst.c:297: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).
		pos += (long) strlen (buffer);
data/nmh-1.7.1/uip/burst.c:310: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).
		smsgs[msgp - 1].s_stop -= ((long) strlen (buffer) + 1);
data/nmh-1.7.1/uip/burst.c:316: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).
	pos += (long) strlen (buffer);
data/nmh-1.7.1/uip/burst.c:413:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (f1, m_name (i), sizeof(f1));
data/nmh-1.7.1/uip/burst.c:414:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (f2, m_name (j), sizeof(f2));
data/nmh-1.7.1/uip/burst.c:462:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (f2, tempfile, sizeof(f2));
data/nmh-1.7.1/uip/burst.c:463:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (f1, m_name (i), sizeof(f1));
data/nmh-1.7.1/uip/burst.c:475:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (f3, m_backup (f1), sizeof(f3));
data/nmh-1.7.1/uip/burst.c:511:39:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (state = mime ? S4 : S1; (c = fgetc (in)) != EOF && len > 0; len--) {
data/nmh-1.7.1/uip/comp.c:281: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).
	format_len = strlen(cp);
data/nmh-1.7.1/uip/comp.c:316:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (drft, build ? m_maildir ("draft")
data/nmh-1.7.1/uip/dist.c:228:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (drft, m_draft (dfolder, dmsg, NOUSE, &isdf), sizeof(drft));
data/nmh-1.7.1/uip/distsbr.c:149:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpfil, cp, sizeof(tmpfil));
data/nmh-1.7.1/uip/distsbr.c:179:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (tmpfil, cp, sizeof(tmpfil));
data/nmh-1.7.1/uip/dropsbr.c:140:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (fd, ldelim, count) != count)
data/nmh-1.7.1/uip/dropsbr.c:176: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).
		i = strlen (text);
data/nmh-1.7.1/uip/dropsbr.c:184:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((i = read (fd, buffer, sizeof buffer - 1)) > 0) {
data/nmh-1.7.1/uip/dropsbr.c:211: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).
		i = strlen (text);
data/nmh-1.7.1/uip/dropsbr.c:233:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmpbuffer, buffer, sizeof(tmpbuffer));
data/nmh-1.7.1/uip/dropsbr.c:248:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmpbuffer, buffer, sizeof(tmpbuffer));
data/nmh-1.7.1/uip/dropsbr.c:259:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmpbuffer, buffer, sizeof(tmpbuffer));
data/nmh-1.7.1/uip/dropsbr.c:276: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).
		i = strlen (buffer);
data/nmh-1.7.1/uip/flist.c:220:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (curfolder, getfolder(1), sizeof(curfolder));
data/nmh-1.7.1/uip/flist.c:278:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(o->name, s, p - s);
data/nmh-1.7.1/uip/flist.c:302:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (curfolder, foldersToDo[numfolders - 1], sizeof(curfolder));
data/nmh-1.7.1/uip/flist.c:416:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (name, base, sizeof(name) - 2);
data/nmh-1.7.1/uip/flist.c:418: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(name, "/");
data/nmh-1.7.1/uip/flist.c:419: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(name, dp->d_name, sizeof(name) - strlen(name) - 1);
data/nmh-1.7.1/uip/flist.c:419: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).
	strncat(name, dp->d_name, sizeof(name) - strlen(name) - 1);
data/nmh-1.7.1/uip/flist.c:538:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(folders[i].name);
data/nmh-1.7.1/uip/flist.c:552:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (svector_at (sequencesToDo, j));
data/nmh-1.7.1/uip/flist.c:636: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).
    nl = strlen(name);
data/nmh-1.7.1/uip/flist.c:641: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).
	ol = strlen(o->name);
data/nmh-1.7.1/uip/flist.c:669: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).
    atrlen = strlen (atrcur);
data/nmh-1.7.1/uip/fmtdump.c:445: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/nmh-1.7.1/uip/fmtdump.c:457: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, "<");
data/nmh-1.7.1/uip/fmtdump.c:461: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, ">");
data/nmh-1.7.1/uip/fmtdump.c:474: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, "<");
data/nmh-1.7.1/uip/fmtdump.c:480: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, ">");
data/nmh-1.7.1/uip/fmttest.c:647:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((i = strlen(rbuf)) < outwidth) {
data/nmh-1.7.1/uip/fmttest.c:1192: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 ((len = strlen (str)) >= bufend - dst) {\
data/nmh-1.7.1/uip/folder.c:340:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (folder, FENDNULL(cp), sizeof(folder));
data/nmh-1.7.1/uip/folder.c:343:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (folder, argfolder, sizeof(folder));
data/nmh-1.7.1/uip/folder.c:356:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (folder, argfolder ? argfolder : getfolder (1), sizeof(folder));
data/nmh-1.7.1/uip/folder.c:491:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (fi[i].name);
data/nmh-1.7.1/uip/folder.c:639: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).
    atrlen = strlen (atrcur);
data/nmh-1.7.1/uip/forw.c:309:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (drft, buildsw ? m_maildir ("draft")
data/nmh-1.7.1/uip/forw.c:576:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (buffer, msgnum == mp->lowsel ? delim3 : delim4,
data/nmh-1.7.1/uip/forw.c:583:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy (bp, "\n-------", buflen);
data/nmh-1.7.1/uip/forw.c:584:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (bp);
data/nmh-1.7.1/uip/forw.c:594:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (bp);
data/nmh-1.7.1/uip/forw.c:598:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy (bp, "\n\n", buflen);
data/nmh-1.7.1/uip/forw.c:600: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 (write (out, buffer, strlen (buffer)) < 0) {
data/nmh-1.7.1/uip/forw.c:624:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, delim4, sizeof(buffer));
data/nmh-1.7.1/uip/forw.c:629: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 (write (out, buffer, strlen (buffer)) < 0) {
data/nmh-1.7.1/uip/forw.c:636: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).
	i = strlen (buffer);
data/nmh-1.7.1/uip/forw.c:641: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 (write (out, buffer, strlen (buffer)) < 0) {
data/nmh-1.7.1/uip/forw.c:660: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 (write (out, buffer, strlen (buffer)) < 0) {
data/nmh-1.7.1/uip/forw.c:666: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 (write (out, buffer, strlen (buffer)) < 0) {
data/nmh-1.7.1/uip/forwsbr.c:68: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).
    fmtsize = strlen (nfs) + 256;
data/nmh-1.7.1/uip/forwsbr.c:180:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, cp, sizeof(tmpfil));
data/nmh-1.7.1/uip/inc.c:940: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).
    stop += strlen (s) + 1;
data/nmh-1.7.1/uip/mhbuild.c:335:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (infile, cp, sizeof(infile));
data/nmh-1.7.1/uip/mhbuild.c:396:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(outfile, cp, sizeof(outfile));
data/nmh-1.7.1/uip/mhbuildsbr.c:143:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (~m_gmprot ());
data/nmh-1.7.1/uip/mhbuildsbr.c:213: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 *s = vp, *e = vp + strlen(vp) - 1;
data/nmh-1.7.1/uip/mhbuildsbr.c:245: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).
                                   strlen (MHBUILD_FILE_PSEUDOHEADER)) == 0) {
data/nmh-1.7.1/uip/mhbuildsbr.c:249: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).
                char *type = np + strlen (MHBUILD_FILE_PSEUDOHEADER);
data/nmh-1.7.1/uip/mhbuildsbr.c:285: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).
                                   strlen (MHBUILD_ARGS_PSEUDOHEADER)) == 0) {
data/nmh-1.7.1/uip/mhbuildsbr.c:289: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).
                char *type = np + strlen (MHBUILD_ARGS_PSEUDOHEADER);
data/nmh-1.7.1/uip/mhbuildsbr.c:333: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).
	    fseek (in, (long) (-strlen (buf)), SEEK_CUR);
data/nmh-1.7.1/uip/mhbuildsbr.c:615:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen(cp);
data/nmh-1.7.1/uip/mhbuildsbr.c:699:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (content, buf + 2, sizeof(content));
data/nmh-1.7.1/uip/mhbuildsbr.c:706:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (content, "text/plain", sizeof(content));
data/nmh-1.7.1/uip/mhbuildsbr.c:708:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, (!do_direct() || buf[0] != '#') ? buf : buf + 1, sizeof(buffer));
data/nmh-1.7.1/uip/mhbuildsbr.c:713: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).
		&& buffer[i = strlen (DESCR_FIELD)] == ':') {
data/nmh-1.7.1/uip/mhbuildsbr.c:736: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).
		&& buffer[i = strlen (DISPO_FIELD)] == ':') {
data/nmh-1.7.1/uip/mhbuildsbr.c:1167: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).
	    pp = partnam + strlen (partnam);
data/nmh-1.7.1/uip/mhbuildsbr.c:1209: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).
	    ct->c_end = (partnum = strlen (prefix) + 2) + 2;
data/nmh-1.7.1/uip/mhbuildsbr.c:1268:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    len = strlen (bp);
data/nmh-1.7.1/uip/mhbuildsbr.c:1291:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (bp, ci->ci_subtype, buflen);
data/nmh-1.7.1/uip/mhbuildsbr.c:1304: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).
		    len = strlen (bp);
data/nmh-1.7.1/uip/mhbuildsbr.c:1511: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).
	prefix_len = strlen (prefix);
data/nmh-1.7.1/uip/mhbuildsbr.c:1674:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (TYPE_FIELD) + strlen (ci->ci_type)
data/nmh-1.7.1/uip/mhbuildsbr.c:1674: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).
    len = strlen (TYPE_FIELD) + strlen (ci->ci_type)
data/nmh-1.7.1/uip/mhbuildsbr.c:1675: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 (ci->ci_subtype) + 3;
data/nmh-1.7.1/uip/mhbuildsbr.c:1702: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 (len + 1 + (cc = 2 + strlen (ci->ci_comment)) >= CPERLIN) {
data/nmh-1.7.1/uip/mhbuildsbr.c:1749:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(DISPO_FIELD) + strlen(vp) + 1;
data/nmh-1.7.1/uip/mhbuildsbr.c:1749: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).
	len = strlen(DISPO_FIELD) + strlen(vp) + 1;
data/nmh-1.7.1/uip/mhbuildsbr.c:2369: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).
    if (strncasecmp (buffer, TYPE_FIELD, strlen (TYPE_FIELD)) == 0  &&
data/nmh-1.7.1/uip/mhbuildsbr.c:2370: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).
        buffer[strlen (TYPE_FIELD)] == ':') {
data/nmh-1.7.1/uip/mhbuildsbr.c:2388: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).
        n = strlen (buffer);
data/nmh-1.7.1/uip/mhcachesbr.c:118:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int mask = umask (cachetype ? ~m_gmprot () : 0222);
data/nmh-1.7.1/uip/mhcachesbr.c:155:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (mask);
data/nmh-1.7.1/uip/mhcachesbr.c:238:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (bp);
data/nmh-1.7.1/uip/mhcachesbr.c:244:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (bp);
data/nmh-1.7.1/uip/mhcachesbr.c:253:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhcachesbr.c:336:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask (writing == 2 ? 0077 : 0);
data/nmh-1.7.1/uip/mhcachesbr.c:348:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask);
data/nmh-1.7.1/uip/mhcachesbr.c:356:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, mapname, buflen);
data/nmh-1.7.1/uip/mhcachesbr.c:386:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	        strncpy (mapname, name, namelen);
data/nmh-1.7.1/uip/mhfixmsg.c:759: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 (strlen (end) > 3  &&  *end++ == '\n'  &&
data/nmh-1.7.1/uip/mhfixmsg.c:777: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 (bytes_read >= strlen (end_boundary)) {
data/nmh-1.7.1/uip/mhfixmsg.c:870: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).
		new_params = output_params(strlen(TYPE_FIELD) +
data/nmh-1.7.1/uip/mhfixmsg.c:871: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(new_ctline) + 1,
data/nmh-1.7.1/uip/mhfixmsg.c:1040: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).
        char *remainder = cp + strlen (old);
data/nmh-1.7.1/uip/mhfixmsg.c:1085: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).
        end = cp + strlen (name) + 1;
data/nmh-1.7.1/uip/mhfixmsg.c:1129: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).
                                   strlen (ENCODING_FIELD))) {
data/nmh-1.7.1/uip/mhfixmsg.c:1872: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).
        if (strncasecmp (XXX_FIELD_PRF, hp->name, strlen (XXX_FIELD_PRF))) {
data/nmh-1.7.1/uip/mhfixmsg.c:2528: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).
            size_t len = strlen (hf->value);
data/nmh-1.7.1/uip/mhfixmsg.c:2554: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).
                    size_t l = strlen(ct->c_ctline) - 1;
data/nmh-1.7.1/uip/mhfixmsg.c:2644: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).
                    strlen (hf->name) + 1 + semicolon_loc - hf->value;
data/nmh-1.7.1/uip/mhfixmsg.c:2695:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            while ((i = read (old, buffer, sizeof buffer)) >
data/nmh-1.7.1/uip/mhical.c:438: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).
            const size_t len = strlen (insert) + strlen (node->value) + 1;
data/nmh-1.7.1/uip/mhical.c:438: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).
            const size_t len = strlen (insert) + strlen (node->value) + 1;
data/nmh-1.7.1/uip/mhical.c:441:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            (void) strncpy (tmp, insert, len);
data/nmh-1.7.1/uip/mhical.c:442:20:  [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.
            (void) strncat (tmp, node->value, len - strlen (insert) - 1);
data/nmh-1.7.1/uip/mhical.c:442: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).
            (void) strncat (tmp, node->value, len - strlen (insert) - 1);
data/nmh-1.7.1/uip/mhical.c:530:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen (line);
data/nmh-1.7.1/uip/mhical.c:769: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).
            size_t len = strlen (line);
data/nmh-1.7.1/uip/mhical.c:778:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len = strlen (line);
data/nmh-1.7.1/uip/mhical.c:793:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t remaining = strlen (line);
data/nmh-1.7.1/uip/mhlistsbr.c:80:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (ct->c_umask);
data/nmh-1.7.1/uip/mhlsbr.c:516: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).
	    i = strlen (buf);
data/nmh-1.7.1/uip/mhlsbr.c:600:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (name, parse(), sizeof(name));
data/nmh-1.7.1/uip/mhlsbr.c:718:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (name, parse(), sizeof(name));
data/nmh-1.7.1/uip/mhlsbr.c:970:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
		strncpy (buf, "\n", sizeof(buf));
data/nmh-1.7.1/uip/mhlsbr.c:979:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if (read (fileno (stdout), buf, sizeof(buf)) < 0) {
data/nmh-1.7.1/uip/mhlsbr.c:1076:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			    strncpy (holder.c_text, buf, sizeof(buf));
data/nmh-1.7.1/uip/mhlsbr.c:1134: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 (s2 && *(dp = s2 + strlen (s2) - 1) == '\n')
data/nmh-1.7.1/uip/mhlsbr.c:1215: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 (*(cp = buffer + strlen (buffer) - 1) == '\n')
data/nmh-1.7.1/uip/mhlsbr.c:1309: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 (wid < ovoff + strlen (ovtxt) + 5)
data/nmh-1.7.1/uip/mhlsbr.c:1311: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).
		c1->c_name, wid, ovoff + strlen (ovtxt) + 5);
data/nmh-1.7.1/uip/mhlsbr.c:1326: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).
	    - c1->c_offset - strlen (c2->c_text);
data/nmh-1.7.1/uip/mhlsbr.c:1328: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).
	    count -= strlen(text) + 2;
data/nmh-1.7.1/uip/mhlsbr.c:1345: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 ((count = c1->c_cwidth - strlen(text) - 2) > 0)
data/nmh-1.7.1/uip/mhlsbr.c:1364: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 ((count = c1->c_cwidth - strlen (c2->c_name) - 2) > 0)
data/nmh-1.7.1/uip/mhlsbr.c:1375: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).
			: (int) strlen (c2->c_name) + 2;
data/nmh-1.7.1/uip/mhlsbr.c:1378: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(text) + 2;
data/nmh-1.7.1/uip/mhlsbr.c:1533:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read (fileno (stdout), buf, sizeof(buf)) < 0) {
data/nmh-1.7.1/uip/mhlsbr.c:1785: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 (write(fdinput[1], buf, strlen(buf)) < 0) {
data/nmh-1.7.1/uip/mhlsbr.c:1843: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).
	    s = strlen(args[i]);
data/nmh-1.7.1/uip/mhlsbr.c:1894:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((cc = read(fdoutput[0], buf, bufsz - 1)) > 0) {
data/nmh-1.7.1/uip/mhmisc.c:58: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).
        len = strlen(*ap);
data/nmh-1.7.1/uip/mhmisc.c:182:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:190:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:201:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:211:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:216: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).
    i = strlen (invo_name) + 2;
data/nmh-1.7.1/uip/mhmisc.c:221:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:228:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:234:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (bp);
data/nmh-1.7.1/uip/mhmisc.c:241:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhoutsbr.c:245: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).
		dp = output_params(strlen(ci2->ci_type) +
data/nmh-1.7.1/uip/mhoutsbr.c:246: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).
				   strlen(ci2->ci_subtype) + 1,
data/nmh-1.7.1/uip/mhparse.c:402: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).
	    for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:520: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).
	    for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:654: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).
    for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:759: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).
	for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:786: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).
	for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:868: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).
                ct->c_file, TYPE_FIELD, strlen(invo_name) + 2, "", cp);
data/nmh-1.7.1/uip/mhparse.c:903: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).
    for (dp = cp + strlen (cp) - 1; dp >= cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:937: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).
            ct->c_file, DISPO_FIELD, strlen(invo_name) + 2, "", cp);
data/nmh-1.7.1/uip/mhparse.c:1071:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (chset != NULL && !check_charset (chset, strlen (chset))) {
data/nmh-1.7.1/uip/mhparse.c:1112: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).
	bp = cte + strlen (cte) - 1;
data/nmh-1.7.1/uip/mhparse.c:1163: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).
    for (cp = bp, dp = cp + strlen (cp) - 1; dp > cp; dp--)
data/nmh-1.7.1/uip/mhparse.c:1263: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).
	    pp = partnam + strlen (partnam);
data/nmh-1.7.1/uip/mhparse.c:1632: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).
	    e->eb_url = u = mh_xmalloc(strlen(pm->pm_value) + 1);
data/nmh-1.7.1/uip/mhparse.c:1822:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (cc = read (fd, cp, len)) {
data/nmh-1.7.1/uip/mhparse.c:2216:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += strlen (TYPE_FIELD) + 2 + strlen (ci->ci_type)
data/nmh-1.7.1/uip/mhparse.c:2216: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).
	len += strlen (TYPE_FIELD) + 2 + strlen (ci->ci_type)
data/nmh-1.7.1/uip/mhparse.c:2217: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).
	    + 1 + strlen (ci->ci_subtype);
data/nmh-1.7.1/uip/mhparse.c:2226: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 (len + 1 + (cc = 2 + strlen (ci->ci_comment)) >= CPERLIN) {
data/nmh-1.7.1/uip/mhparse.c:2260:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (cc = read (fd, buffer, sizeof(buffer) - 1)) {
data/nmh-1.7.1/uip/mhparse.c:2400:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask (cachetype ? ~m_gmprot () : 0222);
data/nmh-1.7.1/uip/mhparse.c:2426:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (mask);
data/nmh-1.7.1/uip/mhparse.c:2490:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2496:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2503:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2509:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2612:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    mask = umask (cachetype ? ~m_gmprot () : 0222);
data/nmh-1.7.1/uip/mhparse.c:2637:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask (mask);
data/nmh-1.7.1/uip/mhparse.c:2689:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2695:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhparse.c:2873:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    mask = umask (cachetype ? ~m_gmprot() : 0222);
data/nmh-1.7.1/uip/mhparse.c:2893:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask(mask);
data/nmh-1.7.1/uip/mhparse.c:2916:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen ((char *) digest) <= maxlen) {
data/nmh-1.7.1/uip/mhparse.c:2933: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).
                     (int) strlen ((char *) digest));
data/nmh-1.7.1/uip/mhparse.c:2992:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read > max) bufp[read-max] = '\0';
data/nmh-1.7.1/uip/mhparse.c:3018:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (found_boundary  ||  read > max) break;
data/nmh-1.7.1/uip/mhparse.c:3020:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read > max) break;
data/nmh-1.7.1/uip/mhparse.c:3030: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).
            (cp = content + strlen (content)) > content  &&
data/nmh-1.7.1/uip/mhparse.c:3035:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (content) > 1) {
data/nmh-1.7.1/uip/mhparse.c:3309: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).
                filename, fieldname, strlen(invo_name) + 2, "",cp, dp - cp);
data/nmh-1.7.1/uip/mhparse.c:3342: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).
			    fieldname, strlen(invo_name) + 2, "", cp);
data/nmh-1.7.1/uip/mhparse.c:3356:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nameptr, cp, len);
data/nmh-1.7.1/uip/mhparse.c:3377:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(charset, dp, len);
data/nmh-1.7.1/uip/mhparse.c:3386: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(invo_name) + 2, "", nameptr);
data/nmh-1.7.1/uip/mhparse.c:3400:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(lang, dp, len);
data/nmh-1.7.1/uip/mhparse.c:3409: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(invo_name) + 2, "", nameptr);
data/nmh-1.7.1/uip/mhparse.c:3433: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).
			       filename, fieldname, strlen(invo_name) + 2,
data/nmh-1.7.1/uip/mhparse.c:3476: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).
                            fieldname, strlen(invo_name) + 2, "", nameptr);
data/nmh-1.7.1/uip/mhparse.c:3513:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    	strncpy(valptr, cp = dp, len);
data/nmh-1.7.1/uip/mhparse.c:3562: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).
				filename, fieldname, strlen(invo_name) + 2, "",
data/nmh-1.7.1/uip/mhparse.c:3577: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).
			   filename, fieldname, strlen(invo_name) + 2, "",
data/nmh-1.7.1/uip/mhparse.c:3620: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).
		       filename, fieldname, strlen(invo_name) + 2, "",
data/nmh-1.7.1/uip/mhparse.c:3688: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(params->pm_name) > CPERLIN) {
data/nmh-1.7.1/uip/mhparse.c:3743: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).
	    initialwidth = strlen(line) + 5;
data/nmh-1.7.1/uip/mhparse.c:3778:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(q, params->pm_name, sizeof(line) - (q - line));
data/nmh-1.7.1/uip/mhparse.c:3779: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 += strlen(q);
data/nmh-1.7.1/uip/mhparse.c:3784: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(params->pm_value + valoff), valoff, index);
data/nmh-1.7.1/uip/mhparse.c:3787: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(params->pm_value + valoff), valoff);
data/nmh-1.7.1/uip/mhparse.c:3795: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).
	initialwidth += strlen(line);
data/nmh-1.7.1/uip/mhparse.c:3841:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(pm->pm_name);
data/nmh-1.7.1/uip/mhparse.c:3867: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).
    maxfit = CPERLIN - (12 + len + strlen(indexchar));
data/nmh-1.7.1/uip/mhparse.c:3900: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).
	    int enclen = strlen(pm->pm_charset) + strlen(pm->pm_lang) + 2;
data/nmh-1.7.1/uip/mhparse.c:3900: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).
	    int enclen = strlen(pm->pm_charset) + strlen(pm->pm_lang) + 2;
data/nmh-1.7.1/uip/mhparse.c:3908: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).
	    len += strlen(indexchar);
data/nmh-1.7.1/uip/mhparse.c:4167: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(pm->pm_charset))) {
data/nmh-1.7.1/uip/mhparse.c:4187: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).
    inbytes = strlen(pm->pm_value);
data/nmh-1.7.1/uip/mhshowsbr.c:157:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (ct->c_umask & ~(0100));
data/nmh-1.7.1/uip/mhshowsbr.c:382:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, cp, sizeof(buffer));
data/nmh-1.7.1/uip/mhshowsbr.c:443:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((cc = read(fd, readbuf, sizeof(readbuf))) > 0) {
data/nmh-1.7.1/uip/mhshowsbr.c:825: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).
		    len = strlen (bp);
data/nmh-1.7.1/uip/mhshowsbr.c:839:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy (bp, s, buflen);
data/nmh-1.7.1/uip/mhshowsbr.c:865:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen (bp);
data/nmh-1.7.1/uip/mhshowsbr.c:914:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (bp, ci->ci_subtype, buflen);
data/nmh-1.7.1/uip/mhshowsbr.c:929:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    (void) strncpy(param, cp + 1, param_len);
data/nmh-1.7.1/uip/mhshowsbr.c:939:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(bp, value, buflen);
data/nmh-1.7.1/uip/mhshowsbr.c:962:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (bp);
data/nmh-1.7.1/uip/mhshowsbr.c:971: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).
		    len = strlen (pp);
data/nmh-1.7.1/uip/mhshowsbr.c:980: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).
		    len = strlen (pp++);
data/nmh-1.7.1/uip/mhshowsbr.c:1047: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).
        (ct->c_termproc && buflen <= strlen(ct->c_termproc))) {
data/nmh-1.7.1/uip/mhshowsbr.c:1059:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (term, buffer, sizeof(term));
data/nmh-1.7.1/uip/mhshowsbr.c:1223: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).
		outline = output_params(strlen(TYPE_FIELD) + 1 + strlen(ctline),
data/nmh-1.7.1/uip/mhshowsbr.c:1223:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		outline = output_params(strlen(TYPE_FIELD) + 1 + strlen(ctline),
data/nmh-1.7.1/uip/mhshowsbr.c:1273: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).
    if (! check_charset (src_charset, strlen (src_charset))) {
data/nmh-1.7.1/uip/mhshowsbr.c:1363: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(comp->c_name) > 6) {
data/nmh-1.7.1/uip/mhshowsbr.c:1370: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(comp->c_name) > 7) {
data/nmh-1.7.1/uip/mhstoresbr.c:145:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (ct->c_umask);
data/nmh-1.7.1/uip/mhstoresbr.c:672: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).
                int cwdlen = strlen (info->cwd);
data/nmh-1.7.1/uip/mhstoresbr.c:765:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    switch (cc = read (fd, buffer, sizeof(buffer))) {
data/nmh-1.7.1/uip/mhstoresbr.c:837: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 ((pos += strlen (buffer)) > last) {
data/nmh-1.7.1/uip/mhstoresbr.c:840: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).
	    diff = strlen (buffer) - (pos - last);
data/nmh-1.7.1/uip/mhstoresbr.c:941:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (buffer, cp, buflen);
data/nmh-1.7.1/uip/mhstoresbr.c:957:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (bp);
data/nmh-1.7.1/uip/mhstoresbr.c:985:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    len = strlen (bp);
data/nmh-1.7.1/uip/mhstoresbr.c:1007:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (bp, ct->c_partno, buflen);
data/nmh-1.7.1/uip/mhstoresbr.c:1012:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy (bp, ci->ci_type, buflen);
data/nmh-1.7.1/uip/mhstoresbr.c:1017:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy (bp, ci->ci_subtype, buflen);
data/nmh-1.7.1/uip/mhstoresbr.c:1032:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (bp);
data/nmh-1.7.1/uip/mhstoresbr.c:1155: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).
  const size_t buflen = strlen (file) + 8;
data/nmh-1.7.1/uip/mkstemp.c:50: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 ((suffix_len = strlen(suffix)) > 0) {
data/nmh-1.7.1/uip/mkstemp.c:77: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).
    directory_len = strlen(directory);
data/nmh-1.7.1/uip/mkstemp.c:88: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).
    prefix_len = strlen(prefix);
data/nmh-1.7.1/uip/mkstemp.c:89: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).
    suffix_len = strlen(suffix);
data/nmh-1.7.1/uip/mkstemp.c:97:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(tp, directory, directory_len);
data/nmh-1.7.1/uip/mkstemp.c:102:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(tp, prefix, prefix_len);
data/nmh-1.7.1/uip/mkstemp.c:105:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(tp, pattern, sizeof pattern - 1);
data/nmh-1.7.1/uip/mkstemp.c:108:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(tp, suffix, suffix_len);
data/nmh-1.7.1/uip/new.c:233: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).
    check_folder(folder, strlen(folder), baton);
data/nmh-1.7.1/uip/new.c:281:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen(line) - 1;
data/nmh-1.7.1/uip/new.c:303:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += strlen(sequences[i]) + 1;
data/nmh-1.7.1/uip/new.c:308:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(sequences[i]);
data/nmh-1.7.1/uip/picksbr.c:400:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, parswit[i].sw, sizeof(temp));
data/nmh-1.7.1/uip/picksbr.c:668: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).
		pos += (long) strlen (ibuf);
data/nmh-1.7.1/uip/picksbr.c:670: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).
		ebp = ibuf + strlen (ibuf);
data/nmh-1.7.1/uip/popsbr.c:70:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(server_mechs, response + 5, server_mechs_size);
data/nmh-1.7.1/uip/popsbr.c:94: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 hlen = strlen(host);
data/nmh-1.7.1/uip/popsbr.c:251:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(response, errstr, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:271:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (buffer, response, sizeof(buffer));
data/nmh-1.7.1/uip/popsbr.c:273:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (response, buffer, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:322: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).
	    b64len = strlen(b64data);
data/nmh-1.7.1/uip/popsbr.c:325:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = b64len + 8 + strlen(mech);
data/nmh-1.7.1/uip/popsbr.c:355: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).
		snoopoffset = 6 + strlen(mech);
data/nmh-1.7.1/uip/popsbr.c:503:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buffer, response, sizeof(buffer));
data/nmh-1.7.1/uip/popsbr.c:515:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (response, buffer, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:576:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(response, errstr, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:583:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(response, errstr, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:590:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(response, errstr, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:623:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (response, buffer + LEN(TRM), sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:626:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (response, buffer, sizeof(response));
data/nmh-1.7.1/uip/popsbr.c:647:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(response, errstr, sizeof(response));
data/nmh-1.7.1/uip/post.c:616:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmpfil, cp, sizeof(tmpfil));
data/nmh-1.7.1/uip/post.c:969:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(from, auxformat(mp, 0), sizeof(from) - 1);
data/nmh-1.7.1/uip/post.c:980:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(sender, auxformat(mp, 0), sizeof(sender) - 1);
data/nmh-1.7.1/uip/post.c:990:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(efrom, auxformat(mp, 0), sizeof(efrom) - 1);
data/nmh-1.7.1/uip/post.c:1037:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(from, auxformat(mp, 0), sizeof(from) - 1);
data/nmh-1.7.1/uip/post.c:1047:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	        strncpy(sender, auxformat(mp, 0), sizeof(sender) - 1);
data/nmh-1.7.1/uip/post.c:1057:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(efrom, auxformat(mp, 0), sizeof(efrom) - 1);
data/nmh-1.7.1/uip/post.c:1083: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).
	while (*fullfrom && fullfrom[strlen(fullfrom) - 1] == '\n') {
data/nmh-1.7.1/uip/post.c:1084: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).
	    fullfrom[strlen(fullfrom) - 1] = '\0';
data/nmh-1.7.1/uip/post.c:1256: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).
	linepos += (nameoutput = strlen (name) + 2);
data/nmh-1.7.1/uip/post.c:1260: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).
	shlen = strlen(savehdr);
data/nmh-1.7.1/uip/post.c:1276:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (cp);
data/nmh-1.7.1/uip/post.c:1296:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		    strncat(savehdr, ", ", savehdrsize - shlen);
data/nmh-1.7.1/uip/post.c:1305: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(savehdr, cp, savehdrsize - shlen + len);
data/nmh-1.7.1/uip/post.c:1324: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).
	linepos += (nameoutput = strlen (name) + 2);
data/nmh-1.7.1/uip/post.c:1328:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (cp);
data/nmh-1.7.1/uip/post.c:1434: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).
    i = strlen (buffer);
data/nmh-1.7.1/uip/post.c:1447:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (pp += strlen (pp) - 1; pp > cp && isspace ((unsigned char) *pp); pp--)
data/nmh-1.7.1/uip/post.c:1475:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (bccfil, tfile, sizeof(bccfil));
data/nmh-1.7.1/uip/post.c:1624: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).
	    for (cp = buffer + strlen (buffer) - 1; cp >= buffer; cp--)
data/nmh-1.7.1/uip/post.c:1861:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (addr, mbox, sizeof(addr));
data/nmh-1.7.1/uip/post.c:1922:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((state = read (fd, buf, sizeof(buf))) > 0) {
data/nmh-1.7.1/uip/prompter.c:342:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (c = getchar ()) {
data/nmh-1.7.1/uip/rcvdist.c:155:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (~m_gmprot ());
data/nmh-1.7.1/uip/rcvdist.c:160:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, tfile, sizeof(tmpfil));
data/nmh-1.7.1/uip/rcvdist.c:168:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (drft, tfile, sizeof(tmpfil));
data/nmh-1.7.1/uip/rcvdist.c:244: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).
    format_len = strlen (cp);
data/nmh-1.7.1/uip/rcvtty.c:159:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (tty, utp->ut_line, sizeof(utp->ut_line));
data/nmh-1.7.1/uip/rcvtty.c:320:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((i = read (md, buffer, sizeof(buffer))) > 0)
data/nmh-1.7.1/uip/refile.c:190:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (maildir, m_maildir (folder), sizeof(maildir));
data/nmh-1.7.1/uip/refile.c:285:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (nmaildir, m_maildir (fp->f_name), sizeof(nmaildir));
data/nmh-1.7.1/uip/repl.c:365:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (drft, buildsw ? m_maildir ("reply")
data/nmh-1.7.1/uip/replsbr.c:72:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask(~m_gmprot());
data/nmh-1.7.1/uip/replsbr.c:76:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(mask);
data/nmh-1.7.1/uip/replsbr.c:80: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).
    format_len = strlen (cp);
data/nmh-1.7.1/uip/replsbr.c:256: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 ((len = strlen (str)) >= bufend - dst) {\
data/nmh-1.7.1/uip/replsbr.c:466: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).
		write(2, mhlproc, strlen(mhlproc)) < 0  ||
data/nmh-1.7.1/uip/replsbr.c:468: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).
		write(2, errstr, strlen(errstr)) < 0  ||
data/nmh-1.7.1/uip/replsbr.c:545: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).
            size_t len = strlen (display_name);
data/nmh-1.7.1/uip/rmf.c:100:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (newfolder, getfolder(0), sizeof(newfolder));
data/nmh-1.7.1/uip/rmf.c:102:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (newfolder, getfolder(0), sizeof(newfolder));
data/nmh-1.7.1/uip/rmf.c:222: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).
    plen = strlen (cp = m_mailpath (folder)) + 1;
data/nmh-1.7.1/uip/rmf.c:230: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).
		&& (j = strlen (np->n_name) - plen) > alen
data/nmh-1.7.1/uip/scansbr.c:77:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask(~m_gmprot());
data/nmh-1.7.1/uip/scansbr.c:188: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).
			for (cp = tmpbuf + strlen (tmpbuf) - 1; 
data/nmh-1.7.1/uip/scansbr.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).
		if ((i = strlen(tmpbuf)) < rlwidth) {
data/nmh-1.7.1/uip/sendsbr.c:125:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    if (rename (drft, strncpy(file, cp, sizeof(file))) == NOTOK)
data/nmh-1.7.1/uip/sendsbr.c:168:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		rename (drft, strncpy (buffer, m_backup (drft),
data/nmh-1.7.1/uip/sendsbr.c:244:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (subject, buffer, BUFSIZ);
data/nmh-1.7.1/uip/sendsbr.c:245: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).
			sublen = strlen (subject);
data/nmh-1.7.1/uip/sendsbr.c:295: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 ((pos += (len = strlen (buffer))) > CPERMSG) {
data/nmh-1.7.1/uip/sendsbr.c:334:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmpdrf, cp, sizeof(tmpdrf));
data/nmh-1.7.1/uip/sendsbr.c:368: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 ((pos += (len = strlen (buffer))) > CPERMSG) {
data/nmh-1.7.1/uip/sendsbr.c:541:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		    strncpy (buf, "\nMessage not delivered to anyone.\n", sizeof(buf));
data/nmh-1.7.1/uip/sendsbr.c:542: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).
		    if (write (out, buf, strlen (buf)) < 0) {
data/nmh-1.7.1/uip/sendsbr.c:545:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		    strncpy (buf, "\n------- Unsent Draft\n\n", sizeof(buf));
data/nmh-1.7.1/uip/sendsbr.c:546: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).
		    if (write (out, buf, strlen (buf)) < 0) {
data/nmh-1.7.1/uip/sendsbr.c:551:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		    strncpy (buf, "\n------- End of Unsent Draft\n", sizeof(buf));
data/nmh-1.7.1/uip/sendsbr.c:552: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).
		    if (write (out, buf, strlen (buf)) < 0) {
data/nmh-1.7.1/uip/sendsbr.c:555:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    if (rename (file, strncpy (buf, m_backup (file), sizeof(buf))) == NOTOK)
data/nmh-1.7.1/uip/show.c:472: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).
		    result = !check_charset (dp, strlen (dp));
data/nmh-1.7.1/uip/slocal.c:286:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (0077);
data/nmh-1.7.1/uip/slocal.c:756: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).
				    dp = cp + strlen (cp) - 1;
data/nmh-1.7.1/uip/slocal.c:850: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).
		s1 += strlen (s1);
data/nmh-1.7.1/uip/slocal.c:1022:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(folder, string, sizeof(folder));
data/nmh-1.7.1/uip/slocal.c:1167:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buffer, envelope + i, sizeof(buffer));
data/nmh-1.7.1/uip/slocal.c:1178: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).
    for (cp = buffer + strlen (buffer) - 1; cp >= buffer; cp--)
data/nmh-1.7.1/uip/slocal.c:1203:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, tfile, BUFSIZ);
data/nmh-1.7.1/uip/slocal.c:1206:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read (qd, buffer, sizeof(buffer))) > 0)
data/nmh-1.7.1/uip/slocal.c:1305:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buffer, cp, sizeof(buffer));
data/nmh-1.7.1/uip/slocal.c:1313: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).
    for (sp = bp + strlen(bp) - 1; sp >= bp; sp--) {
data/nmh-1.7.1/uip/slocal.c:1441: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).
		key.dsize = strlen (key.dptr) + 1;
data/nmh-1.7.1/uip/slocal.c:1472: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).
		    value.dsize = strlen(value.dptr) + 1;
data/nmh-1.7.1/uip/sortm.c:514:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (oldname, m_name (old), sizeof(oldname));
data/nmh-1.7.1/uip/sortm.c:548:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, m_name (mp->hghmsg + 1), sizeof(tmpfil));
data/nmh-1.7.1/uip/sortm.c:565:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (f1, m_name (old), sizeof(f1));
data/nmh-1.7.1/uip/viamail.c:155:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (~m_gmprot ());
data/nmh-1.7.1/uip/viamail.c:160:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpfil, tfile, sizeof(tmpfil));
data/nmh-1.7.1/uip/whatnowproc.c:76:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (bp);
data/nmh-1.7.1/uip/whatnowproc.c:83: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).
		    len = strlen (bp);
data/nmh-1.7.1/uip/whatnowsbr.c:431:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    	strncpy(file, shell, sizeof(file));
data/nmh-1.7.1/uip/whatnowsbr.c:553: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).
    int trailln = strlen(trailcmd) + 4;
data/nmh-1.7.1/uip/whatnowsbr.c:560: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).
	ln = strlen(*argp);
data/nmh-1.7.1/uip/whatnowsbr.c:673:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (altpath, altmsg, sizeof(altpath));
data/nmh-1.7.1/uip/whatnowsbr.c:677:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (linkpath, LINK, sizeof(linkpath));
data/nmh-1.7.1/uip/whatnowsbr.c:784:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((i = read (in, buffer, sizeof(buffer))) > OK)

ANALYSIS SUMMARY:

Hits = 1419
Lines analyzed = 78964 in approximately 2.70 seconds (29199 lines/second)
Physical Source Lines of Code (SLOC) = 52899
Hits@level = [0] 826 [1] 584 [2] 612 [3]  56 [4] 155 [5]  12
Hits@level+ = [0+] 2245 [1+] 1419 [2+] 835 [3+] 223 [4+] 167 [5+]  12
Hits/KSLOC@level+ = [0+] 42.4394 [1+] 26.8247 [2+] 15.7848 [3+] 4.21558 [4+] 3.15696 [5+] 0.226847
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.