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/libshout-2.4.4/src/format_webm.c
Examining data/libshout-2.4.4/src/codec_theora.c
Examining data/libshout-2.4.4/src/proto_xaudiocast.c
Examining data/libshout-2.4.4/src/tls.c
Examining data/libshout-2.4.4/src/queue.c
Examining data/libshout-2.4.4/src/codec_vorbis.c
Examining data/libshout-2.4.4/src/proto_icy.c
Examining data/libshout-2.4.4/src/util.c
Examining data/libshout-2.4.4/src/shout.c
Examining data/libshout-2.4.4/src/proto_http.c
Examining data/libshout-2.4.4/src/common/avl/avl.c
Examining data/libshout-2.4.4/src/common/avl/avl.h
Examining data/libshout-2.4.4/src/common/avl/test.c
Examining data/libshout-2.4.4/src/common/timing/timing.h
Examining data/libshout-2.4.4/src/common/timing/timing.c
Examining data/libshout-2.4.4/src/common/thread/thread.h
Examining data/libshout-2.4.4/src/common/thread/thread.c
Examining data/libshout-2.4.4/src/common/httpp/httpp.c
Examining data/libshout-2.4.4/src/common/httpp/encoding.h
Examining data/libshout-2.4.4/src/common/httpp/encoding.c
Examining data/libshout-2.4.4/src/common/httpp/httpp.h
Examining data/libshout-2.4.4/src/common/net/resolver.c
Examining data/libshout-2.4.4/src/common/net/sock.c
Examining data/libshout-2.4.4/src/common/net/resolver.h
Examining data/libshout-2.4.4/src/common/net/sock.h
Examining data/libshout-2.4.4/src/common/net/test_resolver.c
Examining data/libshout-2.4.4/src/connection.c
Examining data/libshout-2.4.4/src/codec_opus.c
Examining data/libshout-2.4.4/src/format_mp3.c
Examining data/libshout-2.4.4/src/format_ogg.h
Examining data/libshout-2.4.4/src/codec_speex.c
Examining data/libshout-2.4.4/src/shout_private.h
Examining data/libshout-2.4.4/src/util.h
Examining data/libshout-2.4.4/src/format_ogg.c
Examining data/libshout-2.4.4/src/proto_roaraudio.c
Examining data/libshout-2.4.4/include/os.h
Examining data/libshout-2.4.4/examples/nonblocking.c
Examining data/libshout-2.4.4/examples/example.c

FINAL RESULTS:

data/libshout-2.4.4/src/common/avl/test.c:5:9:  [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 snprintf _snprintf
data/libshout-2.4.4/src/common/avl/test.c:5:18:  [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 snprintf _snprintf
data/libshout-2.4.4/src/common/net/sock.c:419:15:  [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.
        ret = vsnprintf (buff, len, fmt, ap_local);
data/libshout-2.4.4/src/common/net/sock.c:440:11:  [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.
    len = vsnprintf (buff, sizeof (buffer), fmt, ap);
data/libshout-2.4.4/src/common/net/sock.c:452:23:  [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.
                len = vsnprintf (buff, len, fmt, ap_retry);
data/libshout-2.4.4/src/queue.c:93:11:  [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.
    len = vsnprintf(buf, sizeof(buffer), fmt, ap);
data/libshout-2.4.4/src/queue.c:101:23:  [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.
                len = vsnprintf(buf, len, fmt, ap_retry);
data/libshout-2.4.4/src/shout.c:50:12:  [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 vsnprintf      _vsnprintf
data/libshout-2.4.4/src/shout.c:346:13:  [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.
            snprintf(param, param_len, param_template, encpassword, encvalue);
data/libshout-2.4.4/src/shout.c:369:13:  [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.
            snprintf(param, param_len, param_template, encmount, encvalue);
data/libshout-2.4.4/src/shout.c:396:13:  [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.
            snprintf(param, param_len, param_template, encpassword, encmount, encvalue);
data/libshout-2.4.4/examples/example.c:14: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 buff[4096];
data/libshout-2.4.4/examples/nonblocking.c:16: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 buff[4096];
data/libshout-2.4.4/src/codec_opus.c:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_map[255];
data/libshout-2.4.4/src/codec_opus.c:105: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            str[9];
data/libshout-2.4.4/src/common/avl/avl.c:1073:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char balance_chars[3] = {'\\', '-', '/'};
data/libshout-2.4.4/src/common/avl/avl.c:1120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[AVL_KEY_PRINTER_BUFLEN];
data/libshout-2.4.4/src/common/avl/test.c:21:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max_nodes = atoi(argv[1]);
data/libshout-2.4.4/src/common/httpp/encoding.c:88: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(dst, p, todo);
data/libshout-2.4.4/src/common/httpp/encoding.c:424:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(meta->key, p, key_len);
data/libshout-2.4.4/src/common/httpp/encoding.c:684: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(self->buf_read_decoded, self->buf_read_raw + self->buf_read_raw_offset, bodylen);
data/libshout-2.4.4/src/common/httpp/encoding.c:761: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, cur->key, len);
data/libshout-2.4.4/src/common/httpp/encoding.c:790: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 encoded_length[32];
data/libshout-2.4.4/src/common/httpp/encoding.c:830: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(self->buf_write_encoded + header_length, buf, len);
data/libshout-2.4.4/src/common/httpp/encoding.c:831: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(self->buf_write_encoded + header_length + len, "\r\n\r\n", buf ? 2 : 4);
data/libshout-2.4.4/src/common/httpp/httpp.c:222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *line[MAX_HEADERS];
data/libshout-2.4.4/src/common/httpp/httpp.c:232: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, http_data, len);
data/libshout-2.4.4/src/common/httpp/httpp.c:264:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    code = atoi(resp_code);
data/libshout-2.4.4/src/common/httpp/httpp.c:374: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, start, keylen);
data/libshout-2.4.4/src/common/httpp/httpp.c:410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *line[MAX_HEADERS]; /* limited to 32 lines, should be more than enough */
data/libshout-2.4.4/src/common/httpp/httpp.c:424: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, http_data, len);
data/libshout-2.4.4/src/common/net/sock.c:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp[1024];
data/libshout-2.4.4/src/common/net/sock.c:433:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer [1024], *buff = buffer;
data/libshout-2.4.4/src/common/net/sock.c:605: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[8];
data/libshout-2.4.4/src/common/net/sock.c:647: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[8];
data/libshout-2.4.4/src/common/net/sock.c:719: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 [10];
data/libshout-2.4.4/src/common/net/sock.c:770:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[MAX_ADDR_LEN];
data/libshout-2.4.4/src/common/net/sock.c:790: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(&server.sin_addr, &sin.sin_addr, sizeof(struct sockaddr_in));
data/libshout-2.4.4/src/common/net/sock.c:872:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[MAX_ADDR_LEN];
data/libshout-2.4.4/src/common/net/test_resolver.c:8: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 buff[1024];
data/libshout-2.4.4/src/common/thread/thread.c:580: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 name[40];
data/libshout-2.4.4/src/connection.c:302: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];
data/libshout-2.4.4/src/format_mp3.c:48: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   header_bridge[3];
data/libshout-2.4.4/src/format_mp3.c:161: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(&bridge_buff[mp3_data->header_bridges], buff, len);
data/libshout-2.4.4/src/format_ogg.c:97: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(buffer, data, len);
data/libshout-2.4.4/src/format_webm.c:95: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 input_buffer[SHOUT_BUFSIZE];
data/libshout-2.4.4/src/format_webm.c:96: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 output_buffer[SHOUT_BUFSIZE];
data/libshout-2.4.4/src/format_webm.c:440: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(target_base + *target_position, src_base + *src_position, to_copy);
data/libshout-2.4.4/src/proto_http.c:372: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[64];
data/libshout-2.4.4/src/proto_http.c:388:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, str, len);
data/libshout-2.4.4/src/proto_http.c:425:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         buffer[256];
data/libshout-2.4.4/src/proto_http.c:516:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        code = atoi(retcode);
data/libshout-2.4.4/src/proto_http.c:544:48:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if (eat_body(self, connection, atoi(content_length), header, hlen) == -1) {
data/libshout-2.4.4/src/proto_roaraudio.c:140: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 + 5, agent, datalen - 5);
data/libshout-2.4.4/src/proto_roaraudio.c:242: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(header + total_len, queue->data, queue->len > (HEADER_SIZE - total_len) ? (HEADER_SIZE - total_len) : queue->len);
data/libshout-2.4.4/src/proto_roaraudio.c:285: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(header, data, HEADER_SIZE);
data/libshout-2.4.4/src/queue.c:65:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf->data + buf->len, data, plen);
data/libshout-2.4.4/src/queue.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buffer[1024];
data/libshout-2.4.4/src/queue.c:142:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*buf + pos, node->data, node->len);
data/libshout-2.4.4/src/shout.c:48:34:  [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(ap1, ap2) memcpy(&ap1, &ap2, sizeof(va_list))
data/libshout-2.4.4/src/shout_private.h:83:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   data[SHOUT_BUFSIZE];
data/libshout-2.4.4/src/tls.c:180: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 common_name[256] = "";
data/libshout-2.4.4/src/tls.c:331:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*buf, data, len);
data/libshout-2.4.4/src/tls.c:374:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*buf, data, len);
data/libshout-2.4.4/src/util.c:44: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 hexchars[16] = {
data/libshout-2.4.4/src/util.c:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char safechars[256] = {
data/libshout-2.4.4/src/util.c:68: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 safechars_plus_gen_delims_minus_3F_and_23[256] = {
data/libshout-2.4.4/src/util.c:88: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 base64table[64] = {
data/libshout-2.4.4/src/util.c:174:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *_url_encode_with_table(const char *data, const char table[256])
data/libshout-2.4.4/src/util.c:174:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *_url_encode_with_table(const char *data, const char table[256])
data/libshout-2.4.4/src/util.c:174:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *_url_encode_with_table(const char *data, const char table[256])
data/libshout-2.4.4/examples/example.c:15:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read, total;
data/libshout-2.4.4/examples/example.c:64:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            total = total + read;
data/libshout-2.4.4/examples/example.c:66:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read > 0) {
data/libshout-2.4.4/examples/example.c:67:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ret = shout_send(shout, buff, read);
data/libshout-2.4.4/examples/nonblocking.c:17:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read, total;
data/libshout-2.4.4/examples/nonblocking.c:74: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(10000);
data/libshout-2.4.4/examples/nonblocking.c:83:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            total = total + read;
data/libshout-2.4.4/examples/nonblocking.c:85:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read > 0) {
data/libshout-2.4.4/examples/nonblocking.c:86:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ret = shout_send(shout, buff, read);
data/libshout-2.4.4/src/common/httpp/encoding.c:136: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).
       ret->value_len = strlen(ret->value);
data/libshout-2.4.4/src/common/httpp/encoding.c:743: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).
        buflen += strlen(cur->key);
data/libshout-2.4.4/src/common/httpp/encoding.c:760: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(cur->key);
data/libshout-2.4.4/src/common/httpp/encoding.c:813: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).
    header_length = strlen(encoded_length) + (extensions ? strlen(extensions) : 0) + 2;
data/libshout-2.4.4/src/common/httpp/encoding.c:813: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).
    header_length = strlen(encoded_length) + (extensions ? strlen(extensions) : 0) + 2;
data/libshout-2.4.4/src/common/httpp/httpp.c:192: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).
        slen = strlen(line[l]);
data/libshout-2.4.4/src/common/httpp/httpp.c:240: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).
    slen = strlen(line[0]);
data/libshout-2.4.4/src/common/httpp/httpp.c:437: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).
    slen = strlen(line[0]);
data/libshout-2.4.4/src/common/httpp/httpp.c:467: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).
    if (uri != NULL && strlen(uri) > 0) {
data/libshout-2.4.4/src/common/httpp/httpp.c:474:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            parse_query(parser->queryvars, query, strlen(query));
data/libshout-2.4.4/src/common/httpp/httpp.c:485: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).
        if ((strlen(version) > 0) && (strlen(&tmp[1]) > 0)) {
data/libshout-2.4.4/src/common/httpp/httpp.c:485:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen(version) > 0) && (strlen(&tmp[1]) > 0)) {
data/libshout-2.4.4/src/common/httpp/httpp.c:667:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    _httpp_set_param_nocopy(tree, strdup(name), url_unescape(value, strlen(value)), 1);
data/libshout-2.4.4/src/common/net/resolver.c:98:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, ip, len);
data/libshout-2.4.4/src/common/net/resolver.c:129:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, name, len);
data/libshout-2.4.4/src/common/net/resolver.c:161:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, ip, len);
data/libshout-2.4.4/src/common/net/resolver.c:171:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            ret = strncpy (buff, host->h_name, len);
data/libshout-2.4.4/src/common/net/resolver.c:187:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, name, len);
data/libshout-2.4.4/src/common/net/resolver.c:196:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        ret = strncpy(buff, temp, len);
data/libshout-2.4.4/src/common/net/sock.c:381: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).
    return (sock_write_bytes(sock, buff, strlen(buff)) > 0);
data/libshout-2.4.4/src/common/net/sock.c:955:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ip, inet_ntoa(sa.sin_addr), len);
data/libshout-2.4.4/src/proto_http.c:54: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(self->user) + strlen(self->password) + 2;
data/libshout-2.4.4/src/proto_http.c:54:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(self->user) + strlen(self->password) + 2;
data/libshout-2.4.4/src/proto_http.c:61: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(out) + 24;
data/libshout-2.4.4/src/proto_http.c:226:151:  [1] (buffer) strlen:
  Does not handle 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 (shout_queue_printf(connection, "Content-Type: application/x-www-form-urlencoded\r\nContent-Length: %llu\r\n", (long long unsigned int)strlen(param)))
data/libshout-2.4.4/src/proto_http.c:383:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(str);
data/libshout-2.4.4/src/proto_roaraudio.c:127: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).
    datalen = 5 + strlen(agent);
data/libshout-2.4.4/src/queue.c:76:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return shout_queue_data(&self->wqueue, (const unsigned char*)str, strlen(str));
data/libshout-2.4.4/src/shout.c:339: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword);
data/libshout-2.4.4/src/shout.c:339: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword);
data/libshout-2.4.4/src/shout.c:339:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword);
data/libshout-2.4.4/src/shout.c:362: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encmount);
data/libshout-2.4.4/src/shout.c:362: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encmount);
data/libshout-2.4.4/src/shout.c:362:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encmount);
data/libshout-2.4.4/src/shout.c:388: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword) + strlen(self->mount);
data/libshout-2.4.4/src/shout.c:388: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).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword) + strlen(self->mount);
data/libshout-2.4.4/src/shout.c:388:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword) + strlen(self->mount);
data/libshout-2.4.4/src/shout.c:388:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            param_len = strlen(param_template) + strlen(encvalue) + 1 + strlen(encpassword) + strlen(self->mount);
data/libshout-2.4.4/src/shout.c:606: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(mount) + 1;
data/libshout-2.4.4/src/tls.c:206:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)ASN1_STRING_length(sdata) != strlen(common_name))
data/libshout-2.4.4/src/util.c:139: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(data);
data/libshout-2.4.4/src/util.c:313:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            reslen = strlen(enc) + 1;
data/libshout-2.4.4/src/util.c:322: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).
            resoffset = strlen(res);
data/libshout-2.4.4/src/util.c:323: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).
            reslen = resoffset + strlen(enc) + 2;
data/libshout-2.4.4/src/util.c:343: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).
        resoffset = strlen(res);
data/libshout-2.4.4/src/util.c:344: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).
        reslen = resoffset + strlen(enc) + 2;

ANALYSIS SUMMARY:

Hits = 126
Lines analyzed = 12868 in approximately 0.32 seconds (40194 lines/second)
Physical Source Lines of Code (SLOC) = 9177
Hits@level = [0]  65 [1]  55 [2]  60 [3]   0 [4]  11 [5]   0
Hits@level+ = [0+] 191 [1+] 126 [2+]  71 [3+]  11 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 20.8129 [1+] 13.73 [2+] 7.73673 [3+] 1.19865 [4+] 1.19865 [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.