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/libuser-0.62~dfsg/tests/wait_for_slapd_start.c
Examining data/libuser-0.62~dfsg/tests/wait_for_slapd_exit.c
Examining data/libuser-0.62~dfsg/tests/alloc_port.c
Examining data/libuser-0.62~dfsg/tests/config_test.c
Examining data/libuser-0.62~dfsg/samples/testuser.c
Examining data/libuser-0.62~dfsg/samples/prompt.c
Examining data/libuser-0.62~dfsg/samples/lookup.c
Examining data/libuser-0.62~dfsg/samples/homedir.c
Examining data/libuser-0.62~dfsg/samples/field.c
Examining data/libuser-0.62~dfsg/samples/enum.c
Examining data/libuser-0.62~dfsg/python/debug.h
Examining data/libuser-0.62~dfsg/python/common.h
Examining data/libuser-0.62~dfsg/python/misc.c
Examining data/libuser-0.62~dfsg/python/libusermodule.c
Examining data/libuser-0.62~dfsg/python/ent.c
Examining data/libuser-0.62~dfsg/python/admin.c
Examining data/libuser-0.62~dfsg/modules/sasldb.c
Examining data/libuser-0.62~dfsg/modules/ldap.c
Examining data/libuser-0.62~dfsg/modules/files.c
Examining data/libuser-0.62~dfsg/lib/util.c
Examining data/libuser-0.62~dfsg/lib/user.c
Examining data/libuser-0.62~dfsg/lib/scache.c
Examining data/libuser-0.62~dfsg/lib/prompt.c
Examining data/libuser-0.62~dfsg/lib/modules.c
Examining data/libuser-0.62~dfsg/lib/misc.c
Examining data/libuser-0.62~dfsg/lib/internal.h
Examining data/libuser-0.62~dfsg/lib/fs.c
Examining data/libuser-0.62~dfsg/lib/error.c
Examining data/libuser-0.62~dfsg/lib/entity.c
Examining data/libuser-0.62~dfsg/lib/config.c
Examining data/libuser-0.62~dfsg/lib/common.c
Examining data/libuser-0.62~dfsg/lib/getdate.c
Examining data/libuser-0.62~dfsg/lib/user_private.h
Examining data/libuser-0.62~dfsg/lib/user.h
Examining data/libuser-0.62~dfsg/lib/prompt.h
Examining data/libuser-0.62~dfsg/lib/fs.h
Examining data/libuser-0.62~dfsg/lib/error.h
Examining data/libuser-0.62~dfsg/lib/entity.h
Examining data/libuser-0.62~dfsg/lib/config.h
Examining data/libuser-0.62~dfsg/apps/lusermod.c
Examining data/libuser-0.62~dfsg/apps/luserdel.c
Examining data/libuser-0.62~dfsg/apps/luseradd.c
Examining data/libuser-0.62~dfsg/apps/lpasswd.c
Examining data/libuser-0.62~dfsg/apps/lnewusers.c
Examining data/libuser-0.62~dfsg/apps/lid.c
Examining data/libuser-0.62~dfsg/apps/lgroupmod.c
Examining data/libuser-0.62~dfsg/apps/lgroupdel.c
Examining data/libuser-0.62~dfsg/apps/lgroupadd.c
Examining data/libuser-0.62~dfsg/apps/lchsh.c
Examining data/libuser-0.62~dfsg/apps/lchfn.c
Examining data/libuser-0.62~dfsg/apps/lchage.c
Examining data/libuser-0.62~dfsg/apps/apputil.h
Examining data/libuser-0.62~dfsg/apps/apputil.c

FINAL RESULTS:

data/libuser-0.62~dfsg/lib/fs.c:624:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(directory, owner, group) == -1 && errno != EPERM) {
data/libuser-0.62~dfsg/lib/fs.c:632:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(directory, mode & ~access_options.umask) == -1) {
data/libuser-0.62~dfsg/apps/apputil.c:40:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
check_access(const char *chuser, access_vector_t access)
data/libuser-0.62~dfsg/apps/apputil.c:61:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
 						     access, &avd);
data/libuser-0.62~dfsg/apps/apputil.c:63:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (retval == 0 && (avd.allowed & access) == access)
data/libuser-0.62~dfsg/apps/apputil.c:63:49:  [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 (retval == 0 && (avd.allowed & access) == access)
data/libuser-0.62~dfsg/lib/getdate.c:737:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/libuser-0.62~dfsg/lib/util.c:169:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(salt + len + salt_type_info[i].salt_length,
data/libuser-0.62~dfsg/lib/util.c:172:9:  [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.
	return crypt(plain, salt);
data/libuser-0.62~dfsg/modules/files.c:2536:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(path, R_OK | W_OK) != 0) {
data/libuser-0.62~dfsg/modules/files.c:2543:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(path, R_OK | W_OK) != 0) {
data/libuser-0.62~dfsg/modules/files.c:2560:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(path, R_OK | W_OK) != 0) {
data/libuser-0.62~dfsg/modules/files.c:2567:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(path, R_OK | W_OK) != 0) {
data/libuser-0.62~dfsg/python/admin.c:1545:15:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	char *name = getlogin(), *modules = NULL, *create = NULL, *p, *q;
data/libuser-0.62~dfsg/tests/wait_for_slapd_exit.c:32:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(pid_file, F_OK) != 0
data/libuser-0.62~dfsg/tests/wait_for_slapd_start.c:32:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(pid_file, F_OK) == 0
data/libuser-0.62~dfsg/lib/util.c:211:13:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			rounds = g_random_int_range(min, max + 1);
data/libuser-0.62~dfsg/modules/files.c:431:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		tmp = realpath(destination, NULL);
data/libuser-0.62~dfsg/samples/enum.c:39:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "fg")) != -1) {
data/libuser-0.62~dfsg/samples/homedir.c:37:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "arm")) != -1) {
data/libuser-0.62~dfsg/samples/lookup.c:43:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "m:gn")) != -1) {
data/libuser-0.62~dfsg/apps/lchage.c:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[LINE_MAX];
data/libuser-0.62~dfsg/apps/lchage.c:186: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(buf, _("Must change password on next login"));
data/libuser-0.62~dfsg/apps/lchage.c:188: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(buf, _("Never"));
data/libuser-0.62~dfsg/apps/lchage.c:194: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(buf, _("Must change password on next login"));
data/libuser-0.62~dfsg/apps/lchage.c:196: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(buf, _("Never"));
data/libuser-0.62~dfsg/apps/lchage.c:204: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(buf, _("Must change password on next login"));
data/libuser-0.62~dfsg/apps/lchage.c:206: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(buf, _("Never"));
data/libuser-0.62~dfsg/apps/lchage.c:215:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, _("Never"));
data/libuser-0.62~dfsg/apps/lnewusers.c:41: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[LINE_MAX];
data/libuser-0.62~dfsg/apps/lnewusers.c:86: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(file, "r");
data/libuser-0.62~dfsg/apps/lpasswd.c:159: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[LINE_MAX + 1];
data/libuser-0.62~dfsg/apps/lpasswd.c:176:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[LINE_MAX + 1];
data/libuser-0.62~dfsg/lib/config.c:125:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/libuser-0.62~dfsg/lib/config.c:566: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[sizeof(intmax_t) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/lib/config.c:653: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[sizeof (day) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/lib/config.c:672: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/fs.c:121: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[PATH_MAX];
data/libuser-0.62~dfsg/lib/fs.c:220:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[BUFSIZ];
data/libuser-0.62~dfsg/lib/fs.c:546:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(src_dir, O_RDONLY | O_CLOEXEC | O_DIRECTORY);
data/libuser-0.62~dfsg/lib/fs.c:932:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *argv[4];
data/libuser-0.62~dfsg/lib/fs.c:1024: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/fs.c:1049:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(spool_path, O_WRONLY | O_CREAT, 0);
data/libuser-0.62~dfsg/lib/getdate.c:985:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libuser-0.62~dfsg/lib/getdate.c:1178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/libuser-0.62~dfsg/lib/getdate.c:2397: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 buff[20];
data/libuser-0.62~dfsg/lib/getdate.c:2589: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 buff[MAX_BUFF_LEN + 1];
data/libuser-0.62~dfsg/lib/prompt.c:67:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[LINE_MAX], *p;
data/libuser-0.62~dfsg/lib/user.c:297: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/user.c:322: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/user.c:2028: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/user.c:2137: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 *cfgkey, id_replacement[sizeof (intmax_t) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/lib/user.c:2138: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 shadow_date_replacement[sizeof (intmax_t) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/lib/user.c:2160: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/lib/user.c:2217:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(id_replacement, "%jd", (intmax_t)id);
data/libuser-0.62~dfsg/lib/user.c:2222: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(shadow_date_replacement, "%ld",
data/libuser-0.62~dfsg/lib/util.c:89:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/urandom", O_RDONLY);
data/libuser-0.62~dfsg/lib/util.c:120: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.
	const char initial[5];
data/libuser-0.62~dfsg/lib/util.c:121: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 separator[2];
data/libuser-0.62~dfsg/lib/util.c:136: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 salt[2048];
data/libuser-0.62~dfsg/lib/util.c:165: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(salt, previous, len);
data/libuser-0.62~dfsg/lib/util.c:614: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(start, value, strlen(value));
data/libuser-0.62~dfsg/lib/util.c:626: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(start + (field - fi), value, strlen(value));
data/libuser-0.62~dfsg/modules/files.c:126:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ifd = open(input_filename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:158:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ofd = open(output_filename, flags, 0);
data/libuser-0.62~dfsg/modules/files.c:182:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[CHUNK_SIZE];
data/libuser-0.62~dfsg/modules/files.c:287: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 pid_string[sizeof (pid_t) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/files.c:294:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmp_filename);
data/libuser-0.62~dfsg/modules/files.c:689:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:732: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[sizeof (uid) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/files.c:734: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(key, "%jd", (intmax_t)uid);
data/libuser-0.62~dfsg/modules/files.c:796: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[sizeof (gid) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/files.c:798: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(key, "%jd", (intmax_t)gid);
data/libuser-0.62~dfsg/modules/files.c:1232: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(line, new_line, strlen(new_line));
data/libuser-0.62~dfsg/modules/files.c:1582:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:1917:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:1997: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, grp[CHUNK_SIZE];
data/libuser-0.62~dfsg/modules/files.c:2009:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(pwdfilename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:2086:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(grpfilename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:2188:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(pwdfilename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:2252:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(grpfilename, O_RDONLY);
data/libuser-0.62~dfsg/modules/files.c:2356:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/libuser-0.62~dfsg/modules/ldap.c:159: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[LINE_MAX * 4];
data/libuser-0.62~dfsg/modules/ldap.c:259:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(const char *)res[i].result);
data/libuser-0.62~dfsg/modules/ldap.c:266:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(const char *)res[i].result);
data/libuser-0.62~dfsg/modules/ldap.c:726: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 uid_string[sizeof (uid) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/ldap.c:730: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(uid_string, "%jd", (intmax_t)uid);
data/libuser-0.62~dfsg/modules/ldap.c:757: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 gid_string[sizeof (gid) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/ldap.c:761: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(gid_string, "%jd", (intmax_t)gid);
data/libuser-0.62~dfsg/modules/ldap.c:901:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		bv->bv_val = (char *)ldap_attribute_map[i].objectclass;
data/libuser-0.62~dfsg/modules/ldap.c:1469:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char alpha[2*26] = ALPHA;
data/libuser-0.62~dfsg/modules/ldap.c:1490: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 *result, *name, *oldpassword, *values[2][2];
data/libuser-0.62~dfsg/modules/ldap.c:1721: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 filter[LINE_MAX];
data/libuser-0.62~dfsg/modules/ldap.c:2276: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 grp[sizeof (gid) * CHAR_BIT + 1];
data/libuser-0.62~dfsg/modules/ldap.c:2280: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(grp, "%jd", (intmax_t)gid);
data/libuser-0.62~dfsg/python/libusermodule.c:36: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[LINE_MAX];
data/libuser-0.62~dfsg/samples/field.c:41:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(argv[1], (argc > 4) ? O_RDWR : O_RDONLY);
data/libuser-0.62~dfsg/samples/field.c:56: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).
		if (!lu_util_field_write(fd, argv[2], atoi(argv[3]),
data/libuser-0.62~dfsg/samples/field.c:63: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).
		ret = lu_util_field_read(fd, argv[2], atoi(argv[3]), &error);
data/libuser-0.62~dfsg/apps/lchfn.c:228:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(filtered) > 0)			\
data/libuser-0.62~dfsg/apps/lnewusers.c:145: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(fields[3]) > 0) {
data/libuser-0.62~dfsg/apps/lnewusers.c:220: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(fields[4]) > 0)
data/libuser-0.62~dfsg/apps/lnewusers.c:223: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(fields[5]) > 0) {
data/libuser-0.62~dfsg/apps/lnewusers.c:240: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(fields[6]) > 0)
data/libuser-0.62~dfsg/apps/lpasswd.c:119: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(prompts[0].value) &&
data/libuser-0.62~dfsg/apps/lpasswd.c:121: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(prompts[1].value)) {
data/libuser-0.62~dfsg/apps/lpasswd.c:162:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(plain_fd, buf, sizeof(buf) - 1);
data/libuser-0.62~dfsg/apps/lpasswd.c:179:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(crypted_fd, buf, sizeof(buf) - 1);
data/libuser-0.62~dfsg/lib/config.c:152:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(fd, dest, left);
data/libuser-0.62~dfsg/lib/config.c:296:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(section) && strlen(key))
data/libuser-0.62~dfsg/lib/config.c:296: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).
		    strlen(section) && strlen(key))
data/libuser-0.62~dfsg/lib/config.c:381: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).
	g_assert(strlen(key) > 0);
data/libuser-0.62~dfsg/lib/config.c:438: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).
	g_assert(strlen(parent_key) > 0);
data/libuser-0.62~dfsg/lib/entity.c:345: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:412: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).
	g_return_val_if_fail(strlen(attribute) > 0, FALSE);
data/libuser-0.62~dfsg/lib/entity.c:425: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:468: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:488: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:508: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:527: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:546: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:583: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).
	g_return_if_fail(strlen(attr) > 0);
data/libuser-0.62~dfsg/lib/entity.c:634: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:654: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:676: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:697: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:718: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:738: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).
	g_return_val_if_fail(strlen(attribute) > 0, NULL);
data/libuser-0.62~dfsg/lib/entity.c:760: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).
	g_return_val_if_fail(strlen(attribute) > 0, LU_VALUE_INVALID_ID);
data/libuser-0.62~dfsg/lib/entity.c:781: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).
	g_return_val_if_fail(strlen(attribute) > 0, LU_VALUE_INVALID_ID);
data/libuser-0.62~dfsg/lib/entity.c:800: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).
	g_return_val_if_fail(strlen(attribute) > 0, FALSE);
data/libuser-0.62~dfsg/lib/entity.c:818: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).
	g_return_val_if_fail(strlen(attribute) > 0, FALSE);
data/libuser-0.62~dfsg/lib/entity.c:837: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:856: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:875: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:895: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:914: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:932: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:951: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:968: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:987: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:1006: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:1023: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:1039: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:1085: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/entity.c:1105: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).
	g_return_if_fail(strlen(attribute) > 0);
data/libuser-0.62~dfsg/lib/fs.c:56:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	value = umask(S_IRWXU | S_IRWXG | S_IRWXO);
data/libuser-0.62~dfsg/lib/fs.c:57:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(value);
data/libuser-0.62~dfsg/lib/fs.c:72:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t umask;	      /* umask to apply to modes if !preserve_source */
data/libuser-0.62~dfsg/lib/fs.c:101:33:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	return st->st_mode & ~options->umask;
data/libuser-0.62~dfsg/lib/fs.c:224:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		left = read(src_fd, &buf, sizeof(buf));
data/libuser-0.62~dfsg/lib/fs.c:632:46:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	if (chmod(directory, mode & ~access_options.umask) == -1) {
data/libuser-0.62~dfsg/lib/getdate.c:885:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/libuser-0.62~dfsg/lib/getdate.c:2298: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 (buff) == 3)
data/libuser-0.62~dfsg/lib/getdate.c:2300: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).
  else if (strlen (buff) == 4 && buff[3] == '.')
data/libuser-0.62~dfsg/lib/getdate.c:2343: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 (buff) - 1;
data/libuser-0.62~dfsg/lib/misc.c:181: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).
	attr_len = strlen(attr);
data/libuser-0.62~dfsg/lib/misc.c:185: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).
		s_len = strlen(list);
data/libuser-0.62~dfsg/lib/prompt.c:120:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		prompts[i].value = (strlen(buf) > 0) ?
data/libuser-0.62~dfsg/lib/scache.c:62: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).
			memset(tmp, '\0', strlen(tmp));
data/libuser-0.62~dfsg/lib/user.c:221:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(sdata);
data/libuser-0.62~dfsg/lib/user.c:409: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).
		g_return_val_if_fail(strlen(sdata) > 0, FALSE);
data/libuser-0.62~dfsg/lib/user.c:479: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).
		g_return_val_if_fail(strlen(sdata) > 0, FALSE);
data/libuser-0.62~dfsg/lib/user.c:499: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).
		g_return_val_if_fail(strlen(sdata) > 0, FALSE);
data/libuser-0.62~dfsg/lib/user.c:569: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).
		g_return_val_if_fail(strlen(sdata) > 0, FALSE);
data/libuser-0.62~dfsg/lib/user.c:2103: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).
		old_len = strlen(old);
data/libuser-0.62~dfsg/lib/user.c:2148: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).
	g_return_val_if_fail(strlen(name) > 0, FALSE);
data/libuser-0.62~dfsg/lib/user_private.h:51:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				((strlen(String) > 0) && \
data/libuser-0.62~dfsg/lib/user_private.h:53:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 (strlen(String) < LU_CRYPT_SIZE))
data/libuser-0.62~dfsg/lib/util.c:98:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, output + got, length - got);
data/libuser-0.62~dfsg/lib/util.c:144: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(salt_type_info[i].initial);
data/libuser-0.62~dfsg/lib/util.c:153: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).
	    && strncmp(previous + len, "rounds=", strlen("rounds=")) == 0) {
data/libuser-0.62~dfsg/lib/util.c:156:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		start = previous + len + strlen("rounds=");
data/libuser-0.62~dfsg/lib/util.c:159: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).
		    && end <= start + strlen(G_STRINGIFY(HASH_ROUNDS_MAX)))
data/libuser-0.62~dfsg/lib/util.c:164:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 + strlen(salt_type_info[i].separator) < sizeof(salt));
data/libuser-0.62~dfsg/lib/util.c:351:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    || read(fd, contents, st.st_size) != st.st_size
data/libuser-0.62~dfsg/lib/util.c:362: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).
	part_len = strlen(part);
data/libuser-0.62~dfsg/lib/util.c:450: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).
	g_assert(strlen(first) != 0);
data/libuser-0.62~dfsg/lib/util.c:462:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    || read(fd, buf, st.st_size) != st.st_size) {
data/libuser-0.62~dfsg/lib/util.c:473:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(pattern);
data/libuser-0.62~dfsg/lib/util.c:562:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = g_malloc0(st.st_size + 1 + strlen(value) + field);
data/libuser-0.62~dfsg/lib/util.c:563:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, st.st_size) != st.st_size) {
data/libuser-0.62~dfsg/lib/util.c:569: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).
	if (strncmp(buf, pattern + 1, strlen(pattern) - 1) == 0) {
data/libuser-0.62~dfsg/lib/util.c:612: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).
		memmove(start + strlen(value), end,
data/libuser-0.62~dfsg/lib/util.c:614: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).
		memcpy(start, value, strlen(value));
data/libuser-0.62~dfsg/lib/util.c:623: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).
		memmove(start + strlen(value) + (field - fi), end,
data/libuser-0.62~dfsg/lib/util.c:626:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(start + (field - fi), value, strlen(value));
data/libuser-0.62~dfsg/lib/util.c:633:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/libuser-0.62~dfsg/modules/files.c:121: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).
	g_assert(strlen(input_filename) > 0);
data/libuser-0.62~dfsg/modules/files.c:123: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).
	g_assert(strlen(output_filename) > 0);
data/libuser-0.62~dfsg/modules/files.c:186:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		left = read(ifd, &buf, sizeof(buf));
data/libuser-0.62~dfsg/modules/files.c:304:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, pid_string, strlen(pid_string)) != strlen(pid_string)) {
data/libuser-0.62~dfsg/modules/files.c:304:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, pid_string, strlen(pid_string)) != strlen(pid_string)) {
data/libuser-0.62~dfsg/modules/files.c:509: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(buf + len);
data/libuser-0.62~dfsg/modules/files.c:584:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(w[j]) == 0)
data/libuser-0.62~dfsg/modules/files.c:600:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    && strlen(val) == 0) {
data/libuser-0.62~dfsg/modules/files.c:951: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).
		prefix_len = strlen(line);
data/libuser-0.62~dfsg/modules/files.c:1003:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(e->new_fd, contents, st.st_size) != st.st_size) {
data/libuser-0.62~dfsg/modules/files.c:1037: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).
	r = write(e->new_fd, line, strlen(line));
data/libuser-0.62~dfsg/modules/files.c:1038: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 ((size_t)r != strlen(line)) {
data/libuser-0.62~dfsg/modules/files.c:1192:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	contents = g_malloc(st.st_size + 1 + strlen(new_line));
data/libuser-0.62~dfsg/modules/files.c:1193:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(e->new_fd, contents, st.st_size) != st.st_size) {
data/libuser-0.62~dfsg/modules/files.c:1202:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(current_name);
data/libuser-0.62~dfsg/modules/files.c:1230: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).
	memmove(line + strlen(new_line), rest,
data/libuser-0.62~dfsg/modules/files.c:1232: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).
	memcpy(line, new_line, strlen(new_line));
data/libuser-0.62~dfsg/modules/files.c:1237:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/libuser-0.62~dfsg/modules/files.c:1336:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(e->new_fd, contents, st.st_size) != st.st_size) {
data/libuser-0.62~dfsg/modules/files.c:1348:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/libuser-0.62~dfsg/modules/files.c:1361: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).
				memmove(contents, p + 1, strlen(p + 1) + 1);
data/libuser-0.62~dfsg/modules/files.c:1363:5:  [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(contents, "");
data/libuser-0.62~dfsg/modules/files.c:1372: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).
				memmove(tmp + 1, p + 1, strlen (p + 1) + 1);
data/libuser-0.62~dfsg/modules/files.c:1374:5:  [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(tmp + 1, "");
data/libuser-0.62~dfsg/modules/files.c:1383:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(contents);
data/libuser-0.62~dfsg/modules/files.c:1798:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	else if (g_ascii_strncasecmp(password, LU_CRYPTED, strlen(LU_CRYPTED))
data/libuser-0.62~dfsg/modules/files.c:1800: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).
		password = password + strlen(LU_CRYPTED);
data/libuser-0.62~dfsg/modules/files.c:1945: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(buf) == 1) {
data/libuser-0.62~dfsg/modules/files.c:2039: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(buf) == 1 || buf[0] == '-' || buf[0] == '+') {
data/libuser-0.62~dfsg/modules/files.c:2112: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(buf) == 1 || buf[0] == '+' || buf[0] == '-') {
data/libuser-0.62~dfsg/modules/files.c:2140:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(q) > 0) {
data/libuser-0.62~dfsg/modules/files.c:2214: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(buf) == 1 || buf[0] == '+' || buf[0] == '-') {
data/libuser-0.62~dfsg/modules/files.c:2272: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(buf) == 1 || buf[0] == '+' || buf[0] == '-') {
data/libuser-0.62~dfsg/modules/files.c:2307:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(q) > 0) {
data/libuser-0.62~dfsg/modules/files.c:2379: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(buf) == 1 || buf[0] == '+' || buf[0] == '-') {
data/libuser-0.62~dfsg/modules/ldap.c:169: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).
	return (string != NULL) && (strlen(string) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:281: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).
			res[i].len = strlen(res[i].result);
data/libuser-0.62~dfsg/modules/ldap.c:345:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((binddn != NULL) && (strlen(binddn) == 0)) {
data/libuser-0.62~dfsg/modules/ldap.c:385: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 ((password != NULL) && (strlen(password) > 0)) {
data/libuser-0.62~dfsg/modules/ldap.c:389: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).
			cred.bv_len = strlen(password);
data/libuser-0.62~dfsg/modules/ldap.c:465: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(branch) != 0)
data/libuser-0.62~dfsg/modules/ldap.c:493: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).
	g_assert(strlen(namingAttr) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:495: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).
	g_assert(strlen(name) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:547: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).
	g_assert(strlen(namingAttr) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:574:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (filter && (strlen(filter) > 0)) {
data/libuser-0.62~dfsg/modules/ldap.c:812:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(class);
data/libuser-0.62~dfsg/modules/ldap.c:902: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).
		bv->bv_len = strlen(bv->bv_val);
data/libuser-0.62~dfsg/modules/ldap.c:924: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).
		bv->bv_len = strlen(ACCOUNT);
data/libuser-0.62~dfsg/modules/ldap.c:1498: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).
	g_assert(strlen(namingAttr) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:1549:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					oldpassword + strlen(LU_CRYPTED));
data/libuser-0.62~dfsg/modules/ldap.c:1680: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).
		prefix_len = strlen(LU_CRYPTED);
data/libuser-0.62~dfsg/modules/ldap.c:1799:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    && strcmp(previous + strlen(LU_CRYPTED),
data/libuser-0.62~dfsg/modules/ldap.c:1801: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).
			salt = previous + strlen(LU_CRYPTED);
data/libuser-0.62~dfsg/modules/ldap.c:1890: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).
	g_assert(strlen(searchAttr) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:1892: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).
	g_assert(strlen(returnAttr) > 0);
data/libuser-0.62~dfsg/modules/ldap.c:1901:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(ctx->prompts[LU_LDAP_BASEDN].value) ?
data/libuser-0.62~dfsg/modules/sasldb.c:58:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(name), "", 0);
data/libuser-0.62~dfsg/modules/sasldb.c:120: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).
				   password != NULL ? strlen (password) : 0,
data/libuser-0.62~dfsg/modules/sasldb.c:257:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(name), "", 0);
data/libuser-0.62~dfsg/tests/wait_for_slapd_exit.c:64:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(100000);
data/libuser-0.62~dfsg/tests/wait_for_slapd_start.c:64:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(100000);

ANALYSIS SUMMARY:

Hits = 249
Lines analyzed = 24684 in approximately 0.62 seconds (39510 lines/second)
Physical Source Lines of Code (SLOC) = 18004
Hits@level = [0] 213 [1] 150 [2]  78 [3]   5 [4]  14 [5]   2
Hits@level+ = [0+] 462 [1+] 249 [2+]  99 [3+]  21 [4+]  16 [5+]   2
Hits/KSLOC@level+ = [0+] 25.661 [1+] 13.8303 [2+] 5.49878 [3+] 1.16641 [4+] 0.888691 [5+] 0.111086
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.