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/modsecurity-apache-2.9.3/iis/mymodule.h
Examining data/modsecurity-apache-2.9.3/iis/moduleconfig.h
Examining data/modsecurity-apache-2.9.3/iis/mymodule.cpp
Examining data/modsecurity-apache-2.9.3/iis/moduleconfig.cpp
Examining data/modsecurity-apache-2.9.3/iis/main.cpp
Examining data/modsecurity-apache-2.9.3/iis/mymodulefactory.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.h
Examining data/modsecurity-apache-2.9.3/apache2/re_tfns.c
Examining data/modsecurity-apache-2.9.3/apache2/modsecurity.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_lua.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_json.c
Examining data/modsecurity-apache-2.9.3/apache2/persist_dbm.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_geo.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_json.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_gsb.c
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_xss.c
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_html5.c
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection.h
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_xss.h
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.h
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli_data.h
Examining data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_html5.h
Examining data/modsecurity-apache-2.9.3/apache2/apache2_util.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_crypt.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_multipart.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_parsers.h
Examining data/modsecurity-apache-2.9.3/apache2/acmp.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c
Examining data/modsecurity-apache-2.9.3/apache2/apache2_io.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_logging.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_multipart.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_logging_json.h
Examining data/modsecurity-apache-2.9.3/apache2/apache2_config.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_gsb.h
Examining data/modsecurity-apache-2.9.3/apache2/re_variables.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_tree.h
Examining data/modsecurity-apache-2.9.3/apache2/utf8tables.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_status_engine.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_geo.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_pcre.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_logging.h
Examining data/modsecurity-apache-2.9.3/apache2/modsecurity.h
Examining data/modsecurity-apache-2.9.3/apache2/mod_security2.c
Examining data/modsecurity-apache-2.9.3/apache2/re_actions.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_xml.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_unicode.h
Examining data/modsecurity-apache-2.9.3/apache2/re.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_util.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_release.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_unicode.c
Examining data/modsecurity-apache-2.9.3/apache2/persist_dbm.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_util.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_lua.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_xml.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c
Examining data/modsecurity-apache-2.9.3/apache2/re.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_crypt.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_pcre.h
Examining data/modsecurity-apache-2.9.3/apache2/msc_tree.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_parsers.c
Examining data/modsecurity-apache-2.9.3/apache2/msc_release.c
Examining data/modsecurity-apache-2.9.3/apache2/modsecurity_config.h
Examining data/modsecurity-apache-2.9.3/apache2/acmp.c
Examining data/modsecurity-apache-2.9.3/apache2/re_operators.c
Examining data/modsecurity-apache-2.9.3/apache2/apache2.h
Examining data/modsecurity-apache-2.9.3/mlogc/mlogc.c
Examining data/modsecurity-apache-2.9.3/ext/mod_op_strstr.c
Examining data/modsecurity-apache-2.9.3/ext/mod_tfn_reverse.c
Examining data/modsecurity-apache-2.9.3/ext/mod_reqbody_example.c
Examining data/modsecurity-apache-2.9.3/ext/mod_var_remote_addr_port.c
Examining data/modsecurity-apache-2.9.3/tests/msc_test.c
Examining data/modsecurity-apache-2.9.3/alp2/alp2_pp.h
Examining data/modsecurity-apache-2.9.3/alp2/alp2.c
Examining data/modsecurity-apache-2.9.3/alp2/alp2.h
Examining data/modsecurity-apache-2.9.3/alp2/alp2_pp.c
Examining data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_pool_context.h
Examining data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_http_modsecurity.c
Examining data/modsecurity-apache-2.9.3/nginx/modsecurity/apr_bucket_nginx.c
Examining data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_pool_context.c
Examining data/modsecurity-apache-2.9.3/nginx/modsecurity/apr_bucket_nginx.h
Examining data/modsecurity-apache-2.9.3/standalone/hooks.c
Examining data/modsecurity-apache-2.9.3/standalone/api.h
Examining data/modsecurity-apache-2.9.3/standalone/filters.c
Examining data/modsecurity-apache-2.9.3/standalone/api.c
Examining data/modsecurity-apache-2.9.3/standalone/buckets.c
Examining data/modsecurity-apache-2.9.3/standalone/server.c
Examining data/modsecurity-apache-2.9.3/standalone/main.cpp
Examining data/modsecurity-apache-2.9.3/standalone/regex.c
Examining data/modsecurity-apache-2.9.3/standalone/config.c

FINAL RESULTS:

data/modsecurity-apache-2.9.3/standalone/server.c:1081:21:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                if (chown(lockfile, unixd_config.user_id,
data/modsecurity-apache-2.9.3/standalone/server.c:1151:21:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                if (chown(lockfile, ap_unixd_config.user_id,
data/modsecurity-apache-2.9.3/alp2/alp2.c:24:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define alp_debug(...) fprintf(stderr, __VA_ARGS__)
data/modsecurity-apache-2.9.3/apache2/acmp.c:539:17:  [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(child->pattern, pattern);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2320:9:  [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(fingerprint, state.fingerprint);
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:610:9:  [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(server_version, new_server_signature);
data/modsecurity-apache-2.9.3/apache2/msc_release.h:34:54:  [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 PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:322:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(digest, "%s%02x", digest, hex_digest[i]);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1173:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    if (mktemp(templat) == NULL) return -1;
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2451:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(buffer, "%s%s: %s\n", buffer, key, value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1498:9:  [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(data ,pos + strlen("/./"));
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:108:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf(buf, format, ip, port) == 2) {
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1035:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(r->the_request, r->method);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1037:2:  [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(r->the_request, r->uri);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1039:2:  [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(r->the_request, r->protocol);
data/modsecurity-apache-2.9.3/standalone/main.cpp:384: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(rawurl, url);
data/modsecurity-apache-2.9.3/standalone/main.cpp:418:4:  [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(r->the_request, r->method);
data/modsecurity-apache-2.9.3/standalone/main.cpp:420:4:  [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(r->the_request, r->uri);
data/modsecurity-apache-2.9.3/standalone/main.cpp:422:4:  [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(r->the_request, r->protocol);
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:184:18:  [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.
        result = getenv(name);
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:734:17:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
            if (chroot(chroot_dir) < 0) {
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:822: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(NULL) * getpid()));
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1106:16:  [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.
    filename = getenv("TMPDIR");
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1109:16:  [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.
    filename = getenv("TEMP");
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1112:16:  [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.
    filename = getenv("TMP");
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:427:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:704:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:726:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1063:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1264:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodulefactory.h:31:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/iis/mymodulefactory.h:49:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&m_csLock);
data/modsecurity-apache-2.9.3/standalone/server.c:641:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        tz = getenv("TZ");
data/modsecurity-apache-2.9.3/standalone/server.c:845:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(env_path = getenv("PATH"))) {
data/modsecurity-apache-2.9.3/standalone/server.c:851:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("SystemRoot")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:854:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("COMSPEC")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:857:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("PATHEXT")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:860:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("WINDIR")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:866:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("COMSPEC")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:869:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("ETC")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:872:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("DPATH")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:875:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("PERLLIB_PREFIX")) != NULL) {
data/modsecurity-apache-2.9.3/standalone/server.c:881:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((env_temp = getenv("LIBRARY_PATH")) != NULL) {
data/modsecurity-apache-2.9.3/alp2/alp2.c:85: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).
    alp->auditlog->intercept_phase = atoi(capture);
data/modsecurity-apache-2.9.3/alp2/alp2.c:280: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).
        message->file_line = atoi(value);
data/modsecurity-apache-2.9.3/alp2/alp2.c:363: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).
        message->offset = atoi(value);
data/modsecurity-apache-2.9.3/alp2/alp2.c:768:58:  [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).
                        alp->auditlog->response_status = atoi(capture);
data/modsecurity-apache-2.9.3/alp2/alp2.c:1045:47:  [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).
                    alp->auditlog->src_port = atoi(capture);
data/modsecurity-apache-2.9.3/alp2/alp2.c:1053:47:  [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).
                    alp->auditlog->dst_port = atoi(capture);
data/modsecurity-apache-2.9.3/apache2/acmp.c:98: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 u8_buff[6];
data/modsecurity-apache-2.9.3/apache2/acmp.c:259: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(to, from, sizeof(acmp_node_t));
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:196: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).
                            int ruleid = atoi(rule->actionset->id);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:981: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(phrule, rule, sizeof(msre_rule));
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1403: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 cwd[1025] = "";
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1497: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).
    dcfg->col_timeout = atoi(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1509: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).
    dcfg->debuglog_level = atoi(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2474:31:  [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 offset = 0, rule_id = atoi(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2485: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).
        offset = atoi(opt);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2538: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).
        dcfg->upload_file_limit = atoi(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2942:11:  [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).
    val = atol(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2961:11:  [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).
    val = atol(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:3005:11:  [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).
    val = atol(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:3035:15:  [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).
        val = atol(p2);
data/modsecurity-apache-2.9.3/apache2/apache2_io.c:609: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(msr->stream_output_data, msr->resbody_data, msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/apache2_io.c:642: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(msr->stream_output_data, msr->resbody_data, msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:124: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[260] = "";
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:205: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 str1[1024] = "";
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:206: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 str2[1256] = "";
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:310: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(st->val, value, last);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:316: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(dest, src, sizeof(stoken_t));
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:1319: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 tmp[LIBINJECTION_SQLI_TOKEN_SIZE];
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:1357: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(tmp, a->val, sz1);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:1359: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(tmp + sz1 + 1, b->val, sz2);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:1982: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 fp2[8];
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.h:59: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 val[32];
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.h:122: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 fingerprint[8];
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:191:21:  [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).
            pause = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:200:21:  [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).
            pause = atoi(actionset->intercept_pause);
data/modsecurity-apache-2.9.3/apache2/modsecurity.c:530: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[32];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:155: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 digest[APR_SHA1_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:158: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 salt[64];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:199: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 digest[APR_SHA1_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:200: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 hmac_ipad[HMAC_PAD_SIZE], hmac_opad[HMAC_PAD_SIZE];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:201: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 nkey[APR_SHA1_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:203: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 hex_digest[APR_SHA1_DIGESTSIZE * 2 + 1], *hmac_digest;
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1117: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(msr->stream_output_data, xmlOutputBufferGetContent(output_buf), msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1148: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(msr->stream_output_data, xmlOutputBufferGetContent(output_buf), msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1183: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(msr->stream_output_data, (char *)xmlBufferContent(output_buf->buffer), msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1215: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(msr->stream_output_data, (char *)xmlBufferContent(output_buf->conv), msr->stream_output_length);
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:20:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char geo_country_code[GEO_COUNTRY_LAST + 1][4] = {
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char geo_country_code3[GEO_COUNTRY_LAST + 1][4] = {
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:78:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const geo_country_name[GEO_COUNTRY_LAST + 1] = {
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:107:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char geo_country_continent[GEO_COUNTRY_LAST + 1][4] = {
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:152: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 delim[3];
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:153: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[GEO_SEGMENT_RECORD_LENGTH];
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:203: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 errstr[1024];
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:266: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 errstr[1024];
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:267: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* GEO_MAX_RECORD_LEN];
data/modsecurity-apache-2.9.3/apache2/msc_geo.c:390: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 cbuf[GEO_CITY_RECORD_LEN];
data/modsecurity-apache-2.9.3/apache2/msc_gsb.c:27: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 errstr[1024];
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:57:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char errstr[1024];
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:230: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 tstr[300];
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:392: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.
        text = apr_psprintf(msr->mp, "; %s", (char *)signatures[i]);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:426:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        yajl_string(g, (char *)signatures[i]);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:652: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 md5hash[APR_MD5_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1541: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 md5hash[APR_MD5_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_lua.c:62: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(part_data, data, len);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:428: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 localreserve[2] = { '\0', '\0' }; /* initialized to quiet warning */
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:555: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(value_part->data, &(msr->mpd->reserve[1]), msr->mpd->reserve[0]);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:556: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(value_part->data + msr->mpd->reserve[0], msr->mpd->buf, (MULTIPART_BUF_SIZE - msr->mpd->bufleft));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:610: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(rval + offset, parts[i]->data, parts[i]->length);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.h:79: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[MULTIPART_BUF_SIZE + 2];
data/modsecurity-apache-2.9.3/apache2/msc_multipart.h:104: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                     reserve[4];
data/modsecurity-apache-2.9.3/apache2/msc_release.c:18: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 name[12]; /* pads at 16 bytes with val */
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:107: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 *argv[AP_MAX_ARGC];
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:276: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 id[(APR_SHA1_DIGESTSIZE*2) + 1];
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:288: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(id, "no unique id");
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:734: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(parms, orig_parms, sizeof(cmd_parms));
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:277: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(msr->msc_reqbody_chunk_current->data +
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:286: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(msr->msc_reqbody_chunk_current->data +
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:453: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, msr->stream_input_data, msr->stream_input_length - buflen);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:473: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(msr->stream_input_data, buffer, msr->stream_input_length);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:475: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(msr->stream_input_data, data, msr->stream_input_length - buflen);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:476: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(msr->stream_input_data+(msr->stream_input_length - buflen), buffer, buflen);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:533: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(msr->stream_input_data + msr->stream_input_length, buffer, buflen);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:574: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(d, chunks[i]->data, chunks[i]->length);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:787:31:  [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).
        msr->msc_reqbody_fd = open(msr->msc_reqbody_filename, O_RDONLY | O_BINARY);
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.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 ifconfbuf[ 128 * sizeof(struct ifreq) ];
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:285: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 hex_digest[APR_SHA1_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:337: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 pcre[7];
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:343: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 id[(APR_SHA1_DIGESTSIZE*2) + 1];
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:380: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(id, "no unique id");
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:102: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(prefix->buffer, ipdata, ip_bitmask/8);
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:705: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 temp_data[NETMASK_256-1];
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:733: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(temp_data, ipdata, bytes);
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:821: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 ip_strv4[NETMASK_32], ip_strv6[NETMASK_128];
data/modsecurity-apache-2.9.3/apache2/msc_unicode.c:29: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 errstr[1024];
data/modsecurity-apache-2.9.3/apache2/msc_unicode.c:99:20:  [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).
        codepage = atol(p);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:351: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).
        cidr = atoi(mask_str);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:383: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).
        cidr = atoi(mask_str);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:410: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 bin_parm[3] = { 0 };
data/modsecurity-apache-2.9.3/apache2/msc_util.c:871: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(dst, &in->sin_addr, 4);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:877: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(dst, &in6->sin6_addr, 16);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1129: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 tstr[100];
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[100];
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1164:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(templat);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1174:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(templat, O_WRONLY | O_APPEND | O_CREAT | O_BINARY, mode);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1511:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[4];
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1955:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[4];
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2172:13:  [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(MODSEC_VERSION_MAJOR),
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2173:13:  [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(MODSEC_VERSION_MINOR),
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2174:13:  [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(MODSEC_VERSION_MAINT),
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2176:13:  [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(MODSEC_VERSION_RELEASE));
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2541: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[HUGE_STRING_LEN + 1]; // FIXME: 2013-10-29 zimmerle: dynamic?
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2542: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 errstr[1024];             //
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2814: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(&(mem->memory[mem->size]), contents, realsize);
data/modsecurity-apache-2.9.3/apache2/msc_xml.c:45: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 message[256];
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:192: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).
                int expiry_time = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:293: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).
            create_time = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:299: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).
                counter = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:439: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 timeout = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:471: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).
            counter = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:531: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).
                    int origval = atoi(orig_var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:532: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).
                    int ourval = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:533: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).
                    int storedval = atoi(stored_var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:595: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(blob + blob_offset + 2, var->name, len - 1);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:604: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(blob + blob_offset + 2, var->value, len - 1);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:783:44:  [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 expiry_time = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/re.c:534: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).
                    int ruleid = atoi(rule->actionset->id);
data/modsecurity-apache-2.9.3/apache2/re.c:1672: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).
                    if (rule_id_in_range(atoi(rule->actionset->id), range)) {
data/modsecurity-apache-2.9.3/apache2/re.c:2089: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).
                            int ruleid = atoi(rule->actionset->id);
data/modsecurity-apache-2.9.3/apache2/re.c:2634: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.
        exceptions = (char *)telts[i].key;
data/modsecurity-apache-2.9.3/apache2/re.c:2699:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                rule_time = (apr_time_t)atoi(rt_time);
data/modsecurity-apache-2.9.3/apache2/re.c:2703:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                rule_time = (apr_time_t)atoi(rt_time);
data/modsecurity-apache-2.9.3/apache2/re.c:3400: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).
            if (ruleid == atoi(p)) {
data/modsecurity-apache-2.9.3/apache2/re.c:3405: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).
            int start = atoi(p);
data/modsecurity-apache-2.9.3/apache2/re.c:3406: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 end = atoi(s + 1);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:304: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((char *)(var->value + offset), part->value, part->value_len);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:398:14:  [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).
        id = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:451: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).
            arg_max = atoi(parse_parm);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:452: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).
            arg_min = atoi(savedptr);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:467: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).
    actionset->accuracy = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:476: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).
    actionset->maturity = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:511:31:  [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).
        actionset->severity = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:585: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).
    actionset->intercept_status = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:701: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).
    actionset->skip_count = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:772: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).
        actionset->phase = atoi(action->param);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:878:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if ((atoi(value) >= 0)&&(atoi(value) <= 9)) return NULL;
data/modsecurity-apache-2.9.3/apache2/re_actions.c:878: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).
        if ((atoi(value) >= 0)&&(atoi(value) <= 9)) return NULL;
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1191: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).
        msr->txcfg->debuglog_level = atoi(value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1192:40:  [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).
        msr->usercfg->debuglog_level = atoi(value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1627: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).
                value = atoi(rec->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1648: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).
            value += atoi(var_value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1808:11:  [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(var_value)));
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1904:21:  [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).
    current_value = atoi(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1916: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).
    last_update_time = atoi(var_last_update_time->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1931:10:  [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).
        (atol(var_value) * ((current_time - last_update_time) / atol(s)));
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1931:65:  [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).
        (atol(var_value) * ((current_time - last_update_time) / atol(s)));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:560: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_out,offset,s);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:576: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(data_out,offset+pmatch[capture].rm_so,capture_len);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:602: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(data_out,offset,sl);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:625: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(msr->stream_output_data, data, size);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:658: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(msr->stream_input_data, data, size);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1240: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 errstr[1024];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1241: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[HUGE_STRING_LEN + 1];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1457:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[2];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1491: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(url, domain, len);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1587: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 digest[APR_MD5_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1696: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(data,var->value,var->value_len);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2139: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 fingerprint[8];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2907:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[24];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2944: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 s_cpf[11];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2945: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 bad_cpf[11][11] = { "00000000000",
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3216:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[24];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3294: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).
    area = atoi(str_area);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3295:11:  [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).
    grp = atoi(str_grp);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3296:14:  [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).
    serial = atoi(str_serial);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3510:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[24];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3852: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 line[1024];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3892:17:  [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).
    threshold = atoi(threshold_str);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3902:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file, "r");
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3955: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 result[FUZZY_MAX_RESULT];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4051: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 const *argv[5];
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4129:21:  [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 x = atoi(p);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4137: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).
            int start = atoi(p);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4138: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 end = atoi(s + 1);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4439: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).
    left = atoi(target);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4440:13:  [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).
    right = atoi(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4482: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).
    left = atoi(target);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4483:13:  [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).
    right = atoi(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4525: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).
    left = atoi(target);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4526:13:  [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).
    right = atoi(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4568: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).
    left = atoi(target);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4569:13:  [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).
    right = atoi(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4611: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).
    left = atoi(target);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4612:13:  [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).
    right = atoi(str.value);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:564: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 digest[APR_MD5_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:579: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 digest[APR_SHA1_DIGESTSIZE];
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1163:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[1024];
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1170:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                file = fopen(parts[i]->tmp_file_name, "r");
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2076: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(full_request + (headers_length + request_line_length),
data/modsecurity-apache-2.9.3/apache2/utf8tables.h:25:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char utf8_seq_lengths[256] = {
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[16] = { 0 };  // ip4 addresses have max len 15
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:95: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 port[6] = { 0 }; // port numbers are 16bit, ie 5 digits max
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:142: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(&addr->sa.sin.sin_addr.S_un.S_addr, pAddr->sa_data, iplen);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:144: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(&addr->sa.sin.sin_addr.s_addr, pAddr->sa_data, iplen);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:160: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(_n, str, len);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:394:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, pIoBuffer + dwDataStartOffset, bytesRead);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:598: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(rsc->m_pResponseBuffer + ulTotalLength, pSourceDataChunk->FromMemory.pBuffer, pSourceDataChunk->FromMemory.BufferLength);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:862:11:  [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(port_str);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1162:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(reqbuf, buf, length);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1186:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, rsc->m_pResponseBuffer + rsc->m_pResponsePosition, size);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1215: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(reqbuf, buf, length);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:354: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 msg1[4096] = "";
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:355: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 msg2[4096] = "";
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:356: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 datetime[100];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:425: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 linebuf[4100];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:483: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 new_queue_path[256];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:484: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 old_queue_path[256];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:573: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[8196] = "";
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:590: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 new_queue_path[256];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:591: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 old_queue_path[256];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:594: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[256];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:735: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 linebuf[4096];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:776: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 errstr[1024];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:794: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).
        error_log_level = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:812: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).
        startup_delay = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:818: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).
    	int num = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:854:31:  [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).
        checkpoint_interval = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:861:19:  [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 num = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:892: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).
        server_error_timeout = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:899: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).
        transaction_delay = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:911:17:  [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 v = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:918:17:  [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 v = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:926:17:  [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 v = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:933:17:  [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 v = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:983: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).
        keep_entries = atoi(s);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:1205: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 errstr[1024];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:1345: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 errstr[1024];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:1437: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 curl_error_buffer[CURL_ERROR_SIZE] = "";
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:1584:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char response_buf[STATUSBUF_SIZE];
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:1633:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                hd_src = fopen(auditlogentry, "rb");
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:2048: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 errstr[1024];
data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_http_modsecurity.c:331:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_table_setn(req->headers_in, (char *)h[i].key.data, (char *)h[i].value.data);
data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_http_modsecurity.c:331:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_table_setn(req->headers_in, (char *)h[i].key.data, (char *)h[i].value.data);
data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_http_modsecurity.c:1253: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 salt[TXID_SIZE];
data/modsecurity-apache-2.9.3/nginx/modsecurity/ngx_http_modsecurity.c:1395: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.
    msg = modsecProcessConfig(mscf->config, (const char *)value[1].data, NULL);
data/modsecurity-apache-2.9.3/standalone/api.c:577: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[8192];
data/modsecurity-apache-2.9.3/standalone/api.c:583: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(tmp, buf, readcnt);
data/modsecurity-apache-2.9.3/standalone/config.c:437: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[120];
data/modsecurity-apache-2.9.3/standalone/config.c:486: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 buf[4];
data/modsecurity-apache-2.9.3/standalone/config.c:550: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 *argv[AP_MAX_ARGC];
data/modsecurity-apache-2.9.3/standalone/config.c:731: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(path + 1, src2, len2 + 1);
data/modsecurity-apache-2.9.3/standalone/config.c:735: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(path, src1, len1);
data/modsecurity-apache-2.9.3/standalone/config.c:740: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(next, src2, len2 + 1);
data/modsecurity-apache-2.9.3/standalone/config.c:825: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[120];
data/modsecurity-apache-2.9.3/standalone/config.c:915: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[120];
data/modsecurity-apache-2.9.3/standalone/main.cpp:25:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *event_files[1024];
data/modsecurity-apache-2.9.3/standalone/main.cpp:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char urls[MAX_URLS][4096];
data/modsecurity-apache-2.9.3/standalone/main.cpp:52:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fr = fopen(name, "rb");
data/modsecurity-apache-2.9.3/standalone/main.cpp:178:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, &event_file_lines[j][bodypos], size);
data/modsecurity-apache-2.9.3/standalone/main.cpp:217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, &event_file_lines[j][responsepos], size);
data/modsecurity-apache-2.9.3/standalone/main.cpp:267:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *fr = fopen(url_file, "rb");
data/modsecurity-apache-2.9.3/standalone/server.c:70:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const status_lines[RESPONSE_CODES] =
data/modsecurity-apache-2.9.3/standalone/server.c:217: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(&x[j], "&lt;", 4);
data/modsecurity-apache-2.9.3/standalone/server.c:221: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(&x[j], "&gt;", 4);
data/modsecurity-apache-2.9.3/standalone/server.c:225: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(&x[j], "&amp;", 5);
data/modsecurity-apache-2.9.3/standalone/server.c:229: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(&x[j], "&quot;", 6);
data/modsecurity-apache-2.9.3/standalone/server.c:234: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(&x[j], esc, 6);
data/modsecurity-apache-2.9.3/standalone/server.c:281: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 errstr[MAX_STRING_LEN];
data/modsecurity-apache-2.9.3/standalone/server.c:307: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 errstr[MAX_STRING_LEN];
data/modsecurity-apache-2.9.3/standalone/server.c:333: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 errstr[MAX_STRING_LEN];
data/modsecurity-apache-2.9.3/standalone/server.c:357: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 errstr[MAX_STRING_LEN];
data/modsecurity-apache-2.9.3/standalone/server.c:966:17:  [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(&name[1]));
data/modsecurity-apache-2.9.3/standalone/server.c:984:17:  [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(&name[1]));
data/modsecurity-apache-2.9.3/tests/msc_test.c:76: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 buf[BUFLEN];
data/modsecurity-apache-2.9.3/tests/msc_test.c:115: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 str1[1024] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.c:116: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 str2[1256] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.c:142: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 str1[1024] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.c:143: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 str2[1256] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.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 str1[1024] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.c:170: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 str2[1256] = "";
data/modsecurity-apache-2.9.3/tests/msc_test.c:255:13:  [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(new + j, "\\x%02x", str[i]);
data/modsecurity-apache-2.9.3/tests/msc_test.c:636: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).
                    iterations = atoi(val);
data/modsecurity-apache-2.9.3/tests/msc_test.c:639: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).
                    debuglog_level = atoi(val);
data/modsecurity-apache-2.9.3/tests/msc_test.c:689: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).
        ret = returnval ? atoi(returnval) : -8888;
data/modsecurity-apache-2.9.3/tests/msc_test.c:702:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ret = atoi(returnval);
data/modsecurity-apache-2.9.3/tests/msc_test.c:717:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ret = atoi(returnval);
data/modsecurity-apache-2.9.3/alp2/alp2.c:76:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = pcre_exec(alp->trailer_action_pattern, NULL, s, strlen(s), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:381: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).
    char *l = (char *)(s + strlen(s) - 1);
data/modsecurity-apache-2.9.3/alp2/alp2.c:510: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).
    rc = pcre_exec(alp->trailer_stopwatch_pattern, NULL, s, strlen(s), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:554:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = pcre_exec(alp->trailer_webappinfo_pattern, NULL, s, strlen(s), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:598: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(line) == 0) {
data/modsecurity-apache-2.9.3/alp2/alp2.c:612: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).
            rc = pcre_exec(alp->header_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:739: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(line) == 0) {
data/modsecurity-apache-2.9.3/alp2/alp2.c:752:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rc = pcre_exec(alp->response_line_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:785: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).
            rc = pcre_exec(alp->header_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:873: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(line) == 0) {
data/modsecurity-apache-2.9.3/alp2/alp2.c:886:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rc = pcre_exec(alp->request_line_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:926: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).
            rc = pcre_exec(alp->header_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/alp2/alp2.c:1021:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rc = pcre_exec(alp->part_a_pattern, NULL, line, strlen(line), 0, 0, ovector, 30);
data/modsecurity-apache-2.9.3/apache2/acmp.c:187: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).
    return (parser->is_utf8 == 0) ? strlen(str) : utf8_strlen(str);
data/modsecurity-apache-2.9.3/apache2/acmp.c:189: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).
    return strlen(str);
data/modsecurity-apache-2.9.3/apache2/acmp.c:529:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            child->text = apr_pcalloc(parser->pool, strlen(pattern) + 2);
data/modsecurity-apache-2.9.3/apache2/acmp.c:537:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                child->pattern = apr_pcalloc(parser->pool, strlen(pattern) + 2);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:205:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    rule->actionset->msg, strlen(rule->actionset->msg),
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:225:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            action->param, strlen(action->param),
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:737: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).
        if (dcfg->crypto_key_len == NOT_SET) dcfg->crypto_key_len = strlen(dcfg->crypto_key);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1157:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(p1) != 1) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1171:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(p1) != 1) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1727: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(filename) - strlen(apr_filepath_name_get(filename)));
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1727: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).
        strlen(filename) - strlen(apr_filepath_name_get(filename)));
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1732: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).
    if ((strncasecmp(p2, "!@ipMatchFromFile", strlen("!@ipMatchFromFile")) == 0) ||
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1733: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).
        (strncasecmp(p2, "!@ipMatchF", strlen("!@ipMatchF")) == 0)) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1737: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).
    else if (strncasecmp(p2, "!@ipMatch", strlen("!@ipMatch")) == 0) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1740: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).
    else if ((strncasecmp(p2, "@ipMatchFromFile", strlen("@ipMatchFromFile")) == 0) ||
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1741: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).
        (strncasecmp(p2, "@ipMatchF", strlen("@ipMatchF")) == 0)) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:1745: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).
    else if (strncasecmp(p2, "@ipMatch", strlen("@ipMatch")) == 0) {
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2729: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).
        dcfg->crypto_key_len = strlen(dcfg->crypto_key);
data/modsecurity-apache-2.9.3/apache2/apache2_config.c:2733: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).
        dcfg->crypto_key_len = strlen(p1);
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:228: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).
        int len = strlen(str1);
data/modsecurity-apache-2.9.3/apache2/apache2_util.c:248: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).
        nbytes = strlen(str2);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:1985: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(sql_state->fingerprint);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2037: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_t tlen = strlen(sql_state->fingerprint);
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2048: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).
                      "sp_password", strlen("sp_password"))) {
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2262: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).
                          sql_state->fingerprint, strlen(sql_state->fingerprint))) {
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2267: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).
                              sql_state->fingerprint, strlen(sql_state->fingerprint))) {
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2284: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).
                              sql_state->fingerprint, strlen(sql_state->fingerprint))) {
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2289:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  sql_state->fingerprint, strlen(sql_state->fingerprint))) {
data/modsecurity-apache-2.9.3/apache2/libinjection/libinjection_sqli.c:2301: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).
                              sql_state->fingerprint, strlen(sql_state->fingerprint))) {
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:188: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).
            var->value_len = strlen(actionset->intercept_pause);
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:335: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).
                var->value_len = strlen(actionset->intercept_uri);
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:609:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(server_version) >= strlen(new_server_signature)) {
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:609: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).
    if (strlen(server_version) >= strlen(new_server_signature)) {
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:1247: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).
    limit = limit - strlen(str2) - 5;
data/modsecurity-apache-2.9.3/apache2/mod_security2.c:1263: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).
    nbytes = strlen(text);
data/modsecurity-apache-2.9.3/apache2/modsecurity.c:414:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (parse_arguments(msr, msr->query_string, strlen(msr->query_string),
data/modsecurity-apache-2.9.3/apache2/modsecurity.c:544: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).
    rc = msc_regexec(msr->txcfg->auditlog_relevant_regex, buf, strlen(buf), &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:80: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).
                if(filename == NULL || (strlen(msr->r->parsed_uri.path) - strlen(filename) < 0))
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:80:75:  [1] (buffer) strlen:
  Does not handle 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(filename == NULL || (strlen(msr->r->parsed_uri.path) - strlen(filename) < 0))
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:83:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                abs_path = apr_pstrndup(msr->mp, msr->r->parsed_uri.path, strlen(msr->r->parsed_uri.path) - strlen(filename));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:83:109:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                abs_path = apr_pstrndup(msr->mp, msr->r->parsed_uri.path, strlen(msr->r->parsed_uri.path) - strlen(filename));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:164:46:  [1] (buffer) strlen:
  Does not handle 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_update (&ctx, (const char*)key, strlen(key));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:170: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_sha1_update (&ctx, value, strlen (value));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:377:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = acmp_process_quick(&pt, &match, link, strlen(link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:388:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = msc_regexec_capture(em[i]->param_data, link, strlen(link), ovector, 30, &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:395: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).
                            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:432:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = acmp_process_quick(&pt, &match, link, strlen(link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:443:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = msc_regexec_capture(em[i]->param_data, link, strlen(link), ovector, 30, &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.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).
                            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:487:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = acmp_process_quick(&pt, &match, link, strlen(link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:498:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = msc_regexec_capture(em[i]->param_data, link, strlen(link), ovector, 30, &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:505: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).
                            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:542:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = acmp_process_quick(&pt, &match, link, strlen(link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:553:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = msc_regexec_capture(em[i]->param_data, link, strlen(link), ovector, 30, &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:560: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).
                            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:597:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = acmp_process_quick(&pt, &match, link, strlen(link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:608:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        rc = msc_regexec_capture(em[i]->param_data, link, strlen(link), ovector, 30, &my_error_msg);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:615: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).
                            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:721: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:738: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:794: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:811: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:866: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:883: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:933: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:950: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).
                                bytes += strlen(mac_link);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1260:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(link) > 7 && strncmp("http:",(char*)link,5)==0){
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1269:128:  [1] (buffer) strlen:
  Does not handle 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_value =  mschmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1271:125:  [1] (buffer) strlen:
  Does not handle 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_value =  hmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1274:46:  [1] (buffer) strlen:
  Does not handle 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(msr->sessionid == NULL || strlen(msr->sessionid) == 0)   {
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1282: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1284:116:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1286:113:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1292: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1294:116:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1296:113:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1307:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1309:112:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1311:109:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1318: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).
        if(strlen(link) > 8 && strncmp("https",(char*)link,5)==0){
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1327:132:  [1] (buffer) strlen:
  Does not handle 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_value =  mschmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1329:129:  [1] (buffer) strlen:
  Does not handle 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_value =  hmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1332:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(msr->sessionid == NULL || strlen(msr->sessionid) == 0)   {
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1340: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).
                        msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1342:120:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1344:117:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1350: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).
                        msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1352:120:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1354:117:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1365: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1367:116:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1369:113:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) path_chunk+1, strlen((char*)path_chunk)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1383:121:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1385:118:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1388:46:  [1] (buffer) strlen:
  Does not handle 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(msr->sessionid == NULL || strlen(msr->sessionid) == 0)   {
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1396: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1398:110:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1400:107:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1406: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1408:110:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1410:107:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1421:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1423:106:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1425:103:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) link+1, strlen((char*)link)-1);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1438: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).
            if(filename == NULL || (strlen(msr->r->parsed_uri.path) - strlen(filename) < 0))
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1438:71:  [1] (buffer) strlen:
  Does not handle 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(filename == NULL || (strlen(msr->r->parsed_uri.path) - strlen(filename) < 0))
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1441:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            relative_path = apr_pstrndup(msr->mp, msr->r->parsed_uri.path, strlen(msr->r->parsed_uri.path) - strlen(filename));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1441:110:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            relative_path = apr_pstrndup(msr->mp, msr->r->parsed_uri.path, strlen(msr->r->parsed_uri.path) - strlen(filename));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1447:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                msr_log(msr, 4, "Signing data [%s] size %zu", relative_link, strlen(relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1452:128:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1454:125:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, msr->txcfg->crypto_key, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1458:46:  [1] (buffer) strlen:
  Does not handle 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(msr->sessionid == NULL || strlen(msr->sessionid) == 0)   {
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1466: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1468:117:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1470:114:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1476: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).
                    msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1478:117:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1480:114:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1491:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                msr->txcfg->crypto_key_len = strlen(new_pwd);
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1493:113:  [1] (buffer) strlen:
  Does not handle 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_value = mschmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1495:110:  [1] (buffer) strlen:
  Does not handle 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_value = hmac(msr, new_pwd, msr->txcfg->crypto_key_len, (unsigned char *) relative_link, strlen((char*)relative_link));
data/modsecurity-apache-2.9.3/apache2/msc_crypt.c:1546:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(location == NULL || strlen(location) == 0)
data/modsecurity-apache-2.9.3/apache2/msc_gsb.c:76: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).
            if(strlen(hash) == 32)
data/modsecurity-apache-2.9.3/apache2/msc_gsb.c:84: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).
            if(strlen(hash) == 32)
data/modsecurity-apache-2.9.3/apache2/msc_json.c:46: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).
    arg->name_len = strlen(arg->name);
data/modsecurity-apache-2.9.3/apache2/msc_json.c:124: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).
        return json_add_argument(msr, "true", strlen("true"));
data/modsecurity-apache-2.9.3/apache2/msc_json.c:127: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).
        return json_add_argument(msr, "false", strlen("false"));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:138: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).
    limit -= strlen(hostname);                   /* server name or IP */
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:139: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).
    limit -= strlen(msr->remote_addr);           /* remote IP */
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:142: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).
    limit -= strlen(bytes_sent);                 /* bytes sent */
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:143: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).
    limit -= strlen(uniqueid);                   /* unique id */
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:144: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).
    limit -= strlen(sessionid);                  /* session id */
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:152: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).
    if (limit < (int)(strlen(remote_user) + strlen(local_user) + strlen(referer)
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:152: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).
    if (limit < (int)(strlen(remote_user) + strlen(local_user) + strlen(referer)
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:152:66:  [1] (buffer) strlen:
  Does not handle 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 (limit < (int)(strlen(remote_user) + strlen(local_user) + strlen(referer)
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:153:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        + strlen(user_agent) + strlen(the_request)))
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:153: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).
        + strlen(user_agent) + strlen(the_request)))
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:162: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(remote_user) > 32) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:166: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).
        limit -= strlen(remote_user);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:168: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(local_user) > 32) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:172: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).
        limit -= strlen(local_user);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:174: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(referer) > 64) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:178: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).
        limit -= strlen(referer);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:180: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(user_agent) > 64) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:184: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).
        limit -= strlen(user_agent);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:192: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).
        if ((int)strlen(the_request) > limit) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:317:59:  [1] (buffer) strlen:
  Does not handle 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(telts_pattern[k].key,arg->name,strlen(arg->name)) ==0 ) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:324: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).
                        j = strlen(mparm->value);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:329: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).
                                int off = (strlen(mparm->value) - arg_max);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:379: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:386: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).
    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:393: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:479:58:  [1] (buffer) strlen:
  Does not handle 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(current->unparsed,rule->unparsed,strlen(current->unparsed)) == 0) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:491:88:  [1] (buffer) strlen:
  Does not handle 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(current->unparsed, next_rule->chain_starter->unparsed, strlen(current->unparsed)) != 0)
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:496:98:  [1] (buffer) strlen:
  Does not handle 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(current->chain_starter->unparsed, rule->chain_starter->unparsed, strlen(current->chain_starter->unparsed)) != 0)
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:524:73:  [1] (buffer) strlen:
  Does not handle 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 (rule != NULL && (strncmp(rule->unparsed,next_rule->unparsed,strlen(rule->unparsed)) == 0))  {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:608: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).
            var->value_len = strlen(action->param);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:808: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).
                buf = apr_psprintf(msr->mp, "%s",text+strlen(te[i].key)+2);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:810:63:  [1] (buffer) strlen:
  Does not handle 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(telts_pattern[k].key,te[i].key,strlen(te[i].key)) ==0 ) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:816: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).
                            j = strlen(mparm->value);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:821: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).
                                    int off = strlen(mparm->value) - arg_max;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:839: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).
                    memset(buf, '*', strlen(buf)); // strlen also includes the appended newline on the header
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1063:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    buf = apr_psprintf(msr->mp, "%s",text+strlen(te[i].key)+2);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1066:67:  [1] (buffer) strlen:
  Does not handle 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(telts_pattern[k].key,te[i].key,strlen(te[i].key)) ==0 ) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1072: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).
                                j = strlen(mparm->value);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1077: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).
                                        int off = strlen(mparm->value) - arg_max;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1095: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).
                        memset(buf, '*', strlen(buf));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1498: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).
    limit = limit - strlen(str2) - 5;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1514: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).
    nbytes = strlen(text);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1644: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).
    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1650: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).
    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1656: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1659: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).
        sec_auditlog_write(msr, msr->request_line, strlen(msr->request_line));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1674: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).
                buf = apr_psprintf(msr->mp, "%s",text+strlen(te[i].key)+2);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1676:63:  [1] (buffer) strlen:
  Does not handle 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(telts_pattern[k].key,te[i].key,strlen(te[i].key)) ==0 ) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1682: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).
                            j = strlen(mparm->value);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1687: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).
                                    int off = strlen(mparm->value) - arg_max;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1705: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).
                    memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1705:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1708: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1797: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1885: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1886: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).
                sec_auditlog_write(msr, buffer, strlen(buffer));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1895: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1906: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1921:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    buf = apr_psprintf(msr->mp, "%s",text+strlen(te[i].key)+2);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1924:67:  [1] (buffer) strlen:
  Does not handle 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(telts_pattern[k].key,te[i].key,strlen(te[i].key)) ==0 ) {
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1930: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).
                                j = strlen(mparm->value);
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1935: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).
                                        int off = strlen(mparm->value) - arg_max;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1953: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).
                        memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1953:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1956: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1968: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1979: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1984: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1992: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:1998: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2007: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2016: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2024: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2038: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2049: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2062: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2069: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2083: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2089: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2103: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2109: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2124: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2131: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2138: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).
            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2151: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2157: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2169: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2176: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).
                    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2182: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2189: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).
        sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2197: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2213:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2219: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).
                sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2223: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).
                    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2230: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).
    sec_auditlog_write(msr, text, strlen(text));
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2278: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).
    limit = limit - strlen(str2) - 5;
data/modsecurity-apache-2.9.3/apache2/msc_logging.c:2294: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).
    nbytes = strlen(text);
data/modsecurity-apache-2.9.3/apache2/msc_logging_json.h:5:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define yajl_string(g, s) yajl_gen_string(g, (const unsigned char *)s, strlen(s))
data/modsecurity-apache-2.9.3/apache2/msc_lua.c:338: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).
        lua_pushlstring(L, var->name, strlen(var->name));
data/modsecurity-apache-2.9.3/apache2/msc_lua.c:484: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).
        lua_pushlstring(L, param, strlen(param));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:35: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(data);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:231:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                log_escape_nq(msr->mp, p), strlen(p));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:371:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(new_value) > MULTIPART_BUF_SIZE) {
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:773:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(msr->request_content_type) > 1024) {
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:842: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(b);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:892: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(msr->mpd->boundary) == 0) {
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:972:86:  [1] (buffer) strlen:
  Does not handle 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 ( ((unsigned int)(MULTIPART_BUF_SIZE - msr->mpd->bufleft) == (4 + strlen(msr->mpd->boundary)))
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:975:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    && (strncmp(msr->mpd->buf + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:976: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).
                    && (*(msr->mpd->buf + 2 + strlen(msr->mpd->boundary)) == '-')
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:977: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).
                    && (*(msr->mpd->buf + 2 + strlen(msr->mpd->boundary) + 1) == '-') )
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1063: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).
                && (strlen(msr->mpd->buf) > 3)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1068: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).
                if (   (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 2)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1068:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (   (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 2)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1069:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    && (strncmp(msr->mpd->buf + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0) )
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1071:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    char *boundary_end = msr->mpd->buf + 2 + strlen(msr->mpd->boundary);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1125:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        && (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 3)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1125: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).
                        && (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 3)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1127:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        && (strncmp(msr->mpd->buf + 3, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1141:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        && (strncmp(p, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1162:72:  [1] (buffer) strlen:
  Does not handle 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(p + i + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0) {
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1373: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).
            arg->name_len = strlen(parts[i]->name);
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1404: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).
            body_len += strlen(parts[i]->name) * 3;
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1405: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).
            body_len += strlen(parts[i]->value) * 3;
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1418:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                strncat(body, "&", body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1418: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).
                strncat(body, "&", body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1420:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strnurlencat(body, parts[i]->name, body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1421:13:  [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. Risk is low because the source is a
  constant character.
            strncat(body, "=", body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1421: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).
            strncat(body, "=", body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1429: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).
                    memset(parts[i]->value, '*', strlen(parts[i]->value));
data/modsecurity-apache-2.9.3/apache2/msc_multipart.c:1432:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strnurlencat(body, parts[i]->value, body_len - strlen(body));
data/modsecurity-apache-2.9.3/apache2/msc_parsers.c:61: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).
        if ((attr_name != NULL)&&(strlen(attr_name) != 0)) {
data/modsecurity-apache-2.9.3/apache2/msc_parsers.c:190: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).
        if ((attr_name != NULL)&&(strlen(attr_name) != 0)) {
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:438: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).
    apr_size_t key_len = strlen(key);
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:712: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).
        plain_text_len = strlen(plain_text);
data/modsecurity-apache-2.9.3/apache2/msc_remote_rules.c:716: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).
    plain_text_len = strlen(plain_text);
data/modsecurity-apache-2.9.3/apache2/msc_reqbody.c:899:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        i = read(msr->msc_reqbody_fd, msr->msc_reqbody_disk_chunk->data, my_nbytes);
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:55: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).
    int length = strlen(data);
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:103: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).
            len = strlen(data);
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:114: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).
    for (i = 0; i < strlen(data) && i < len; i++) {
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:316: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).
    apr_sha1_update(&context, machine_name, strlen(machine_name));
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:317: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).
    apr_sha1_update(&context, mac_address, strlen(mac_address));
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:364: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).
    beacon_string_len = (modsec ? strlen(modsec) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:365: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).
        (apache ? strlen(apache) : 6) + (apr ? strlen(apr) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:365: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).
        (apache ? strlen(apache) : 6) + (apr ? strlen(apr) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:366: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_loaded ? strlen(apr_loaded) : 6) + (pcre ? strlen(pcre) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:366:57:  [1] (buffer) strlen:
  Does not handle 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_loaded ? strlen(apr_loaded) : 6) + (pcre ? strlen(pcre) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:367: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).
        (pcre_loaded ? strlen(pcre_loaded) : 6) + (lua ? strlen(lua) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:367:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (pcre_loaded ? strlen(pcre_loaded) : 6) + (lua ? strlen(lua) : 6) +
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:368: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).
        (libxml ? strlen(libxml) : 6) + (APR_SHA1_DIGESTSIZE * 2);
data/modsecurity-apache-2.9.3/apache2/msc_status_engine.c:408: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).
    length = str_enc_spl_len + strlen(STATUS_ENGINE_DNS_SUFFIX) +
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:838:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ip_strv4, buffer, sizeof(ip_strv4));
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:858:56:  [1] (buffer) strlen:
  Does not handle 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 (netmask_v4 != NETMASK_32 && pos < strlen(ip_strv4)) {
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:878:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ip_strv6, buffer, sizeof(ip_strv6));
data/modsecurity-apache-2.9.3/apache2/msc_tree.c:898:57:  [1] (buffer) strlen:
  Does not handle 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 (netmask_v6 != NETMASK_128 && pos < strlen(ip_strv6)) {
data/modsecurity-apache-2.9.3/apache2/msc_util.c:158: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).
                    length = strlen(unicode);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:203: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).
                    length = strlen(unicode);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:255: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).
                    length = strlen(unicode);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:424: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).
    op_len = strlen(content);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:441: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).
    op_len = strlen(parm);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:677: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).
        s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:680: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).
        s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:839: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 = strlen(needle);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:963: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).
    return strlen((char *)begin);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1135: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_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d",
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1135: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).
    apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d",
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1221: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).
    return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 1, 1, 1);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1225: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).
    return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 1, 0, 0);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1236: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).
		l = text ? strlen(text) : 0;
data/modsecurity-apache-2.9.3/apache2/msc_util.c:1247: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).
    return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 0, 0, 0);
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2199: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(parent_filename) - strlen(apr_filepath_name_get(parent_filename))),
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2199: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).
                strlen(parent_filename) - strlen(apr_filepath_name_get(parent_filename))),
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2442: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).
            headers_length = headers_length + strlen(value) + strlen(key) + /* \n: */ 1 +
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2442:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            headers_length = headers_length + strlen(value) + strlen(key) + /* \n: */ 1 +
data/modsecurity-apache-2.9.3/apache2/msc_util.c:2663: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).
        for (i = 0; i < strlen(word); i++)
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:304: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).
                var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:316: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).
                var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:443: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).
                var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:454: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).
            var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:458: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:468: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).
            var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:474: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:540: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).
                    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/persist_dbm.c:759: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).
        key.dsize = strlen(key.dptr) + 1;
data/modsecurity-apache-2.9.3/apache2/re.c:110: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).
                if((strlen(myname) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:110:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if((strlen(myname) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:111: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).
                        (strncasecmp(myname, name,strlen(myname)) == 0))   {
data/modsecurity-apache-2.9.3/apache2/re.c:114:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if((strlen(myvalue) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:114: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).
                        if((strlen(myvalue) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:115:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strncasecmp(myvalue,value,strlen(myvalue)) == 0) {
data/modsecurity-apache-2.9.3/apache2/re.c:301: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).
            name_len = strlen(name);
data/modsecurity-apache-2.9.3/apache2/re.c:304: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).
                value_len = strlen(value);
data/modsecurity-apache-2.9.3/apache2/re.c:318: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).
                if((strlen(targets[i]->name) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:318: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).
                if((strlen(targets[i]->name) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:319:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        (strncasecmp(targets[i]->name,name,strlen(targets[i]->name)) == 0) &&
data/modsecurity-apache-2.9.3/apache2/re.c:324:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if((strlen(targets[i]->param) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:324:58:  [1] (buffer) strlen:
  Does not handle 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(targets[i]->param) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:325: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).
                                strncasecmp(targets[i]->param,value,strlen(targets[i]->param)) == 0) {
data/modsecurity-apache-2.9.3/apache2/re.c:326: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).
                            memset(targets[i]->name,0,strlen(targets[i]->name));
data/modsecurity-apache-2.9.3/apache2/re.c:327:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            memset(targets[i]->param,0,strlen(targets[i]->param));
data/modsecurity-apache-2.9.3/apache2/re.c:333: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).
                        memset(targets[i]->name,0,strlen(targets[i]->name));
data/modsecurity-apache-2.9.3/apache2/re.c:426: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).
                name_len = strlen(name);
data/modsecurity-apache-2.9.3/apache2/re.c:429: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).
                    value_len = strlen(value);
data/modsecurity-apache-2.9.3/apache2/re.c:443: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).
                    if((strlen(targets[i]->name) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:443:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if((strlen(targets[i]->name) == strlen(name)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:444: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).
                            (strncasecmp(targets[i]->name,name,strlen(targets[i]->name)) == 0) &&
data/modsecurity-apache-2.9.3/apache2/re.c:449: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).
                            if((strlen(targets[i]->param) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:449:62:  [1] (buffer) strlen:
  Does not handle 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(targets[i]->param) == strlen(value)) &&
data/modsecurity-apache-2.9.3/apache2/re.c:450:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strncasecmp(targets[i]->param,value,strlen(targets[i]->param)) == 0) {
data/modsecurity-apache-2.9.3/apache2/re.c:547: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).
                            rule->actionset->msg, strlen(rule->actionset->msg),
data/modsecurity-apache-2.9.3/apache2/re.c:570: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).
                                    action->param, strlen(action->param),
data/modsecurity-apache-2.9.3/apache2/re.c:618: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).
        if(targets[i]->name != NULL && strlen(targets[i]->name) > 0)    {
data/modsecurity-apache-2.9.3/apache2/re.c:886: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(var->name) > 5)
data/modsecurity-apache-2.9.3/apache2/re.c:1654: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).
                            rule->actionset->msg, strlen(rule->actionset->msg),
data/modsecurity-apache-2.9.3/apache2/re.c:1696:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            var->value_len = strlen(action->param);
data/modsecurity-apache-2.9.3/apache2/re.c:1704: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).
                                    var->value, strlen(var->value),
data/modsecurity-apache-2.9.3/apache2/re.c:2103:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    rule->actionset->msg, strlen(rule->actionset->msg),
data/modsecurity-apache-2.9.3/apache2/re.c:2126:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            action->param, strlen(action->param),
data/modsecurity-apache-2.9.3/apache2/re.c:2234: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).
        var->value_len = strlen(actionset->msg);
data/modsecurity-apache-2.9.3/apache2/re.c:2244: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).
        var->value_len = strlen(actionset->logdata);
data/modsecurity-apache-2.9.3/apache2/re.c:2254: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(logdata) > 521) {
data/modsecurity-apache-2.9.3/apache2/re.c:2291: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).
            var->value_len = strlen(action->param);
data/modsecurity-apache-2.9.3/apache2/re.c:2729:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(op_param) > 252) {
data/modsecurity-apache-2.9.3/apache2/re.c:2747: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).
            msr->matched_var->name_len = strlen(msr->matched_var->name);
data/modsecurity-apache-2.9.3/apache2/re.c:2753: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).
            mvar->name_len = strlen(mvar->name);
data/modsecurity-apache-2.9.3/apache2/re.c:2834: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).
            newvar->value_len = strlen(newvar->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:279: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).
            part->value_len = strlen(part->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:394: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).
        for(id=0;id<strlen(action->param);id++) {
data/modsecurity-apache-2.9.3/apache2/re_actions.c:445:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (action->param != NULL && strlen(action->param) == 3)   {
data/modsecurity-apache-2.9.3/apache2/re_actions.c:636: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:673: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1477: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).
    env->value_len = strlen(env->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1500: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).
        val->value_len = strlen(val->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1540: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1621: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->name_len = strlen(rec->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1624: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).
                rec->value_len = strlen(rec->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1639: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).
            val->value_len = strlen(val->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1653: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).
            rec->value_len = strlen(rec->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1666: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).
            var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1668: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).
            var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1759: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1798: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).
    var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1802: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1809: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1858: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1864: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1937: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1995: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:1997: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2003: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2011: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2013: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2027: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2035: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2037: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2043: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2045: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2051: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2053: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2059: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).
        var->name_len = strlen(var->name);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2061: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).
        var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2113: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2133: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2157: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2181: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2201:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(filename) > 4) {
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2202: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).
        char *p = filename + strlen(filename) - 4;
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2256: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_actions.c:2276: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).
    var->value_len = strlen(var->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:181: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).
    if ((rule->op_param == NULL) || (strlen(rule->op_param) == 0))
data/modsecurity-apache-2.9.3/apache2/re_operators.c:200:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(fn) > strlen("http://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:200: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).
    if (strlen(fn) > strlen("http://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:201: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).
            strncmp(fn, "http://", strlen("http://")) == 0)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:207: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).
    else if (strlen(fn) > strlen("https://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:207: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).
    else if (strlen(fn) > strlen("https://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:208: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).
            strncmp(fn, "https://", strlen("https://")) == 0)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:230: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).
            strlen(rule->filename) - strlen(apr_filepath_name_get(rule->filename)));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:230: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).
            strlen(rule->filename) - strlen(apr_filepath_name_get(rule->filename)));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:414: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).
    op_len = strlen(replace);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:415:105:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    parsed_replace = apr_pstrdup(rule->ruleset->mp, parse_pm_content(param_remove_escape(rule, replace, strlen(replace)),
data/modsecurity-apache-2.9.3/apache2/re_operators.c:423:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rule->sub_str = apr_pstrmemdup(rule->ruleset->mp, parsed_replace, strlen(parsed_replace));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:438:56:  [1] (buffer) strlen:
  Does not handle 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_pattern = param_remove_escape(rule, reg_pattern, strlen(reg_pattern));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:439:58:  [1] (buffer) strlen:
  Does not handle 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 = apr_pstrndup(rule->ruleset->mp, e_pattern, strlen(e_pattern));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:452:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rule->re_str = apr_pstrndup(rule->ruleset->mp, pattern, strlen(pattern));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:498:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        re_pattern->value = apr_pstrndup(msr->mp, rule->re_str, strlen(rule->re_str));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:499: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).
        re_pattern->value_len = strlen(re_pattern->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:503: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).
        if(strlen(re_pattern->value) > 0)   {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:532: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).
    str->value = apr_pstrndup(msr->mp, rule->sub_str, strlen(rule->sub_str));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:533: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:597: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).
    sl = strlen(offset);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:724:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rule->re_str = apr_pstrndup(rule->ruleset->mp, pattern, strlen(pattern));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:777: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).
            re_pattern->value = apr_pstrndup(msr->mp, rule->re_str, strlen(rule->re_str));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:778: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).
            re_pattern->value_len = strlen(re_pattern->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:838: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).
        s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:868: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(pattern) > 252) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:883:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(pattern) > 252) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:893: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).
            if(strlen(valid) < strlen(msr->txcfg->crypto_param_name)+1)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:893:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if(strlen(valid) < strlen(msr->txcfg->crypto_param_name)+1)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:896: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).
            hmac  = valid+strlen(msr->txcfg->crypto_param_name)+1;
data/modsecurity-apache-2.9.3/apache2/re_operators.c:898:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nlink = apr_pstrmemdup(msr->mp, target, strlen(target) - strlen(valid) - 1);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:898:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nlink = apr_pstrmemdup(msr->mp, target, strlen(target) - strlen(valid) - 1);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:900: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).
            msr_log(msr, 9, "Validating URI %s size %zu",nlink,strlen(nlink));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:906: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).
                if (strlen(pattern) > 252) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:967:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rule->re_str = apr_pstrndup(rule->ruleset->mp, pattern, strlen(pattern));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1011: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).
            re_pattern->value = apr_pstrndup(msr->mp, rule->re_str, strlen(rule->re_str));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1012: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).
            re_pattern->value_len = strlen(re_pattern->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1094: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).
        s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1140: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).
            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1184: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(pattern) > 252) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1207: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).
    if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1212: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).
    op_len = strlen(rule->op_param);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1253: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).
    if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1264: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).
    rulefile_path = apr_pstrndup(rule->ruleset->mp, rule->filename, strlen(rule->filename) - strlen(apr_filepath_name_get(rule->filename)));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1264:94:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rulefile_path = apr_pstrndup(rule->ruleset->mp, rule->filename, strlen(rule->filename) - strlen(apr_filepath_name_get(rule->filename)));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1287: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(fn) > strlen("http://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1287: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).
        if (strlen(fn) > strlen("http://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1288: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).
            strncmp(fn, "http://", strlen("http://")) == 0)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1294: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).
        else if (strlen(fn) > strlen("https://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1294: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).
        else if (strlen(fn) > strlen("https://") &&
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1295: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).
            strncmp(fn, "https://", strlen("https://")) == 0)
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1323: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).
                acmp_add_pattern(p, word, NULL, NULL, strlen(word));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1361: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).
                op_len = strlen(buf);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1372: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).
                    end = processed + strlen(processed);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1374: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).
                    end = buf + strlen(buf);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1428: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(match_escaped) > 252) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1444: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).
            s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1447: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).
            s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1496:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(data, url, pos - url);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1497:9:  [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(data , "/");
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1498: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).
        strcat(data ,pos + strlen("/./"));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1499:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(url , data, len);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1528: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).
    data = apr_pcalloc(pool, strlen(ptr));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1709: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).
            match = remove_escape(rule->ruleset->mp, match, strlen(match));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1711:65:  [1] (buffer) strlen:
  Does not handle 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 = gsb_replace_tpath(rule->ruleset->mp, match, strlen(match));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1715: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).
            match_length = strlen(match);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1750: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).
                        canon_length = strlen(canon);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1775: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).
                domain_len = strlen(domain);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1790:59:  [1] (buffer) strlen:
  Does not handle 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 = verify_gsb(gsb, msr, canon, strlen(canon));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1812:62:  [1] (buffer) strlen:
  Does not handle 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 = verify_gsb(gsb, msr, base, strlen(base));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1832: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).
                        url = apr_palloc(rule->ruleset->mp, strlen(canon));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1839: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).
                                    ret = verify_gsb(gsb, msr, ptr, strlen(ptr));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1866: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).
                for(j=0; j<strlen(match); j++)    {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1881: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).
                            domain_len = strlen(domain);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1901:71:  [1] (buffer) strlen:
  Does not handle 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 = verify_gsb(gsb, msr, canon, strlen(canon));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1921:74:  [1] (buffer) strlen:
  Does not handle 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 = verify_gsb(gsb, msr, base, strlen(base));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1939:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    url = apr_palloc(rule->ruleset->mp, strlen(canon));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:1946:81:  [1] (buffer) strlen:
  Does not handle 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 = verify_gsb(gsb, msr, ptr, strlen(ptr));
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2003: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2073: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2211: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2304: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2360: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2423: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).
    str->value_len = strlen(str->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2481: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).
    op_len = strlen(pattern);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:2867: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).
                    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3176: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).
                    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3470: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).
                    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3584: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3586: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3591: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3593: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3598: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3600: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3605: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3607: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3612: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3614: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3619: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3621: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3626: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3628: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3633: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3635: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3640: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3642: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3647: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3649: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3654: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).
    s->name_len = strlen(s->name);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3656: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).
    s->value_len = strlen(s->value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:3875: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).
    param_len = strlen(threshold_str);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4018:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(rule->op_param) > 4) {
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4019: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).
        char *p = filename + strlen(filename) - 4;
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4433: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).
    str.value_len = strlen(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4476: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).
    str.value_len = strlen(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4519: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).
    str.value_len = strlen(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4562: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).
    str.value_len = strlen(str.value);
data/modsecurity-apache-2.9.3/apache2/re_operators.c:4605: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).
    str.value_len = strlen(str.value);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:84: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).
    *rval_len = strlen(*rval);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:504: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).
    *rval_len = strlen(*rval);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:518: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).
    *rval_len = strlen(*rval);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:554: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).
    *rval_len = strlen(*rval);
data/modsecurity-apache-2.9.3/apache2/re_tfns.c:630: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).
    *rval_len = strlen(*rval);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:49:62:  [1] (buffer) strlen:
  Does not handle 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 var_simple_generate_ex(var, vartab, mptmp, value, strlen(value));
data/modsecurity-apache-2.9.3/apache2/re_variables.c:61:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(var->param) > 2)&&(var->param[0] == '/')
data/modsecurity-apache-2.9.3/apache2/re_variables.c:62: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).
        &&(var->param[strlen(var->param) - 1] == '/'))
data/modsecurity-apache-2.9.3/apache2/re_variables.c:69:63:  [1] (buffer) strlen:
  Does not handle 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 = apr_pstrmemdup(ruleset->mp, var->param + 1, strlen(var->param + 1) - 1);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:154: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:441:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(var->param) > 2)&&(var->param[0] == '/')
data/modsecurity-apache-2.9.3/apache2/re_variables.c:442: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).
        &&(var->param[strlen(var->param) - 1] == '/'))
data/modsecurity-apache-2.9.3/apache2/re_variables.c:506: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).
        rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:521: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:535: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:553: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).
        rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:596: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).
        rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:664: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:693: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1146: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).
                        parts[i]->name, strlen(parts[i]->name),
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1228: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(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1239: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).
                rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1273: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(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1284: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).
                rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1318: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(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1329: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).
                rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1358: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1391: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1675: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1691: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1799: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).
                                strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1810: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1832: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1854: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1875: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1894: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1913: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1932: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1950: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1969: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:1988: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2005: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).
    rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2047: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).
    request_line_length = strlen(msr->request_line) + /* \n\n: */ 2;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2150: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).
                    strlen(str->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2166:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rvar->value = apr_pstrndup(mptmp, str->name, strlen(str->name));
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2167: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2215: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).
                                strlen(str->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2279: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).
                                strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2290: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2322: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).
                    strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2333: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2365: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).
                    strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2376: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2408: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).
                    strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2419: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2636: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).
                    strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2647: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2679: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).
                    strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
data/modsecurity-apache-2.9.3/apache2/re_variables.c:2690: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).
            rvar->value_len = strlen(rvar->value);
data/modsecurity-apache-2.9.3/ext/mod_op_strstr.c:45: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).
    if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
data/modsecurity-apache-2.9.3/ext/mod_op_strstr.c:56: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).
    initBoyerMooreHorspool(rule->op_param, strlen(rule->op_param), (int *)rule->op_param_data);
data/modsecurity-apache-2.9.3/ext/mod_op_strstr.c:81: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).
    if (BoyerMooreHorspool(rule->op_param, strlen(rule->op_param),
data/modsecurity-apache-2.9.3/ext/mod_var_remote_addr_port.c:52:62:  [1] (buffer) strlen:
  Does not handle 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 var_simple_generate_ex(var, vartab, mptmp, value, strlen(value));
data/modsecurity-apache-2.9.3/iis/moduleconfig.cpp:438:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:652: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).
                    (USHORT)strlen(szLength),
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:763:63:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		hr = pConfig->GlobalWideCharToMultiByte(pConfig->GetPath(), wcslen(pConfig->GetPath()), &path, &pathlen);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:777:62:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		hr = pConfig->GlobalWideCharToMultiByte((WCHAR *)servpath, wcslen(servpath), &apppath, &apppathlen);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1033: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).
	r->the_request = (char *)apr_palloc(r->pool, strlen(r->method) + 1 + req->RawUrlLength + 1 + strlen(r->protocol) + 1);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1033:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	r->the_request = (char *)apr_palloc(r->pool, strlen(r->method) + 1 + req->RawUrlLength + 1 + strlen(r->protocol) + 1);
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1036:2:  [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(r->the_request, " ");
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1038:2:  [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(r->the_request, " ");
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1150: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).
            (USHORT)strlen(szLength),
data/modsecurity-apache-2.9.3/iis/mymodule.cpp:1238: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).
            (USHORT)strlen(szLength),
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:370: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).
        apr_size_t nbytes = strlen(msg2);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:392: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).
    entry->line_size = strlen(entry->line);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:449: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).
        line_size = strlen(p);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:578: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).
    nbytes = strlen(msg);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:633: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).
    apr_file_write_full(queue_fd, msg, strlen(msg), NULL);
data/modsecurity-apache-2.9.3/mlogc/mlogc.c:2146:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          (buf + evnt), strlen(buf + evnt)));
data/modsecurity-apache-2.9.3/standalone/api.c:139: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).
    server->pathlen = strlen(server->path);
data/modsecurity-apache-2.9.3/standalone/api.c:263: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).
	if(dir == NULL || strlen(dir) == 0)
data/modsecurity-apache-2.9.3/standalone/api.c:277: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).
		int li = strlen(dir) - 1;
data/modsecurity-apache-2.9.3/standalone/buckets.c:137: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(*str);
data/modsecurity-apache-2.9.3/standalone/config.c:155: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).
        dst = &src[strlen(src)];
data/modsecurity-apache-2.9.3/standalone/config.c:264: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).
            cp += strlen(cp);
data/modsecurity-apache-2.9.3/standalone/config.c:338: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).
    end = &start[strlen(start)];
data/modsecurity-apache-2.9.3/standalone/config.c:723: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).
    len1 = strlen(src1);
data/modsecurity-apache-2.9.3/standalone/config.c:724: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).
    len2 = strlen(src2);
data/modsecurity-apache-2.9.3/standalone/config.c:1112: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).
					li = strlen(rootpath) - 1;
data/modsecurity-apache-2.9.3/standalone/main.cpp:84:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int l = strlen(event_file_lines[i]);
data/modsecurity-apache-2.9.3/standalone/main.cpp:172: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).
	unsigned int l = strlen(event_file_lines[j]);
data/modsecurity-apache-2.9.3/standalone/main.cpp:211: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).
	unsigned int l = strlen(event_file_lines[j]);
data/modsecurity-apache-2.9.3/standalone/main.cpp:274: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).
			int l = strlen(urls[i]) - 1;
data/modsecurity-apache-2.9.3/standalone/main.cpp:383: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).
				rawurl = (char *)apr_palloc(r->pool, strlen(url) + 1);
data/modsecurity-apache-2.9.3/standalone/main.cpp:416: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).
			r->the_request = (char *)apr_palloc(r->pool, strlen(r->method) + 1 + strlen(r->uri) + 1 + strlen(r->protocol) + 1);
data/modsecurity-apache-2.9.3/standalone/main.cpp:416:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			r->the_request = (char *)apr_palloc(r->pool, strlen(r->method) + 1 + strlen(r->uri) + 1 + strlen(r->protocol) + 1);
data/modsecurity-apache-2.9.3/standalone/main.cpp:416:94:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			r->the_request = (char *)apr_palloc(r->pool, strlen(r->method) + 1 + strlen(r->uri) + 1 + strlen(r->protocol) + 1);
data/modsecurity-apache-2.9.3/standalone/main.cpp:419:4:  [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(r->the_request, " ");
data/modsecurity-apache-2.9.3/standalone/main.cpp:421:4:  [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(r->the_request, " ");
data/modsecurity-apache-2.9.3/standalone/regex.c:120: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).
rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string, (int)strlen(string),
data/modsecurity-apache-2.9.3/standalone/server.c:167:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *res = (char *)apr_palloc(a, sizeof("HTTP_") + strlen(w));
data/modsecurity-apache-2.9.3/standalone/server.c:675: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).
    int lu = strlen(uri);
data/modsecurity-apache-2.9.3/standalone/server.c:676: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).
    int lp = strlen(path_info);
data/modsecurity-apache-2.9.3/tests/msc_test.c:134:60:  [1] (buffer) strlen:
  Does not handle 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_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
data/modsecurity-apache-2.9.3/tests/msc_test.c:161:60:  [1] (buffer) strlen:
  Does not handle 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_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
data/modsecurity-apache-2.9.3/tests/msc_test.c:188:60:  [1] (buffer) strlen:
  Does not handle 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_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
data/modsecurity-apache-2.9.3/tests/msc_test.c:623: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).
                    param_len = strlen(val);
data/modsecurity-apache-2.9.3/tests/msc_test.c:628: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).
                    prerun_len = strlen(val);

ANALYSIS SUMMARY:

Hits = 962
Lines analyzed = 71544 in approximately 1.78 seconds (40108 lines/second)
Physical Source Lines of Code (SLOC) = 53167
Hits@level = [0]  81 [1] 634 [2] 285 [3]  24 [4]  17 [5]   2
Hits@level+ = [0+] 1043 [1+] 962 [2+] 328 [3+]  43 [4+]  19 [5+]   2
Hits/KSLOC@level+ = [0+] 19.6174 [1+] 18.0939 [2+] 6.16924 [3+] 0.808772 [4+] 0.357365 [5+] 0.0376173
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.