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/libstrophe-0.10.0/examples/active.c
Examining data/libstrophe-0.10.0/examples/basic.c
Examining data/libstrophe-0.10.0/examples/bot.c
Examining data/libstrophe-0.10.0/examples/component.c
Examining data/libstrophe-0.10.0/examples/register.c
Examining data/libstrophe-0.10.0/examples/roster.c
Examining data/libstrophe-0.10.0/examples/uuid.c
Examining data/libstrophe-0.10.0/examples/vcard.c
Examining data/libstrophe-0.10.0/src/auth.c
Examining data/libstrophe-0.10.0/src/common.h
Examining data/libstrophe-0.10.0/src/conn.c
Examining data/libstrophe-0.10.0/src/crypto.c
Examining data/libstrophe-0.10.0/src/ctx.c
Examining data/libstrophe-0.10.0/src/event.c
Examining data/libstrophe-0.10.0/src/handler.c
Examining data/libstrophe-0.10.0/src/hash.c
Examining data/libstrophe-0.10.0/src/hash.h
Examining data/libstrophe-0.10.0/src/jid.c
Examining data/libstrophe-0.10.0/src/md5.c
Examining data/libstrophe-0.10.0/src/md5.h
Examining data/libstrophe-0.10.0/src/ostypes.h
Examining data/libstrophe-0.10.0/src/parser.h
Examining data/libstrophe-0.10.0/src/parser_expat.c
Examining data/libstrophe-0.10.0/src/parser_libxml2.c
Examining data/libstrophe-0.10.0/src/rand.c
Examining data/libstrophe-0.10.0/src/rand.h
Examining data/libstrophe-0.10.0/src/resolver.c
Examining data/libstrophe-0.10.0/src/resolver.h
Examining data/libstrophe-0.10.0/src/sasl.c
Examining data/libstrophe-0.10.0/src/sasl.h
Examining data/libstrophe-0.10.0/src/scram.c
Examining data/libstrophe-0.10.0/src/scram.h
Examining data/libstrophe-0.10.0/src/sha.h
Examining data/libstrophe-0.10.0/src/sha1.c
Examining data/libstrophe-0.10.0/src/sha1.h
Examining data/libstrophe-0.10.0/src/sha256.c
Examining data/libstrophe-0.10.0/src/sha256.h
Examining data/libstrophe-0.10.0/src/sha512.c
Examining data/libstrophe-0.10.0/src/sha512.h
Examining data/libstrophe-0.10.0/src/snprintf.c
Examining data/libstrophe-0.10.0/src/snprintf.h
Examining data/libstrophe-0.10.0/src/sock.c
Examining data/libstrophe-0.10.0/src/sock.h
Examining data/libstrophe-0.10.0/src/stanza.c
Examining data/libstrophe-0.10.0/src/tls.h
Examining data/libstrophe-0.10.0/src/tls_dummy.c
Examining data/libstrophe-0.10.0/src/tls_gnutls.c
Examining data/libstrophe-0.10.0/src/tls_openssl.c
Examining data/libstrophe-0.10.0/src/tls_schannel.c
Examining data/libstrophe-0.10.0/src/util.c
Examining data/libstrophe-0.10.0/src/util.h
Examining data/libstrophe-0.10.0/src/uuid.c
Examining data/libstrophe-0.10.0/strophe.h
Examining data/libstrophe-0.10.0/tests/check_parser.c
Examining data/libstrophe-0.10.0/tests/res_query_dump.c
Examining data/libstrophe-0.10.0/tests/test.c
Examining data/libstrophe-0.10.0/tests/test.h
Examining data/libstrophe-0.10.0/tests/test_base64.c
Examining data/libstrophe-0.10.0/tests/test_ctx.c
Examining data/libstrophe-0.10.0/tests/test_hash.c
Examining data/libstrophe-0.10.0/tests/test_jid.c
Examining data/libstrophe-0.10.0/tests/test_md5.c
Examining data/libstrophe-0.10.0/tests/test_rand.c
Examining data/libstrophe-0.10.0/tests/test_resolver.c
Examining data/libstrophe-0.10.0/tests/test_sasl.c
Examining data/libstrophe-0.10.0/tests/test_scram.c
Examining data/libstrophe-0.10.0/tests/test_sha1.c
Examining data/libstrophe-0.10.0/tests/test_sha256.c
Examining data/libstrophe-0.10.0/tests/test_sha512.c
Examining data/libstrophe-0.10.0/tests/test_snprintf.c
Examining data/libstrophe-0.10.0/tests/test_sock.c
Examining data/libstrophe-0.10.0/tests/test_stanza.c
Examining data/libstrophe-0.10.0/tests/test_string.c

FINAL RESULTS:

data/libstrophe-0.10.0/examples/bot.c:104: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(replytext, intext);
data/libstrophe-0.10.0/examples/vcard.c:60: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(copy, tok);
data/libstrophe-0.10.0/src/conn.c:1098: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(tag, tag_head);
data/libstrophe-0.10.0/src/conn.c:1102:13:  [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(tag, attributes[i]);
data/libstrophe-0.10.0/src/conn.c:1105:13:  [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(tag, attributes[i]);
data/libstrophe-0.10.0/src/conn.c:1109: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(tag, tag_tail);
data/libstrophe-0.10.0/src/resolver.c:776:29:  [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(dnsserverips[numdnsservers++],
data/libstrophe-0.10.0/src/sasl.c:464: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(response, sign_b64);
data/libstrophe-0.10.0/src/snprintf.h:23:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define xmpp_snprintf snprintf
data/libstrophe-0.10.0/src/snprintf.h:29:24:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define xmpp_vsnprintf vsnprintf
data/libstrophe-0.10.0/tests/test_snprintf.c:41:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf2, fp_fmt[x], fp_nums[y]);
data/libstrophe-0.10.0/tests/test_snprintf.c:54:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf2, int_fmt[x], int_nums[y]);
data/libstrophe-0.10.0/src/resolver.c:691:19:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    if (hdnsapi = LoadLibrary("dnsapi.dll")) {
data/libstrophe-0.10.0/src/resolver.c:758:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            if (hiphlpapi = LoadLibrary("Iphlpapi.dll")) {
data/libstrophe-0.10.0/src/tls_schannel.c:101:25:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    if (!(tls->hsec32 = LoadLibrary("secur32.dll"))) {
data/libstrophe-0.10.0/tests/test_hash.c:48: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(seed);
data/libstrophe-0.10.0/examples/bot.c:105: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(replytext, " to you too!");
data/libstrophe-0.10.0/examples/register.c:50: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/libstrophe-0.10.0/examples/vcard.c:67: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).
    fd = fopen(vc->img_path, "w");
data/libstrophe-0.10.0/src/auth.c:542: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 nonce[32];
data/libstrophe-0.10.0/src/conn.c:779: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[1024]; /* small buffer for common case */
data/libstrophe-0.10.0/src/conn.c:843: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(item->data, data, len);
data/libstrophe-0.10.0/src/conn.c:1103:13:  [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(tag, "=\"");
data/libstrophe-0.10.0/src/crypto.c:215: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(digest, sha1->digest, SHA1_DIGEST_SIZE);
data/libstrophe-0.10.0/src/crypto.c:222:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char _base64_invcharmap[256] = {
data/libstrophe-0.10.0/src/crypto.c:240: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 _base64_charmap[65] = {
data/libstrophe-0.10.0/src/ctx.c:56:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define va_copy(d, s) (memcpy(&d, &s, sizeof(va_list)))
data/libstrophe-0.10.0/src/ctx.c:149: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 _xmpp_log_level_name[4] = {"DEBUG", "INFO", "WARN",
data/libstrophe-0.10.0/src/ctx.c:265: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 smbuf[1024];
data/libstrophe-0.10.0/src/event.c:86: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[STROPE_MESSAGE_BUFFER_SIZE];
data/libstrophe-0.10.0/src/jid.c:53: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(result, node, nlen - 1);
data/libstrophe-0.10.0/src/jid.c:56: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(result + nlen, domain, dlen);
data/libstrophe-0.10.0/src/jid.c:59: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(result + nlen + dlen + 1, resource, rlen - 1);
data/libstrophe-0.10.0/src/jid.c:82: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(result, jid, len);
data/libstrophe-0.10.0/src/jid.c:106: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(result, jid, (c - jid));
data/libstrophe-0.10.0/src/jid.c:138: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(result, c, dlen);
data/libstrophe-0.10.0/src/md5.c:46:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void MD5Transform(uint32_t buf[4], const unsigned char inext[64]);
data/libstrophe-0.10.0/src/md5.c:89: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, buf, len);
data/libstrophe-0.10.0/src/md5.c:92: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, buf, t);
data/libstrophe-0.10.0/src/md5.c:100: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(ctx->in, buf, 64);
data/libstrophe-0.10.0/src/md5.c:108: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(ctx->in, buf, len);
data/libstrophe-0.10.0/src/md5.c:115:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
data/libstrophe-0.10.0/src/md5.c:182:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void MD5Transform(uint32_t buf[4], const unsigned char inext[64])
data/libstrophe-0.10.0/src/md5.h: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.
    unsigned char in[64];
data/libstrophe-0.10.0/src/md5.h:27:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(unsigned char digest[16], struct MD5Context *context);
data/libstrophe-0.10.0/src/parser_expat.c:104: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(result, c, len);
data/libstrophe-0.10.0/src/parser_expat.c:121: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(result, nsname, (c - nsname));
data/libstrophe-0.10.0/src/parser_libxml2.c:53: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, attrs[i + 3], len);
data/libstrophe-0.10.0/src/parser_libxml2.c:55:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            xmpp_stanza_set_attribute(stanza, (const char *)attrs[i], value);
data/libstrophe-0.10.0/src/parser_libxml2.c:85: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, attrs[i + 3], len);
data/libstrophe-0.10.0/src/parser_libxml2.c:87:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ret[o] = xmpp_strdup(parser->ctx, (char *)attrs[i]);
data/libstrophe-0.10.0/src/rand.c:113: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(conj + 5, input_string, input_string_len);
data/libstrophe-0.10.0/src/rand.c:117: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(output_string, temp, no_of_bytes_to_return);
data/libstrophe-0.10.0/src/rand.c:135: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(seed_material, entropy_input, entropy_input_len);
data/libstrophe-0.10.0/src/rand.c:137: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(seed_material + entropy_input_len, nonce, nonce_len);
data/libstrophe-0.10.0/src/rand.c:141: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(ctx->V, seed, seedlen);
data/libstrophe-0.10.0/src/rand.c:158: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(seed_material + 1, ctx->V, seedlen);
data/libstrophe-0.10.0/src/rand.c:159: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(seed_material + 1 + seedlen, entropy_input, entropy_input_len);
data/libstrophe-0.10.0/src/rand.c:163: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(ctx->V, seed, seedlen);
data/libstrophe-0.10.0/src/rand.c:181: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, V, seedlen);
data/libstrophe-0.10.0/src/rand.c:189: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(output, W, requested_number_of_bytes);
data/libstrophe-0.10.0/src/rand.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(V3 + 1, ctx->V, seedlen);
data/libstrophe-0.10.0/src/rand.c:298:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char hex_tbl[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
data/libstrophe-0.10.0/src/resolver.c:175: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 fulldomain[2048];
data/libstrophe-0.10.0/src/resolver.c:282: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(&name[name_len], tail, copy_len);
data/libstrophe-0.10.0/src/resolver.c:589: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 qname[1024];
data/libstrophe-0.10.0/src/resolver.c:748: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 dnsserverips[16][256];
data/libstrophe-0.10.0/src/resolver.c:766:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buffer[65535];
data/libstrophe-0.10.0/src/resolver.c:804: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 name[512];
data/libstrophe-0.10.0/src/resolver.c:858:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[512];
data/libstrophe-0.10.0/src/resolver.h:32: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 target[MAX_DOMAIN_LEN];
data/libstrophe-0.10.0/src/sasl.c:55: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(msg + 1, authid, idlen);
data/libstrophe-0.10.0/src/sasl.c:57: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(msg + 1 + idlen + 1, password, passlen);
data/libstrophe-0.10.0/src/sasl.c:74: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(result, s, len);
data/libstrophe-0.10.0/src/sasl.c:89: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(result + 1, s, len);
data/libstrophe-0.10.0/src/sasl.c:214:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, key, keylen);
data/libstrophe-0.10.0/src/sasl.c:217:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, qvalue, valuelen);
data/libstrophe-0.10.0/src/sasl.c:240: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[16], HA1[16], HA2[16];
data/libstrophe-0.10.0/src/sasl.c:241: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[32];
data/libstrophe-0.10.0/src/sasl.c:242: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 cnonce[13];
data/libstrophe-0.10.0/src/sasl.c:281: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(value, "xmpp/", 5);
data/libstrophe-0.10.0/src/sasl.c:282: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(value + 5, domain, strlen(domain));
data/libstrophe-0.10.0/src/sasl.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(HA1, digest, 16);
data/libstrophe-0.10.0/src/sasl.c:323: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(HA2, digest, 16);
data/libstrophe-0.10.0/src/sasl.c:348: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(response, hex, 32);
data/libstrophe-0.10.0/src/sasl.c:463: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(response, ",p=");
data/libstrophe-0.10.0/src/scram.c:88:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(key_pad, key, key_len);
data/libstrophe-0.10.0/src/scram.c:132: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, salt, salt_len);
data/libstrophe-0.10.0/src/scram.c:133: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[salt_len], int1, sizeof(int1));
data/libstrophe-0.10.0/src/scram.c:137: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, digest, alg->digest_size);
data/libstrophe-0.10.0/src/sha.h:27: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(y, &__t, 4); \
data/libstrophe-0.10.0/src/sha.h:32: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(&(x), y, 4); \
data/libstrophe-0.10.0/src/sha.h:39: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(y, &__t, 8); \
data/libstrophe-0.10.0/src/sha.h:44: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(&(x), y, 8); \
data/libstrophe-0.10.0/src/sha1.c:148: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(block, buffer, 64);
data/libstrophe-0.10.0/src/sha1.c:220:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->buffer[j], data, (i = 64 - j));
data/libstrophe-0.10.0/src/sha1.c:228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&context->buffer[j], &data[i], len - i);
data/libstrophe-0.10.0/src/sha256.c:150: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(md->buf + md->curlen, in, (size_t)n);
data/libstrophe-0.10.0/src/sha512.c:138: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(md->buf + md->curlen, in, (size_t)n);
data/libstrophe-0.10.0/src/snprintf.c:446: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 convert[20];
data/libstrophe-0.10.0/src/snprintf.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 iconvert[20];
data/libstrophe-0.10.0/src/snprintf.c:574: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 fconvert[20];
data/libstrophe-0.10.0/src/sock.c:75: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 service[6];
data/libstrophe-0.10.0/src/stanza.c:273:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(dst, "<");
data/libstrophe-0.10.0/src/stanza.c:277:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(dst, ">");
data/libstrophe-0.10.0/src/stanza.c:281:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(dst, "&");
data/libstrophe-0.10.0/src/stanza.c:285:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(dst, """);
data/libstrophe-0.10.0/src/stanza.c:773: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(stanza->data, text, size);
data/libstrophe-0.10.0/src/stanza.c:1008: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(&text[len], child->data, clen);
data/libstrophe-0.10.0/src/tls_openssl.c:473: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/libstrophe-0.10.0/src/tls_schannel.c:427: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(buff, tls->readybuffer + tls->readybufferpos, bytes);
data/libstrophe-0.10.0/src/tls_schannel.c:499: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(tls->readybuffer, sbdec[1].pvBuffer, sbdec[1].cbBuffer);
data/libstrophe-0.10.0/src/tls_schannel.c:505: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(tls->recvbuffer, sbdec[3].pvBuffer, sbdec[3].cbBuffer);
data/libstrophe-0.10.0/src/tls_schannel.c:605: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.
            (unsigned char *)sbenc[1].pvBuffer + sbenc[1].cbBuffer;
data/libstrophe-0.10.0/src/tls_schannel.c:608: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(sbenc[1].pvBuffer, p, sbenc[1].cbBuffer);
data/libstrophe-0.10.0/src/util.c:53: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(copy, s, len + 1);
data/libstrophe-0.10.0/src/uuid.c:32: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[16];
data/libstrophe-0.10.0/tests/res_query_dump.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[65536];
data/libstrophe-0.10.0/tests/res_query_dump.c:43: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 fulldomain[2048];
data/libstrophe-0.10.0/tests/test.c:39:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[2048];
data/libstrophe-0.10.0/tests/test_base64.c:134:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        enc = xmpp_base64_encode(ctx, (unsigned char *)tests[i].raw,
data/libstrophe-0.10.0/tests/test_ctx.c:64: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 my_str[5] = "asdf";
data/libstrophe-0.10.0/tests/test_hash.c:43: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).
        seed = (unsigned int)atoi(argv[1]);
data/libstrophe-0.10.0/tests/test_md5.c:63:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[16];
data/libstrophe-0.10.0/tests/test_md5.c:71:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        MD5Update(&ctx, (unsigned char *)tests[i].data, strlen(tests[i].data));
data/libstrophe-0.10.0/tests/test_resolver.c:222:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, data2, 64);
data/libstrophe-0.10.0/tests/test_scram.c:110: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 auth[512];
data/libstrophe-0.10.0/tests/test_sha1.c:31: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(c, "%02X", digest[i * 4 + j]);
data/libstrophe-0.10.0/tests/test_sha1.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 output[80];
data/libstrophe-0.10.0/tests/test_sha256.c:17: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 hash[SHA256_DIGEST_SIZE];
data/libstrophe-0.10.0/tests/test_sha256.c:30: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 tmp[SHA256_DIGEST_SIZE];
data/libstrophe-0.10.0/tests/test_sha256.c:35:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        sha256_process(&md, (unsigned char *)tests[i].msg,
data/libstrophe-0.10.0/tests/test_snprintf.c:21: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 buf1[LONG_STRING];
data/libstrophe-0.10.0/tests/test_snprintf.c:22: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 buf2[LONG_STRING];
data/libstrophe-0.10.0/examples/bot.c:103: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).
        replytext = (char *)malloc(strlen(" to you too!") + strlen(intext) + 1);
data/libstrophe-0.10.0/examples/bot.c:103: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).
        replytext = (char *)malloc(strlen(" to you too!") + strlen(intext) + 1);
data/libstrophe-0.10.0/examples/register.c:73: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).
                len = strlen(s);
data/libstrophe-0.10.0/examples/vcard.c:55: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).
    copy = (char *)malloc(strlen(s) + 1);
data/libstrophe-0.10.0/examples/vcard.c:64: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).
    xmpp_base64_decode_bin(vc->ctx, copy, strlen(copy), &img, &img_size);
data/libstrophe-0.10.0/src/auth.c:477: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).
        challenge = xmpp_base64_decode_str(conn->ctx, text, strlen(text));
data/libstrophe-0.10.0/src/auth.c:549: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).
    message_len = strlen(node) + strlen(nonce) + 8 + 1;
data/libstrophe-0.10.0/src/auth.c:549: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).
    message_len = strlen(node) + strlen(nonce) + 8 + 1;
data/libstrophe-0.10.0/src/auth.c:696:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(scram_ctx->scram_init));
data/libstrophe-0.10.0/src/auth.c:889: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 ((resource != NULL) && (strlen(resource) == 0)) {
data/libstrophe-0.10.0/src/auth.c:1256: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).
                       strlen(conn->stream_id));
data/libstrophe-0.10.0/src/auth.c:1257: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).
    crypto_SHA1_Update(&mdctx, (uint8_t *)conn->pass, strlen(conn->pass));
data/libstrophe-0.10.0/src/auth.c:1268: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).
                   strlen(digest));
data/libstrophe-0.10.0/src/conn.c:1091: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(tag_head) + strlen(tag_tail);
data/libstrophe-0.10.0/src/conn.c:1091: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).
    len = strlen(tag_head) + strlen(tag_tail);
data/libstrophe-0.10.0/src/conn.c:1093:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(attributes[i]) + 2;
data/libstrophe-0.10.0/src/conn.c:1101:13:  [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(tag, " ");
data/libstrophe-0.10.0/src/conn.c:1106:13:  [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(tag, "\"");
data/libstrophe-0.10.0/src/conn.c:1111: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(tag) != len) {
data/libstrophe-0.10.0/src/crypto.c:481: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 (buflen != strlen((char *)buf)) {
data/libstrophe-0.10.0/src/event.c:41:19:  [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.
#define _sleep(x) usleep((x)*1000)
data/libstrophe-0.10.0/src/jid.c:44: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).
    dlen = strlen(domain);
data/libstrophe-0.10.0/src/jid.c:45: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).
    nlen = (node) ? strlen(node) + 1 : 0;
data/libstrophe-0.10.0/src/jid.c:46: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).
    rlen = (resource) ? strlen(resource) + 1 : 0;
data/libstrophe-0.10.0/src/parser_expat.c:101: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(c);
data/libstrophe-0.10.0/src/parser_expat.c:262:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(parser->inner_text, s, len);
data/libstrophe-0.10.0/src/resolver.c:490:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rr->target, item->host, sizeof(rr->target) - 1);
data/libstrophe-0.10.0/src/resolver.c:826:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(dnsserverips[numdnsservers++], start,
data/libstrophe-0.10.0/src/resolver.c:880:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(dnsserverips[numdnsservers++], start,
data/libstrophe-0.10.0/src/resolver.c:902:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(dnsserverips[numdnsservers++], start,
data/libstrophe-0.10.0/src/resolver.c:932:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(question.qname, fulldomain, 1024);
data/libstrophe-0.10.0/src/sasl.c:49: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).
    idlen = strlen(authid);
data/libstrophe-0.10.0/src/sasl.c:50: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).
    passlen = strlen(password);
data/libstrophe-0.10.0/src/sasl.c:84: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(s);
data/libstrophe-0.10.0/src/sasl.c:104: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).
    text = (unsigned char *)xmpp_base64_decode_str(ctx, msg, strlen(msg));
data/libstrophe-0.10.0/src/sasl.c:192: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).
    olen = strlen(buf);
data/libstrophe-0.10.0/src/sasl.c:205: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).
    keylen = strlen(key);
data/libstrophe-0.10.0/src/sasl.c:206: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).
    valuelen = strlen(qvalue);
data/libstrophe-0.10.0/src/sasl.c:268: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 (realm == NULL || strlen(realm) == 0) {
data/libstrophe-0.10.0/src/sasl.c:280: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 = xmpp_alloc(ctx, 5 + strlen(domain) + 1);
data/libstrophe-0.10.0/src/sasl.c:282: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).
    memcpy(value + 5, domain, strlen(domain));
data/libstrophe-0.10.0/src/sasl.c:283: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).
    value[5 + strlen(domain)] = '\0';
data/libstrophe-0.10.0/src/sasl.c:290: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).
    MD5Update(&MD5, (unsigned char *)node, strlen(node));
data/libstrophe-0.10.0/src/sasl.c:292: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).
    MD5Update(&MD5, (unsigned char *)realm, strlen(realm));
data/libstrophe-0.10.0/src/sasl.c:294: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).
    MD5Update(&MD5, (unsigned char *)password, strlen(password));
data/libstrophe-0.10.0/src/sasl.c:303: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:306: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:331: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:334: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:337: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:340: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).
    MD5Update(&MD5, (unsigned char *)value, strlen(value));
data/libstrophe-0.10.0/src/sasl.c:369: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).
    response = xmpp_base64_encode(ctx, (unsigned char *)result, strlen(result));
data/libstrophe-0.10.0/src/sasl.c:425: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).
    xmpp_base64_decode_bin(ctx, s, strlen(s), &sval, &sval_len);
data/libstrophe-0.10.0/src/sasl.c:431: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).
    auth_len = 10 + strlen(r) + strlen(first_bare) + strlen(challenge);
data/libstrophe-0.10.0/src/sasl.c:431: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).
    auth_len = 10 + strlen(r) + strlen(first_bare) + strlen(challenge);
data/libstrophe-0.10.0/src/sasl.c:431: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).
    auth_len = 10 + strlen(r) + strlen(first_bare) + strlen(challenge);
data/libstrophe-0.10.0/src/sasl.c:438: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).
    response_len = 7 + strlen(r) + 3 + ((alg->digest_size + 2) / 3 * 4) + 1;
data/libstrophe-0.10.0/src/sasl.c:448: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).
    SCRAM_ClientKey(alg, (uint8_t *)password, strlen(password), (uint8_t *)sval,
data/libstrophe-0.10.0/src/sasl.c:450: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).
    SCRAM_ClientSignature(alg, key, (uint8_t *)auth, strlen(auth), sign);
data/libstrophe-0.10.0/src/sasl.c:459: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(response) + strlen(sign_b64) + 3 + 1 > response_len) {
data/libstrophe-0.10.0/src/sasl.c:459: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 (strlen(response) + strlen(sign_b64) + 3 + 1 > response_len) {
data/libstrophe-0.10.0/src/sasl.c:468: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).
        xmpp_base64_encode(ctx, (unsigned char *)response, strlen(response));
data/libstrophe-0.10.0/src/scram.c:161: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("Client Key"), key);
data/libstrophe-0.10.0/src/stanza.c:995: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).
            len += strlen(child->data);
data/libstrophe-0.10.0/src/stanza.c:1007: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).
            clen = strlen(child->data);
data/libstrophe-0.10.0/src/stanza.c:1588: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).
        ret = parser_feed(parser, (char *)start, strlen(start)) &&
data/libstrophe-0.10.0/src/stanza.c:1589: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).
              parser_feed(parser, (char *)str, strlen(str)) &&
data/libstrophe-0.10.0/src/stanza.c:1590: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).
              parser_feed(parser, (char *)end, strlen(end));
data/libstrophe-0.10.0/src/tls_schannel.c:434:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int read;
data/libstrophe-0.10.0/src/tls_schannel.c:447:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return bytes + read;
data/libstrophe-0.10.0/src/util.c:46: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(s);
data/libstrophe-0.10.0/tests/test.c:26: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(hex);
data/libstrophe-0.10.0/tests/test_base64.c:135:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(tests[i].raw));
data/libstrophe-0.10.0/tests/test_base64.c:141: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(tests[i].base64));
data/libstrophe-0.10.0/tests/test_base64.c:143: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).
        COMPARE_BUF(tests[i].raw, strlen(tests[i].raw), dec, strlen(dec));
data/libstrophe-0.10.0/tests/test_base64.c:143: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).
        COMPARE_BUF(tests[i].raw, strlen(tests[i].raw), dec, strlen(dec));
data/libstrophe-0.10.0/tests/test_base64.c:151: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).
    xmpp_base64_decode_bin(ctx, enc, strlen(enc), &udec, &len);
data/libstrophe-0.10.0/tests/test_md5.c:71: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).
        MD5Update(&ctx, (unsigned char *)tests[i].data, strlen(tests[i].data));
data/libstrophe-0.10.0/tests/test_sasl.c:59: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 (strncmp(response_plain, result, strlen(response_plain))) {
data/libstrophe-0.10.0/tests/test_scram.c:124: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(scram_vectors[i].password), salt, salt_len,
data/libstrophe-0.10.0/tests/test_scram.c:126: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).
        SCRAM_ClientSignature(alg, key, (uint8_t *)auth, strlen(auth), sign);
data/libstrophe-0.10.0/tests/test_sha1.c:34:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(c, " ");
data/libstrophe-0.10.0/tests/test_sha1.c:58:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(test_data[k]));
data/libstrophe-0.10.0/tests/test_sha256.c:36: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).
                       (unsigned long)strlen(tests[i].msg));
data/libstrophe-0.10.0/tests/test_sha512.c:50: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).
        sha512_process(&md, (uint8_t *)tests[i].msg, strlen(tests[i].msg));

ANALYSIS SUMMARY:

Hits = 220
Lines analyzed = 18302 in approximately 0.51 seconds (35662 lines/second)
Physical Source Lines of Code (SLOC) = 12263
Hits@level = [0] 176 [1]  86 [2] 118 [3]   4 [4]  12 [5]   0
Hits@level+ = [0+] 396 [1+] 220 [2+] 134 [3+]  16 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 32.2923 [1+] 17.9401 [2+] 10.9272 [3+] 1.30474 [4+] 0.978553 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.