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/munge-0.5.13/src/common/query.c
Examining data/munge-0.5.13/src/common/query.h
Examining data/munge-0.5.13/src/common/xgetgr.c
Examining data/munge-0.5.13/src/common/xgetgr.h
Examining data/munge-0.5.13/src/common/xgetpw.c
Examining data/munge-0.5.13/src/common/xgetpw.h
Examining data/munge-0.5.13/src/libcommon/common.h
Examining data/munge-0.5.13/src/libcommon/fd.c
Examining data/munge-0.5.13/src/libcommon/fd.h
Examining data/munge-0.5.13/src/libcommon/license.c
Examining data/munge-0.5.13/src/libcommon/license.h
Examining data/munge-0.5.13/src/libcommon/log.c
Examining data/munge-0.5.13/src/libcommon/log.h
Examining data/munge-0.5.13/src/libcommon/m_msg.c
Examining data/munge-0.5.13/src/libcommon/m_msg.h
Examining data/munge-0.5.13/src/libcommon/posignal.c
Examining data/munge-0.5.13/src/libcommon/posignal.h
Examining data/munge-0.5.13/src/libcommon/str.c
Examining data/munge-0.5.13/src/libcommon/str.h
Examining data/munge-0.5.13/src/libcommon/version.c
Examining data/munge-0.5.13/src/libcommon/version.h
Examining data/munge-0.5.13/src/libcommon/munge_defs.h
Examining data/munge-0.5.13/src/libmissing/getopt.c
Examining data/munge-0.5.13/src/libmissing/getopt.h
Examining data/munge-0.5.13/src/libmissing/getopt1.c
Examining data/munge-0.5.13/src/libmissing/inet_ntop.c
Examining data/munge-0.5.13/src/libmissing/inet_ntop.h
Examining data/munge-0.5.13/src/libmissing/missing.h
Examining data/munge-0.5.13/src/libmissing/strlcat.c
Examining data/munge-0.5.13/src/libmissing/strlcat.h
Examining data/munge-0.5.13/src/libmissing/strlcpy.c
Examining data/munge-0.5.13/src/libmissing/strlcpy.h
Examining data/munge-0.5.13/src/libmunge/auth_send.c
Examining data/munge-0.5.13/src/libmunge/auth_send.h
Examining data/munge-0.5.13/src/libmunge/ctx.c
Examining data/munge-0.5.13/src/libmunge/ctx.h
Examining data/munge-0.5.13/src/libmunge/decode.c
Examining data/munge-0.5.13/src/libmunge/encode.c
Examining data/munge-0.5.13/src/libmunge/enum.c
Examining data/munge-0.5.13/src/libmunge/m_msg_client.c
Examining data/munge-0.5.13/src/libmunge/m_msg_client.h
Examining data/munge-0.5.13/src/libmunge/munge.h
Examining data/munge-0.5.13/src/libmunge/strerror.c
Examining data/munge-0.5.13/src/munge/munge.c
Examining data/munge-0.5.13/src/munge/read.c
Examining data/munge-0.5.13/src/munge/read.h
Examining data/munge-0.5.13/src/munge/remunge.c
Examining data/munge-0.5.13/src/munge/unmunge.c
Examining data/munge-0.5.13/src/munged/auth_recv.c
Examining data/munge-0.5.13/src/munged/auth_recv.h
Examining data/munge-0.5.13/src/munged/base64.c
Examining data/munge-0.5.13/src/munged/base64.h
Examining data/munge-0.5.13/src/munged/base64_test.c
Examining data/munge-0.5.13/src/munged/cipher.c
Examining data/munge-0.5.13/src/munged/cipher.h
Examining data/munge-0.5.13/src/munged/conf.c
Examining data/munge-0.5.13/src/munged/conf.h
Examining data/munge-0.5.13/src/munged/cred.c
Examining data/munge-0.5.13/src/munged/cred.h
Examining data/munge-0.5.13/src/munged/crypto.c
Examining data/munge-0.5.13/src/munged/crypto.h
Examining data/munge-0.5.13/src/munged/dec.c
Examining data/munge-0.5.13/src/munged/dec.h
Examining data/munge-0.5.13/src/munged/enc.c
Examining data/munge-0.5.13/src/munged/enc.h
Examining data/munge-0.5.13/src/munged/gids.c
Examining data/munge-0.5.13/src/munged/gids.h
Examining data/munge-0.5.13/src/munged/hash.c
Examining data/munge-0.5.13/src/munged/hash.h
Examining data/munge-0.5.13/src/munged/job.c
Examining data/munge-0.5.13/src/munged/job.h
Examining data/munge-0.5.13/src/munged/mac.c
Examining data/munge-0.5.13/src/munged/mac.h
Examining data/munge-0.5.13/src/munged/md.c
Examining data/munge-0.5.13/src/munged/md.h
Examining data/munge-0.5.13/src/munged/munged.c
Examining data/munge-0.5.13/src/munged/path.c
Examining data/munge-0.5.13/src/munged/path.h
Examining data/munge-0.5.13/src/munged/random.c
Examining data/munge-0.5.13/src/munged/random.h
Examining data/munge-0.5.13/src/munged/replay.c
Examining data/munge-0.5.13/src/munged/replay.h
Examining data/munge-0.5.13/src/munged/thread.c
Examining data/munge-0.5.13/src/munged/thread.h
Examining data/munge-0.5.13/src/munged/timer.c
Examining data/munge-0.5.13/src/munged/timer.h
Examining data/munge-0.5.13/src/munged/work.c
Examining data/munge-0.5.13/src/munged/work.h
Examining data/munge-0.5.13/src/munged/zip.c
Examining data/munge-0.5.13/src/munged/zip.h

FINAL RESULTS:

data/munge-0.5.13/src/common/xgetgr.c:650:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    *dstp = strcpy (*bufp, src);
data/munge-0.5.13/src/common/xgetpw.c:498:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    *dstp = strcpy (*bufp, src);
data/munge-0.5.13/src/libcommon/log.c:118:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (log_ctx.id, p);
data/munge-0.5.13/src/libcommon/log.c:282:13:  [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.
        n = vsnprintf (p, len, format, vargs);
data/munge-0.5.13/src/libcommon/log.c:315:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (p, LOG_TRUNC_SUFFIX);
data/munge-0.5.13/src/libcommon/str.c:64: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 (buf, sizeof (buf), fmt, vargs);
data/munge-0.5.13/src/libcommon/str.c:107:9:  [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.
    n = vsnprintf (p, nleft, fmt, vargs);
data/munge-0.5.13/src/munge/remunge.c:1264:9:  [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.
    n = vsnprintf (p, len, format, vargs);
data/munge-0.5.13/src/munged/enc.c:697: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 ((char *) buf_ptr, MUNGE_CRED_PREFIX); /* strcpy() safe here */
data/munge-0.5.13/src/munged/enc.c:735: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 ((char *) buf_ptr, MUNGE_CRED_SUFFIX); /* strcpy() safe here */
data/munge-0.5.13/src/munged/path.c:298:16:  [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.
        (void) vsnprintf (buf, buflen, format, vargs);
data/munge-0.5.13/src/libcommon/log.c:373:37:  [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 ((status != EXIT_SUCCESS) && getenv ("DEBUG")) {
data/munge-0.5.13/src/libmissing/getopt.c:218:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/munge-0.5.13/src/libmissing/getopt.c:219: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.
extern char *getenv ();
data/munge-0.5.13/src/libmissing/getopt.c:404: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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/munge-0.5.13/src/libmissing/getopt.c:1194:1:  [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.
getopt (argc, argv, optstring)
data/munge-0.5.13/src/libmissing/getopt.c:1224:11:  [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.
      c = getopt (argc, argv, "abc:d:0123456789");
data/munge-0.5.13/src/libmissing/getopt.h:145:12:  [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.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/munge-0.5.13/src/libmissing/getopt.h:147:12:  [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.
extern int getopt ();
data/munge-0.5.13/src/libmissing/getopt.h:151:12:  [3] (buffer) getopt_long:
  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.
extern int getopt_long (int ___argc, char *const *___argv,
data/munge-0.5.13/src/libmissing/getopt.h:165:12:  [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.
extern int getopt ();
data/munge-0.5.13/src/libmissing/getopt.h:167:12:  [3] (buffer) getopt_long:
  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.
extern int getopt_long ();
data/munge-0.5.13/src/libmissing/getopt1.c:71:1:  [3] (buffer) getopt_long:
  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.
getopt_long (argc, argv, options, long_options, opt_index)
data/munge-0.5.13/src/libmissing/getopt1.c:98:18:  [3] (buffer) getopt_long:
  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.
libc_hidden_def (getopt_long)
data/munge-0.5.13/src/libmissing/getopt1.c:131:11:  [3] (buffer) getopt_long:
  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.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/munge-0.5.13/src/munge/munge.c:235:13:  [3] (buffer) getopt_long:
  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.
        c = getopt_long (argc, argv, short_opts, long_opts, NULL);
data/munge-0.5.13/src/munge/remunge.c:377:13:  [3] (buffer) getopt_long:
  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.
        c = getopt_long (argc, argv, short_opts, long_opts, NULL);
data/munge-0.5.13/src/munge/unmunge.c:323:13:  [3] (buffer) getopt_long:
  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.
        c = getopt_long (argc, argv, short_opts, long_opts, NULL);
data/munge-0.5.13/src/munged/conf.c:279:13:  [3] (buffer) getopt_long:
  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.
        c = getopt_long (argc, argv, short_opts, long_opts, NULL);
data/munge-0.5.13/src/munged/path.c:77:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (!realpath (src, buf)) {
data/munge-0.5.13/src/libcommon/fd.c:278: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 (iov, iov_orig, iov_mem_len);
data/munge-0.5.13/src/libcommon/fd.c:338:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            iov[i].iov_base = (char *) iov[i].iov_base + n;
data/munge-0.5.13/src/libcommon/log.c:69: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  id [LOG_IDENTITY_MAXLEN];
data/munge-0.5.13/src/libcommon/log.c:161: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 [LOG_BUFFER_MAXLEN];
data/munge-0.5.13/src/libcommon/log.c:176: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 [LOG_BUFFER_MAXLEN];
data/munge-0.5.13/src/libcommon/log.c:208: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 [LOG_BUFFER_MAXLEN];      /* message buffer                    */
data/munge-0.5.13/src/libcommon/m_msg.c:790: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, len);
data/munge-0.5.13/src/libcommon/m_msg.c:825: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 (dst, &u16, len);
data/munge-0.5.13/src/libcommon/m_msg.c:829: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 (dst, &u32, len);
data/munge-0.5.13/src/libcommon/m_msg.c:864: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 (&u16, src, len);
data/munge-0.5.13/src/libcommon/m_msg.c:868: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 (&u32, src, len);
data/munge-0.5.13/src/libcommon/str.c:57: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[MAX_STR_SIZE];
data/munge-0.5.13/src/libmunge/auth_send.c:97:19:  [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 ((file_fd= open (file_name, O_RDONLY | O_CREAT | O_EXCL, S_IRUSR)) <0) {
data/munge-0.5.13/src/libmunge/auth_send.c:107:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((pipe_fd = open (pipe_name, O_WRONLY)) < 0) {
data/munge-0.5.13/src/munge/munge.c:546: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).
        else if (!(conf->fp_in = fopen (conf->fn_in, "r"))) {
data/munge-0.5.13/src/munge/munge.c:555:35:  [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 (!(conf->fp_out = fopen (conf->fn_out, "w"))) {
data/munge-0.5.13/src/munge/remunge.c:1233: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/munge-0.5.13/src/munge/unmunge.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         key[MUNGE_KEY_LAST];   /* key flag array (true if enabled)  */
data/munge-0.5.13/src/munge/unmunge.c:522: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).
        else if (!(conf->fp_in = fopen (conf->fn_in, "r"))) {
data/munge-0.5.13/src/munge/unmunge.c:536:36:  [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 (!(conf->fp_meta = fopen (conf->fn_meta, "w"))) {
data/munge-0.5.13/src/munge/unmunge.c:553:35:  [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 (!(conf->fp_out = fopen (conf->fn_out, "w"))) {
data/munge-0.5.13/src/munge/unmunge.c:571: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_buf[INET_ADDRSTRLEN]; /* ip addr string buffer        */
data/munge-0.5.13/src/munge/unmunge.c:575: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            t_buf[MAX_TIME_STR];/* time string buffer                */
data/munge-0.5.13/src/munged/auth_recv.c:73: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         ebuf [1024];
data/munge-0.5.13/src/munged/auth_recv.c:158: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         dirdir [PATH_MAX];
data/munge-0.5.13/src/munged/auth_recv.c:159: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         ebuf [1024];
data/munge-0.5.13/src/munged/auth_recv.c:414:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((pipe_fd = open (pipe_name, O_RDONLY)) < 0) {
data/munge-0.5.13/src/munged/auth_recv.c:473:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int _ns_pipe (const char *name, int fds[2]);
data/munge-0.5.13/src/munged/auth_recv.c:550: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.
_ns_pipe (const char *name, int fd[2])
data/munge-0.5.13/src/munged/auth_recv.c:608:18:  [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[0] = open ("/dev/spx", O_RDWR)) < 0) {
data/munge-0.5.13/src/munged/auth_recv.c:611:18:  [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[1] = open ("/dev/spx", O_RDWR)) < 0) {
data/munge-0.5.13/src/munged/base64.c:75: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 asc2bin[256] = {
data/munge-0.5.13/src/munged/base64.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 (&x->buf[x->num], src, num_read);
data/munge-0.5.13/src/munged/base64.c:163: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 (&x->buf[x->num], src, srclen);
data/munge-0.5.13/src/munged/base64.c:395: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 a2b[256];
data/munge-0.5.13/src/munged/base64.c:397: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).
    col = (argc > 1) ? atoi (argv[1]) : BASE64_DEF_COLS;
data/munge-0.5.13/src/munged/base64.h:43: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       buf[3];
data/munge-0.5.13/src/munged/base64_test.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 buf[9];
data/munge-0.5.13/src/munged/cipher.c:311: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 (&(x->buf[x->len]), src, n_partial);
data/munge-0.5.13/src/munged/cipher.c:364: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 (x->buf, src, n_partial);
data/munge-0.5.13/src/munged/cipher.c:465: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 (dst, x->buf, n);
data/munge-0.5.13/src/munged/cipher.h:54: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       buf [MUNGE_MAXIMUM_BLK_LEN];
data/munge-0.5.13/src/munged/conf.c:556: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 buf[1024];
data/munge-0.5.13/src/munged/conf.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 hostname [MAXHOSTNAMELEN];
data/munge-0.5.13/src/munged/conf.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 ip_addr_buf [INET_ADDRSTRLEN];
data/munge-0.5.13/src/munged/conf.c:703: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         keydir [PATH_MAX];
data/munge-0.5.13/src/munged/conf.c:704: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         ebuf [1024];
data/munge-0.5.13/src/munged/conf.c:767: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 (keyfile, O_RDONLY)) < 0) {
data/munge-0.5.13/src/munged/cred.h:71: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       salt[MAX_SALT]; /* cryptographic seasoning salt      */
data/munge-0.5.13/src/munged/cred.h:73: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       mac[MAX_MAC];   /* message authentication code       */
data/munge-0.5.13/src/munged/cred.h:75: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       dek[MAX_DEK];   /* symmetric data encryption key     */
data/munge-0.5.13/src/munged/cred.h:77: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       iv[MAX_IV];     /* initialization vector             */
data/munge-0.5.13/src/munged/dec.c:487: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 (c->realm_mem, p, m->realm_len);
data/munge-0.5.13/src/munged/dec.c:507: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 (c->iv, p, c->iv_len);
data/munge-0.5.13/src/munged/dec.c:517: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 (c->mac, p, c->mac_len);
data/munge-0.5.13/src/munged/dec.c:647: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  mac[MAX_MAC];        /* message authentication code       */
data/munge-0.5.13/src/munged/dec.c:786: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 (c->salt, p, c->salt_len);
data/munge-0.5.13/src/munged/dec.c:815: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 (&m->addr, p, m->addr_len);
data/munge-0.5.13/src/munged/dec.c:827: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:840: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:853: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:866: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:879: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:892: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/dec.c:905: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 (&u, p, n);                  /* ensure proper byte-alignment */
data/munge-0.5.13/src/munged/enc.c:351: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 (p, m->realm_str, m->realm_len);
data/munge-0.5.13/src/munged/enc.c:355: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 (p, c->iv, c->iv_len);
data/munge-0.5.13/src/munged/enc.c:396: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 (p, c->salt, c->salt_len);
data/munge-0.5.13/src/munged/enc.c:404: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 (p, &conf->addr, sizeof (m->addr));
data/munge-0.5.13/src/munged/enc.c:409: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 (p, &u32, sizeof (m->time0));
data/munge-0.5.13/src/munged/enc.c:414: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 (p, &u32, sizeof (m->ttl));
data/munge-0.5.13/src/munged/enc.c:419: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 (p, &u32, sizeof (m->client_uid));
data/munge-0.5.13/src/munged/enc.c:424: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 (p, &u32, sizeof (m->client_gid));
data/munge-0.5.13/src/munged/enc.c:429: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 (p, &u32, sizeof (m->auth_uid));
data/munge-0.5.13/src/munged/enc.c:434: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 (p, &u32, sizeof (m->auth_gid));
data/munge-0.5.13/src/munged/enc.c:439: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 (p, &u32, sizeof (m->data_len));
data/munge-0.5.13/src/munged/enc.c:443: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 (p, m->data, m->data_len);
data/munge-0.5.13/src/munged/job.c:188:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_addr_buf [INET_ADDRSTRLEN];
data/munge-0.5.13/src/munged/mac.c:219: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 (dst, digest, x->diglen);
data/munge-0.5.13/src/munged/mac.c:267: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 (dst, digest, len);
data/munge-0.5.13/src/munged/md.c:260: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 (dst, digest, x->diglen);
data/munge-0.5.13/src/munged/munged.c:203: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        ebuf [1024];
data/munge-0.5.13/src/munged/munged.c:298: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).
    if ((dev_null = open ("/dev/null", O_RDWR)) < 0) {
data/munge-0.5.13/src/munged/munged.c:336: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         logdir [PATH_MAX];
data/munge-0.5.13/src/munged/munged.c:337: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         ebuf [1024];
data/munge-0.5.13/src/munged/munged.c:419: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 (logfile, "a");
data/munge-0.5.13/src/munged/munged.c:477: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    piddir [PATH_MAX];
data/munge-0.5.13/src/munged/munged.c:478: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    ebuf [1024];
data/munge-0.5.13/src/munged/munged.c:516: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 (pidfile, "w");
data/munge-0.5.13/src/munged/munged.c:578: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                sockdir [PATH_MAX];
data/munge-0.5.13/src/munged/munged.c:579: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                ebuf [1024];
data/munge-0.5.13/src/munged/path.c:70: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 [PATH_MAX];
data/munge-0.5.13/src/munged/path.c:132: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 [PATH_MAX];
data/munge-0.5.13/src/munged/path.c:189: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 [PATH_MAX];
data/munge-0.5.13/src/munged/random.c:255: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  buf [RANDOM_SOURCE_BYTES];
data/munge-0.5.13/src/munged/random.c:292:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (RANDOM_SOURCE_PATH, O_RDONLY | O_NONBLOCK);
data/munge-0.5.13/src/munged/random.c:356: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 dir [PATH_MAX];
data/munge-0.5.13/src/munged/random.c:357: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 ebuf [1024];
data/munge-0.5.13/src/munged/random.c:436: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 buf [RANDOM_SEED_BYTES];
data/munge-0.5.13/src/munged/random.c:453:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (path, O_RDONLY);
data/munge-0.5.13/src/munged/random.c:529: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  buf [RANDOM_SEED_BYTES];
data/munge-0.5.13/src/munged/random.c:539:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/munge-0.5.13/src/munged/replay.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      mac [MUNGE_MINIMUM_MD_LEN];  /* msg auth code     */
data/munge-0.5.13/src/common/xgetgr.c:569: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).
        num_bytes += strlen (*userp) + 1;
data/munge-0.5.13/src/common/xgetgr.c:572: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).
        num_bytes += strlen (src->gr_name) + 1;
data/munge-0.5.13/src/common/xgetgr.c:575: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).
        num_bytes += strlen (src->gr_passwd) + 1;
data/munge-0.5.13/src/common/xgetgr.c:646: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;
data/munge-0.5.13/src/common/xgetpw.c:414: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).
        num_bytes += strlen (src->pw_name) + 1;
data/munge-0.5.13/src/common/xgetpw.c:417: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).
        num_bytes += strlen (src->pw_passwd) + 1;
data/munge-0.5.13/src/common/xgetpw.c:420: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).
        num_bytes += strlen (src->pw_gecos) + 1;
data/munge-0.5.13/src/common/xgetpw.c:423: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).
        num_bytes += strlen (src->pw_dir) + 1;
data/munge-0.5.13/src/common/xgetpw.c:426: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).
        num_bytes += strlen (src->pw_shell) + 1;
data/munge-0.5.13/src/common/xgetpw.c:494: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;
data/munge-0.5.13/src/libcommon/fd.c:72:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((nread = read (fd, p, nleft)) < 0) {
data/munge-0.5.13/src/libcommon/fd.c:161:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read (fd, p, nleft);
data/munge-0.5.13/src/libcommon/fd.c:360:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((rc = read (fd, &c, 1)) == 1) {
data/munge-0.5.13/src/libcommon/log.c:117: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 (p) < sizeof (log_ctx.id)) {
data/munge-0.5.13/src/libcommon/log.c:228: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 ((!format) || (format [strlen (format) - 1] != '\n')) {
data/munge-0.5.13/src/libcommon/log.c:263: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).
                if ((m = LOG_PREFIX_MAXLEN + 1 - strlen (prefix)) < 0) {
data/munge-0.5.13/src/libcommon/log.c:312: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 (LOG_TRUNC_SUFFIX);
data/munge-0.5.13/src/libcommon/log.c:329:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (msgbuf, sbuf, msgbuflen);
data/munge-0.5.13/src/libcommon/log.c:367: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).
            (void) write (log_ctx.fd_daemonize, msg, strlen (msg) + 1);
data/munge-0.5.13/src/libcommon/m_msg.c:422: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).
        m->error_len = strlen (m->error_str) + 1;
data/munge-0.5.13/src/libmissing/getopt.c:241: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 (!defined __STDC__ || !__STDC__) && !defined strlen
data/munge-0.5.13/src/libmissing/getopt.c:244: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).
extern int strlen (const char *);
data/munge-0.5.13/src/libmissing/getopt.c:435: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 len = nonoption_flags_max_len = strlen (orig_str);
data/munge-0.5.13/src/libmissing/getopt.c:663:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/munge-0.5.13/src/libmissing/getopt.c:708: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).
	  nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:774: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).
		  nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:808: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).
		  nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:813: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).
	  nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:1000: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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/munge-0.5.13/src/libmissing/getopt.c:1040: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).
	    nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:1078: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).
		    nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:1110: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).
		    nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/getopt.c:1114: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).
	    nextchar += strlen (nextchar);
data/munge-0.5.13/src/libmissing/strlcat.c:48: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).
		return(dlen + strlen(s));
data/munge-0.5.13/src/libmunge/auth_send.c:260: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).
    dst_len = strlen (file_dir)
data/munge-0.5.13/src/libmunge/auth_send.c:262: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 (rnd_asc)
data/munge-0.5.13/src/libmunge/ctx.c:263: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).
            else if (strlen (str) > 255) {
data/munge-0.5.13/src/libmunge/decode.c:157: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).
    assert (strlen (cred) > 0);
data/munge-0.5.13/src/libmunge/decode.c:161: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).
    m->data_len = strlen (cred) + 1;
data/munge-0.5.13/src/libmunge/encode.c:139: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).
            m->realm_len = strlen (ctx->realm_str) + 1;
data/munge-0.5.13/src/libmunge/m_msg_client.c:198:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (addr.sun_path, path, sizeof (addr.sun_path));
data/munge-0.5.13/src/munge/munge.c:149: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).
    conf->clen = strlen (conf->cred);
data/munge-0.5.13/src/munge/read.c:162: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 (s);
data/munge-0.5.13/src/munge/read.c:171:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (p, s, n + 1);
data/munge-0.5.13/src/munge/unmunge.c:251: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 (key_val_to_str (i));
data/munge-0.5.13/src/munge/unmunge.c:587: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:607: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:632: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:656:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:667: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:678: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:690: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:702: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:709: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:716: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:730: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).
            w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:745: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).
            w = pad - strlen (s);
data/munge-0.5.13/src/munge/unmunge.c:752: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).
        w = pad - strlen (s);
data/munge-0.5.13/src/munged/auth_recv.c:571:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    omask = umask (0);
data/munge-0.5.13/src/munged/auth_recv.c:590:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask (omask);
data/munge-0.5.13/src/munged/auth_recv.c:593:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (omask);
data/munge-0.5.13/src/munged/auth_recv.c:683: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).
    dst_len = strlen (conf->auth_server_dir)
data/munge-0.5.13/src/munged/auth_recv.c:740: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).
    m->auth_s_len = strlen (m->auth_s_str) + 1;
data/munge-0.5.13/src/munged/auth_recv.c:743: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).
    m->auth_c_len = strlen (m->auth_c_str) + 1;
data/munge-0.5.13/src/munged/base64.c:412: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).
    for (i = strlen (bin2asc) - 1; i >= 0; i--)
data/munge-0.5.13/src/munged/base64_test.c:78: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 (n != strlen (dst))
data/munge-0.5.13/src/munged/base64_test.c:83:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (decode_block (buf, &n, dst, strlen (dst)) < 0)
data/munge-0.5.13/src/munged/base64_test.c:92: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 (n != strlen (dst))
data/munge-0.5.13/src/munged/base64_test.c:97: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 (decode_context (buf, &n, dst, strlen (dst)) < 0)
data/munge-0.5.13/src/munged/conf.c:595:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read (fd, buf, sizeof (buf));
data/munge-0.5.13/src/munged/dec.c:247: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 (MUNGE_CRED_PREFIX);
data/munge-0.5.13/src/munged/dec.c:248: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 (MUNGE_CRED_SUFFIX);
data/munge-0.5.13/src/munged/enc.c:681: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 (MUNGE_CRED_PREFIX);
data/munge-0.5.13/src/munged/enc.c:682: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 (MUNGE_CRED_SUFFIX);
data/munge-0.5.13/src/munged/munged.c:207:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (0);
data/munge-0.5.13/src/munged/munged.c:233:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((n = read (fds[0], &priority, sizeof (priority))) < 0) {
data/munge-0.5.13/src/munged/munged.c:238:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read (fds[0], ebuf, sizeof (ebuf))) < 0) {
data/munge-0.5.13/src/munged/munged.c:417:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask (0);
data/munge-0.5.13/src/munged/munged.c:418:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask | 027);
data/munge-0.5.13/src/munged/munged.c:420:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask);
data/munge-0.5.13/src/munged/munged.c:513:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask (0);
data/munge-0.5.13/src/munged/munged.c:514:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask | 022);
data/munge-0.5.13/src/munged/munged.c:517:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask);
data/munge-0.5.13/src/munged/munged.c:639:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask (0);
data/munge-0.5.13/src/munged/munged.c:641:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask);
data/munge-0.5.13/src/munged/munged.c:701:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask (0);
data/munge-0.5.13/src/munged/munged.c:703:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (mask);
data/munge-0.5.13/src/munged/path.c:105: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 (p = dst + strlen (dst) - 1; p >= dst; p--) {

ANALYSIS SUMMARY:

Hits = 221
Lines analyzed = 24954 in approximately 0.77 seconds (32580 lines/second)
Physical Source Lines of Code (SLOC) = 15916
Hits@level = [0] 184 [1]  88 [2] 103 [3]  19 [4]  11 [5]   0
Hits@level+ = [0+] 405 [1+] 221 [2+] 133 [3+]  30 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 25.4461 [1+] 13.8854 [2+] 8.35637 [3+] 1.8849 [4+] 0.691128 [5+]   0
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.