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/eurephia-1.1.0/common/certinfo.c
Examining data/eurephia-1.1.0/common/certinfo.h
Examining data/eurephia-1.1.0/common/eurephia_cfgfile.c
Examining data/eurephia-1.1.0/common/eurephia_cfgfile.h
Examining data/eurephia-1.1.0/common/eurephia_context.h
Examining data/eurephia-1.1.0/common/eurephia_directions.h
Examining data/eurephia-1.1.0/common/eurephia_driverapi.h
Examining data/eurephia-1.1.0/common/eurephia_getsym.c
Examining data/eurephia-1.1.0/common/eurephia_getsym.h
Examining data/eurephia-1.1.0/common/eurephia_log.c
Examining data/eurephia-1.1.0/common/eurephia_log.h
Examining data/eurephia-1.1.0/common/eurephia_log_struct.h
Examining data/eurephia-1.1.0/common/eurephia_nullsafe.c
Examining data/eurephia-1.1.0/common/eurephia_nullsafe.h
Examining data/eurephia-1.1.0/common/eurephia_values.c
Examining data/eurephia-1.1.0/common/eurephia_values.h
Examining data/eurephia-1.1.0/common/eurephia_values_struct.h
Examining data/eurephia-1.1.0/common/eurephia_xml.c
Examining data/eurephia-1.1.0/common/eurephia_xml.h
Examining data/eurephia-1.1.0/common/eurephiadb_session_common.c
Examining data/eurephia-1.1.0/common/eurephiadb_session_common.h
Examining data/eurephia-1.1.0/common/eurephiadb_session_struct.h
Examining data/eurephia-1.1.0/common/passwd.c
Examining data/eurephia-1.1.0/common/passwd.h
Examining data/eurephia-1.1.0/common/randstr.c
Examining data/eurephia-1.1.0/common/randstr.h
Examining data/eurephia-1.1.0/common/sha512.c
Examining data/eurephia-1.1.0/common/sha512.h
Examining data/eurephia-1.1.0/database/eurephiadb-driver_template.c
Examining data/eurephia-1.1.0/database/eurephiadb.c
Examining data/eurephia-1.1.0/database/eurephiadb.h
Examining data/eurephia-1.1.0/database/eurephiadb_driver.h
Examining data/eurephia-1.1.0/database/eurephiadb_mapping.c
Examining data/eurephia-1.1.0/database/eurephiadb_mapping.h
Examining data/eurephia-1.1.0/database/eurephiadb_struct.h
Examining data/eurephia-1.1.0/database/sqlite/administration/attempts.c
Examining data/eurephia-1.1.0/database/sqlite/administration/authentication.c
Examining data/eurephia-1.1.0/database/sqlite/administration/blacklist.c
Examining data/eurephia-1.1.0/database/sqlite/administration/certificates.c
Examining data/eurephia-1.1.0/database/sqlite/administration/configuration.c
Examining data/eurephia-1.1.0/database/sqlite/administration/firewalladmin.c
Examining data/eurephia-1.1.0/database/sqlite/administration/lastlog.c
Examining data/eurephia-1.1.0/database/sqlite/administration/useraccount.c
Examining data/eurephia-1.1.0/database/sqlite/administration/usercerts.c
Examining data/eurephia-1.1.0/database/sqlite/edb-sqlite.c
Examining data/eurephia-1.1.0/database/sqlite/fieldmapping.h
Examining data/eurephia-1.1.0/database/sqlite/sqlite.h
Examining data/eurephia-1.1.0/database/sqlite/sqlite.c
Examining data/eurephia-1.1.0/doxygen/doxygen_mainpage.h
Examining data/eurephia-1.1.0/eurephiadm/argparser.c
Examining data/eurephia-1.1.0/eurephiadm/argparser.h
Examining data/eurephia-1.1.0/eurephiadm/client_config.c
Examining data/eurephia-1.1.0/eurephiadm/client_config.h
Examining data/eurephia-1.1.0/eurephiadm/client_context.c
Examining data/eurephia-1.1.0/eurephiadm/client_context.h
Examining data/eurephia-1.1.0/eurephiadm/client_session.c
Examining data/eurephia-1.1.0/eurephiadm/client_session.h
Examining data/eurephia-1.1.0/eurephiadm/commands.h
Examining data/eurephia-1.1.0/eurephiadm/commands/adminaccess.c
Examining data/eurephia-1.1.0/eurephiadm/commands/attempts.c
Examining data/eurephia-1.1.0/eurephiadm/commands/blacklist.c
Examining data/eurephia-1.1.0/eurephiadm/commands/buildinfo.c
Examining data/eurephia-1.1.0/eurephiadm/commands/certificates.c
Examining data/eurephia-1.1.0/eurephiadm/commands/edit_config.c
Examining data/eurephia-1.1.0/eurephiadm/commands/fwprofiles.c
Examining data/eurephia-1.1.0/eurephiadm/commands/lastlog.c
Examining data/eurephia-1.1.0/eurephiadm/commands/usercerts.c
Examining data/eurephia-1.1.0/eurephiadm/commands/users.c
Examining data/eurephia-1.1.0/eurephiadm/eurephiadm.c
Examining data/eurephia-1.1.0/eurephiadm/get_console_input.c
Examining data/eurephia-1.1.0/eurephiadm/get_console_input.h
Examining data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c
Examining data/eurephia-1.1.0/eurephiadm/parse_certificate_files.h
Examining data/eurephia-1.1.0/eurephiadm/xsltparser.c
Examining data/eurephia-1.1.0/eurephiadm/xsltparser.h
Examining data/eurephia-1.1.0/plugin/environment.c
Examining data/eurephia-1.1.0/plugin/environment.h
Examining data/eurephia-1.1.0/plugin/eurephia.c
Examining data/eurephia-1.1.0/plugin/eurephia.h
Examining data/eurephia-1.1.0/plugin/eurephiadb_session.c
Examining data/eurephia-1.1.0/plugin/eurephiadb_session.h
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw.c
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw.h
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw_helpers.c
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw_helpers.h
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw_intf.h
Examining data/eurephia-1.1.0/plugin/firewall/eurephiafw_struct.h
Examining data/eurephia-1.1.0/plugin/firewall/iptables/efw-iptables.c
Examining data/eurephia-1.1.0/plugin/eurephia-auth.c
Examining data/eurephia-1.1.0/utils/benchmark.c
Examining data/eurephia-1.1.0/utils/eurephia_init.c
Examining data/eurephia-1.1.0/utils/eurephia_saltdecode.c

FINAL RESULTS:

data/eurephia-1.1.0/common/eurephia_log.c:199: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.
        vfprintf(log, fmt, ap);
data/eurephia-1.1.0/common/passwd.c:573:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmp, "%s%s", pwd, salt);
data/eurephia-1.1.0/database/sqlite/administration/authentication.c:295:22:  [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( valid && access ) {
data/eurephia-1.1.0/database/sqlite/administration/authentication.c:312:37:  [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 ? 4 : 5), sesskey);
data/eurephia-1.1.0/database/sqlite/administration/authentication.c:326:29:  [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.
                } else if( !access ) {
data/eurephia-1.1.0/database/sqlite/administration/authentication.c:332:22:  [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 (valid && access) {
data/eurephia-1.1.0/database/sqlite/sqlite.c:68:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(errbuf, 4096, fmt, ap);
data/eurephia-1.1.0/eurephiadm/client_config.c:71:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(fname, file);
data/eurephia-1.1.0/eurephiadm/client_config.c:96:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(fname, file);
data/eurephia-1.1.0/eurephiadm/commands/buildinfo.c:93:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf("\n   Uncommitted changes to the git tree (%i file%s):\n"
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:427:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(res, argv[i]);
data/eurephia-1.1.0/plugin/environment.c:62:17:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                vsnprintf(key, 382, fmt, ap);
data/eurephia-1.1.0/common/passwd.c:477:17:  [3] (random) srand:
  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.
                srand( (unsigned int) time(NULL) );
data/eurephia-1.1.0/eurephiadm/client_config.c:61:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                if( (ptr = getenv(env)) != NULL ) {
data/eurephia-1.1.0/eurephiadm/client_config.c:68:21:  [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( ((ptr = getenv("EUREPHIA_DIR")) != NULL) && (strlen_nullsafe(ptr) <= 1016) ) {
data/eurephia-1.1.0/eurephiadm/client_config.c:83:21:  [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( ((ptr = getenv("HOME")) != NULL) && (strlen_nullsafe(ptr) <= 1016) ) {
data/eurephia-1.1.0/plugin/eurephia.c:90:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                c = getopt_long(argc, (char **)argv, "l:L:i:", eurephia_opts, &opt_idx);
data/eurephia-1.1.0/common/certinfo.c:57: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 tmp[130], *mainp, *origptr, *sub, *tok, *tok2;
data/eurephia-1.1.0/common/eurephia_cfgfile.c:132:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if( (fp = fopen(fname, "r")) == NULL ) {
data/eurephia-1.1.0/common/eurephia_log.c:172: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 tstmp_str[200];
data/eurephia-1.1.0/common/eurephia_log.c:318:49:  [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).
                } else if( (ctx->log->logfile = fopen(dest, "aw")) == NULL ) {
data/eurephia-1.1.0/common/eurephia_nullsafe.h:47:43:  [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).
#define atoi_nullsafe(str) (str != NULL ? atoi(str) : 0)
data/eurephia-1.1.0/common/eurephia_xml.c:138: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 tmp[34];
data/eurephia-1.1.0/common/passwd.c:82:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char b64t[64] =
data/eurephia-1.1.0/common/passwd.c:217: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.
        unsigned char alt_result[64]
data/eurephia-1.1.0/common/passwd.c:219: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.
        unsigned char temp_result[64]
data/eurephia-1.1.0/common/passwd.c:261:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                key = copied_key = memcpy (tmp + __alignof__ (uint64_t)
data/eurephia-1.1.0/common/passwd.c:268:39:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                salt = copied_salt =  memcpy (tmp + __alignof__ (uint64_t)
data/eurephia-1.1.0/common/passwd.c:334:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                cp = memcpy (cp, temp_result, 64);
data/eurephia-1.1.0/common/passwd.c:337:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (cp, temp_result, cnt);
data/eurephia-1.1.0/common/passwd.c:353:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                cp = memcpy (cp, temp_result, 64);
data/eurephia-1.1.0/common/passwd.c:356:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (cp, temp_result, cnt);
data/eurephia-1.1.0/common/passwd.c:469: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 saltinfo[20], saltstr[MAX_SALT_LEN+22]; // saltstr will also contain saltinfo
data/eurephia-1.1.0/common/passwd.c:594:17:  [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(ptr, "%02x", sha_res[i]);
data/eurephia-1.1.0/common/sha512.c:253:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/eurephia-1.1.0/common/sha512.c:339:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
data/eurephia-1.1.0/common/sha512.c:371:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&sc->buffer.bytes[sc->bufferLength], data, len);
data/eurephia-1.1.0/common/sha512.c:388:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
data/eurephia-1.1.0/common/sha512.c:464: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[1000];
data/eurephia-1.1.0/database/eurephiadb_mapping.c:358:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char sortkeys[8194];
data/eurephia-1.1.0/database/sqlite/sqlite.c:63: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 errbuf[4098];
data/eurephia-1.1.0/database/sqlite/sqlite.c:259: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 buf[255];
data/eurephia-1.1.0/database/sqlite/sqlite.c:275:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                strptime((const char *)sqlite3_value_text(argv[0]), "%Y-%m-%d %H:%M:%S", &tm);
data/eurephia-1.1.0/database/sqlite/sqlite.c:522: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 fields[4094], vals[4094];
data/eurephia-1.1.0/database/sqlite/sqlite.c:523: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 buf[8196];
data/eurephia-1.1.0/eurephiadm/argparser.c:38:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *optargs[MAX_ARGUMENTS];   /**< If an argument takes parameters, they will be put into this array */
data/eurephia-1.1.0/eurephiadm/argparser.h:52: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.
extern char *optargs[MAX_ARGUMENTS]; /**< Contains the parameters of an argument, if param > 0 */
data/eurephia-1.1.0/eurephiadm/client_config.c:52:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char fname[1026];
data/eurephia-1.1.0/eurephiadm/client_config.c:86:17:  [2] (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 string.
                strcat(fname, "/.eurephia");
data/eurephia-1.1.0/eurephiadm/client_session.c:84:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if( (sfp = fopen(fname, "r")) == NULL ) {
data/eurephia-1.1.0/eurephiadm/client_session.c:122:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if( (sfp = fopen(fname, "w")) == NULL ) {
data/eurephia-1.1.0/eurephiadm/client_session.c:161: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.
        unsigned char sha_res[SHA512_HASH_SIZE+2];
data/eurephia-1.1.0/eurephiadm/client_session.c:198:33:  [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(ptr, "%02x", sha_res[i]);
data/eurephia-1.1.0/eurephiadm/commands/certificates.c:173: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 tmp[66], *cname_cp = NULL, *org_cp = NULL;
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:239: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.
        const char *dbargv[MAX_ARGUMENTS];
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:283: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 username[33], password[33], *tmp = NULL;
data/eurephia-1.1.0/eurephiadm/get_console_input.c:61:17:  [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(&term_noecho, &term_orig, sizeof(struct termios));
data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c:61: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 resbuf[2050];
data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c:127: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.
        unsigned char md_sha1[EVP_MAX_MD_SIZE];
data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c:139:22:  [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(certfile, "r");
data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c:148:22:  [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(certfile, "r");
data/eurephia-1.1.0/eurephiadm/parse_certificate_files.c:159:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char pwd[130];
data/eurephia-1.1.0/plugin/environment.c:55: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.
                char key[384];
data/eurephia-1.1.0/plugin/eurephia.c:75: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.
        const char *dbargv[MAX_ARGUMENTS];
data/eurephia-1.1.0/plugin/eurephiadb_session.c:126:17:  [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(ptr, "%02x", sha_res[i]);
data/eurephia-1.1.0/plugin/eurephiadb_session.c:196:33:  [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(ptr, "%02x", sha_res[i]);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:266: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.
                char buf[1026];
data/eurephia-1.1.0/plugin/firewall/eurephiafw_struct.h:82: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 ipaddress[36];         /**< IP address to include (used by fwADD,fwDELETE and fwBLACKLIST) */
data/eurephia-1.1.0/plugin/firewall/eurephiafw_struct.h:83: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 macaddress[19];        /**< VPN MAC address (used by fwADD and fwDELETE) */
data/eurephia-1.1.0/plugin/firewall/eurephiafw_struct.h:84: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 rule_destination[66];  /**< Where this new rule will be inserted (mandatory) */
data/eurephia-1.1.0/plugin/firewall/eurephiafw_struct.h:85: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 goto_destination[66];  /**< Where matching rules should go next (used by fwBLACKLIST) */
data/eurephia-1.1.0/plugin/firewall/iptables/efw-iptables.c:53:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *eFWmode_str[7] = {
data/eurephia-1.1.0/utils/benchmark.c:59:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char randstr[34];
data/eurephia-1.1.0/utils/benchmark.c:61: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 pwdsalt[64], saltstr[32];
data/eurephia-1.1.0/utils/eurephia_init.c:127: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.
        const char *dbargv[MAX_ARGUMENTS];
data/eurephia-1.1.0/utils/eurephia_init.c:230: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 uname[66], pwd1[66], pwd2[66];
data/eurephia-1.1.0/utils/eurephia_init.c:418: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 buffer[22], prompt[80], value[22];
data/eurephia-1.1.0/utils/eurephia_init.c:474: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 buffer[22], value[22];
data/eurephia-1.1.0/utils/eurephia_init.c:523: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 buffer[22], value[22];
data/eurephia-1.1.0/utils/eurephia_init.c:550:34:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                        if( (f = fopen(fname, "w")) == NULL ) {
data/eurephia-1.1.0/utils/eurephia_init.c:579: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 buffer[1026], value[1026], prompt[180];
data/eurephia-1.1.0/utils/eurephia_saltdecode.c:97: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 key[258];
data/eurephia-1.1.0/common/certinfo.c:60: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( (input == NULL) || strlen(input) < 5)
data/eurephia-1.1.0/common/certinfo.c:70:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if( (tok != NULL) && (strlen(tok) > 0 ) ) {
data/eurephia-1.1.0/common/eurephia_nullsafe.h:69:37:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#define append_str(dest, src, size) strncat(dest, src, (size - strlen_nullsafe(dest)))
data/eurephia-1.1.0/common/eurephia_nullsafe.h:79:45:  [1] (buffer) strlen:
  Does not handle 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 strlen_nullsafe(str) (str != NULL ? strlen(str) : 0)
data/eurephia-1.1.0/common/passwd.c:238: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).
        key_len = strlen (key);
data/eurephia-1.1.0/common/passwd.c:530:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(saltstr, saltinfo, strlen(saltinfo));
data/eurephia-1.1.0/common/passwd.c:530: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).
                strncpy(saltstr, saltinfo, strlen(saltinfo));
data/eurephia-1.1.0/common/passwd.c:531:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(saltstr, tmp, saltlen - strlen(saltinfo));
data/eurephia-1.1.0/common/passwd.c:531:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strncat(saltstr, tmp, saltlen - strlen(saltinfo));
data/eurephia-1.1.0/database/eurephiadb_mapping.c:395: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).
        sortkeys[strlen(sortkeys)-1] = '\0';
data/eurephia-1.1.0/database/sqlite/edb-sqlite.c:144:50:  [1] (buffer) strlen:
  Does not handle 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( (argc != 1) || (argv[0] == NULL) || (strlen(argv[0]) < 1) ) {
data/eurephia-1.1.0/database/sqlite/sqlite.c:281: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).
                sqlite3_result_text(context, buf, strlen(buf), SQLITE_TRANSIENT);
data/eurephia-1.1.0/eurephiadm/client_config.c:69:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(fname, ptr, flen-1);
data/eurephia-1.1.0/eurephiadm/client_config.c:70:17:  [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(fname, "/");
data/eurephia-1.1.0/eurephiadm/client_config.c:85:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(fname, ptr, flen);
data/eurephia-1.1.0/eurephiadm/client_config.c:95:17:  [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(fname, "/");
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:242:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if( (argstr == NULL) || (strlen(argstr) < 1) ) {
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:291:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(username, tmp, 32);
data/eurephia-1.1.0/eurephiadm/eurephiadm.c:428:17:  [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(res, " ");
data/eurephia-1.1.0/eurephiadm/get_console_input.c:78: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).
                ptr = buf + strlen(buf) - 1;
data/eurephia-1.1.0/eurephiadm/get_console_input.c:92:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (buf != NULL ? strlen(buf) : -1); 
data/eurephia-1.1.0/plugin/environment.c:65: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).
                keylen = strlen (key);
data/eurephia-1.1.0/plugin/environment.c:72:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(ret, cp+1, len);
data/eurephia-1.1.0/plugin/eurephia.c:291:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(req.ipaddress, ipaddr, sizeof(req.ipaddress));
data/eurephia-1.1.0/plugin/eurephia.c:365:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(req.ipaddress, ipaddr, sizeof(req.ipaddress));
data/eurephia-1.1.0/plugin/eurephia.c:713:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(req.macaddress, clientaddr, sizeof(req.macaddress));
data/eurephia-1.1.0/plugin/eurephia.c:715:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(req.ipaddress, vpnipaddr, sizeof(req.ipaddress));
data/eurephia-1.1.0/plugin/eurephia.c:717:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(req.rule_destination, fwdest, sizeof(req.rule_destination));
data/eurephia-1.1.0/plugin/eurephia.c:718:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(req.goto_destination, fwprofile, sizeof(req.goto_destination));
data/eurephia-1.1.0/plugin/eurephia.c:757:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(req.macaddress, clientaddr, sizeof(req.macaddress));
data/eurephia-1.1.0/plugin/eurephia.c:759:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(req.ipaddress, clientaddr, sizeof(req.ipaddress));
data/eurephia-1.1.0/plugin/eurephia.c:761:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(req.rule_destination, fwdest, sizeof(req.rule_destination));
data/eurephia-1.1.0/plugin/eurephia.c:762:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(req.goto_destination, fwprofile, sizeof(req.goto_destination));
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:88: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( (intf == NULL) || (strlen(intf) == 0) ) {
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:297:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(updreq.rule_destination, fwdest, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:313:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(updreq.rule_destination, ctx->fwcfg->fwblacklist, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:326:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(updreq.rule_destination, ctx->fwcfg->fwblacklist, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:327:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(updreq.goto_destination,
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:333:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(updreq.ipaddress, p->val, 34);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:366:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(updreq.rule_destination, fwdest, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:502:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(request->rule_destination, ctx->fwcfg->fwblacklist, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:504:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(request->goto_destination, ctx->fwcfg->fwblacklist_sendto, 64);
data/eurephia-1.1.0/plugin/firewall/eurephiafw.c:506:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                                strncpy(request->goto_destination, "DROP\0", 6);
data/eurephia-1.1.0/utils/benchmark.c:77:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pwdsalt, saltstr, strlen(saltstr));
data/eurephia-1.1.0/utils/benchmark.c:77: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).
        strncpy(pwdsalt, saltstr, strlen(saltstr));
data/eurephia-1.1.0/utils/benchmark.c:78:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(pwdsalt, randstr, 62 - strlen(saltstr));
data/eurephia-1.1.0/utils/benchmark.c:78:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat(pwdsalt, randstr, 62 - strlen(saltstr));
data/eurephia-1.1.0/utils/eurephia_init.c:132:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if( (argstr == NULL) || (strlen(argstr) < 1) ) {

ANALYSIS SUMMARY:

Hits = 130
Lines analyzed = 22947 in approximately 0.78 seconds (29448 lines/second)
Physical Source Lines of Code (SLOC) = 12939
Hits@level = [0] 397 [1]  48 [2]  65 [3]   5 [4]  12 [5]   0
Hits@level+ = [0+] 527 [1+] 130 [2+]  82 [3+]  17 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 40.7296 [1+] 10.0471 [2+] 6.33743 [3+] 1.31386 [4+] 0.927429 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.