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/apr-util-1.6.1/strmatch/apr_strmatch.c Examining data/apr-util-1.6.1/uri/apr_uri.c Examining data/apr-util-1.6.1/ldap/apr_ldap_init.c Examining data/apr-util-1.6.1/ldap/apr_ldap_url.c Examining data/apr-util-1.6.1/ldap/apr_ldap_rebind.c Examining data/apr-util-1.6.1/ldap/apr_ldap_option.c Examining data/apr-util-1.6.1/ldap/apr_ldap_stub.c Examining data/apr-util-1.6.1/redis/apr_redis.c Examining data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c Examining data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c Examining data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c Examining data/apr-util-1.6.1/dbd/apr_dbd.c Examining data/apr-util-1.6.1/dbd/apr_dbd_odbc.c Examining data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c Examining data/apr-util-1.6.1/dbd/apr_dbd_oracle.c Examining data/apr-util-1.6.1/dbd/apr_dbd_mysql.c Examining data/apr-util-1.6.1/hooks/apr_hooks.c Examining data/apr-util-1.6.1/buckets/apr_buckets_socket.c Examining data/apr-util-1.6.1/buckets/apr_brigade.c Examining data/apr-util-1.6.1/buckets/apr_buckets_refcount.c Examining data/apr-util-1.6.1/buckets/apr_buckets_simple.c Examining data/apr-util-1.6.1/buckets/apr_buckets_file.c Examining data/apr-util-1.6.1/buckets/apr_buckets_pool.c Examining data/apr-util-1.6.1/buckets/apr_buckets_pipe.c Examining data/apr-util-1.6.1/buckets/apr_buckets_eos.c Examining data/apr-util-1.6.1/buckets/apr_buckets_flush.c Examining data/apr-util-1.6.1/buckets/apr_buckets_mmap.c Examining data/apr-util-1.6.1/buckets/apr_buckets.c Examining data/apr-util-1.6.1/buckets/apr_buckets_heap.c Examining data/apr-util-1.6.1/buckets/apr_buckets_alloc.c Examining data/apr-util-1.6.1/xlate/xlate.c Examining data/apr-util-1.6.1/include/apr_uuid.h Examining data/apr-util-1.6.1/include/apr_xlate.h Examining data/apr-util-1.6.1/include/apr_base64.h Examining data/apr-util-1.6.1/include/apr_md5.h Examining data/apr-util-1.6.1/include/apr_strmatch.h Examining data/apr-util-1.6.1/include/apr_thread_pool.h Examining data/apr-util-1.6.1/include/apr_dbm.h Examining data/apr-util-1.6.1/include/apr_crypto.h Examining data/apr-util-1.6.1/include/apr_sha1.h Examining data/apr-util-1.6.1/include/apr_md4.h Examining data/apr-util-1.6.1/include/apr_anylock.h Examining data/apr-util-1.6.1/include/apr_ldap_url.h Examining data/apr-util-1.6.1/include/apr_ldap_option.h Examining data/apr-util-1.6.1/include/apr_sdbm.h Examining data/apr-util-1.6.1/include/apr_ldap_init.h Examining data/apr-util-1.6.1/include/apr_rmm.h Examining data/apr-util-1.6.1/include/apr_optional_hooks.h Examining data/apr-util-1.6.1/include/apr_queue.h Examining data/apr-util-1.6.1/include/apu_version.h Examining data/apr-util-1.6.1/include/private/apr_dbd_odbc_v2.h Examining data/apr-util-1.6.1/include/private/apr_dbm_private.h Examining data/apr-util-1.6.1/include/private/apr_crypto_internal.h Examining data/apr-util-1.6.1/include/private/apr_dbd_internal.h Examining data/apr-util-1.6.1/include/private/apu_internal.h Examining data/apr-util-1.6.1/include/apr_uri.h Examining data/apr-util-1.6.1/include/apr_memcache.h Examining data/apr-util-1.6.1/include/apr_hooks.h Examining data/apr-util-1.6.1/include/apr_ldap_rebind.h Examining data/apr-util-1.6.1/include/apr_date.h Examining data/apr-util-1.6.1/include/apr_buckets.h Examining data/apr-util-1.6.1/include/apr_redis.h Examining data/apr-util-1.6.1/include/apr_optional.h Examining data/apr-util-1.6.1/include/apr_siphash.h Examining data/apr-util-1.6.1/include/apr_xml.h Examining data/apr-util-1.6.1/include/apr_reslist.h Examining data/apr-util-1.6.1/include/apu_errno.h Examining data/apr-util-1.6.1/include/apr_dbd.h Examining data/apr-util-1.6.1/test/testsiphash.c Examining data/apr-util-1.6.1/test/testutil.h Examining data/apr-util-1.6.1/test/testdate.c Examining data/apr-util-1.6.1/test/abts.c Examining data/apr-util-1.6.1/test/testxml.c Examining data/apr-util-1.6.1/test/testrmm.c Examining data/apr-util-1.6.1/test/testldap.c Examining data/apr-util-1.6.1/test/testqueue.c Examining data/apr-util-1.6.1/test/testpass.c Examining data/apr-util-1.6.1/test/abts_tests.h Examining data/apr-util-1.6.1/test/testdbm.c Examining data/apr-util-1.6.1/test/nw_misc.c Examining data/apr-util-1.6.1/test/testmd5.c Examining data/apr-util-1.6.1/test/testreslist.c Examining data/apr-util-1.6.1/test/dbd.c Examining data/apr-util-1.6.1/test/testredis.c Examining data/apr-util-1.6.1/test/teststrmatch.c Examining data/apr-util-1.6.1/test/testutil.c Examining data/apr-util-1.6.1/test/test_apu.h Examining data/apr-util-1.6.1/test/abts.h Examining data/apr-util-1.6.1/test/testcrypto.c Examining data/apr-util-1.6.1/test/testbuckets.c Examining data/apr-util-1.6.1/test/testmemcache.c Examining data/apr-util-1.6.1/test/testuuid.c Examining data/apr-util-1.6.1/test/testdbd.c Examining data/apr-util-1.6.1/test/testxlate.c Examining data/apr-util-1.6.1/test/testuri.c Examining data/apr-util-1.6.1/test/testmd4.c Examining data/apr-util-1.6.1/encoding/apr_base64.c Examining data/apr-util-1.6.1/misc/apu_version.c Examining data/apr-util-1.6.1/misc/apr_reslist.c Examining data/apr-util-1.6.1/misc/apu_dso.c Examining data/apr-util-1.6.1/misc/apr_queue.c Examining data/apr-util-1.6.1/misc/apr_thread_pool.c Examining data/apr-util-1.6.1/misc/apr_date.c Examining data/apr-util-1.6.1/misc/apr_rmm.c Examining data/apr-util-1.6.1/crypto/getuuid.c Examining data/apr-util-1.6.1/crypto/uuid.c Examining data/apr-util-1.6.1/crypto/apr_md4.c Examining data/apr-util-1.6.1/crypto/apr_crypto_openssl.c Examining data/apr-util-1.6.1/crypto/apr_crypto_nss.c Examining data/apr-util-1.6.1/crypto/apr_crypto.c Examining data/apr-util-1.6.1/crypto/apr_crypto_commoncrypto.c Examining data/apr-util-1.6.1/crypto/crypt_blowfish.c Examining data/apr-util-1.6.1/crypto/crypt_blowfish.h Examining data/apr-util-1.6.1/crypto/apr_passwd.c Examining data/apr-util-1.6.1/crypto/apr_siphash.c Examining data/apr-util-1.6.1/crypto/apr_md5.c Examining data/apr-util-1.6.1/crypto/apr_sha1.c Examining data/apr-util-1.6.1/memcache/apr_memcache.c Examining data/apr-util-1.6.1/xml/apr_xml.c Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_lock.c Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.h Examining data/apr-util-1.6.1/dbm/sdbm/sdbm.c Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_tune.h Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.c Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_private.h Examining data/apr-util-1.6.1/dbm/sdbm/sdbm_hash.c Examining data/apr-util-1.6.1/dbm/apr_dbm_ndbm.c Examining data/apr-util-1.6.1/dbm/apr_dbm.c Examining data/apr-util-1.6.1/dbm/apr_dbm_sdbm.c Examining data/apr-util-1.6.1/dbm/apr_dbm_berkeleydb.c Examining data/apr-util-1.6.1/dbm/apr_dbm_gdbm.c FINAL RESULTS: data/apr-util-1.6.1/crypto/apr_md5.c:606:5: [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(passwd, apr1_id); data/apr-util-1.6.1/crypto/apr_passwd.c:117:20: [4] (crypto) crypt_r: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt_pw = crypt_r(passwd, hash, buffer); data/apr-util-1.6.1/crypto/apr_passwd.c:148:20: [4] (crypto) crypt_r: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt_pw = crypt_r(passwd, hash, buffer); data/apr-util-1.6.1/crypto/apr_passwd.c:162:30: [4] (crypto) crypt_r: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. #error Configuration error! crypt_r() should have been selected! data/apr-util-1.6.1/crypto/apr_passwd.c:171:24: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt_pw = crypt(passwd, hash); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:241:5: [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(p_out, p_in); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:480:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pquery, "CREATE PROC apr.%s", label); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:488:5: [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(pquery, stmt->fmt); data/apr-util-1.6.1/dbm/sdbm/sdbm_tune.h:35:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug(x) printf x data/apr-util-1.6.1/include/apr_buckets.h:897:31: [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. __attribute__((format(printf,4,5))); data/apr-util-1.6.1/test/abts.c:223: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(stderr, fmt, args); data/apr-util-1.6.1/test/testbuckets.c:103:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: flatten brigade", ctx); data/apr-util-1.6.1/test/testbuckets.c:105:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: length match (%ld not %ld)", ctx, data/apr-util-1.6.1/test/testbuckets.c:108:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: result match", msg); data/apr-util-1.6.1/test/testdate.c:128:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ts, "%s, %.2d %s %d %.2d:%.2d:%.2d GMT", days[tms->tm_wday], data/apr-util-1.6.1/test/testutil.c:34:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s (%d): %s\n", context, rv, data/apr-util-1.6.1/test/testutil.c:47:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s (%d): expected failure, got success\n", context, rv); data/apr-util-1.6.1/xml/apr_xml.c:809:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "<%s", elem->name); data/apr-util-1.6.1/xml/apr_xml.c:811:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "<%s:%s", find_prefix_name(elem, elem->ns, 1), elem->name); data/apr-util-1.6.1/xml/apr_xml.c:814:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "<ns%d:%s", ns, elem->name); data/apr-util-1.6.1/xml/apr_xml.c:820:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " %s=\"%s\"", attr->name, attr->value); data/apr-util-1.6.1/xml/apr_xml.c:822:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " %s:%s=\"%s\"", data/apr-util-1.6.1/xml/apr_xml.c:826:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " ns%d:%s=\"%s\"", ns, attr->name, attr->value); data/apr-util-1.6.1/xml/apr_xml.c:836:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " xml:lang=\"%s\"", elem->lang); data/apr-util-1.6.1/xml/apr_xml.c:845:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " xmlns:ns%d=\"%s\"", i, data/apr-util-1.6.1/xml/apr_xml.c:856:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, " xmlns%s%s=\"%s\"", data/apr-util-1.6.1/xml/apr_xml.c:894:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "</%s>", elem->name); data/apr-util-1.6.1/xml/apr_xml.c:896:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "</%s:%s>", find_prefix_name(elem, elem->ns, 1), elem->name); data/apr-util-1.6.1/xml/apr_xml.c:899:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(s, "</ns%d:%s>", ns, elem->name); data/apr-util-1.6.1/crypto/getuuid.c:135:5: [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_now >> 32) ^ time_now) & 0xffffffff)); data/apr-util-1.6.1/dbd/apr_dbd.c:317:60: [3] (random) random: 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. const char *statement, int random) data/apr-util-1.6.1/dbd/apr_dbd.c:319:53: [3] (random) random: 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. return driver->select(pool,handle,res,statement,random); data/apr-util-1.6.1/dbd/apr_dbd.c:490:69: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd.c:493:54: [3] (random) random: 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. return driver->pselect(pool,handle,res,statement,random,args); data/apr-util-1.6.1/dbd/apr_dbd.c:513:46: [3] (random) random: 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. int random, ...) data/apr-util-1.6.1/dbd/apr_dbd.c:517:20: [3] (random) random: 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. va_start(args, random); data/apr-util-1.6.1/dbd/apr_dbd.c:518:54: [3] (random) random: 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. ret = driver->pvselect(pool,handle,res,statement,random,args); data/apr-util-1.6.1/dbd/apr_dbd.c:535:70: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd.c:538:55: [3] (random) random: 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. return driver->pbselect(pool,handle,res,statement,random,args); data/apr-util-1.6.1/dbd/apr_dbd.c:558:47: [3] (random) random: 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. int random, ...) data/apr-util-1.6.1/dbd/apr_dbd.c:562:20: [3] (random) random: 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. va_start(args, random); data/apr-util-1.6.1/dbd/apr_dbd.c:563:55: [3] (random) random: 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. ret = driver->pvbselect(pool,handle,res,statement,random,args); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:76:9: [3] (random) random: 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. int random; data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:284:18: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:306:18: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:713:43: [3] (random) random: 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. int random, MYSQL_BIND *bind) data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:730:30: [3] (random) random: 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. (*res)->random = random; data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:777:65: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:791:66: [3] (random) random: 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. ret = dbd_mysql_pselect_internal(pool, sql, res, statement, random, bind); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:801:66: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:817:57: [3] (random) random: 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. return dbd_mysql_pselect(pool, sql, res, statement, random, values); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:998:66: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1012:66: [3] (random) random: 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. ret = dbd_mysql_pselect_internal(pool, sql, res, statement, random, bind); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1022:67: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1038:58: [3] (random) random: 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. return dbd_mysql_pbselect(pool, sql, res, statement, random, values); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1244:14: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:144:9: [3] (random) random: 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. int random; /* random access requested */ data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:487:66: [3] (random) random: 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. apr_pool_t *pool, const int random, data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:497:22: [3] (random) random: 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. (*res)->random = random; data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1266:28: [3] (random) random: 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. int random) data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1289:9: [3] (random) random: 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. if (random) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1300:55: [3] (random) random: 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. rc = odbc_create_results(handle, hstmt, pool, random, res); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1348:14: [3] (random) random: 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. if (res->random && (rownum > 0)) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1358:37: [3] (random) random: 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. if (!SQL_SUCCEEDED(rc) && !res->random) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1531:29: [3] (random) random: 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. int random, const char **args) data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1539:9: [3] (random) random: 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. if (random) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1557:65: [3] (random) random: 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. rc = odbc_create_results(handle, statement->stmt, pool, random, res); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1567:61: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1576:55: [3] (random) random: 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. return odbc_pselect(pool, handle, res, statement, random, values); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1654:30: [3] (random) random: 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. int random, const void **args) data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1662:9: [3] (random) random: 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. if (random) { data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1680:65: [3] (random) random: 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. rc = odbc_create_results(handle, statement->stmt, pool, random, res); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1705:31: [3] (random) random: 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. int random, va_list args) data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1713:56: [3] (random) random: 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. return odbc_pbselect(pool, handle, res, statement, random, (const void **)values); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:50:9: [3] (random) random: 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. int random; data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:233:45: [3] (random) random: 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. int sequential = ((rownum >= 0) && res->random) ? 0 : 1; data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:265:14: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:1274:14: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:45:9: [3] (random) random: 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. int random; data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:136:45: [3] (random) random: 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. int sequential = ((rownum >= 0) && res->random) ? 0 : 1; data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:64:9: [3] (random) random: 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. int random; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:76:9: [3] (random) random: 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. int random; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:305:45: [3] (random) random: 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. int sequential = ((rownum >= 0) && res->random) ? 0 : 1; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:680:14: [3] (random) random: 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. if (res->random) { data/apr-util-1.6.1/include/apr_dbd.h:288:60: [3] (random) random: 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. const char *statement, int random); data/apr-util-1.6.1/include/apr_dbd.h:431:69: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/include/apr_dbd.h:464:46: [3] (random) random: 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. int random, ...); data/apr-util-1.6.1/include/apr_dbd.h:495:70: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, data/apr-util-1.6.1/include/apr_dbd.h:528:47: [3] (random) random: 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. int random, ...); data/apr-util-1.6.1/include/private/apr_dbd_internal.h:136:46: [3] (random) random: 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. const char *statement, int random); data/apr-util-1.6.1/include/private/apr_dbd_internal.h:235:56: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, va_list args); data/apr-util-1.6.1/include/private/apr_dbd_internal.h:261:24: [3] (random) random: 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. int random, const char **args); data/apr-util-1.6.1/include/private/apr_dbd_internal.h:314:57: [3] (random) random: 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. apr_dbd_prepared_t *statement, int random, va_list args); data/apr-util-1.6.1/include/private/apr_dbd_internal.h:340:25: [3] (random) random: 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. int random, const void **args); data/apr-util-1.6.1/test/nw_misc.c:11:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("_IN_NETWARE_BASH_") == NULL) { data/apr-util-1.6.1/test/testmemcache.c:115:2: [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) (getpid())); data/apr-util-1.6.1/test/testqueue.c:97:5: [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)apr_time_now()); data/apr-util-1.6.1/test/testredis.c:116:2: [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) (getpid())); data/apr-util-1.6.1/buckets/apr_brigade.c:252: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(c, str, str_len); data/apr-util-1.6.1/buckets/apr_brigade.c:482: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(buf, str, nbyte); data/apr-util-1.6.1/buckets/apr_brigade.c:521:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. e = apr_bucket_heap_create((const char *) vec[i].iov_base, data/apr-util-1.6.1/buckets/apr_brigade.c:549: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(buf, (const void *) vec[i].iov_base, len); data/apr-util-1.6.1/buckets/apr_brigade.c:567: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(buf, (const void *) vec[i].iov_base, len); data/apr-util-1.6.1/buckets/apr_brigade.c:600: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(buf, (const void *) vec[i].iov_base, len); data/apr-util-1.6.1/buckets/apr_brigade.c:684:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[APR_BUCKET_BUFF_SIZE]; data/apr-util-1.6.1/buckets/apr_buckets_heap.c:59: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(h->base, buf, length); data/apr-util-1.6.1/buckets/apr_buckets_pool.c:38: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(p->heap.base, p->base, p->heap.alloc_len); data/apr-util-1.6.1/crypto/apr_crypto.c:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modname[32]; data/apr-util-1.6.1/crypto/apr_crypto.c:197:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symname[34]; data/apr-util-1.6.1/crypto/apr_crypto_commoncrypto.c:194: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 seed[8]; data/apr-util-1.6.1/crypto/apr_crypto_commoncrypto.c:424: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(key->key, rec->k.secret.secret, rec->k.secret.secretLen); data/apr-util-1.6.1/crypto/apr_crypto_nss.c:555:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 data[BUFFER_SIZE]; data/apr-util-1.6.1/crypto/apr_crypto_nss.c:582:21: [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(secretItem.data, rec->k.secret.secret, data/apr-util-1.6.1/crypto/apr_crypto_openssl.c:504: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(key->key, rec->k.secret.secret, rec->k.secret.secretLen); data/apr-util-1.6.1/crypto/apr_md4.c:68:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void MD4Transform(apr_uint32_t state[4], const unsigned char block[64]); data/apr-util-1.6.1/crypto/apr_md4.c:74: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. static unsigned char PADDING[64] = data/apr-util-1.6.1/crypto/apr_md4.c:182: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(&context->buffer[idx], input, partLen); data/apr-util-1.6.1/crypto/apr_md4.c:194: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(&context->buffer[idx], &input[i], inputLen - i); data/apr-util-1.6.1/crypto/apr_md4.c:205:13: [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(&context->buffer[idx], input, partLen); data/apr-util-1.6.1/crypto/apr_md4.c:211:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 inp_tmp[64]; data/apr-util-1.6.1/crypto/apr_md4.c:236: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(&context->buffer[idx], &input[i], inputLen - i); data/apr-util-1.6.1/crypto/apr_md4.c:246:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 digest[APR_MD4_DIGESTSIZE], data/apr-util-1.6.1/crypto/apr_md4.c:249: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. unsigned char bits[8]; data/apr-util-1.6.1/crypto/apr_md4.c:279:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md4(unsigned char digest[APR_MD4_DIGESTSIZE], data/apr-util-1.6.1/crypto/apr_md4.c:295:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void MD4Transform(apr_uint32_t state[4], const unsigned char block[64]) data/apr-util-1.6.1/crypto/apr_md5.c:89:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void MD5Transform(apr_uint32_t state[4], const unsigned char block[64]); data/apr-util-1.6.1/crypto/apr_md5.c:95:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char PADDING[64] = data/apr-util-1.6.1/crypto/apr_md5.c:215: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(&context->buffer[idx], input, partLen); data/apr-util-1.6.1/crypto/apr_md5.c:227: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(&context->buffer[idx], &input[i], inputLen - i); data/apr-util-1.6.1/crypto/apr_md5.c:238:13: [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(&context->buffer[idx], input, partLen); data/apr-util-1.6.1/crypto/apr_md5.c:244:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 inp_tmp[64]; data/apr-util-1.6.1/crypto/apr_md5.c:269: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(&context->buffer[idx], &input[i], inputLen - i); data/apr-util-1.6.1/crypto/apr_md5.c:288:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md5_final(unsigned char digest[APR_MD5_DIGESTSIZE], data/apr-util-1.6.1/crypto/apr_md5.c:291: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. unsigned char bits[8]; data/apr-util-1.6.1/crypto/apr_md5.c:321:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md5(unsigned char digest[APR_MD5_DIGESTSIZE], data/apr-util-1.6.1/crypto/apr_md5.c:338:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void MD5Transform(apr_uint32_t state[4], const unsigned char block[64]) data/apr-util-1.6.1/crypto/apr_md5.c:513:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char passwd[120], *p; data/apr-util-1.6.1/crypto/apr_md5.c:515: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. unsigned char final[APR_MD5_DIGESTSIZE]; data/apr-util-1.6.1/crypto/apr_passwd.c:85:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sample[200]; data/apr-util-1.6.1/crypto/apr_passwd.c:193:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char setting[40]; data/apr-util-1.6.1/crypto/apr_sha1.c:169:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Char[sizeof(long)]; data/apr-util-1.6.1/crypto/apr_sha1.c:236: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(((apr_byte_t *) sha_info->data) + sha_info->local, buffer, i); data/apr-util-1.6.1/crypto/apr_sha1.c:249: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(sha_info->data, buffer, SHA_BLOCKSIZE); data/apr-util-1.6.1/crypto/apr_sha1.c:255: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(sha_info->data, buffer, count); data/apr-util-1.6.1/crypto/apr_sha1.c:313:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_sha1_final(unsigned char digest[APR_SHA1_DIGESTSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:99:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:121:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:123:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:132:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]) data/apr-util-1.6.1/crypto/apr_siphash.c:152:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash24_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:154:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]) data/apr-util-1.6.1/crypto/apr_siphash.c:162:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]) data/apr-util-1.6.1/crypto/apr_siphash.c:188:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash48_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/crypto/apr_siphash.c:190:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]) data/apr-util-1.6.1/crypto/crypt_blowfish.c:364: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. static unsigned char BF_itoa64[64 + 1] = data/apr-util-1.6.1/crypto/crypt_blowfish.c:367: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. static unsigned char BF_atoi64[0x60] = { data/apr-util-1.6.1/crypto/crypt_blowfish.c:651:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char flags_by_subtype[26] = data/apr-util-1.6.1/crypto/crypt_blowfish.c:766: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(output, setting, 7 + 22 - 1); data/apr-util-1.6.1/crypto/crypt_blowfish.c:819:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char * const test_hash[2] = data/apr-util-1.6.1/crypto/crypt_blowfish.c:826:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[7 + 22 + 1]; data/apr-util-1.6.1/crypto/crypt_blowfish.c:827: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 o[7 + 22 + 31 + 1 + 1 + 1]; data/apr-util-1.6.1/crypto/getuuid.c:52: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. static unsigned char uuid_state_node[NODE_LENGTH] = { 0 }; data/apr-util-1.6.1/crypto/getuuid.c:55:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void get_random_info(unsigned char node[NODE_LENGTH]) data/apr-util-1.6.1/crypto/getuuid.c:63: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. unsigned char seed[APR_MD5_DIGESTSIZE]; data/apr-util-1.6.1/crypto/getuuid.c:78: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 hostname[257]; data/apr-util-1.6.1/crypto/getuuid.c:94: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(node, seed, NODE_LENGTH); /* use a subset of the seed bytes */ data/apr-util-1.6.1/crypto/getuuid.c:125: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. unsigned char buf[2]; data/apr-util-1.6.1/crypto/getuuid.c:207: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(&d[10], uuid_state_node, NODE_LENGTH); data/apr-util-1.6.1/crypto/uuid.c:29:5: [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(buffer, data/apr-util-1.6.1/dbd/apr_dbd.c:159:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modname[32]; data/apr-util-1.6.1/dbd/apr_dbd.c:160:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symname[34]; data/apr-util-1.6.1/dbd/apr_dbd.c:219:24: [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). *handle = (driver->open)(pool, params, error); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:406:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:409:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:412:29: [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). *(short*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:415:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:418:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:421:36: [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). *(unsigned int*)data = atoi(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:424:28: [2] (integer) atol: 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). *(long*)data = atol(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:427:37: [2] (integer) atol: 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). *(unsigned long*)data = atol(bind->buffer); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:476:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:479:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:482:29: [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). *(short*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:485:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:488:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:491:36: [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). *(unsigned int*)data = atoi(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:494:28: [2] (integer) atol: 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). *(long*)data = atol(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:497:37: [2] (integer) atol: 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). *(unsigned long*)data = atol(row->row[n]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:629:41: [2] (integer) atol: 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). bind[i].buffer_length = atol(values[++j]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1165: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). port = atoi(fields[4].value); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1172:22: [2] (integer) atol: 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). sql->fldsz = atol(fields[7].value); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:1179:25: [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). do_reconnect = atoi(fields[9].value) ? 1 : 0; data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lastError[MAX_ERROR_STRING]; data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:576:22: [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). atoi(args[*argp]) : *(unsigned char *)args[*argp]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:576:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. atoi(args[*argp]) : *(unsigned char *)args[*argp]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:582:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). (textmode ? atoi(args[*argp]) : *(short *)args[*argp]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:588:33: [2] (integer) atol: 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). (textmode ? atol(args[*argp]) : *(long *)args[*argp]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:837:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *seps, *last, *next, *name[MAX_PARAMS], *val[MAX_PARAMS]; data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:886:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *defaultBufferSize = atoi(val[i]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:898:30: [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). (*attrvals)[j] = atoi(val[i]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:902:30: [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). (*attrvals)[j] = atoi(val[i]); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:979:10: [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. p += sprintf(p, "[dbd_odbc] %.64s returned %.30s (%d) at %.24s:%d ", data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:985:18: [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. p += sprintf(p, "%.256s %.20s ", buffer, sqlstate); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:990: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 timestamp[APR_CTIME_LEN]; data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1401: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(data, p, len); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1583:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_COLUMN_NAME]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ERR_BUF_SIZE]; /* for error messages */ data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:939:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *data = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:940:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int size = atoi((char*)values[++j]); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:956:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *data = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:957:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int size = atoi((char*)values[++j]); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:999:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *paramname[DBD_ORACLE_MAX_COLUMNS]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1478:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *data = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1495:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *data = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1952:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1959:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1966:25: [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). *(short*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1973:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1980:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1987:32: [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). *(unsigned int*)data = atoi(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1994:24: [2] (integer) atol: 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). *(long*)data = atol(entry); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:2001:33: [2] (integer) atol: 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). *(unsigned long*)data = atol(entry); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:322:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:325:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:328:25: [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). *(short*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:331:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:334:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:337:32: [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). *(unsigned int*)data = atoi(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:340:24: [2] (integer) atol: 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). *(long*)data = atol(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:343:33: [2] (integer) atol: 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). *(unsigned long*)data = atol(PQgetvalue(row->res->res, row->n, n)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:422:18: [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). *nrows = atoi(PQcmdTuples(res)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:569: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(sqlptr, "PREPARE ", 8); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:572: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(sqlptr, label, length); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:575: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(sqlptr, " (",2); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:579:13: [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(sqlptr, args[i], alen); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:585: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(sqlptr, " AS ", 4); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:587: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(sqlptr, query, qlen); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:643:18: [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). *nrows = atoi(PQcmdTuples(res)); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:703:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. val[i] = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:704:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). len[i] = atoi(values[++j]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:206:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:209:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:212:25: [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). *(short*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:215:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:218:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:221:32: [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). *(unsigned int*)data = atoi(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:224:24: [2] (integer) atol: 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). *(long*)data = atol(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:227:33: [2] (integer) atol: 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). *(unsigned long*)data = atol(row->data[n]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:472:22: [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). iperms = atoi(perm); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:267:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(char*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:270:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned char*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:273:25: [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). *(short*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:276:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(unsigned short*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:279:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:282:32: [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). *(unsigned int*)data = atoi(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:285:24: [2] (integer) atol: 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). *(long*)data = atol(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:288:33: [2] (integer) atol: 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). *(unsigned long*)data = atol(row->columns[n]->value); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:460:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *data = (char *)values[j]; data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:461:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int size = atoi((char*)values[++j]); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:400:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arg[256]; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:482:9: [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(pquery+strlen(pquery), " @arg%d varchar(%d)", i, stmt->sz[i]); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:487:5: [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(pquery, " AS BEGIN "); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:489:5: [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(pquery, " END"); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:704: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 errmsg[256]; data/apr-util-1.6.1/dbm/apr_dbm.c:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modname[32]; data/apr-util-1.6.1/dbm/apr_dbm.c:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symname[34]; data/apr-util-1.6.1/dbm/apr_dbm.c:203:23: [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). rv = (vtable->open)(pdb, pathname, mode, perm, pool); data/apr-util-1.6.1/dbm/apr_dbm_berkeleydb.c:168:38: [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). if ((dberr = (*file.bdb->open)(file.bdb, data/apr-util-1.6.1/dbm/apr_dbm_berkeleydb.c:179:49: [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). if ((dberr = (*file.bdb->open)(file.bdb, data/apr-util-1.6.1/dbm/sdbm/sdbm.c:306:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char twin[PBLKSIZ]; data/apr-util-1.6.1/dbm/sdbm/sdbm.c:336:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy(pag, new, PBLKSIZ); data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.c:96: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. (void) memcpy(pag + off, key.dptr, key.dsize); data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.c:102: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. (void) memcpy(pag + off, val.dptr, val.dsize); data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.c:264:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cur[PBLKSIZ]; data/apr-util-1.6.1/dbm/sdbm/sdbm_pair.c:267: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. (void) memcpy(cur, pag, PBLKSIZ); data/apr-util-1.6.1/dbm/sdbm/sdbm_private.h:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pagbuf[PBLKSIZ]; /* page file block buffer */ data/apr-util-1.6.1/dbm/sdbm/sdbm_private.h:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dirbuf[DBLKSIZ]; /* directory file block buffer */ data/apr-util-1.6.1/encoding/apr_base64.c:29:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char pr2six[256] = data/apr-util-1.6.1/encoding/apr_base64.c:72: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. static unsigned char os_toascii[256]; data/apr-util-1.6.1/hooks/apr_hooks.c:205: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(pHook,pSort->pData,sizeof *pHook); data/apr-util-1.6.1/include/apr_hooks.h:194:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \ data/apr-util-1.6.1/include/apr_hooks.h:196:52: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, 0, args_use); \ data/apr-util-1.6.1/include/apr_hooks.h:238:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \ data/apr-util-1.6.1/include/apr_hooks.h:240:52: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, rv, args_use); \ data/apr-util-1.6.1/include/apr_hooks.h:283:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \ data/apr-util-1.6.1/include/apr_hooks.h:285:52: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, rv, args_use); \ data/apr-util-1.6.1/include/apr_md4.h:73: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. unsigned char buffer[64]; data/apr-util-1.6.1/include/apr_md4.h:117:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 digest[APR_MD4_DIGESTSIZE], data/apr-util-1.6.1/include/apr_md4.h:126:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md4(unsigned char digest[APR_MD4_DIGESTSIZE], data/apr-util-1.6.1/include/apr_md5.h:80: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. unsigned char buffer[64]; data/apr-util-1.6.1/include/apr_md5.h:119:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md5_final(unsigned char digest[APR_MD5_DIGESTSIZE], data/apr-util-1.6.1/include/apr_md5.h:128:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(apr_status_t) apr_md5(unsigned char digest[APR_MD5_DIGESTSIZE], data/apr-util-1.6.1/include/apr_sha1.h:114:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_sha1_final(unsigned char digest[APR_SHA1_DIGESTSIZE], data/apr-util-1.6.1/include/apr_siphash.h:71:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE], data/apr-util-1.6.1/include/apr_siphash.h:87:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/include/apr_siphash.h:89:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE], data/apr-util-1.6.1/include/apr_siphash.h:101:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]); data/apr-util-1.6.1/include/apr_siphash.h:114:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash24_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/include/apr_siphash.h:116:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]); data/apr-util-1.6.1/include/apr_siphash.h:127:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]); data/apr-util-1.6.1/include/apr_siphash.h:140:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. APU_DECLARE(void) apr_siphash48_auth(unsigned char out[APR_SIPHASH_DSIZE], data/apr-util-1.6.1/include/apr_siphash.h:142:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char key[APR_SIPHASH_KSIZE]); data/apr-util-1.6.1/include/apr_uuid.h:42: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. unsigned char data[16]; /**< the actual UUID */ data/apr-util-1.6.1/include/private/apr_dbd_internal.h:69:18: [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). apr_dbd_t *(*open)(apr_pool_t *pool, const char *params, data/apr-util-1.6.1/include/private/apr_dbm_private.h:52: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). apr_status_t (*open)(apr_dbm_t **pdb, const char *pathname, data/apr-util-1.6.1/ldap/apr_ldap_url.c:370:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ludp->lud_port = atoi( q ); data/apr-util-1.6.1/memcache/apr_memcache.c:815:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *flags_ = atoi(flags); data/apr-util-1.6.1/memcache/apr_memcache.c:1012:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *new_value = atoi(conn->buffer); data/apr-util-1.6.1/memcache/apr_memcache.c:1431:35: [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). value->flags = atoi(flags); data/apr-util-1.6.1/memcache/apr_memcache.c:1564:12: [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). return atoi(buf); data/apr-util-1.6.1/memcache/apr_memcache.c:1576:30: [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). return apr_time_from_sec(atoi(buf)); data/apr-util-1.6.1/memcache/apr_memcache.c:1591:30: [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). return apr_time_make(atoi(secs), atoi(usecs)); data/apr-util-1.6.1/memcache/apr_memcache.c:1591:42: [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). return apr_time_make(atoi(secs), atoi(usecs)); data/apr-util-1.6.1/misc/apr_date.c:614:22: [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). offset = atoi(gmtstr+1); data/apr-util-1.6.1/misc/apr_date.c:619:22: [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). offset = atoi(gmtstr+1); data/apr-util-1.6.1/misc/apr_rmm.c:379: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(apr_rmm_addr_get(rmm, this), data/apr-util-1.6.1/misc/apu_dso.c:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[APR_PATH_MAX + 1]; data/apr-util-1.6.1/redis/apr_redis.c:651:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:652:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char datasize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:753:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:754:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expire_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:755:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expiresize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:756:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char datasize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:931:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:1014:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:1246:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:1247:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inc_str[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:1248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inc_str_len[LILBUFF_SIZE]; data/apr-util-1.6.1/redis/apr_redis.c:1354:22: [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). *new_value = atoi((const char *)(conn->buffer + 1)); data/apr-util-1.6.1/redis/apr_redis.c:1448:12: [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). return atoi(buf); data/apr-util-1.6.1/test/abts.c:22:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char status[ABTS_STAT_SIZE] = {'|', '/', '-', '|', '\\', '-'}; data/apr-util-1.6.1/test/abts.c:119:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. subsuite->name = memcpy(calloc(p - suite_name + 1, 1), data/apr-util-1.6.1/test/test_apu.h:40: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 errmsg[200]; \ data/apr-util-1.6.1/test/test_apu.h:54: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 errmsg[200]; \ data/apr-util-1.6.1/test/test_apu.h:68: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. char errmsg[200]; \ data/apr-util-1.6.1/test/test_apu.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 errmsg[200]; \ data/apr-util-1.6.1/test/testbuckets.c:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[200]; data/apr-util-1.6.1/test/testbuckets.c:496:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/apr-util-1.6.1/test/testcrypto.c:54: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 err[1024]; data/apr-util-1.6.1/test/testcrypto.c:1382: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[7 * sizeof(int)]; data/apr-util-1.6.1/test/testcrypto.c:1430: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(buf1, buf, sizeof buf); data/apr-util-1.6.1/test/testdate.c:114:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char month_snames[12][4] = { data/apr-util-1.6.1/test/testdate.c:121: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 const char *const days[7]= data/apr-util-1.6.1/test/testdate.c:148:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char datestr[50]; data/apr-util-1.6.1/test/testdate.c:182: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 str_date[APR_RFC822_DATE_LEN] = { 0 }; data/apr-util-1.6.1/test/testldap.c:73:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ldap_host[256]; data/apr-util-1.6.1/test/testmd4.c:81: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 digest[APR_MD4_DIGESTSIZE]; data/apr-util-1.6.1/test/testmd4.c:95: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 digest[APR_MD4_DIGESTSIZE]; data/apr-util-1.6.1/test/testmd5.c:55: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 digest[APR_MD5_DIGESTSIZE]; data/apr-util-1.6.1/test/testmd5.c:78: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 digest[APR_MD5_DIGESTSIZE]; data/apr-util-1.6.1/test/testmemcache.c:393:18: [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). expect = i + atoi(result); data/apr-util-1.6.1/test/testmemcache.c:402:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ABTS_INT_EQUAL(tc, atoi(result), new); data/apr-util-1.6.1/test/testmemcache.c:409:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ABTS_INT_EQUAL(tc, 271, atoi(result)); data/apr-util-1.6.1/test/testmemcache.c:549: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/apr-util-1.6.1/test/testpass.c:126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash[100]; data/apr-util-1.6.1/test/testpass.c:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash[100]; data/apr-util-1.6.1/test/testpass.c:182:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash[100]; data/apr-util-1.6.1/test/testredis.c:327:18: [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). expect = i + atoi(result); data/apr-util-1.6.1/test/testredis.c:337:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ABTS_INT_EQUAL(tc, atoi(result), new); data/apr-util-1.6.1/test/testredis.c:344:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ABTS_INT_EQUAL(tc, 271, atoi(result)); data/apr-util-1.6.1/test/testredis.c:476: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/apr-util-1.6.1/test/testuri.c:263: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 msg[256]; data/apr-util-1.6.1/test/testutil.c:33: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[STRING_MAX], ebuf[128]; data/apr-util-1.6.1/test/testutil.c:46: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[STRING_MAX]; data/apr-util-1.6.1/test/testuuid.c:25:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[APR_UUID_FORMATTED_LENGTH + 1]; data/apr-util-1.6.1/test/testxlate.c:35:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/apr-util-1.6.1/uri/apr_uri.c:184:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char uri_delims[256] = { data/apr-util-1.6.1/uri/apr_uri.c:444:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char uri_delims[256] = { data/apr-util-1.6.1/xlate/xlate.c:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inbuf[256], outbuf[256]; data/apr-util-1.6.1/xlate/xlate.c:131: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(convset->sbcs_table, outbuf, sizeof(outbuf)); data/apr-util-1.6.1/xlate/xlate.c:147:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inbuf[256], outbuf[256]; data/apr-util-1.6.1/xlate/xlate.c:173: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(convset->sbcs_table, outbuf, sizeof(outbuf)); data/apr-util-1.6.1/xml/apr_xml.c:790: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(s, t->text, len); data/apr-util-1.6.1/xml/apr_xml.c:877:6: [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(s, elem->lang, len); data/apr-util-1.6.1/buckets/apr_brigade.c:406: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). vec[i].iov_len = strlen(str); data/apr-util-1.6.1/buckets/apr_brigade.c:613: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). return apr_brigade_write(bb, flush, ctx, str, strlen(str)); data/apr-util-1.6.1/crypto/apr_crypto_nss.c:176: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). for (klen = strlen(elt); klen && apr_isspace(elt[klen - 1]); --klen) data/apr-util-1.6.1/crypto/apr_crypto_openssl.c:270: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). for (klen = strlen(elt); klen && apr_isspace(elt[klen - 1]); --klen) data/apr-util-1.6.1/crypto/apr_md5.c:530: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). if (!strncmp(sp, apr1_id, strlen(apr1_id))) { data/apr-util-1.6.1/crypto/apr_md5.c:531:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp += strlen(apr1_id); data/apr-util-1.6.1/crypto/apr_md5.c:557:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_md5_update(&ctx, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:562:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_md5_update(&ctx, apr1_id, strlen(apr1_id)); data/apr-util-1.6.1/crypto/apr_md5.c:576: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). apr_md5_update(&ctx1, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:578: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). apr_md5_update(&ctx1, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:580:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (pl = strlen(pw); pl > 0; pl -= APR_MD5_DIGESTSIZE) { data/apr-util-1.6.1/crypto/apr_md5.c:593:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = strlen(pw); i != 0; i >>= 1) { data/apr-util-1.6.1/crypto/apr_md5.c:607:5: [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(passwd, sp, sl); data/apr-util-1.6.1/crypto/apr_md5.c:608:5: [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(passwd, "$"); data/apr-util-1.6.1/crypto/apr_md5.c:627: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). apr_md5_update(&ctx1, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:637: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). apr_md5_update(&ctx1, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:644: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). apr_md5_update(&ctx1, pw, strlen(pw)); data/apr-util-1.6.1/crypto/apr_md5.c:649: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). p = passwd + strlen(passwd); data/apr-util-1.6.1/crypto/apr_passwd.c:96:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (!strncmp(hash, apr1_id, strlen(apr1_id))) { data/apr-util-1.6.1/crypto/apr_passwd.c:103: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). apr_sha1_base64(passwd, (int)strlen(passwd), sample); data/apr-util-1.6.1/dbd/apr_dbd.c:395:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). qlen = strlen(query) + data/apr-util-1.6.1/dbd/apr_dbd.c:396:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nargs * (strlen(driver->pformat) + sizeof(nargs) * 3 + 2) + 1; data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:566:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned long len = strlen(arg); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:594:61: [1] (buffer) strlen: Does not handle 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 = mysql_stmt_prepare((*statement)->stmt, query, strlen(query)); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:637:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bind[i].buffer_length = strlen(values[j]); data/apr-util-1.6.1/dbd/apr_dbd_mysql.c:932:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bind[i].buffer_length = strlen((const char *)arg); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:569:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (SQLULEN)strlen(ptr); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1112:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (SQLSMALLINT)strlen((char *)datasource), data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1120:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (SQLSMALLINT)strlen((char *)datasource), data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1121: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). user, (SQLSMALLINT)strlen((char *)user), data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1122:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). password, (SQLSMALLINT)strlen((char *)password)); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1237: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). size_t len = strlen(statement); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1271: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). size_t len = strlen(statement); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1443: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). newstr = apr_palloc(pool, strlen(s) + qcount + 1); data/apr-util-1.6.1/dbd/apr_dbd_odbc.c:1462: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). size_t len = strlen(query); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:494:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(fields[0].value), fields[1].value, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:495:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(fields[1].value), fields[2].value, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:496:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(fields[2].value)); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:517: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). strlen(fields[3].value), OCI_DEFAULT); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:577:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(fields[0].value), OCI_ATTR_USERNAME, ret->err); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:597:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(fields[1].value), OCI_ATTR_PASSWORD, ret->err); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:887: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). strlen(query), OCI_NTV_SYNTAX, OCI_DEFAULT); data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:975: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). strlen(values[j]) + 1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1393: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). strlen(statement->args[i].value.sval)+1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1406: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). strlen(statement->args[i].value.sval)+1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1419: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). strlen(statement->args[i].value.sval)+1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1432: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). strlen(statement->args[i].value.sval)+1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:1470: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). strlen(values[j]) + 1, data/apr-util-1.6.1/dbd/apr_dbd_oracle.c:2077:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). e = apr_bucket_pool_create(entry, strlen(entry), data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:471: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). size_t len = strlen(arg); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:500:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). qlen = strlen(query); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:554: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). length += 1 + strlen(args[i]); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:566: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). length = 8 + strlen(label) + 2 + 4 + length + 1; data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:571:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(label); data/apr-util-1.6.1/dbd/apr_dbd_pgsql.c:578:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alen = strlen(args[i]); data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:256: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). e = apr_bucket_pool_create(row->data[n],strlen(row->data[n]), data/apr-util-1.6.1/dbd/apr_dbd_sqlite2.c:471: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 (strlen(perm) > 0) data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:192: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). ret = sqlite3_prepare(sql->conn, query, strlen(query), &stmt, &tail); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:371:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(query); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:422: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). ret = sqlite3_prepare(sql->conn, query, strlen(query), &stmt, &tail); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:471: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). strlen(values[j]), SQLITE_STATIC); data/apr-util-1.6.1/dbd/apr_dbd_sqlite3.c:635:55: [1] (buffer) strlen: Does not handle 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_bind_text(stmt, i + 1, values[j], strlen(values[j]), data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:221:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(stmt->fmt) +1; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:223:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(args[i]) - 2; data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:231:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p_out, p_in, len); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:235:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(var); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:236:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p_out, var, len); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:422:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(stmt->fmt+offs+matches[0].rm_eo)+2); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:429:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(arg, query+matches[1].rm_so+1, data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:472: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). len = strlen("CREATE PROC apr.") data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:473:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(label) data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:474: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). + stmt->nargs * strlen(" @arg1 varchar(len1),") data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:475:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(" AS begin ") data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:476:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(stmt->fmt) data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:477:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(" end "); /* extra byte for terminator */ data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:482:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(pquery+strlen(pquery), " @arg%d varchar(%d)", i, stmt->sz[i]); data/apr-util-1.6.1/dbd/unsupported/apr_dbd_freetds.c:484:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pquery[strlen(pquery)] = ','; data/apr-util-1.6.1/hooks/apr_hooks.c:332: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). ppArray=apr_hash_get(s_phOptionalHooks,szName,strlen(szName)); data/apr-util-1.6.1/hooks/apr_hooks.c:357:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_hash_set(s_phOptionalHooks,szName,strlen(szName),ppArray); data/apr-util-1.6.1/hooks/apr_hooks.c:379:69: [1] (buffer) strlen: Does not handle 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 (void(*)(void))apr_hash_get(s_phOptionalFunctions,szName,strlen(szName)); data/apr-util-1.6.1/hooks/apr_hooks.c:391:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_hash_set(s_phOptionalFunctions,szName,strlen(szName),(void *)pfn); data/apr-util-1.6.1/include/apr_buckets.h:176:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). apr_status_t (*read)(apr_bucket *b, const char **str, apr_size_t *len, data/apr-util-1.6.1/include/apr_buckets.h:1087:53: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define apr_bucket_read(e,str,len,block) (e)->type->read(e, str, len, block) data/apr-util-1.6.1/ldap/apr_ldap_url.c:299: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). p = &url[strlen(url)-1]; data/apr-util-1.6.1/memcache/apr_memcache.c:618: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). apr_size_t key_size = strlen(key); data/apr-util-1.6.1/memcache/apr_memcache.c:764: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). apr_size_t klen = strlen(key); data/apr-util-1.6.1/memcache/apr_memcache.c:894: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). apr_size_t klen = strlen(key); data/apr-util-1.6.1/memcache/apr_memcache.c:963: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). apr_size_t klen = strlen(key); data/apr-util-1.6.1/memcache/apr_memcache.c:1142: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). apr_size_t klen = strlen(key); data/apr-util-1.6.1/memcache/apr_memcache.c:1186: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). strlen(server_query->query_vec[j].iov_base)); data/apr-util-1.6.1/memcache/apr_memcache.c:1235:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(value->key); data/apr-util-1.6.1/memcache/apr_memcache.c:1400: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). value = apr_hash_get(values, key, strlen(key)); data/apr-util-1.6.1/redis/apr_redis.c:655:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(key); data/apr-util-1.6.1/redis/apr_redis.c:760:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(key); data/apr-util-1.6.1/redis/apr_redis.c:933:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(key); data/apr-util-1.6.1/redis/apr_redis.c:1016:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(key); data/apr-util-1.6.1/redis/apr_redis.c:1251:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen = strlen(key); data/apr-util-1.6.1/strmatch/apr_strmatch.c:92: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). pattern->length = strlen(s); data/apr-util-1.6.1/test/testbuckets.c:84: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). e = apr_bucket_transient_create(first, strlen(first), ba); data/apr-util-1.6.1/test/testbuckets.c:87: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). e = apr_bucket_transient_create(second, strlen(second), ba); data/apr-util-1.6.1/test/testbuckets.c:98: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). apr_size_t elen = strlen(expect); data/apr-util-1.6.1/test/testbuckets.c:450:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). e = apr_bucket_immortal_create(hello, strlen(hello), ba); data/apr-util-1.6.1/test/testbuckets.c:479: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). e = apr_bucket_heap_create(hello, strlen(hello), NULL, ba); data/apr-util-1.6.1/test/testbuckets.c:481:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_bucket_split(e, strlen("hello, ")); data/apr-util-1.6.1/test/testbuckets.c:483:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_brigade_write(bb1, NULL, NULL, "foo", strlen("foo")); data/apr-util-1.6.1/test/testbuckets.c:508:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ABTS_STR_NEQUAL(tc, expect, buf, strlen(expect)); data/apr-util-1.6.1/test/testcrypto.c:184: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). rv = apr_crypto_passphrase(&key, NULL, pass, strlen(pass), data/apr-util-1.6.1/test/testcrypto.c:185:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (unsigned char *) salt, strlen(salt), type, mode, doPad, 4096, f, data/apr-util-1.6.1/test/testcrypto.c:238:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rec->k.passphrase.passLen = strlen(pass); data/apr-util-1.6.1/test/testcrypto.c:240:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rec->k.passphrase.saltLen = strlen(salt); data/apr-util-1.6.1/test/testmd4.c:82:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int len = strlen(string); data/apr-util-1.6.1/test/testmd4.c:98:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int len = strlen(string); data/apr-util-1.6.1/test/testmd5.c:58:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int len = strlen(string); data/apr-util-1.6.1/test/testmd5.c:84:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (apr_md5_update(&context, string, strlen(string)) == 0)); data/apr-util-1.6.1/test/testmemcache.c:163:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hash = apr_memcache_hash(memcache, prefix, strlen(prefix)); data/apr-util-1.6.1/test/testmemcache.c:188:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v = apr_pstrndup(p, txt, randval((apr_uint32_t)strlen(txt))); data/apr-util-1.6.1/test/testmemcache.c:337: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). rv = apr_memcache_replace(memcache, key, v, strlen(v) - 1, 0, 27); data/apr-util-1.6.1/test/testmemcache.c:341: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). rv = apr_memcache_add(memcache, key, v, strlen(v), 0, 27); data/apr-util-1.6.1/test/testmemcache.c:354: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). rv = apr_memcache_add(memcache, key, v, strlen(v), 0, 27); data/apr-util-1.6.1/test/testmemcache.c:449: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). rv = apr_memcache_set(memcache, key, v, strlen(v), 0, 27); data/apr-util-1.6.1/test/testmemcache.c:516:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = apr_memcache_set(memcache, key, v, strlen(v), 0, 27); data/apr-util-1.6.1/test/testpass.c:128: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). apr_sha1_base64(pass, strlen(pass), hash); data/apr-util-1.6.1/test/testredis.c:164:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hash = apr_redis_hash(redis, prefix, strlen(prefix)); data/apr-util-1.6.1/test/testredis.c:189:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v = apr_pstrndup(p, txt, randval((apr_uint32_t)strlen(txt))); data/apr-util-1.6.1/test/testredis.c:385:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = apr_redis_set(redis, key, v, strlen(v), 27); data/apr-util-1.6.1/test/testredis.c:443:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = apr_redis_setex(redis, key, v, strlen(v), 10, 27); data/apr-util-1.6.1/test/teststrmatch.c:56:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input1, strlen(input1)); data/apr-util-1.6.1/test/teststrmatch.c:59:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input2, strlen(input2)); data/apr-util-1.6.1/test/teststrmatch.c:62: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). match = apr_strmatch(pattern_onechar, input1, strlen(input1)); data/apr-util-1.6.1/test/teststrmatch.c:65:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern_zero, input1, strlen(input1)); data/apr-util-1.6.1/test/teststrmatch.c:68: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). match = apr_strmatch(pattern_nocase, input1, strlen(input1)); data/apr-util-1.6.1/test/teststrmatch.c:71:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input3, strlen(input3)); data/apr-util-1.6.1/test/teststrmatch.c:74:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input4, strlen(input4)); data/apr-util-1.6.1/test/teststrmatch.c:77:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input5, strlen(input5)); data/apr-util-1.6.1/test/teststrmatch.c:80:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). match = apr_strmatch(pattern, input6, strlen(input6)); data/apr-util-1.6.1/test/testxlate.c:36: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). apr_size_t inbytes_left = strlen(inbuf); data/apr-util-1.6.1/xml/apr_xml.c:660:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen(t->text); data/apr-util-1.6.1/xml/apr_xml.c:686:5: [1] (buffer) strlen: Does not handle 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(APR_XML_GET_URI_ITEM(namespaces, i)) + 1); data/apr-util-1.6.1/xml/apr_xml.c:691:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 11 + strlen(elem->lang) + 1; data/apr-util-1.6.1/xml/apr_xml.c:699:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 10 + strlen(find_prefix_name(elem, ns_scope->ns, 0)) + data/apr-util-1.6.1/xml/apr_xml.c:700:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(APR_XML_GET_URI_ITEM(namespaces, ns_scope->ns)); data/apr-util-1.6.1/xml/apr_xml.c:705:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 11 + strlen(elem->lang) + 1; data/apr-util-1.6.1/xml/apr_xml.c:711: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). size += 1 + strlen(elem->name) + 1; data/apr-util-1.6.1/xml/apr_xml.c:715: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). size += 3 + strlen(find_prefix_name(elem, elem->ns, 1)) + strlen(elem->name); data/apr-util-1.6.1/xml/apr_xml.c:715:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 3 + strlen(find_prefix_name(elem, elem->ns, 1)) + strlen(elem->name); data/apr-util-1.6.1/xml/apr_xml.c:721:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 3 + APR_XML_NS_LEN(ns) + 1 + strlen(elem->name) + 1; data/apr-util-1.6.1/xml/apr_xml.c:740:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; data/apr-util-1.6.1/xml/apr_xml.c:740: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). size += 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; data/apr-util-1.6.1/xml/apr_xml.c:744:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 5 + strlen(find_prefix_name(elem, attr->ns, 1)) + strlen(attr->name) + strlen(attr->value); data/apr-util-1.6.1/xml/apr_xml.c:744:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 5 + strlen(find_prefix_name(elem, attr->ns, 1)) + strlen(attr->name) + strlen(attr->value); data/apr-util-1.6.1/xml/apr_xml.c:744:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 5 + strlen(find_prefix_name(elem, attr->ns, 1)) + strlen(attr->name) + strlen(attr->value); data/apr-util-1.6.1/xml/apr_xml.c:749:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 3 + APR_XML_NS_LEN(ns) + 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; data/apr-util-1.6.1/xml/apr_xml.c:749:79: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += 3 + APR_XML_NS_LEN(ns) + 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; data/apr-util-1.6.1/xml/apr_xml.c:762: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). size += 11 + strlen(elem->lang) + 1; data/apr-util-1.6.1/xml/apr_xml.c:770:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = elem->lang ? strlen(elem->lang) + 1 : 1; data/apr-util-1.6.1/xml/apr_xml.c:789: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). apr_size_t len = strlen(t->text); data/apr-util-1.6.1/xml/apr_xml.c:876:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(elem->lang); data/apr-util-1.6.1/xml/apr_xml.c:1004:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inbytes_left = outbytes_left = strlen(e->name); data/apr-util-1.6.1/xml/apr_xml.c:1011: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). inbytes_left = outbytes_left = strlen(t->text); data/apr-util-1.6.1/xml/apr_xml.c:1019: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). inbytes_left = outbytes_left = strlen(t->text); data/apr-util-1.6.1/xml/apr_xml.c:1027: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). inbytes_left = outbytes_left = strlen(a->name); data/apr-util-1.6.1/xml/apr_xml.c:1032: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). inbytes_left = outbytes_left = strlen(a->value); data/apr-util-1.6.1/xml/apr_xml.c:1067: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). inbytes_left = outbytes_left = strlen(ptr); ANALYSIS SUMMARY: Hits = 537 Lines analyzed = 49223 in approximately 1.40 seconds (35220 lines/second) Physical Source Lines of Code (SLOC) = 31685 Hits@level = [0] 138 [1] 163 [2] 276 [3] 69 [4] 29 [5] 0 Hits@level+ = [0+] 675 [1+] 537 [2+] 374 [3+] 98 [4+] 29 [5+] 0 Hits/KSLOC@level+ = [0+] 21.3035 [1+] 16.9481 [2+] 11.8037 [3+] 3.09295 [4+] 0.91526 [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.