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/biometric-authentication-0.9.70/src/dbus_comm.h
Examining data/biometric-authentication-0.9.70/src/biometric-dbus-common.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/etes603.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/upektc.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/upekts.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/fdu2000.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes4000.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes2501.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/upeksonly.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes2550.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/uru4000.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes1610.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes1660.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/vcom5s.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/vfs101.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/vfs5011.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/elan.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/vfs0050.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes2660.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/aes3500.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/vfs301.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/drivers/upektc_img.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_define.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_type.h
Examining data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.h
Examining data/biometric-authentication-0.9.70/src/biometric-authenticationd.h
Examining data/biometric-authentication-0.9.70/src/biometric-authenticationd.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-set-key.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-remove-key.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-disable-driver.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-remove-driver.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-remove-driver.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-disable-driver.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-set-key.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-add-driver.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-remove-key.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-main.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-enable-driver.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-add-driver.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-enable-driver.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-main.h
Examining data/biometric-authentication-0.9.70/src/utils/biometric-device-discover/community-multidevice/community_multidevice_discover_tool.c
Examining data/biometric-authentication-0.9.70/src/utils/biometric-device-discover/community-multidevice/community_multidevice_discover_tool.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_common.c
Examining data/biometric-authentication-0.9.70/src/lib/biometric_intl.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_version.c
Examining data/biometric-authentication-0.9.70/src/lib/biometric_version.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_config.c
Examining data/biometric-authentication-0.9.70/src/lib/biometric_storage.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_common.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_config.h
Examining data/biometric-authentication-0.9.70/src/lib/biometric_storage.c
Examining data/biometric-authentication-0.9.70/src/biometric-dbus-common.c

FINAL RESULTS:

data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:196:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		ret = chmod(DB_PATH, S_IRUSR | S_IWUSR);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:926:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			ret = chown(user_conf_file, pwd->pw_uid, pwd->pw_gid);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:945:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(user_conf_file, pwd->pw_uid, pwd->pw_gid);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:971:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			ret = chown(user_conf_file, pwd->pw_uid, pwd->pw_gid);
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1601: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.
        if (access(pid_dir_list[i], F_OK) == 0) {
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.c:106:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf (priv->extra_info, EXTRA_INFO_LENGTH, ("Enroll stage[ %d / %d ] passed. Yay! Please press your finger again.\n"),
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.c:427:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf (priv->extra_info, EXTRA_INFO_LENGTH, ("search successful [index = %d] ! Please press your finger again to search.\n"), searchData->index);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.c:500:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (priv->extra_info, EXTRA_INFO_LENGTH, ("_identify fingerprint template successful, its uid is %d"), identifyData->uid);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:804:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf (priv->extra_info, EXTRA_INFO_LENGTH, ("_Device %s[%d] received interrupt request\n"), dev->device_name, dev->driver_id);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:217:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ((char *)priv->aes_key, "%s", DEFAULT_AES_KEY);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:222: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(key_file, F_OK | R_OK) != 0) {
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:228:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ((char *)priv->aes_key, "%s", DEFAULT_AES_KEY);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:243:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ((char *)priv->aes_key, "%s", DEFAULT_AES_KEY);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:257:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ((char *)priv->aes_key, "%s", DEFAULT_AES_KEY);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:280:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ((char *)priv->aes_key, "%s", DEFAULT_AES_KEY);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:297:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dev->serial_info.path, "%s", path);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:1618:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		ret = vfprintf(stream, format, args);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:139:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(dstr, "D:%s,", olddriver);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:148:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(istr, "I:%04d(%s),", idx, info->index_name);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:174:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(DB_PATH, F_OK);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:179:9:  [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.
		ret = access(DB_DIR, F_OK);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:372:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	l = sprintf(all_sql_str, "%s", base_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:374:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", uid_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:376:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", biotype_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:378:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", driver_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:380:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", idx_end_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:381:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	l += sprintf(all_sql_str + l, "%s", order_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:602:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	l = sprintf(all_sql_str, "%s", base_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:604:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", uid_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:606:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", biotype_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:608:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", driver_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:610:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		l += sprintf(all_sql_str + l, "%s", idx_end_sql_str);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:875: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(dir_name, new_dir);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:884:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(dir_name, F_OK) != 0) {
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:912:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(uuid, sizeof(UUID_DEFAULT), UUID_DEFAULT);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:916: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(pwd->pw_dir, F_OK) != 0)
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:918:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(uuid, sizeof(UUID_DEFAULT), UUID_DEFAULT);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:923:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(user_conf_file, F_OK);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:935:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(user_conf_file, F_OK);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:60:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((strcmp(getenv("BIO_PRINT_LEVEL"), "7") == 0) && (strcmp(getenv("BIO_PRINT_COLOR"), "1") == 0))
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:60:63:  [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 ((strcmp(getenv("BIO_PRINT_LEVEL"), "7") == 0) && (strcmp(getenv("BIO_PRINT_COLOR"), "1") == 0))
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:1544:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char * level_char = getenv(BIO_PRINT_LEVEL_ENV);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:1555:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char * color_char = getenv(BIO_PRINT_LEVEL_COLOR);
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:277: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:281: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:285: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:289: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:293: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(p4, &idx_start, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:297: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(p5, &idx_end, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:367: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:371: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:375: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:545: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:549: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:553: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:557: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:561: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(p4, &idx, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:653: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:657: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:661: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:665: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:669: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(p4, &idx, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:765: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:769: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:773: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:777: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:781: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(p4, &idx_start, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:785: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(p5, &idx_end, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:857: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:861: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:865: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:983: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:987: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:991: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:995: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:999: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(p4, &idx_start, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1003: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(p5, &idx_end, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1146: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1150: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1154: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1158: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1162: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(p4, &idx_start, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1166: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(p5, &idx_end, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1254: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1258: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1262: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1266: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(p3, &uid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1270: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(p4, &idx, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1338: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(p0, &object, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1342: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(p1, &invocation, sizeof(void *));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1346: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(p2, &drvid, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1350: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(p3, &waiting_sec, sizeof(const int));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1585: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_dir_list[PID_DIR_NUM] = {PID_DIR_0, PID_DIR_1};
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1587: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_file[MAX_PATH_LEN] = {0};
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1588: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[MAX_PID_STRING_LEN] = {0};
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1613:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int pid_file_fd = open(pid_file, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:78:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char t[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:99: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 state[4][4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:125: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 state[4][4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:149: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 bw[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:178: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 t[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:192: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 t[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:218: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 t[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:232: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 t[4];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:268: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 input[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:269: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 output[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:270: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 plainText[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:271: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 cipherText[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:272:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char w[11][4][4] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:289: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(plainText, inData + start, end - start);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:308: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(input, cipherText, 16);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:324: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 input[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:325: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 output[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:326: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 cipherText[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:327: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 plainText[16] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:328:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char w[11][4][4] = {0};
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:345: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(cipherText, inData + start, end - start);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/aes_128_cfb.c:364: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(input, cipherText, 16);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/close.c:325: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 date_str[128];
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:69:13:  [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).
	priv->fd = open ("/tmp/biometric_shared_file", O_CREAT | O_RDWR, 0664);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:237:7:  [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 (key_file, "r");
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:292: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 iv[AES_BLOCK_SIZE] = {0};		// 初始偏移向量IV
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:309: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 iv[AES_BLOCK_SIZE] = {0};		// 初始偏移向量IV
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_type.h:100: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 extra_info[EXTRA_INFO_LENGTH];
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:124: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 temp[4];
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:1550:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		level_int = atoi(level_char);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:1559:16:  [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).
			color_int = atoi(color_char);
data/biometric-authentication-0.9.70/src/lib/biometric_common.h:149: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 path[MAX_PATH_LEN];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:91: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 ustr[SL];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:92: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 bstr[SL];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:93: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 dstr[SL];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:94: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 istr[SL];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:116:4:  [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(ustr, "U:%04d,", uid);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:128:4:  [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(bstr, "B:%02d,", biotype);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:337: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 uuid[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:338: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 user_uuid[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:342: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 old_uuid[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:506: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 uuid[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:700: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 sql_cmd[MAX_PATH_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:872: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 dir_name[256];
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:905: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 user_conf_file[MAX_PATH_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:906: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 uuid_buf[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:941: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).
		fd = fopen(user_conf_file, "w");
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:952: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).
		fd = fopen(user_conf_file, "r");
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:967:9:  [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).
			fd = fopen(user_conf_file, "w");
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:989: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 uuid[UUID_BUF_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:990: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 sql_cmd[MAX_PATH_LEN] = {0};
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:1056: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 sql_cmd[MAX_PATH_LEN] = {0};
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1629: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).
	ret = write(pid_file_fd, pid_string, strlen(pid_string));
data/biometric-authentication-0.9.70/src/biometric-authenticationd.c:1630:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ret != strlen(pid_string))
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:143:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:153:8:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:164:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:199:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:209: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:220:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:338:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:349: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:360:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:373:6:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:454:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:465: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:476:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:489:6:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:541:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:552: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:563:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:576:6:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:633:4:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:644: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:655:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:668: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/community_ops.c:813:3:  [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(EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:154:3:  [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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:165: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 (100);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:176:4:  [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 (EM1600DEV_FINGER_CHECK_INTERVAL_MS * 1000);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:215: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).
		priv->aes_key = malloc(strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:216: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).
		memset (priv->aes_key, 0, strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:226: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).
		priv->aes_key = malloc(strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:227: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).
		memset (priv->aes_key, 0, strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:241: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).
		priv->aes_key = malloc(strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:242: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).
		memset (priv->aes_key, 0, strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:255:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		priv->aes_key = malloc(strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:256: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).
		memset (priv->aes_key, 0, strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:278: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).
		priv->aes_key = malloc(strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/drivers/community-multidevice/driver_internal.c:279: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).
		memset (priv->aes_key, 0, strlen(DEFAULT_AES_KEY) + 1);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:71: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).
		int l = strlen(old_str) + 1;
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:74:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(str, old_str, l);
data/biometric-authentication-0.9.70/src/lib/biometric_common.c:117: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).
	return strlen(base64);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:362: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:362: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:362: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:363:4:  [1] (buffer) strlen:
  Does not handle 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(driver_sql_str) + strlen(idx_end_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:363: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).
			strlen(driver_sql_str) + strlen(idx_end_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:364:4:  [1] (buffer) strlen:
  Does not handle 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(order_sql_str) + 1;
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:418:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uuid, (char *)sqlite3_column_text(stmt, 2), UUID_BUF_LEN);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:446:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(old_uuid, uuid, UUID_BUF_LEN);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:593: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:593: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:593: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).
	l = strlen(base_sql_str) + strlen(uid_sql_str) + strlen(biotype_sql_str) +
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:594:4:  [1] (buffer) strlen:
  Does not handle 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(driver_sql_str) + strlen(idx_end_sql_str) + 1;
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:594: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).
			strlen(driver_sql_str) + strlen(idx_end_sql_str) + 1;
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:858: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).
		int l = strlen(old_str) + 1;
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:861:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(str, old_str, l);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:874: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(new_dir);
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:877:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(dir_name, "/");
data/biometric-authentication-0.9.70/src/lib/biometric_storage.c:879: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(dir_name);
data/biometric-authentication-0.9.70/src/utils/biometric-config-tool/biometric-config-tool-main.c:117: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).
										(int) (20 - strlen (commands->name)),
data/biometric-authentication-0.9.70/src/utils/biometric-device-discover/community-multidevice/community_multidevice_discover_tool.c:134: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).
			drv_name = base_name + strlen("usb-");

ANALYSIS SUMMARY:

Hits = 209
Lines analyzed = 12728 in approximately 0.35 seconds (35864 lines/second)
Physical Source Lines of Code (SLOC) = 8393
Hits@level = [0]  46 [1]  61 [2] 105 [3]   4 [4]  35 [5]   4
Hits@level+ = [0+] 255 [1+] 209 [2+] 148 [3+]  43 [4+]  39 [5+]   4
Hits/KSLOC@level+ = [0+] 30.3825 [1+] 24.9017 [2+] 17.6337 [3+] 5.12332 [4+] 4.64673 [5+] 0.476588
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.