Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/nss-wrapper-1.1.11/src/nss_wrapper.c
Examining data/nss-wrapper-1.1.11/tests/test_shadow.c
Examining data/nss-wrapper-1.1.11/tests/test_nwrap_disabled.c
Examining data/nss-wrapper-1.1.11/tests/test_getnameinfo.c
Examining data/nss-wrapper-1.1.11/tests/testsuite.c
Examining data/nss-wrapper-1.1.11/tests/nss_nwrap.c
Examining data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c
Examining data/nss-wrapper-1.1.11/tests/test_gethostent.c
Examining data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c
Examining data/nss-wrapper-1.1.11/tests/test_getpwuid_module.c
Examining data/nss-wrapper-1.1.11/tests/test_nwrap_vector.c

FINAL RESULTS:

data/nss-wrapper-1.1.11/src/nss_wrapper.c:293:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buffer, sizeof(buffer), format, va);
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:128:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rc = system(touch_cmd);
data/nss-wrapper-1.1.11/tests/test_shadow.c:46:23:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	encrypted_password = crypt("secret", sp->sp_pwdp);
data/nss-wrapper-1.1.11/tests/test_shadow.c:56:23:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	encrypted_password = crypt("secret", sp->sp_pwdp);
data/nss-wrapper-1.1.11/tests/testsuite.c:35:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG(...) printf(__VA_ARGS__)
data/nss-wrapper-1.1.11/src/nss_wrapper.c:283:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	d = getenv("NSS_WRAPPER_DEBUGLEVEL");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1112:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_preload = getenv("LD_PRELOAD");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1113:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_deepbind = getenv("NSS_WRAPPER_DISABLE_DEEPBIND");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1859:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *module_so_path = getenv("NSS_WRAPPER_MODULE_SO_PATH");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1860:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *module_fn_name = getenv("NSS_WRAPPER_MODULE_FN_PREFIX");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1916:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("NSS_WRAPPER_MAX_HOSTENTS");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1951:32:  [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.
	nwrap_pw_global.cache->path = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1962:32:  [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.
	nwrap_sp_global.cache->path = getenv("NSS_WRAPPER_SHADOW");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1973:32:  [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.
	nwrap_gr_global.cache->path = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1983:32:  [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.
	nwrap_he_global.cache->path = getenv("NSS_WRAPPER_HOSTS");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2040:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("NSS_WRAPPER_HOSTNAME") == NULL) {
data/nss-wrapper-1.1.11/src/nss_wrapper.c:6324:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *hostname = getenv("NSS_WRAPPER_HOSTNAME");
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:123:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("NSS_WRAPPER_HOSTS");
data/nss-wrapper-1.1.11/tests/testsuite.c:846:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_pwd = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/tests/testsuite.c:847:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_group = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/tests/testsuite.c:874:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_pwd = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/tests/testsuite.c:875:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_group = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/tests/testsuite.c:890:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_pwd = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/tests/testsuite.c:891:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_group = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/tests/testsuite.c:908:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_pwd = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/tests/testsuite.c:909:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_group = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/tests/testsuite.c:992:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_pwd = getenv("NSS_WRAPPER_PASSWD");
data/nss-wrapper-1.1.11/tests/testsuite.c:993:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *old_group = getenv("NSS_WRAPPER_GROUP");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:276: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[1024];
data/nss-wrapper-1.1.11/src/nss_wrapper.c:285:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		lvl = atoi(d);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:968:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *)(((long *)dst->items) + dst->count),
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1038:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char host_addr[16]; /* IPv4 or IPv6 address */
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char soname[256] = {0};
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char soname[256] = {0};
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char soname[256] = {0};
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2135:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nwrap->fp = fopen(nwrap->path, "re");
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2413:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, first, ofs);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2940:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->gr_name, src->gr_name, gr_name_len);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2942:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->gr_passwd, src->gr_passwd, gr_passwd_len);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2965: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->gr_mem[i],
data/nss-wrapper-1.1.11/src/nss_wrapper.c:3829: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 canon_name[DNS_NAME_MAX] = { 0 };
data/nss-wrapper-1.1.11/src/nss_wrapper.c:3848: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(canon_name, name, name_len - 1);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:3903: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, he, sizeof(struct hostent));
data/nss-wrapper-1.1.11/src/nss_wrapper.c:3974:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, addr_list->items, (addr_list->count + 1) * sizeof(void *));
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4075: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 canon_name[DNS_NAME_MAX] = { 0 };
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4092: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(canon_name, name, name_len - 1);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4172: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 ip[NWRAP_INET_ADDRSTRLEN] = {0};
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4300:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1000];
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4361:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1000];
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4429:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1000];
data/nss-wrapper-1.1.11/src/nss_wrapper.c:5581:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(groups, groups_tmp, count * sizeof(gid_t));
data/nss-wrapper-1.1.11/src/nss_wrapper.c:5955: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(&(addr.in->sin_addr),
data/nss-wrapper-1.1.11/src/nss_wrapper.c:5976: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(&addr.in6->sin6_addr,
data/nss-wrapper-1.1.11/src/nss_wrapper.c:6143: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(ai_new, ai_cur, sizeof(struct addrinfo));
data/nss-wrapper-1.1.11/tests/nss_nwrap.c:77:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, first, ofs);
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:28: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 ip6[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:101: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 touch_cmd[1024];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:197: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 ip6[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:420: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 ip6[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:474: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 ip[INET_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:505: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 ip6[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getaddrinfo.c:552:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:26: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 sys_host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[16] = {0};
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:101: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 ip[INET_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:157: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 ip[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:223: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] = {0};
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:224: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 ip[INET_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:253: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[2];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:282: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 ip[INET_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:332: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 ip[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_gethostby_name_addr.c:377: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] = {0};
data/nss-wrapper-1.1.11/tests/test_gethostent.c:31: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[INET6_ADDRSTRLEN];
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:19: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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:64: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 serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:111: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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:112: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 serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:155: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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:156: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 serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:199: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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:200: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 serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:263: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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/test_getnameinfo.c:264: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 serv[256] = {0};
data/nss-wrapper-1.1.11/tests/test_nwrap_disabled.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 host[256] = {0};
data/nss-wrapper-1.1.11/tests/testsuite.c:157: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[4096];
data/nss-wrapper-1.1.11/tests/testsuite.c:206: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[4096];
data/nss-wrapper-1.1.11/tests/testsuite.c:327: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[4096];
data/nss-wrapper-1.1.11/tests/testsuite.c:378: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[4096];
data/nss-wrapper-1.1.11/tests/testsuite.c:445:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/nss-wrapper-1.1.11/tests/testsuite.c:613: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[4096];
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1117:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (env_preload != NULL && strlen(env_preload) < 1024) {
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1124:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (env_deepbind != NULL && strlen(env_deepbind) >= 1) {
data/nss-wrapper-1.1.11/src/nss_wrapper.c:1796:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!so_path || !strlen(so_path)) {
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2844:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(c) == 0) {
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2898: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).
	size_t gr_name_len = strlen(src->gr_name) + 1;
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2899: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).
	size_t gr_passwd_len = strlen(src->gr_passwd) + 1;
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2950: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).
		size_t len = strlen(src->gr_mem[i]) + 1;
data/nss-wrapper-1.1.11/src/nss_wrapper.c:2963: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).
		size_t len = strlen(src->gr_mem[i]) + 1;
data/nss-wrapper-1.1.11/src/nss_wrapper.c:3846: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).
	name_len = strlen(name);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:4090: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).
	name_len = strlen(name);
data/nss-wrapper-1.1.11/src/nss_wrapper.c:6268:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(he->h_name) >= hostlen)
data/nss-wrapper-1.1.11/src/nss_wrapper.c:6286:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(service->s_name) >= servlen)
data/nss-wrapper-1.1.11/src/nss_wrapper.c:6326:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(hostname) >= len) {
data/nss-wrapper-1.1.11/tests/test_nwrap_disabled.c:71:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert_true(strlen(host) > 1);

ANALYSIS SUMMARY:

Hits = 107
Lines analyzed = 9736 in approximately 0.22 seconds (43648 lines/second)
Physical Source Lines of Code (SLOC) = 7578
Hits@level = [0]  12 [1]  14 [2]  65 [3]  23 [4]   5 [5]   0
Hits@level+ = [0+] 119 [1+] 107 [2+]  93 [3+]  28 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 15.7034 [1+] 14.1198 [2+] 12.2724 [3+] 3.69491 [4+] 0.659805 [5+]   0
Dot directories skipped = 2 (--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.