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/libevhtp-1.2.18/evhtp.c
Examining data/libevhtp-1.2.18/examples/eutils.h
Examining data/libevhtp-1.2.18/examples/example_basic.c
Examining data/libevhtp-1.2.18/examples/example_chunked.c
Examining data/libevhtp-1.2.18/examples/example_locality.c
Examining data/libevhtp-1.2.18/examples/example_pause.c
Examining data/libevhtp-1.2.18/examples/example_request_fini.c
Examining data/libevhtp-1.2.18/examples/example_vhost.c
Examining data/libevhtp-1.2.18/examples/https/example_https_client.c
Examining data/libevhtp-1.2.18/examples/https/example_https_server.c
Examining data/libevhtp-1.2.18/examples/test.c
Examining data/libevhtp-1.2.18/examples/test_basic.c
Examining data/libevhtp-1.2.18/examples/test_client.c
Examining data/libevhtp-1.2.18/examples/test_htparse.c
Examining data/libevhtp-1.2.18/examples/test_perf.c
Examining data/libevhtp-1.2.18/examples/test_proxy.c
Examining data/libevhtp-1.2.18/examples/test_query.c
Examining data/libevhtp-1.2.18/examples/test_vhost.c
Examining data/libevhtp-1.2.18/examples/thread_design.c
Examining data/libevhtp-1.2.18/examples/v6_v4.c
Examining data/libevhtp-1.2.18/include/evhtp.h
Examining data/libevhtp-1.2.18/include/evhtp/evhtp.h
Examining data/libevhtp-1.2.18/include/evhtp/log.h
Examining data/libevhtp-1.2.18/include/evhtp/parser.h
Examining data/libevhtp-1.2.18/include/evhtp/sslutils.h
Examining data/libevhtp-1.2.18/include/evhtp/thread.h
Examining data/libevhtp-1.2.18/include/internal.h
Examining data/libevhtp-1.2.18/include/numtoa.h
Examining data/libevhtp-1.2.18/log.c
Examining data/libevhtp-1.2.18/numtoa.c
Examining data/libevhtp-1.2.18/parser.c
Examining data/libevhtp-1.2.18/refcount.h
Examining data/libevhtp-1.2.18/sslutils.c
Examining data/libevhtp-1.2.18/thread.c

FINAL RESULTS:

data/libevhtp-1.2.18/examples/https/example_https_server.c:134:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(help, argv[0]);
data/libevhtp-1.2.18/examples/test_htparse.c:12: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(buf, name ": '");                \
data/libevhtp-1.2.18/examples/test_htparse.c:166:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(buf, tbuf);
data/libevhtp-1.2.18/examples/test_htparse.c:478:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(result_buf, htparser_get_strerror(p));
data/libevhtp-1.2.18/include/internal.h:50:5:  [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.
    fprintf(stderr, __log_debug_color("DEBUG") " " \
data/libevhtp-1.2.18/include/internal.h:58:5:  [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.
    fprintf(stderr, __log_error_color("ERROR") " " \
data/libevhtp-1.2.18/include/internal.h:68:5:  [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.
    fprintf(stderr, __log_warn_color("WARN") "  " \
data/libevhtp-1.2.18/include/internal.h:77:5:  [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.
    fprintf(stderr, __log_info_color("INFO") "  " \
data/libevhtp-1.2.18/examples/example_request_fini.c:52: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(time(NULL));
data/libevhtp-1.2.18/examples/test.c:460:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, optstr)) != -1) {
data/libevhtp-1.2.18/examples/test.c:549: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)time(NULL));
data/libevhtp-1.2.18/examples/test_perf.c:40:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "t:a:p:b:ndrs:")) != -1)
data/libevhtp-1.2.18/evhtp.c:273: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(p, str, len + 1);
data/libevhtp-1.2.18/evhtp.c:297: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(p, str, len + 1);
data/libevhtp-1.2.18/evhtp.c:508: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(ret, s, n);
data/libevhtp-1.2.18/evhtp.c:1395: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(uri->fragment, fragment, fraglen);
data/libevhtp-1.2.18/evhtp.c:1413: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(uri->query_raw, data, len);
data/libevhtp-1.2.18/evhtp.c:1448: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(key_s, data, len);
data/libevhtp-1.2.18/evhtp.c:1474: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(val_s, data, len);
data/libevhtp-1.2.18/evhtp.c:1595: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(path->match_start, (void *)(path->full + path->matched_soff),
data/libevhtp-1.2.18/evhtp.c:1598: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(path->match_start, (void *)(path->full + path->matched_soff),
data/libevhtp-1.2.18/evhtp.c:1602: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->match_end,
data/libevhtp-1.2.18/evhtp.c:1613: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(request->hooks, hooks, sizeof(evhtp_hooks_t));
data/libevhtp-1.2.18/evhtp.c:1719: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(authority->hostname, data, len);
data/libevhtp-1.2.18/evhtp.c:1994: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(uri->query_raw, body, body_len);
data/libevhtp-1.2.18/evhtp.c:2065: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              res_buf[2048];
data/libevhtp-1.2.18/evhtp.c:2070: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              out_buf[64];
data/libevhtp-1.2.18/evhtp.c:2836: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(connection->saddr, s, sl);
data/libevhtp-1.2.18/evhtp.c:3129: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(header->val, val, header->vlen);
data/libevhtp-1.2.18/evhtp.c:3186: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(s, key, kv->klen);
data/libevhtp-1.2.18/evhtp.c:3208: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(s, val, kv->vlen);
data/libevhtp-1.2.18/evhtp.c:3506: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   key_buf[len + 1];
data/libevhtp-1.2.18/evhtp.c:3507: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_buf[len + 1];
data/libevhtp-1.2.18/evhtp.c:3866: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 lstr[128];
data/libevhtp-1.2.18/evhtp.c:4851: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).
        fh = fopen(cfg->dhparams, "r");
data/libevhtp-1.2.18/evhtp.c:5567: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   out_buf[64] = { 0 };
data/libevhtp-1.2.18/examples/eutils.h:12:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return mem ? memcpy(mem, src, size) : NULL;
data/libevhtp-1.2.18/examples/example_chunked.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            buf[128];
data/libevhtp-1.2.18/examples/example_chunked.c:102:17:  [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_desc = fopen(filename, "r");
data/libevhtp-1.2.18/examples/https/example_https_client.c:89: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).
                port = atoi(optarg);
data/libevhtp-1.2.18/examples/https/example_https_server.c:36: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[256];
data/libevhtp-1.2.18/examples/https/example_https_server.c:152: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).
                ssl_config->verify_depth    = atoi(optarg);
data/libevhtp-1.2.18/examples/https/example_https_server.c:161: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).
                ssl_config->scache_timeout  = atoi(optarg);
data/libevhtp-1.2.18/examples/https/example_https_server.c:164: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).
                ssl_config->scache_size     = atoi(optarg);
data/libevhtp-1.2.18/examples/https/example_https_server.c:167: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).
                ssl_config->ssl_ctx_timeout = atoi(optarg);
data/libevhtp-1.2.18/examples/test.c:472: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).
                bind_port      = atoi(optarg);
data/libevhtp-1.2.18/examples/test.c:479: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).
                num_threads    = atoi(optarg);
data/libevhtp-1.2.18/examples/test_htparse.c:14:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(buf, "'\n");                     \
data/libevhtp-1.2.18/examples/test_htparse.c:29:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "START\n");
data/libevhtp-1.2.18/examples/test_htparse.c:114:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "HDRS_BEGIN\n");
data/libevhtp-1.2.18/examples/test_htparse.c:154:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "HDRS_COMPLETE\n");
data/libevhtp-1.2.18/examples/test_htparse.c:163: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   tbuf[1024] = { 0 };
data/libevhtp-1.2.18/examples/test_htparse.c:165:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tbuf, "NEW_CHUNK: %" PRIu64 "\n", htparser_get_content_length(p));
data/libevhtp-1.2.18/examples/test_htparse.c:176:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "END_CHUNK\n");
data/libevhtp-1.2.18/examples/test_htparse.c:186:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "END_CHUNKS\n");
data/libevhtp-1.2.18/examples/test_htparse.c:206:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "MSG_COMPLETE\n");
data/libevhtp-1.2.18/examples/test_htparse.c:469: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_buf[5000] = { 0 };
data/libevhtp-1.2.18/examples/test_htparse.c:477:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(result_buf, "ERROR_STR: ");
data/libevhtp-1.2.18/examples/test_perf.c:44: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).
                num_threads  = atoi(optarg);
data/libevhtp-1.2.18/examples/test_perf.c:50: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).
                bport        = atoi(optarg);
data/libevhtp-1.2.18/examples/test_perf.c:84:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char                payload[payload_sz];
data/libevhtp-1.2.18/examples/test_query.c:243: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 unescaped_string[1024] = { 0 };
data/libevhtp-1.2.18/examples/thread_design.c:219: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[1024];
data/libevhtp-1.2.18/log.c:52: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            tag[HTP_LOG_OP_TAGSZ];
data/libevhtp-1.2.18/log.c:234: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[64];
data/libevhtp-1.2.18/parser.c:121: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[PARSER_STACK_MAX];
data/libevhtp-1.2.18/sslutils.c:189: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   md[EVP_MAX_MD_SIZE];
data/libevhtp-1.2.18/evhtp.c:267: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(str);
data/libevhtp-1.2.18/evhtp.c:899: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).
    path_len = strlen(path);
data/libevhtp-1.2.18/evhtp.c:928: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).
                size_t glob_len = strlen(callback->val.glob);
data/libevhtp-1.2.18/evhtp.c:1504: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(evhtp_vhost->server_name), name,
data/libevhtp-1.2.18/evhtp.c:1505: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(name)) == 1) {
data/libevhtp-1.2.18/evhtp.c:1515: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(evhtp_alias->alias), name,
data/libevhtp-1.2.18/evhtp.c:1516: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(name)) == 1) {
data/libevhtp-1.2.18/evhtp.c:1580: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).
        path->matched_eoff = (unsigned int)strlen(path->full);
data/libevhtp-1.2.18/evhtp.c:1584: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).
        path->match_start = htp__calloc_(strlen(path->full) + 1, 1);
data/libevhtp-1.2.18/evhtp.c:1589: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).
        path->match_end = htp__calloc_(strlen(path->full) + 1, 1);
data/libevhtp-1.2.18/evhtp.c:1599: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((const char *)(path->full + path->matched_soff)));
data/libevhtp-1.2.18/evhtp.c:1604: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(path->full) - path->matched_eoff);
data/libevhtp-1.2.18/evhtp.c:2171: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).
            { out_buf,            strlen(out_buf)    }, /* data = "HTTP/X.X YYY" */
data/libevhtp-1.2.18/evhtp.c:2173: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).
            { (void *)status_str, strlen(status_str) }, /* data = "HTTP/X.X YYY ZZZ" */
data/libevhtp-1.2.18/evhtp.c:3122: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).
    header->vlen = strlen(val);
data/libevhtp-1.2.18/evhtp.c:3175: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).
        kv->klen = strlen(key);
data/libevhtp-1.2.18/evhtp.c:3196: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).
        kv->vlen = strlen(val);
data/libevhtp-1.2.18/evhtp.c:3878: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).
            evbuffer_prepend(request->buffer_out, lstr, strlen(lstr));
data/libevhtp-1.2.18/evhtp.c:4136: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(baddr) >= sizeof(sockun.sun_path)) {
data/libevhtp-1.2.18/evhtp.c:4143:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sockun.sun_path, baddr, strlen(baddr));
data/libevhtp-1.2.18/evhtp.c:4143: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).
        strncpy(sockun.sun_path, baddr, strlen(baddr));
data/libevhtp-1.2.18/evhtp.c:4201: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).
    hcb->len   = strlen(path);
data/libevhtp-1.2.18/examples/test.c:170: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).
    urilen = strlen(uri);
data/libevhtp-1.2.18/examples/test.c:229: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).
        evbuffer_add(buf, chunk_str, strlen(chunk_str));
data/libevhtp-1.2.18/examples/test_basic.c:12: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).
    evbuffer_add(req->buffer_out, str, strlen(str));
data/libevhtp-1.2.18/examples/test_htparse.c:13: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(buf, data, len);                \
data/libevhtp-1.2.18/examples/test_htparse.c:474: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).
    data_sz   = strlen(obj->data);
data/libevhtp-1.2.18/examples/test_htparse.c:479:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(result_buf, "\n");
data/libevhtp-1.2.18/examples/test_query.c:76: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).
    query = evhtp_parse_query_wflags(raw_query, strlen(raw_query), flags);
data/libevhtp-1.2.18/examples/test_query.c:247: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).
    evhtp_unescape_string(&ptr, escaped_string, strlen(escaped_string));
data/libevhtp-1.2.18/examples/v6_v4.c:18: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).
    evbuffer_add(req->buffer_out, ver, strlen(ver));
data/libevhtp-1.2.18/log.c:68: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 (!strncasecmp(fmt_, fmt, strlen(fmt_))) {
data/libevhtp-1.2.18/log.c:69: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).
            *arglen = strlen(fmt_);
data/libevhtp-1.2.18/thread.c:489:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(5000);

ANALYSIS SUMMARY:

Hits = 101
Lines analyzed = 14699 in approximately 0.30 seconds (49329 lines/second)
Physical Source Lines of Code (SLOC) = 10208
Hits@level = [0]  85 [1]  34 [2]  55 [3]   4 [4]   8 [5]   0
Hits@level+ = [0+] 186 [1+] 101 [2+]  67 [3+]  12 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 18.221 [1+] 9.8942 [2+] 6.56348 [3+] 1.17555 [4+] 0.783699 [5+]   0
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.