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/libnss-ldap-265/doc/lookup_nssldap.c
Examining data/libnss-ldap-265/acconfig.h
Examining data/libnss-ldap-265/aix_authmeth.c
Examining data/libnss-ldap-265/dnsconfig.c
Examining data/libnss-ldap-265/dnsconfig.h
Examining data/libnss-ldap-265/irs-grp.c
Examining data/libnss-ldap-265/irs-hosts.c
Examining data/libnss-ldap-265/irs-netgrp.c
Examining data/libnss-ldap-265/irs-network.c
Examining data/libnss-ldap-265/irs-nss.c
Examining data/libnss-ldap-265/irs-nss.h
Examining data/libnss-ldap-265/irs-proto.c
Examining data/libnss-ldap-265/irs-pwd.c
Examining data/libnss-ldap-265/irs-service.c
Examining data/libnss-ldap-265/irs.h
Examining data/libnss-ldap-265/ldap-alias.c
Examining data/libnss-ldap-265/ldap-alias.h
Examining data/libnss-ldap-265/ldap-automount.c
Examining data/libnss-ldap-265/ldap-automount.h
Examining data/libnss-ldap-265/ldap-bp.c
Examining data/libnss-ldap-265/ldap-bp.h
Examining data/libnss-ldap-265/ldap-ethers.c
Examining data/libnss-ldap-265/ldap-ethers.h
Examining data/libnss-ldap-265/ldap-grp.c
Examining data/libnss-ldap-265/ldap-grp.h
Examining data/libnss-ldap-265/ldap-hosts.c
Examining data/libnss-ldap-265/ldap-hosts.h
Examining data/libnss-ldap-265/ldap-init-krb5-cache.c
Examining data/libnss-ldap-265/ldap-netgrp.c
Examining data/libnss-ldap-265/ldap-netgrp.h
Examining data/libnss-ldap-265/ldap-network.c
Examining data/libnss-ldap-265/ldap-network.h
Examining data/libnss-ldap-265/ldap-parse.h
Examining data/libnss-ldap-265/ldap-proto.c
Examining data/libnss-ldap-265/ldap-proto.h
Examining data/libnss-ldap-265/ldap-pwd.h
Examining data/libnss-ldap-265/ldap-rpc.c
Examining data/libnss-ldap-265/ldap-rpc.h
Examining data/libnss-ldap-265/ldap-schema.c
Examining data/libnss-ldap-265/ldap-schema.h
Examining data/libnss-ldap-265/ldap-service.c
Examining data/libnss-ldap-265/ldap-service.h
Examining data/libnss-ldap-265/ldap-sldap.c
Examining data/libnss-ldap-265/ldap-sldap.h
Examining data/libnss-ldap-265/ldap-spwd.c
Examining data/libnss-ldap-265/ldap-spwd.h
Examining data/libnss-ldap-265/ltf.c
Examining data/libnss-ldap-265/ltf.h
Examining data/libnss-ldap-265/nss_common.h
Examining data/libnss-ldap-265/nss_dbdefs.h
Examining data/libnss-ldap-265/pagectrl.c
Examining data/libnss-ldap-265/pagectrl.h
Examining data/libnss-ldap-265/resolve.c
Examining data/libnss-ldap-265/resolve.h
Examining data/libnss-ldap-265/snprintf.c
Examining data/libnss-ldap-265/snprintf.h
Examining data/libnss-ldap-265/util.c
Examining data/libnss-ldap-265/util.h
Examining data/libnss-ldap-265/tests/testd.c
Examining data/libnss-ldap-265/tests/testgr.c
Examining data/libnss-ldap-265/tests/testpw.c
Examining data/libnss-ldap-265/tests/testpw3.c
Examining data/libnss-ldap-265/tests/testpw4.c
Examining data/libnss-ldap-265/tests/testpw5.c
Examining data/libnss-ldap-265/tests/testpw6.c
Examining data/libnss-ldap-265/ldap-pwd.c
Examining data/libnss-ldap-265/ldap-nss.c
Examining data/libnss-ldap-265/ldap-nss.h

FINAL RESULTS:

data/libnss-ldap-265/aix_authmeth.c:264:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (pwdbuf, pw->pw_passwd);
data/libnss-ldap-265/dnsconfig.c:114: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 (bptr, DC_ATTR_AVA);
data/libnss-ldap-265/dnsconfig.c:117: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 (bptr, p);
data/libnss-ldap-265/ldap-init-krb5-cache.c:241:11:  [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.
	  code = access (buf, R_OK);
data/libnss-ldap-265/ldap-init-krb5-cache.c:345:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  if ((code = access (krb5_cc_get_name (context, __cc), F_OK)))
data/libnss-ldap-265/ldap-init-krb5-cache.c:358:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		      code = access (x__ccdir, mode | X_OK);
data/libnss-ldap-265/ldap-init-krb5-cache.c:365:15:  [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.
	      code = access (krb5_cc_get_name (context, __cc), mode);
data/libnss-ldap-265/ldap-init-krb5-cache.c:461:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat (__saslid, hostname);
data/libnss-ldap-265/ldap-init-krb5-cache.c:1103:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (saveccname, tmpbuf);
data/libnss-ldap-265/ldap-network.c:205: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, inet_ntoa (in));
data/libnss-ldap-265/ldap-nss.c:1918:8:  [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(ccfile, R_OK) != 0)
data/libnss-ldap-265/ldap-nss.c:2253:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf (filter, sizeof (filter), filterprot, escapedBuf);
data/libnss-ldap-265/ldap-nss.c:2316:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf (filterBufP, filterSiz, filterprot, buf1);
data/libnss-ldap-265/ldap-nss.c:2319:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf (filterBufP, filterSiz, filterprot,
data/libnss-ldap-265/ldap-nss.c:2333:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf (filterBufP, filterSiz, filterprot, buf1, buf2);
data/libnss-ldap-265/ldap-nss.c:2341:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf (filterBufP, filterSiz, filterprot,
data/libnss-ldap-265/ldap-nss.h:143:29:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define debug(fmt, args...) syslog(LOG_AUTHPRIV | LOG_DEBUG, "nss_ldap: %s:%d thread %u - " fmt, __FILE__, __LINE__, thr_self() , ## args)
data/libnss-ldap-265/ldap-nss.h:145:29:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define debug(fmt, args...) syslog(LOG_AUTHPRIV | LOG_DEBUG, "nss_ldap: %s:%d thread %u - " fmt, __FILE__, __LINE__, pthread_self() , ## args)
data/libnss-ldap-265/ldap-nss.h:158:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, ap);
data/libnss-ldap-265/resolve.c:228:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy ((*rr)->u.mx->domain, host);
data/libnss-ldap-265/resolve.c:250:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy ((*rr)->u.srv->target, host);
data/libnss-ldap-265/snprintf.c:53:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf (char *str, size_t count, const char *fmt, ...);
data/libnss-ldap-265/snprintf.c:54:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
data/libnss-ldap-265/snprintf.c:56:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf ();
data/libnss-ldap-265/snprintf.c:57:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf ();
data/libnss-ldap-265/snprintf.c:61:1:  [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 (str, count, fmt, args)
data/libnss-ldap-265/snprintf.c:80:1:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
snprintf (char *str, size_t count, const char *fmt, ...)
data/libnss-ldap-265/snprintf.c:83:1:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
snprintf (va_alist)
data/libnss-ldap-265/snprintf.c:96:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  (void) vsnprintf (str, count, fmt, ap);
data/libnss-ldap-265/snprintf.h:16: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.
#define vsnprintf	_nss_ldap_vsnprintf
data/libnss-ldap-265/snprintf.h:17:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf	_nss_ldap_snprintf
data/libnss-ldap-265/snprintf.h:45:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf (char *str, size_t count, const char *fmt, ...);
data/libnss-ldap-265/snprintf.h:46:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
data/libnss-ldap-265/snprintf.h:49:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf ();
data/libnss-ldap-265/snprintf.h:50:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf ();
data/libnss-ldap-265/tests/testgr.c:35:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (mem, *p);
data/libnss-ldap-265/ldap-init-krb5-cache.c:278:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			&& getenv ("KRB5_KTNAME"))
data/libnss-ldap-265/ldap-init-krb5-cache.c:279: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.
		       ? getenv ("KRB5_KTNAME") : NULL);
data/libnss-ldap-265/ldap-init-krb5-cache.c:401:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			&& getenv ("KRB5CCNAME"))
data/libnss-ldap-265/ldap-init-krb5-cache.c:402: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.
		       ? getenv ("KRB5CCNAME") : NULL);
data/libnss-ldap-265/ldap-init-krb5-cache.c:1092:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *oldccname = getenv ("KRB5CCNAME");
data/libnss-ldap-265/ldap-nss.c:1926:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  oldccname = getenv ("KRB5CCNAME");
data/libnss-ldap-265/aix_authmeth.c:250:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char pwdbuf[32];
data/libnss-ldap-265/aix_authmeth.c:374: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/libnss-ldap-265/aix_authmeth.c:439:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (q, p, len + 1);
data/libnss-ldap-265/aix_authmeth.c:637: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 (lua->lua__buffer, vals[0], len);
data/libnss-ldap-265/aix_authmeth.c:694: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 *namingAttributes[2];
data/libnss-ldap-265/aix_authmeth.c:841: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/libnss-ldap-265/aix_authmeth.c:941:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  ((char **)result)[i] = strdup(*memp);
data/libnss-ldap-265/aix_authmeth.c:942:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  if (((char **)result)[i] == NULL)
data/libnss-ldap-265/dnsconfig.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 domain[MAXHOSTNAMELEN + 1];
data/libnss-ldap-265/dnsconfig.c:142: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 uribuf[NSS_BUFSIZ];
data/libnss-ldap-265/doc/lookup_nssldap.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libnss-ldap-265/doc/lookup_nssldap.c:174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[KEY_MAX_LEN + 1 + MAPENT_MAX_LEN + 1];
data/libnss-ldap-265/doc/lookup_nssldap.c:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[KEY_MAX_LEN + 1 + MAPENT_MAX_LEN + 1];
data/libnss-ldap-265/doc/lookup_nssldap.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[KEY_MAX_LEN + 1];
data/libnss-ldap-265/doc/lookup_nssldap.c:277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mapent[MAPENT_MAX_LEN + 1];
data/libnss-ldap-265/irs-grp.c:41: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_GROUP];
data/libnss-ldap-265/irs-hosts.c:48: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_HOSTS];
data/libnss-ldap-265/irs-hosts.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 tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/libnss-ldap-265/irs-network.c:41: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_NETWORKS];
data/libnss-ldap-265/irs-network.c:85: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 tmp[sizeof "255.255.255.255/32"], *t;
data/libnss-ldap-265/irs-proto.c:41: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_PROTOCOLS];
data/libnss-ldap-265/irs-pwd.c:41: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_PASSWD];
data/libnss-ldap-265/irs-service.c:42: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_SERVICES];
data/libnss-ldap-265/ldap-automount.c:292: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 **keyval[2];
data/libnss-ldap-265/ldap-automount.c:360: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 **keyval[2];
data/libnss-ldap-265/ldap-ethers.c:120: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 (&ether->e_addr, addr, sizeof (*addr));
data/libnss-ldap-265/ldap-ethers.c:131: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/libnss-ldap-265/ldap-ethers.c:148: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 (NSS_ARGS (args)->buf.result, &result.e_addr,
data/libnss-ldap-265/ldap-ethers.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 buffer[NSS_BUFLEN_ETHERS];
data/libnss-ldap-265/ldap-ethers.c:192: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 (NSS_ARGS (args)->buf.buffer, result.e_name,
data/libnss-ldap-265/ldap-ethers.c:211: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 fullmac[18];
data/libnss-ldap-265/ldap-ethers.c:276: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 (NSS_ARGS (args)->buf.result, &result.e_addr,
data/libnss-ldap-265/ldap-ethers.c:356:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char s[18];
data/libnss-ldap-265/ldap-ethers.c:359:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(s, "%x:%x:%x:%x:%x:%x",
data/libnss-ldap-265/ldap-grp.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 startbuf[32], endbuf[32];
data/libnss-ldap-265/ldap-grp.c:302: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 *uniquemember_attrs[2];
data/libnss-ldap-265/ldap-grp.c:395:8:  [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 (*pGroupMembers, groupMembers, i * sizeof (char *));
data/libnss-ldap-265/ldap-grp.c:474:8:  [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 (groupMembers[i++], *valiter, len);
data/libnss-ldap-265/ldap-grp.c:559: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 (*pGroupMembers, mallocedGroupMembers,
data/libnss-ldap-265/ldap-grp.c:577: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 *groupMembersBuffer[LDAP_NSS_NGROUPS];
data/libnss-ldap-265/ldap-grp.c:682: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 (lia->grplist + lia->listlen, values[0], i);
data/libnss-ldap-265/ldap-grp.c:846: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 *gidnumber_attrs[2];
data/libnss-ldap-265/ldap-grp.c:888: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 *gidnumber_attrs[3];
data/libnss-ldap-265/ldap-grp.c:1015: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 *gidnumber_attrs[3];
data/libnss-ldap-265/ldap-hosts.c:108: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 addressbuf[sizeof ("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") *
data/libnss-ldap-265/ldap-hosts.c:111: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 addressbuf[sizeof ("255.255.255.255") * MAXALIASES];
data/libnss-ldap-265/ldap-hosts.c:179: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 entdata[16];
data/libnss-ldap-265/ldap-hosts.c:216: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 (buffer, entdata, host->h_length);
data/libnss-ldap-265/ldap-hosts.c:221: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 (buffer, &haddr, INADDRSZ);
data/libnss-ldap-265/ldap-hosts.c:328: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 (&iaddr.s_addr, NSS_ARGS (args)->key.hostaddr.addr,
data/libnss-ldap-265/ldap-init-krb5-cache.c:229:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[KT_PATH_MAX];
data/libnss-ldap-265/ldap-init-krb5-cache.c:286:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[KT_PATH_MAX];
data/libnss-ldap-265/ldap-init-krb5-cache.c:451: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 hostname[HOST_NAME_MAX];
data/libnss-ldap-265/ldap-init-krb5-cache.c:460:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy (__saslid, "host/");
data/libnss-ldap-265/ldap-init-krb5-cache.c:1077:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char envbuf[256];
data/libnss-ldap-265/ldap-init-krb5-cache.c:1091: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 tmpbuf[256];
data/libnss-ldap-265/ldap-netgrp.c:319:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (result->cursor, *valiter, curlen + 1);
data/libnss-ldap-265/ldap-network.c:192: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[256];
data/libnss-ldap-265/ldap-nss.c:130:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __configbuf[NSS_LDAP_CONFIG_BUFSIZ];
data/libnss-ldap-265/ldap-nss.c:1042: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 uribuf[NSS_BUFSIZ];
data/libnss-ldap-265/ldap-nss.c:1085: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 (uribuf, uri, urilen);
data/libnss-ldap-265/ldap-nss.c:1088:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      defport = atoi (p + 1);
data/libnss-ldap-265/ldap-nss.c:1316:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char namebuf[PATH_MAX];
data/libnss-ldap-265/ldap-nss.c:1320:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  __debugfile = fopen (namebuf, "a");
data/libnss-ldap-265/ldap-nss.c:1882: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 tmpbuf[256];
data/libnss-ldap-265/ldap-nss.c:1883: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 char envbuf[256];
data/libnss-ldap-265/ldap-nss.c:2142: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 escaped_machine[3 * (MAXHOSTNAMELEN + 1)];
data/libnss-ldap-265/ldap-nss.c:2143: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 escaped_user[3 * (LOGNAME_MAX + 1)];
data/libnss-ldap-265/ldap-nss.c:2144: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 escaped_domain[3 * (MAXHOSTNAMELEN + 1)];
data/libnss-ldap-265/ldap-nss.c:2172: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), (_s), (_len)); \
data/libnss-ldap-265/ldap-nss.c:2246: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 filter[LDAP_FILT_MAXSIZ], escapedBuf[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:2259: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 (bufptr, filter, len);
data/libnss-ldap-265/ldap-nss.c:2284: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 buf1[LDAP_FILT_MAXSIZ], buf2[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:2285: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 *filterBufP, filterBuf[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:3088: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 sdBase[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:3090: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 filterBuf[LDAP_FILT_MAXSIZ], *dynamicFilterBuf = NULL;
data/libnss-ldap-265/ldap-nss.c:3193: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 sdBase[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:3195: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 filterBuf[LDAP_FILT_MAXSIZ], *dynamicFilterBuf = NULL;
data/libnss-ldap-265/ldap-nss.c:3289: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 sdBase[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-nss.c:3291: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 filterBuf[LDAP_FILT_MAXSIZ], *dynamicFilterBuf = NULL;
data/libnss-ldap-265/ldap-nss.h:291: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 *ldc_uris[NSS_LDAP_CONFIG_URI_MAX + 1];
data/libnss-ldap-265/ldap-nss.h:395: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 **ldc_attrtab[LM_NONE + 1];
data/libnss-ldap-265/ldap-nss.h:627: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_NETGROUP];
data/libnss-ldap-265/ldap-proto.c:91:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  proto->p_proto = atoi (number);
data/libnss-ldap-265/ldap-pwd.c:89: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 tmpbuf[ sizeof( uid_t ) * 8 / 3 + 2 ];
data/libnss-ldap-265/ldap-schema.c:69: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_ldap_filt_getaliasbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:70: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_ldap_filt_getaliasent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:73: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_ldap_filt_getbootparamsbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:76: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_ldap_filt_gethostton[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:77: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_ldap_filt_getntohost[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:78: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_ldap_filt_getetherent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:81: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_ldap_filt_getgrnam[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:82: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_ldap_filt_getgrgid[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:83: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_ldap_filt_getgrent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:84: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_ldap_filt_getgroupsbymemberanddn[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:85: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_ldap_filt_getgroupsbydn[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:86: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_ldap_filt_getpwnam_groupsbymember[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:87: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_ldap_filt_getgroupsbymember[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:90: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_ldap_filt_gethostbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:91: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_ldap_filt_gethostbyaddr[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:92: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_ldap_filt_gethostent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:95: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_ldap_filt_getnetbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:96: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_ldap_filt_getnetbyaddr[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:97: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_ldap_filt_getnetent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:100: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_ldap_filt_getprotobyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:101: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_ldap_filt_getprotobynumber[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:102:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_getprotoent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:105: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_ldap_filt_getpwnam[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:106: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_ldap_filt_getpwuid[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:107: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_ldap_filt_getpwent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:110:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_getrpcbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:111: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_ldap_filt_getrpcbynumber[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:112: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_ldap_filt_getrpcent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:115:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_getservbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:116: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_ldap_filt_getservbynameproto[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:117:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_getservbyport[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:118: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_ldap_filt_getservbyportproto[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:119: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_ldap_filt_getservent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:122: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_ldap_filt_getspnam[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:123: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_ldap_filt_getspent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:126: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_ldap_filt_getnetgrent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:127:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_innetgr[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:130: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_ldap_filt_setautomntent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:131:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _nss_ldap_filt_getautomntent[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:132: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_ldap_filt_getautomntbyname[LDAP_FILT_MAXSIZ];
data/libnss-ldap-265/ldap-schema.c:316: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 *__pwd_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:343: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 *__sp_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.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 *__grp_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:382: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 *__hosts_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:394: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 *__services_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:407: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 *__network_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:420: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 *__proto_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:432: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 *__rpc_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:444: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 *__ethers_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:456: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 *__bp_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:468: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 *__alias_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:480: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 *__netgrp_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-schema.c:493: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 *__automount_attrs[ATTRTAB_SIZE + 1];
data/libnss-ldap-265/ldap-sldap.c:744: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 (&filter[*len], s, slen);
data/libnss-ldap-265/ldap-sldap.c:762: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 _s[2]; \
data/libnss-ldap-265/nss_dbdefs.h:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *retp[NSS_NETGR_N];
data/libnss-ldap-265/resolve.c:123: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[128];
data/libnss-ldap-265/resolve.c:135:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&r->h, p, sizeof (HEADER));
data/libnss-ldap-265/resolve.c:268:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy ((*rr)->u.data, p, size);
data/libnss-ldap-265/resolve.h:76: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 domain[1];
data/libnss-ldap-265/resolve.h: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 target[1];
data/libnss-ldap-265/snprintf.c:281: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 convert[20];
data/libnss-ldap-265/tests/testd.c:35: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[1024];
data/libnss-ldap-265/tests/testgr.c:25: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 mem[2048];
data/libnss-ldap-265/tests/testpw.c:81: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[1024];
data/libnss-ldap-265/tests/testpw.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 buf[1024];
data/libnss-ldap-265/tests/testpw3.c:14: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[1024];
data/libnss-ldap-265/tests/testpw4.c:57:7:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      bcopy (h->h_addr, &addr.s_addr, h->h_length);
data/libnss-ldap-265/tests/testpw4.c:70:7:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      bcopy (h->h_addr, &addr.s_addr, h->h_length);
data/libnss-ldap-265/tests/testpw5.c:73: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[1024];
data/libnss-ldap-265/tests/testpw5.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 buf[1024];
data/libnss-ldap-265/tests/testpw6.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 buf[1024];
data/libnss-ldap-265/tests/testpw6.c:166: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[1024];
data/libnss-ldap-265/util.c:149:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (*uid, (char *) val.data, val.size);
data/libnss-ldap-265/util.c:184:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const char *attrs[4];
data/libnss-ldap-265/util.c:283: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 rdnava[64];
data/libnss-ldap-265/util.c:712: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, uri, uri_len + 1);
data/libnss-ldap-265/util.c:760: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 b[NSS_LDAP_CONFIG_BUFSIZ];
data/libnss-ldap-265/util.c:783:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b[NSS_LDAP_CONFIG_BUFSIZ];
data/libnss-ldap-265/util.c:788: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 (NSS_LDAP_PATH_CONF, "r");
data/libnss-ldap-265/util.c:954:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_port = atoi (v);
data/libnss-ldap-265/util.c:982:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_version = atoi (v);
data/libnss-ldap-265/util.c:986:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_timelimit = atoi (v);
data/libnss-ldap-265/util.c:990: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).
	  result->ldc_bind_timelimit = atoi (v);
data/libnss-ldap-265/util.c:994: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).
	  result->ldc_idle_timelimit = atoi (v);
data/libnss-ldap-265/util.c:1014:34:  [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).
	  result->ldc_reconnect_tries = atoi (v);
data/libnss-ldap-265/util.c:1018:38:  [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).
	  result->ldc_reconnect_sleeptime = atoi (v);
data/libnss-ldap-265/util.c:1022:41:  [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).
	  result->ldc_reconnect_maxsleeptime = atoi (v);
data/libnss-ldap-265/util.c:1026:41:  [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).
	  result->ldc_reconnect_maxconntries = atoi (v);
data/libnss-ldap-265/util.c:1038:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_debug = atoi (v);
data/libnss-ldap-265/util.c:1042:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_pagesize = atoi (v);
data/libnss-ldap-265/util.c:1055: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).
	  result->ldc_krb5_autorenew = atoi (v);
data/libnss-ldap-265/util.c:1059:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_krb5_rootautorenew = atoi (v);
data/libnss-ldap-265/util.c:1073: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).
	  result->ldc_krb5_usekeytab = atoi (v);
data/libnss-ldap-265/util.c:1077:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  result->ldc_krb5_rootusekeytab = atoi (v);
data/libnss-ldap-265/util.c:1244:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen (NSS_LDAP_PATH_ROOTPASSWD, "r");
data/libnss-ldap-265/util.c:1303:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy (p, "\\2a");
data/libnss-ldap-265/util.c:1307:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy (p, "\\28");
data/libnss-ldap-265/util.c:1311:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy (p, "\\29");
data/libnss-ldap-265/util.c:1315:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy (p, "\\5c");
data/libnss-ldap-265/util.c:1398: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 (dst->data, src->data, src->size);
data/libnss-ldap-265/aix_authmeth.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).
      if (strlen (pw->pw_passwd) > sizeof (pwdbuf) - 1)
data/libnss-ldap-265/aix_authmeth.c:431:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (p);
data/libnss-ldap-265/aix_authmeth.c:614:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (vals[0]) + 1;	/* for string terminator */
data/libnss-ldap-265/dnsconfig.c:96:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (p);
data/libnss-ldap-265/dnsconfig.c:106:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy (bptr, ",");
data/libnss-ldap-265/ldap-ethers.c:193:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      strlen (result.e_name) + 1);
data/libnss-ldap-265/ldap-ethers.c:196: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).
      NSS_ARGS (args)->buf.buflen = strlen (result.e_name);
data/libnss-ldap-265/ldap-grp.c:135:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  attributeDescriptionLength = strlen (attributeDescription);
data/libnss-ldap-265/ldap-grp.c:136: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).
  attributeTypeLength = strlen (attributeType);
data/libnss-ldap-265/ldap-grp.c:262:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (attribute) + sizeof (";range=") - 1;
data/libnss-ldap-265/ldap-grp.c:263:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len += strlen (startbuf) + 1 /* - */  + strlen (endbuf);
data/libnss-ldap-265/ldap-grp.c:263:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len += strlen (startbuf) + 1 /* - */  + strlen (endbuf);
data/libnss-ldap-265/ldap-grp.c:464: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).
	      size_t len = strlen (*valiter) + 1;
data/libnss-ldap-265/ldap-grp.c:675: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 (values[0]);
data/libnss-ldap-265/ldap-init-krb5-cache.c:1100:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (tmpbuf, oldccname, sizeof (tmpbuf));
data/libnss-ldap-265/ldap-init-krb5-cache.c:1102:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  saveccname = (char *) malloc (strlen (tmpbuf) + 1);
data/libnss-ldap-265/ldap-netgrp.c:248:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buffer, host, cp - host);
data/libnss-ldap-265/ldap-netgrp.c:316:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  int curlen = strlen (*valiter);
data/libnss-ldap-265/ldap-netgrp.c:581: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).
	  __netgrent.data_size = strlen (vals[state->ls_info.ls_index - 1]);
data/libnss-ldap-265/ldap-network.c:206: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).
  blen = strlen (buf);
data/libnss-ldap-265/ldap-nss.c:1929:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy (tmpbuf, oldccname, sizeof (tmpbuf));
data/libnss-ldap-265/ldap-nss.c:2178:82:  [1] (buffer) strlen:
  Does not handle 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 APPEND_STRING(_buffer, _buflen, _s) _APPEND_STRING(_buffer, _buflen, _s, strlen((_s)))
data/libnss-ldap-265/ldap-nss.c:2254:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (filter);
data/libnss-ldap-265/ldap-nss.c:2395: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).
	  size_t filterBufPLen = strlen (filterBufP);
data/libnss-ldap-265/ldap-nss.c:2406:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      dynamicUserBufSiz = filterBufPLen + strlen (sd->lsd_filter) +
data/libnss-ldap-265/ldap-nss.c:3122:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t len = strlen (sd->lsd_base);
data/libnss-ldap-265/ldap-nss.c:3244:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t len = strlen (sd->lsd_base);
data/libnss-ldap-265/ldap-nss.c:3316:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t len = strlen (sd->lsd_base);
data/libnss-ldap-265/ldap-nss.c:3615: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).
	  vallen = strlen (*valiter);
data/libnss-ldap-265/ldap-nss.c:3627:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (elt, *valiter, vallen);
data/libnss-ldap-265/ldap-nss.c:3661: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).
      vallen = strlen (ovr);
data/libnss-ldap-265/ldap-nss.c:3669:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (*valptr, ovr, vallen);
data/libnss-ldap-265/ldap-nss.c:3689: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).
	  vallen = strlen (def);
data/libnss-ldap-265/ldap-nss.c:3697:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (*valptr, def, vallen);
data/libnss-ldap-265/ldap-nss.c:3711: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).
  vallen = strlen (*vals);
data/libnss-ldap-265/ldap-nss.c:3720:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (*valptr, *vals, vallen);
data/libnss-ldap-265/ldap-nss.c:3800: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).
  vallen = strlen (pwd);
data/libnss-ldap-265/ldap-nss.c:3814:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (*valptr, pwd, vallen);
data/libnss-ldap-265/ldap-nss.c:3870:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (val == NULL || strlen(val) == 0)
data/libnss-ldap-265/ldap-nss.c:4021: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).
  key.size = strlen (from) + 1;
data/libnss-ldap-265/ldap-nss.c:4025: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).
  val.size = strlen (to) + 1;
data/libnss-ldap-265/ldap-nss.c:4060: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).
  key.size = strlen (from) + 1;
data/libnss-ldap-265/ldap-nss.c:4259:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      interact->len = strlen (authzid);
data/libnss-ldap-265/ldap-nss.c:4264:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      interact->len = strlen (interact->defresult);
data/libnss-ldap-265/ldap-pwd.c:102:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy (buffer, "x");
data/libnss-ldap-265/ldap-service.c:105:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len = strlen (state->ls_info.ls_key);
data/libnss-ldap-265/ldap-service.c:110:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (buffer, state->ls_info.ls_key, len);
data/libnss-ldap-265/ldap-service.c:140:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len = strlen (vals[state->ls_info.ls_index - 1]);
data/libnss-ldap-265/ldap-service.c:145:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (buffer, vals[state->ls_info.ls_index - 1], len);
data/libnss-ldap-265/ldap-sldap.c:719:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t slen = strlen (s);
data/libnss-ldap-265/ldap-sldap.c:785:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t filterLen = strlen (cookie->filter);
data/libnss-ldap-265/resolve.c:226:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					   strlen (host));
data/libnss-ldap-265/resolve.c:246:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen (host));
data/libnss-ldap-265/resolve.c:261:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy ((*rr)->u.txt, (char *) p + 1, *p);
data/libnss-ldap-265/snprintf.c:74: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).
  return (strlen (str));
data/libnss-ldap-265/snprintf.c:98: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).
  return (strlen (str));
data/libnss-ldap-265/snprintf.c:249: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).
  int padlen, strlen;		/* amount to pad */
data/libnss-ldap-265/snprintf.c:255:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (strlen = 0; value[strlen]; ++strlen);	/* strlen */
data/libnss-ldap-265/snprintf.c:255: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).
  for (strlen = 0; value[strlen]; ++strlen);	/* strlen */
data/libnss-ldap-265/snprintf.c:256: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).
  padlen = len - strlen;
data/libnss-ldap-265/tests/testgr.c:30:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy (mem, "");
data/libnss-ldap-265/tests/testgr.c:34:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (mem, ",");
data/libnss-ldap-265/util.c:107: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).
  key.size = strlen (dn);
data/libnss-ldap-265/util.c:109: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).
  val.size = strlen (uid);
data/libnss-ldap-265/util.c:133: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).
  key.size = strlen (dn);
data/libnss-ldap-265/util.c:254:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  int rdnlen = strlen (*vals);
data/libnss-ldap-265/util.c:258:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy (rdnvalue, *vals, rdnlen);
data/libnss-ldap-265/util.c:287: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).
  rdnavalen = strlen (rdnava);
data/libnss-ldap-265/util.c:315: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).
		  rdnlen = strlen (r);
data/libnss-ldap-265/util.c:323:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy (rdnvalue, r, rdnlen);
data/libnss-ldap-265/util.c:355: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).
	    rdnlen = strlen (p);
data/libnss-ldap-265/util.c:362:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (rdnvalue, p, rdnlen);
data/libnss-ldap-265/util.c:460: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).
      vallen = strlen (s);
data/libnss-ldap-265/util.c:471:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (elt, s, vallen);
data/libnss-ldap-265/util.c:550:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (base, value, len);
data/libnss-ldap-265/util.c:707: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).
  uri_len = strlen (uri);
data/libnss-ldap-265/util.c:855:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (v) - 1;
data/libnss-ldap-265/util.c:1118:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     strlen (NSS_LDAP_KEY_MAP_ATTRIBUTE)))
data/libnss-ldap-265/util.c:1123:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     strlen (NSS_LDAP_KEY_MAP_OBJECTCLASS)))
data/libnss-ldap-265/util.c:1128:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     strlen (NSS_LDAP_KEY_SET_OVERRIDE)))
data/libnss-ldap-265/util.c:1133:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     strlen (NSS_LDAP_KEY_SET_DEFAULT)))
data/libnss-ldap-265/util.c:1227:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (*buffer, v, len);
data/libnss-ldap-265/util.c:1251:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      len = strlen (b);
data/libnss-ldap-265/util.c:1262:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy (*buffer, b, len);
data/libnss-ldap-265/util.c:1645:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0)
data/libnss-ldap-265/util.c:1670:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0)
data/libnss-ldap-265/util.c:1694:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0)
data/libnss-ldap-265/util.c:1724:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0)
data/libnss-ldap-265/util.c:1755:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0)

ANALYSIS SUMMARY:

Hits = 317
Lines analyzed = 23028 in approximately 0.61 seconds (37737 lines/second)
Physical Source Lines of Code (SLOC) = 16912
Hits@level = [0] 154 [1]  89 [2] 186 [3]   6 [4]  36 [5]   0
Hits@level+ = [0+] 471 [1+] 317 [2+] 228 [3+]  42 [4+]  36 [5+]   0
Hits/KSLOC@level+ = [0+] 27.85 [1+] 18.7441 [2+] 13.4816 [3+] 2.48344 [4+] 2.12867 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.