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/nss-pam-ldapd-0.9.11/nslcd/log.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/daemonize.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/daemonize.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/network.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/shadow.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/rpc.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/nsswitch.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/attmap.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/invalidator.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/protocol.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/group.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/alias.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/pam.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/common.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/host.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/cfg.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/myldap.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/cfg.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/usermod.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/passwd.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/config.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/service.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/attmap.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/myldap.h
Examining data/nss-pam-ldapd-0.9.11/nslcd/ether.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/log.c
Examining data/nss-pam-ldapd-0.9.11/nslcd/common.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_expr.c
Examining data/nss-pam-ldapd-0.9.11/tests/lookup_netgroup.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_dict.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_tio.c
Examining data/nss-pam-ldapd-0.9.11/tests/common.h
Examining data/nss-pam-ldapd-0.9.11/tests/test_clock.c
Examining data/nss-pam-ldapd-0.9.11/tests/lookup_shadow.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_set.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_common.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_attmap.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_getpeercred.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_tio_timeout.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_cfg.c
Examining data/nss-pam-ldapd-0.9.11/tests/test_myldap.c
Examining data/nss-pam-ldapd-0.9.11/tests/lookup_groupbyuser.c
Examining data/nss-pam-ldapd-0.9.11/pam/pam.c
Examining data/nss-pam-ldapd-0.9.11/pam/common.h
Examining data/nss-pam-ldapd-0.9.11/compat/ether.h
Examining data/nss-pam-ldapd-0.9.11/compat/attrs.h
Examining data/nss-pam-ldapd-0.9.11/compat/pam_get_authtok.c
Examining data/nss-pam-ldapd-0.9.11/compat/nss_compat.h
Examining data/nss-pam-ldapd-0.9.11/compat/ldap_passwd_s.c
Examining data/nss-pam-ldapd-0.9.11/compat/strndup.h
Examining data/nss-pam-ldapd-0.9.11/compat/derefctrl.c
Examining data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c
Examining data/nss-pam-ldapd-0.9.11/compat/ldap_passwordpolicy_err2txt.c
Examining data/nss-pam-ldapd-0.9.11/compat/getopt_long.h
Examining data/nss-pam-ldapd-0.9.11/compat/pagectrl.c
Examining data/nss-pam-ldapd-0.9.11/compat/socket.h
Examining data/nss-pam-ldapd-0.9.11/compat/pam_compat.h
Examining data/nss-pam-ldapd-0.9.11/compat/getopt_long.c
Examining data/nss-pam-ldapd-0.9.11/compat/getpeercred.c
Examining data/nss-pam-ldapd-0.9.11/compat/ldap_compat.h
Examining data/nss-pam-ldapd-0.9.11/compat/pam_prompt.c
Examining data/nss-pam-ldapd-0.9.11/compat/ldap_parse_passwordpolicy_control.c
Examining data/nss-pam-ldapd-0.9.11/compat/strndup.c
Examining data/nss-pam-ldapd-0.9.11/compat/shell.h
Examining data/nss-pam-ldapd-0.9.11/compat/getpeercred.h
Examining data/nss-pam-ldapd-0.9.11/compat/ether.c
Examining data/nss-pam-ldapd-0.9.11/nss/ethers.c
Examining data/nss-pam-ldapd-0.9.11/nss/bsdnss.c
Examining data/nss-pam-ldapd-0.9.11/nss/shadow.c
Examining data/nss-pam-ldapd-0.9.11/nss/rpc.c
Examining data/nss-pam-ldapd-0.9.11/nss/networks.c
Examining data/nss-pam-ldapd-0.9.11/nss/services.c
Examining data/nss-pam-ldapd-0.9.11/nss/hosts.c
Examining data/nss-pam-ldapd-0.9.11/nss/group.c
Examining data/nss-pam-ldapd-0.9.11/nss/common.h
Examining data/nss-pam-ldapd-0.9.11/nss/protocols.c
Examining data/nss-pam-ldapd-0.9.11/nss/netgroup.c
Examining data/nss-pam-ldapd-0.9.11/nss/passwd.c
Examining data/nss-pam-ldapd-0.9.11/nss/solnss.c
Examining data/nss-pam-ldapd-0.9.11/nss/aliases.c
Examining data/nss-pam-ldapd-0.9.11/nss/prototypes.h
Examining data/nss-pam-ldapd-0.9.11/nss/common.c
Examining data/nss-pam-ldapd-0.9.11/nss/solnss.h
Examining data/nss-pam-ldapd-0.9.11/nslcd.h
Examining data/nss-pam-ldapd-0.9.11/common/tio.c
Examining data/nss-pam-ldapd-0.9.11/common/set.h
Examining data/nss-pam-ldapd-0.9.11/common/dict.c
Examining data/nss-pam-ldapd-0.9.11/common/nslcd-prot.h
Examining data/nss-pam-ldapd-0.9.11/common/dict.h
Examining data/nss-pam-ldapd-0.9.11/common/set.c
Examining data/nss-pam-ldapd-0.9.11/common/tio.h
Examining data/nss-pam-ldapd-0.9.11/common/expr.c
Examining data/nss-pam-ldapd-0.9.11/common/expr.h
Examining data/nss-pam-ldapd-0.9.11/common/nslcd-prot.c

FINAL RESULTS:

data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:312:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod(filename, (mode_t)0666))
data/nss-pam-ldapd-0.9.11/tests/test_common.c:60:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  (void)chmod(fname, (mode_t)0660);
data/nss-pam-ldapd-0.9.11/common/dict.c:236:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(buf, key);
data/nss-pam-ldapd-0.9.11/common/dict.c:282: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(buf, entry->key);
data/nss-pam-ldapd-0.9.11/common/expr.c:104:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, varvalue);
data/nss-pam-ldapd-0.9.11/common/expr.c:243: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(buffer, varvalue);
data/nss-pam-ldapd-0.9.11/common/expr.c:287:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, varvalue);
data/nss-pam-ldapd-0.9.11/compat/pam_compat.h:88:5:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
    syslog(LOG_AUTHPRIV|(priority), ##format)
data/nss-pam-ldapd-0.9.11/compat/pam_prompt.c:46:3:  [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), format, ap);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:511: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(path, R_OK) != 0)
data/nss-pam-ldapd-0.9.11/nslcd/common.c:54: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.
  res = vsnprintf(buffer, buflen, format, ap);
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:88:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    buffer += sprintf(buffer, compact ? "%x" : "%02x", addr[i]);
data/nss-pam-ldapd-0.9.11/nslcd/invalidator.c:111:7:  [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/nss-pam-ldapd-0.9.11/nslcd/log.c:223:3:  [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(requestid, MAX_REQUESTID_LENGTH, format, ap);
data/nss-pam-ldapd-0.9.11/nslcd/log.c:243: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.
  res = vsnprintf(buffer, sizeof(buffer), format, ap);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:170:3:  [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(message, sizeof(message), format, ap);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:278: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(buffer, base);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:284: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(buffer, filter);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:290:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, attrs[i]);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1789:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, dn);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2185:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, value);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2288: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(buffer, a->vals[i].bv_val);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2304: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(buffer, d->derefVal.bv_val);
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:307: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(username, value);
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:461: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(password, nslcd_cfg->rootpwmodpw);
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:843: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(oldpassword, nslcd_cfg->rootpwmodpw);
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:262: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(buf, values[0]);
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:305:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buf, cacheentry->uid);
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:249: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(password, nslcd_cfg->rootpwmodpw);
data/nss-pam-ldapd-0.9.11/nss/ethers.c:143: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(args->buf.buffer, result.e_name);
data/nss-pam-ldapd-0.9.11/compat/getopt_long.c:34:5:  [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.
int getopt_long(int argc, char *const argv[],
data/nss-pam-ldapd-0.9.11/compat/getopt_long.c:89:10:  [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.
  return getopt(argc, argv, optstring);
data/nss-pam-ldapd-0.9.11/compat/getopt_long.h:44:5:  [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.
int getopt_long(int argc, char *const argv[],
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1752: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.
  str = getenv("KRB5CCNAME");
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:157: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.
  while ((optc = getopt_long(argc, argv, NSLCD_OPTIONSTRING, nslcd_options, NULL)) != -1)
data/nss-pam-ldapd-0.9.11/tests/test_common.c:53: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.
  srcdir = getenv("srcdir");
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:186: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.
  srcdir = getenv("srcdir");
data/nss-pam-ldapd-0.9.11/tests/test_myldap.c:421: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.
  srcdir = getenv("srcdir");
data/nss-pam-ldapd-0.9.11/common/expr.c:169: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(buffer, varvalue + offset, length);
data/nss-pam-ldapd-0.9.11/common/expr.c:217: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(buffer, vp, vallen);
data/nss-pam-ldapd-0.9.11/common/expr.c:225: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 varname[MAXVARLENGTH];
data/nss-pam-ldapd-0.9.11/common/expr.c:338: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 varname[MAXVARLENGTH];
data/nss-pam-ldapd-0.9.11/common/tio.c:213:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(ptr, fp->readbuffer.buffer + fp->readbuffer.start, count);
data/nss-pam-ldapd-0.9.11/common/tio.c:225: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(ptr, fp->readbuffer.buffer + fp->readbuffer.start,
data/nss-pam-ldapd-0.9.11/common/tio.c:433:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(fp->writebuffer.buffer + fp->writebuffer.start +
data/nss-pam-ldapd-0.9.11/common/tio.c:441:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(fp->writebuffer.buffer + fp->writebuffer.start +
data/nss-pam-ldapd-0.9.11/compat/ether.c:45: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(addr, tmp, sizeof(struct ether_addr));
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:38: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 host[80];
data/nss-pam-ldapd-0.9.11/compat/pam_get_authtok.c:44: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 retype_prompt[80];
data/nss-pam-ldapd-0.9.11/compat/pam_prompt.c:36: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 buffer[200];
data/nss-pam-ldapd-0.9.11/nslcd/alias.c:47: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.
const char *alias_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/alias.c:60: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 *alias_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/alias.c:67: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/alias.c:125: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/alias.c:126: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:146: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 token[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:176: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:180:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(token);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:204: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:253: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:277: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:318: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:368: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 scheme[64];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:369: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 loglevel[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:428: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[BUFLEN_HOSTNAME + sizeof("ldap://")];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:541: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 token[80];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:617: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:703: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:747: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 token[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:805: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 oldatt[32], *newatt;
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:848: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 token[16];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:895: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 token[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1081: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 token[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1115: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 cache[16];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1266: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[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1268: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 keyword[32];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1269: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 token[256];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1276: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 ((fp = fopen(filename, "r")) == NULL)
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1651: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[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1655: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 ((fp = fopen(filename, "r")) == NULL)
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1712: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 buffer[1024];
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1875: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(buffer + sizeof(buffer) - 4, "...");
data/nss-pam-ldapd-0.9.11/nslcd/cfg.h:105: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.
  const char *bases[NSS_LDAP_CONFIG_MAX_BASES]; /* search bases */
data/nss-pam-ldapd-0.9.11/nslcd/cfg.h:136: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 *pam_authz_searches[NSS_LDAP_CONFIG_MAX_AUTHZ_SEARCHES]; /* the searches that should be performed to do autorisation checks */
data/nss-pam-ldapd-0.9.11/nslcd/cfg.h:138: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 reconnect_invalidate[LM_NONE];  /* set to 1 if the corresponding map should be invalidated */
data/nss-pam-ldapd-0.9.11/nslcd/common.c:121: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 hostname[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/common.c:308:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(res, "\\%02x\\%02x", (unsigned int)l & 0xff, (unsigned int)i);
data/nss-pam-ldapd-0.9.11/nslcd/common.c:311:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(res + strlen(res), "\\00\\00\\%02x\\%02x\\%02x\\%02x",
data/nss-pam-ldapd-0.9.11/nslcd/common.c:320:5:  [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(res + strlen(res), "\\%02x\\%02x\\%02x\\%02x",
data/nss-pam-ldapd-0.9.11/nslcd/daemonize.c:64:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  (void)open("/dev/null", O_RDWR);  /* stdin, fd=0 */
data/nss-pam-ldapd-0.9.11/nslcd/daemonize.c:96: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 buffer[1024];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:49: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.
const char *ether_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:62: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 *ether_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:69: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 safename[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:96: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 addrstr1[20], addrstr2[20];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:131: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.
  const char *tmparr[2];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:174: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 name[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:175: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:185: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 addrstr[20];
data/nss-pam-ldapd-0.9.11/nslcd/ether.c:186: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:56: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.
const char *group_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/group.c:94: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:138: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 dn[BUFLEN_DN];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:139: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 safeuid[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:140: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 safedn[BUFLEN_SAFEDN];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:168: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 safedn[BUFLEN_SAFEDN];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:263: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[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:332: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 passbuffer[BUFLEN_PASSWORDHASH];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:433: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:434: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:449: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:465: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/group.c:466: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:50: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.
const char *host_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/host.c:63: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 *host_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:69: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 safename[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:84: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 safeaddr[64];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:157: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 name[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:158: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:168: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 addr[64];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:170: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 addrstr[64];
data/nss-pam-ldapd-0.9.11/nslcd/host.c:171: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/invalidator.c:69: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 *argv[4];
data/nss-pam-ldapd-0.9.11/nslcd/invalidator.c:70: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 cmdline[80];
data/nss-pam-ldapd-0.9.11/nslcd/log.c:118:8:  [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(filename, "a");
data/nss-pam-ldapd-0.9.11/nslcd/log.c:192:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sessionid, "%06x", (int)(rand() & 0xffffff));
data/nss-pam-ldapd-0.9.11/nslcd/log.c:233: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 buffer[512];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:99: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 binddn[BUFLEN_DN];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:101: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 bindpw[BUFLEN_PASSWORD];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:105: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 policy_message[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:153: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 **attributevalues[MAX_ATTRIBUTES_PER_ENTRY];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char **buffers[MAX_BUFFERS_PER_ENTRY];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:163: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 message[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:491: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 seconds[32];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:495:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sec = atol(seconds);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1133:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[2];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1177: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 *deref_attrs[2];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1802: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.
  const char *attrs[2];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1806: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 attbuf[80];
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1830: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).
        nxt = atoi(attn + strlen(attbuf) - 1) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1994: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(values[i], bvalues[i]->bv_val, bvalues[i]->bv_len);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2315:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        size += sizeof(char *) * (counts[i] + 1);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2331:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        buffer += sizeof(char *) * (counts[i] + 1);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2376:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + pos, "\\2a");
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2380:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + pos, "\\28");
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2384:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + pos, "\\29");
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2388:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + pos, "\\5c");
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:49: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.
const char *netgroup_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:63: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 *netgroup_attrs[4];
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:68: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:243: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:244: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:48: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.
const char *network_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/network.c:61: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 *network_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:68: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 safename[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:83: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 safeaddr[64];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:156: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 name[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:157: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:167: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 addr[64];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:169: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 addrstr[64];
data/nss-pam-ldapd-0.9.11/nslcd/network.c:170: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:359: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 peerinfo[80];
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:457: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(filename, O_RDWR, 0644)) < 0)
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:480: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 buffer[20];
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:484: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(filename, O_RDWR | O_CREAT, 0644)) < 0)
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:669: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 ((oom_adj_fd = open(OOM_SCORE_ADJ_FILE, O_WRONLY)) >= 0)
data/nss-pam-ldapd-0.9.11/nslcd/nsswitch.c:135: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[MAX_LINE_LENGTH];
data/nss-pam-ldapd-0.9.11/nslcd/nsswitch.c:140: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 ((fp = fopen(NSSWITCH_FILE, "r")) == NULL)
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:71: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 hostname[BUFLEN_HOSTNAME];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:137:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[2];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:179:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[2];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:183: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:419: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 username[BUFLEN_NAME], service[BUFLEN_NAME], ruser[BUFLEN_NAME], rhost[BUFLEN_HOSTNAME], tty[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:420: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 password[BUFLEN_PASSWORD];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:424: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 authzmsg[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:514: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:554: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 username[BUFLEN_NAME], service[BUFLEN_NAME], ruser[BUFLEN_NAME], rhost[BUFLEN_HOSTNAME], tty[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:556: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 authzmsg[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:606: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 username[BUFLEN_NAME], service[BUFLEN_NAME], ruser[BUFLEN_NAME], rhost[BUFLEN_HOSTNAME], tty[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:607: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 sessionid[25];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:639: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 username[BUFLEN_NAME], service[BUFLEN_NAME], ruser[BUFLEN_NAME], rhost[BUFLEN_HOSTNAME], tty[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:640: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 sessionid[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:668:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:673: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 buffer[64], *strvals[2];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:736: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 buffer[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:778:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char username[BUFLEN_NAME], service[BUFLEN_NAME], ruser[BUFLEN_NAME], rhost[BUFLEN_HOSTNAME], tty[64];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:780: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 oldpassword[BUFLEN_PASSWORD];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:781: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 newpassword[BUFLEN_PASSWORD];
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:784: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 authzmsg[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:50: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.
const char *passwd_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:90: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:230:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:363:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:364: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:426: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 gidbuf[32];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:428: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 gecos[1024];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:429: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 homedir[256];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:430: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 shell[64];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:431: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 passbuffer[BUFLEN_PASSWORDHASH];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:578: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:579: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:595: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:50: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.
const char *protocol_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:63: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 *protocol_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:68: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:173: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:174: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/protocol.c:184: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:52: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.
const char *rpc_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:65: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 *rpc_attrs[3];
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:69: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:171: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:172: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/rpc.c:182: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:52: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.
const char *service_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/service.c:66: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 *service_attrs[4];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:71: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 safename[BUFLEN_SAFENAME], safeprotocol[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:98: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 safeprotocol[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:216: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:217: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 protocol[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:218: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:230: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 protocol[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/service.c:231: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:48: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.
const char *shadow_bases[NSS_LDAP_CONFIG_MAX_BASES] = { NULL };
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:75: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 safename[BUFLEN_SAFENAME];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:120: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 buffer[32];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:197: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 buffer[64];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:236: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 passbuffer[BUFLEN_PASSWORDHASH];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:285: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:316: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 name[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:317: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 filter[BUFLEN_FILTER];
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:144: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 *strvals[(NUMARGS + 1) * 2];
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:160: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 username[BUFLEN_NAME];
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:162: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 password[BUFLEN_PASSWORD];
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:164: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 buffer[4096];
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:174: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 errmsg[BUFLEN_MESSAGE];
data/nss-pam-ldapd-0.9.11/nss/bsdnss.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 buffer[BUFFER_SIZE];
data/nss-pam-ldapd-0.9.11/nss/bsdnss.c:130: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 buffer[BUFFER_SIZE];
data/nss-pam-ldapd-0.9.11/nss/bsdnss.c:152: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 buffer[BUFFER_SIZE];
data/nss-pam-ldapd-0.9.11/nss/common.c:29: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 *NSS_NAME(version)[3] = { PACKAGE, VERSION, NULL };
data/nss-pam-ldapd-0.9.11/nss/ethers.c:119: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 buffer[NSS_BUFLEN_ETHERS];
data/nss-pam-ldapd-0.9.11/nss/ethers.c:148: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(args->buf.result, &result.e_addr, sizeof(result.e_addr));
data/nss-pam-ldapd-0.9.11/pam/pam.c:61: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 msg[1024];
data/nss-pam-ldapd-0.9.11/pam/pam.c:187:33:  [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).
      cfg->minimum_uid = (uid_t)atoi(argv[i] + 12);
data/nss-pam-ldapd-0.9.11/tests/common.h:72: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 msg[120];
data/nss-pam-ldapd-0.9.11/tests/test_cfg.c:198:8:  [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("temp.cfg", "w");
data/nss-pam-ldapd-0.9.11/tests/test_common.c:51: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 fname[100];
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:82: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[80];
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:92:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "test%04d", r);
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:99:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "test%04d", r);
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:106:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "test%04d", r);
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:125: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[80];
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:133:8:  [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(fname, "r");
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:157: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[80];
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:166:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%04dx%04d", i, r);
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:184: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 fname[100];
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:188:5:  [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(fname, "usernames.txt");
data/nss-pam-ldapd-0.9.11/tests/test_expr.c:37: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 buffer[20];
data/nss-pam-ldapd-0.9.11/tests/test_expr.c:64: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 buffer[1024];
data/nss-pam-ldapd-0.9.11/tests/test_expr.c:130: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 buffer[10];
data/nss-pam-ldapd-0.9.11/tests/test_myldap.c:209: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[80];
data/nss-pam-ldapd-0.9.11/tests/test_myldap.c:373: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 *old_uris[NSS_LDAP_CONFIG_MAX_URIS + 1];
data/nss-pam-ldapd-0.9.11/tests/test_myldap.c:407: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 buffer[1024];
data/nss-pam-ldapd-0.9.11/tests/test_myldap.c:418: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 fname[100];
data/nss-pam-ldapd-0.9.11/common/dict.c:230:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(key) + 1;
data/nss-pam-ldapd-0.9.11/common/dict.c:265: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).
      sz += strlen(entry->key) + 1;
data/nss-pam-ldapd-0.9.11/common/dict.c:284:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buf += strlen(buf) + 1;
data/nss-pam-ldapd-0.9.11/common/expr.c:102: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(varvalue) >= buflen)
data/nss-pam-ldapd-0.9.11/common/expr.c:160: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).
  varlen = strlen(varvalue);
data/nss-pam-ldapd-0.9.11/common/expr.c:215: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 ((vallen = strlen(vp) + 1) > buflen)
data/nss-pam-ldapd-0.9.11/common/expr.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).
      if (strlen(varvalue) >= buflen)
data/nss-pam-ldapd-0.9.11/common/expr.c:285: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(varvalue) >= buflen)
data/nss-pam-ldapd-0.9.11/common/expr.c:309: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).
        j = strlen(buffer);
data/nss-pam-ldapd-0.9.11/common/nslcd-prot.c:73:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(addr.sun_path, NSLCD_SOCKET, sizeof(addr.sun_path));
data/nss-pam-ldapd-0.9.11/common/nslcd-prot.h:107: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_INT32(fp, strlen(str));                                           \
data/nss-pam-ldapd-0.9.11/common/tio.c:270:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(fp->fd, fp->readbuffer.buffer + fp->readbuffer.start, len);
data/nss-pam-ldapd-0.9.11/common/tio.c:315:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(fp->fd, fp->readbuffer.buffer, len);
data/nss-pam-ldapd-0.9.11/compat/getopt_long.c:48: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).
      l = strlen(longopts[i].name);
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:42:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(host, url + 7, sizeof(host));
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:47:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(host, url + 8, sizeof(host));
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:56:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(host) > 0) && (host[strlen(host) - 1] == '/'))
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:56: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 ((strlen(host) > 0) && (host[strlen(host) - 1] == '/'))
data/nss-pam-ldapd-0.9.11/compat/ldap_initialize.c:57: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).
    host[strlen(host) - 1] = '\0';
data/nss-pam-ldapd-0.9.11/compat/pam_get_authtok.c:83: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).
  memset(passwd, 0, strlen(passwd));
data/nss-pam-ldapd-0.9.11/compat/pam_get_authtok.c:87: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).
    memset(retype_passwd, 0, strlen(retype_passwd));
data/nss-pam-ldapd-0.9.11/compat/socket.h:31: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).
#define SUN_LEN(addr) (sizeof((addr)->sun_family) + strlen((addr)->sun_path) + 1)
data/nss-pam-ldapd-0.9.11/compat/strndup.c:37:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result, s, size);
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:277: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(values[0]) >= buflen)
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:280: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).
              (unsigned long) strlen(values[0]));
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:283:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, values[0], buflen);
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:289: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 ((attr[strlen(attr) - 1] != '"') ||
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:297: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 (buffer[strlen(buffer) - 1] == '"')
data/nss-pam-ldapd-0.9.11/nslcd/attmap.c:298: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).
    buffer[strlen(buffer) - 1] = '\0';
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:134:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, *line, len);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:455: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).
    if ((strlen(hostlist) > 4) && (strcmp(hostlist + strlen(hostlist) - 4, ":636") == 0))
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:455: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).
    if ((strlen(hostlist) > 4) && (strcmp(hostlist + strlen(hostlist) - 4, ":636") == 0))
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:457: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).
      hostlist[strlen(hostlist) - 4] = '\0';
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:461: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).
                (unsigned long) strlen(hostlist) + 8);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:468:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((strlen(hostlist) > 4) && (strcmp(hostlist + strlen(hostlist) - 4, ":389") == 0))
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:468: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 ((strlen(hostlist) > 4) && (strcmp(hostlist + strlen(hostlist) - 4, ":389") == 0))
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:469: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).
        hostlist[strlen(hostlist) - 4] = '\0';
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:473: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).
                (unsigned long) strlen(hostlist) + 7);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:564: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).
  ccenvlen = strlen(ccname) + sizeof("KRB5CCNAME=");
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:958:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(value);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1068:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(value);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1288: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).
    i = (int)strlen(line);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1678: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).
  i = (int)strlen(linebuf);
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1685:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(linebuf) == 0)
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1870:9:  [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 character.
        strncat(buffer, ",", sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1870: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).
        strncat(buffer, ",", sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1871: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.
      strncat(buffer, strp[i], sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1871: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).
      strncat(buffer, strp[i], sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1874: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(buffer) >= (sizeof(buffer) - 4))
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1898:9:  [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 character.
        strncat(buffer, ",", sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1898: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).
        strncat(buffer, ",", sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1899: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.
      strncat(buffer, print_map(i), sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/cfg.c:1899:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(buffer, print_map(i), sizeof(buffer) - 1 - strlen(buffer));
data/nss-pam-ldapd-0.9.11/nslcd/common.c:134: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).
  hostnamelen = strlen(hostname);
data/nss-pam-ldapd-0.9.11/nslcd/common.c:311: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).
  sprintf(res + strlen(res), "\\00\\00\\%02x\\%02x\\%02x\\%02x",
data/nss-pam-ldapd-0.9.11/nslcd/common.c:320: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).
    sprintf(res + strlen(res), "\\%02x\\%02x\\%02x\\%02x",
data/nss-pam-ldapd-0.9.11/nslcd/daemonize.c:76:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read(fd, buffer + r, bufsz - r);
data/nss-pam-ldapd-0.9.11/nslcd/daemonize.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).
      l = strlen(message);
data/nss-pam-ldapd-0.9.11/nslcd/invalidator.c:166:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    i = read(fd, &c, sizeof(uint8_t));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:256: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).
  sz += strlen(base) + 1 + strlen(filter) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:256: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).
  sz += strlen(base) + 1 + strlen(filter) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:258: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).
    sz += strlen(attrs[i]) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:280: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).
  buffer += strlen(base) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:286: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).
  buffer += strlen(filter) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:292: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).
    buffer += strlen(attrs[i]) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:357: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).
          interact->len = strlen(cfg->sasl_realm);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:368: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).
          interact->len = strlen(cfg->sasl_authcid);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:379: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).
          interact->len = strlen(cfg->sasl_authzid);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:389: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).
          interact->len = strlen(cfg->bindpw);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:419:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(session->policy_message) != 0)
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:476: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(session->policy_message, "", sizeof(session->policy_message));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:558: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 ((expire >= 0) && (strlen(session->policy_message) == 0))
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:564: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).
        else if ((grace >= 0) && (strlen(session->policy_message) == 0))
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:601: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).
  cred.bv_len = strlen(session->bindpw);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:734: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).
      cred.bv_len = strlen(nslcd_cfg->bindpw);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:785: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(*passwdp, 0, strlen(*passwdp));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1136:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(dn) >= sizeof(session->binddn))
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1139: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).
            (unsigned long) strlen(dn));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1142:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(password) >= sizeof(session->bindpw))
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1145: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).
            (unsigned long) strlen(password));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1149:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(session->binddn, dn, sizeof(session->binddn));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1151:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(session->bindpw, password, sizeof(session->bindpw));
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1788:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(dn) < buflen)
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1815: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).
            (unsigned long) strlen(attr) + 10);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1827: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 (strncasecmp(attn, attbuf, strlen(attbuf) - 1) == 0)
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:1830: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).
        nxt = atoi(attn + strlen(attbuf) - 1) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2083:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(attr);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2184: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 ((value != NULL) && (strlen(value) < buflen))
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2284: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).
                sizes[0] += strlen(a->vals[i].bv_val) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2290: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).
                buffer += strlen(buffer) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2300: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).
            sizes[1] += strlen(d->derefVal.bv_val) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2306: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).
            buffer += strlen(buffer) + 1;
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2463: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).
  ber_userdn.bv_len = strlen(userdn);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2465: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).
  ber_newpassword.bv_len = strlen(newpasswd);
data/nss-pam-ldapd-0.9.11/nslcd/myldap.c:2482: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).
    ber_oldpassword.bv_len = strlen(oldpassword);
data/nss-pam-ldapd-0.9.11/nslcd/netgroup.c:124:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  WRITE_STRING_STRIPSPACE_LEN(fp, str, strlen(str))
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:288:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(addr.sun_path, filename, sizeof(addr.sun_path));
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:367: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).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:367:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:370: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).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:370:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:373: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).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:373:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      mysnprintf(peerinfo + strlen(peerinfo), sizeof(peerinfo) - strlen(peerinfo) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:503: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 (write(fd, buffer, strlen(buffer)) != (int)strlen(buffer))
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:503: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 (write(fd, buffer, strlen(buffer)) != (int)strlen(buffer))
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:671: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 (write(oom_adj_fd, OOM_SCORE_ADJ, strlen(OOM_SCORE_ADJ)) < 0)
data/nss-pam-ldapd-0.9.11/nslcd/nslcd.c:726:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  (void)umask((mode_t)0022);
data/nss-pam-ldapd-0.9.11/nslcd/nsswitch.c:77: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(db);
data/nss-pam-ldapd-0.9.11/nslcd/nsswitch.c:99:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(service);
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:48: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).
  sz = ((strlen(value) + 8) * 120) / 100;
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:296: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 ((value == NULL) || !isvalidname(value) || strlen(value) >= username_len)
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:368: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).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:368:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:371: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).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:371:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:375: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).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:375:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          mysnprintf(authzmsg + strlen(authzmsg), authzmsgsz - strlen(authzmsg) - 1,
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:455: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).
      if (strlen(nslcd_cfg->rootpwmodpw) >= sizeof(password))
data/nss-pam-ldapd-0.9.11/nslcd/pam.c:836: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).
      if (strlen(nslcd_cfg->rootpwmodpw) >= sizeof(oldpassword))
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:260: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).
        isvalidname(values[0]) && (strlen(values[0]) < buflen))
data/nss-pam-ldapd-0.9.11/nslcd/passwd.c:299: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 ((cacheentry->uid != NULL) && (strlen(cacheentry->uid) < buflen))
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:132:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(date) - 9;
data/nss-pam-ldapd-0.9.11/nslcd/shadow.c:135:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, date, l);
data/nss-pam-ldapd-0.9.11/nslcd/usermod.c:244: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).
      if (strlen(nslcd_cfg->rootpwmodpw) >= sizeof(password))
data/nss-pam-ldapd-0.9.11/nss/ethers.c:135: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).
    args->returnlen = strlen(args->returnval);
data/nss-pam-ldapd-0.9.11/nss/group.c:207:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/hosts.c:234: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).
      snprintf(buffer, buflen - strlen(buffer) - 1,
data/nss-pam-ldapd-0.9.11/nss/hosts.c:249:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/networks.c:179:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/passwd.c:49: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).
  result->pw_class = result->pw_name + strlen(result->pw_name);
data/nss-pam-ldapd-0.9.11/nss/protocols.c:109:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/rpc.c:108:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/services.c:117:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/shadow.c:96: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_lstchg);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:99: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_min);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:102: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_max);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:105: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_warn);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:108: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_inact);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:111: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_expire);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:114: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).
    snprintf(buffer, buflen - strlen(buffer) - 1, "%x", result->sp_flag);
data/nss-pam-ldapd-0.9.11/nss/shadow.c:115:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buffer) >= buflen - 1)
data/nss-pam-ldapd-0.9.11/nss/solnss.h:92: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).
    args->returnlen = strlen(args->returnval);                              \
data/nss-pam-ldapd-0.9.11/pam/pam.c:89: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).
    memset(ctx->oldpassword, 0, strlen(ctx->oldpassword));
data/nss-pam-ldapd-0.9.11/tests/test_dict.c:138: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).
    buf[strlen(buf) - 1] = '\0';
data/nss-pam-ldapd-0.9.11/tests/test_getpeercred.c:55:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(addr.sun_path, name, sizeof(addr.sun_path));
data/nss-pam-ldapd-0.9.11/tests/test_getpeercred.c:94:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(addr.sun_path, name, sizeof(addr.sun_path));
data/nss-pam-ldapd-0.9.11/tests/test_tio.c:156:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      assertok(fgetc(fp) == (uint8_t)(i++));

ANALYSIS SUMMARY:

Hits = 411
Lines analyzed = 22875 in approximately 0.72 seconds (31910 lines/second)
Physical Source Lines of Code (SLOC) = 16299
Hits@level = [0] 149 [1] 147 [2] 226 [3]   8 [4]  28 [5]   2
Hits@level+ = [0+] 560 [1+] 411 [2+] 264 [3+]  38 [4+]  30 [5+]   2
Hits/KSLOC@level+ = [0+] 34.3579 [1+] 25.2163 [2+] 16.1973 [3+] 2.33143 [4+] 1.8406 [5+] 0.122707
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.