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/libsrtp2-2.3.0/config_in.h
Examining data/libsrtp2-2.3.0/config_in_cmake.h
Examining data/libsrtp2-2.3.0/crypto/cipher/aes.c
Examining data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c
Examining data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_ossl.c
Examining data/libsrtp2-2.3.0/crypto/cipher/aes_icm.c
Examining data/libsrtp2-2.3.0/crypto/cipher/aes_icm_nss.c
Examining data/libsrtp2-2.3.0/crypto/cipher/aes_icm_ossl.c
Examining data/libsrtp2-2.3.0/crypto/cipher/cipher.c
Examining data/libsrtp2-2.3.0/crypto/cipher/null_cipher.c
Examining data/libsrtp2-2.3.0/crypto/hash/auth.c
Examining data/libsrtp2-2.3.0/crypto/hash/hmac.c
Examining data/libsrtp2-2.3.0/crypto/hash/hmac_ossl.c
Examining data/libsrtp2-2.3.0/crypto/hash/null_auth.c
Examining data/libsrtp2-2.3.0/crypto/hash/sha1.c
Examining data/libsrtp2-2.3.0/crypto/include/aes.h
Examining data/libsrtp2-2.3.0/crypto/include/aes_gcm.h
Examining data/libsrtp2-2.3.0/crypto/include/aes_icm.h
Examining data/libsrtp2-2.3.0/crypto/include/aes_icm_ext.h
Examining data/libsrtp2-2.3.0/crypto/include/alloc.h
Examining data/libsrtp2-2.3.0/crypto/include/auth.h
Examining data/libsrtp2-2.3.0/crypto/include/cipher.h
Examining data/libsrtp2-2.3.0/crypto/include/cipher_priv.h
Examining data/libsrtp2-2.3.0/crypto/include/cipher_types.h
Examining data/libsrtp2-2.3.0/crypto/include/crypto_kernel.h
Examining data/libsrtp2-2.3.0/crypto/include/crypto_types.h
Examining data/libsrtp2-2.3.0/crypto/include/datatypes.h
Examining data/libsrtp2-2.3.0/crypto/include/err.h
Examining data/libsrtp2-2.3.0/crypto/include/hmac.h
Examining data/libsrtp2-2.3.0/crypto/include/integers.h
Examining data/libsrtp2-2.3.0/crypto/include/key.h
Examining data/libsrtp2-2.3.0/crypto/include/null_auth.h
Examining data/libsrtp2-2.3.0/crypto/include/null_cipher.h
Examining data/libsrtp2-2.3.0/crypto/include/rdb.h
Examining data/libsrtp2-2.3.0/crypto/include/rdbx.h
Examining data/libsrtp2-2.3.0/crypto/include/sha1.h
Examining data/libsrtp2-2.3.0/crypto/include/stat.h
Examining data/libsrtp2-2.3.0/crypto/kernel/alloc.c
Examining data/libsrtp2-2.3.0/crypto/kernel/crypto_kernel.c
Examining data/libsrtp2-2.3.0/crypto/kernel/err.c
Examining data/libsrtp2-2.3.0/crypto/kernel/key.c
Examining data/libsrtp2-2.3.0/crypto/math/stat.c
Examining data/libsrtp2-2.3.0/crypto/math/datatypes.c
Examining data/libsrtp2-2.3.0/crypto/replay/rdb.c
Examining data/libsrtp2-2.3.0/crypto/replay/rdbx.c
Examining data/libsrtp2-2.3.0/crypto/replay/ut_sim.c
Examining data/libsrtp2-2.3.0/crypto/test/aes_calc.c
Examining data/libsrtp2-2.3.0/crypto/test/cipher_driver.c
Examining data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c
Examining data/libsrtp2-2.3.0/crypto/test/env.c
Examining data/libsrtp2-2.3.0/crypto/test/kernel_driver.c
Examining data/libsrtp2-2.3.0/crypto/test/sha1_driver.c
Examining data/libsrtp2-2.3.0/crypto/test/stat_driver.c
Examining data/libsrtp2-2.3.0/fuzzer/fuzzer.c
Examining data/libsrtp2-2.3.0/fuzzer/fuzzer.h
Examining data/libsrtp2-2.3.0/fuzzer/mt19937.cpp
Examining data/libsrtp2-2.3.0/fuzzer/mt19937.h
Examining data/libsrtp2-2.3.0/fuzzer/testmem.c
Examining data/libsrtp2-2.3.0/fuzzer/testmem.h
Examining data/libsrtp2-2.3.0/include/ekt.h
Examining data/libsrtp2-2.3.0/include/getopt_s.h
Examining data/libsrtp2-2.3.0/include/srtp.h
Examining data/libsrtp2-2.3.0/include/srtp_priv.h
Examining data/libsrtp2-2.3.0/include/ut_sim.h
Examining data/libsrtp2-2.3.0/srtp/ekt.c
Examining data/libsrtp2-2.3.0/srtp/srtp.c
Examining data/libsrtp2-2.3.0/test/cutest.h
Examining data/libsrtp2-2.3.0/test/dtls_srtp_driver.c
Examining data/libsrtp2-2.3.0/test/getopt_s.c
Examining data/libsrtp2-2.3.0/test/rdbx_driver.c
Examining data/libsrtp2-2.3.0/test/replay_driver.c
Examining data/libsrtp2-2.3.0/test/roc_driver.c
Examining data/libsrtp2-2.3.0/test/rtp.c
Examining data/libsrtp2-2.3.0/test/rtp.h
Examining data/libsrtp2-2.3.0/test/rtp_decoder.c
Examining data/libsrtp2-2.3.0/test/rtp_decoder.h
Examining data/libsrtp2-2.3.0/test/rtpw.c
Examining data/libsrtp2-2.3.0/test/test_srtp.c
Examining data/libsrtp2-2.3.0/test/util.h
Examining data/libsrtp2-2.3.0/test/util.c
Examining data/libsrtp2-2.3.0/test/srtp_driver.c

FINAL RESULTS:

data/libsrtp2-2.3.0/crypto/kernel/err.c:87:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(srtp_err_file, format, args);
data/libsrtp2-2.3.0/crypto/kernel/err.c:92:13:  [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.
        if (vsnprintf(msg, sizeof(msg), format, args) > 0) {
data/libsrtp2-2.3.0/test/cutest.h:160:5:  [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.
    vsnprintf(buffer, sizeof(buffer), fmt, args);
data/libsrtp2-2.3.0/test/cutest.h:271:14:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        n += vprintf(fmt, args);
data/libsrtp2-2.3.0/test/cutest.h:397:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, args);
data/libsrtp2-2.3.0/test/rtp_decoder.c:254:13:  [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(filter_exp, optarg_s);
data/libsrtp2-2.3.0/test/rtp_decoder.c:295:13:  [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(pcap_file, optarg_s);
data/libsrtp2-2.3.0/test/srtp_driver.c:1571:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(packet_string, "(s)rtp packet: {\n"
data/libsrtp2-2.3.0/fuzzer/fuzzer.c:857: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(randseed);
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c:246: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(c->iv, iv, GCM_IV_LEN);
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c:272: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(c->aad + c->aad_size, aad, aad_len);
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c:336: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 tagbuf[16];
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c:350: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(c->tag, non_null_buf + (*enc_len - c->tag_size), c->tag_size);
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_nss.c:372: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, c->tag, c->tag_size);
data/libsrtp2-2.3.0/crypto/cipher/aes_gcm_ossl.c:264: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 dummy_tag[GCM_AUTH_TAG_LEN];
data/libsrtp2-2.3.0/crypto/cipher/aes_icm.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(&c->counter, key + base_key_len, copy_len);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm.c:208: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(&c->offset, key + base_key_len, copy_len);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm_nss.c:234: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(&c->counter, key + c->key_size, SRTP_SALT_LEN);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm_nss.c:235: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(&c->offset, key + c->key_size, SRTP_SALT_LEN);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm_nss.c:291: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(param.cb, &c->counter, 16);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm_ossl.c:225: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(&c->counter, key + c->key_size, SRTP_SALT_LEN);
data/libsrtp2-2.3.0/crypto/cipher/aes_icm_ossl.c:226: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(&c->offset, key + c->key_size, SRTP_SALT_LEN);
data/libsrtp2-2.3.0/crypto/hash/hmac.c:152: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(&state->ctx, &state->init_ctx, sizeof(srtp_sha1_ctx_t));
data/libsrtp2-2.3.0/crypto/hash/hmac.c:161: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(&state->ctx, &state->init_ctx, sizeof(srtp_sha1_ctx_t));
data/libsrtp2-2.3.0/crypto/include/integers.h:115:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[0] = (value >> 24);                          \
data/libsrtp2-2.3.0/crypto/include/integers.h:116:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[1] = (value >> 16) & 0xff;                   \
data/libsrtp2-2.3.0/crypto/include/integers.h:117:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[2] = (value >> 8) & 0xff;                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:118:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[3] = (value)&0xff;                           \
data/libsrtp2-2.3.0/crypto/include/integers.h:121:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((((unsigned char *)(addr))[0] << 24) |                                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:122: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 *)(addr))[1] << 16) |                                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:123: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 *)(addr))[2] << 8) | (((unsigned char *)(addr))[3]))
data/libsrtp2-2.3.0/crypto/include/integers.h:123:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[2] << 8) | (((unsigned char *)(addr))[3]))
data/libsrtp2-2.3.0/crypto/include/integers.h:127:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[3] = (value >> 24);                          \
data/libsrtp2-2.3.0/crypto/include/integers.h:128:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[2] = (value >> 16) & 0xff;                   \
data/libsrtp2-2.3.0/crypto/include/integers.h:129:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[1] = (value >> 8) & 0xff;                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:130:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[0] = (value)&0xff;                           \
data/libsrtp2-2.3.0/crypto/include/integers.h:133: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 *)(addr))[3] << 24) |                                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:134: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 *)(addr))[2] << 16) |                                    \
data/libsrtp2-2.3.0/crypto/include/integers.h:135: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 *)(addr))[1] << 8) | (((unsigned char *)(addr))[0]))
data/libsrtp2-2.3.0/crypto/include/integers.h:135:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)(addr))[1] << 8) | (((unsigned char *)(addr))[0]))
data/libsrtp2-2.3.0/crypto/kernel/err.c:63:21:  [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).
    srtp_err_file = fopen(ERR_REPORTING_FILE, "w");
data/libsrtp2-2.3.0/crypto/kernel/err.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[512];
data/libsrtp2-2.3.0/crypto/math/datatypes.c:82: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 bit_string[MAX_PRINT_STRING_LEN];
data/libsrtp2-2.3.0/crypto/math/datatypes.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[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
data/libsrtp2-2.3.0/crypto/math/datatypes.c:453: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 sextets[4] = { 0 };
data/libsrtp2-2.3.0/crypto/test/aes_calc.c:108: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.
    len = hex_string_to_octet_string((char *)key, argv[1], AES_MAX_KEY_LEN * 2);
data/libsrtp2-2.3.0/crypto/test/cipher_driver.c:132: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 test_key[48] = {
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:189: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 raw[10];
data/libsrtp2-2.3.0/crypto/test/sha1_driver.c:145: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_data[MAX_HASH_DATA_LEN * 2];
data/libsrtp2-2.3.0/crypto/test/sha1_driver.c:146: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_hash[40];
data/libsrtp2-2.3.0/fuzzer/fuzzer.c:433:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ret->ekt_key, params.key, sizeof(params.key));
data/libsrtp2-2.3.0/fuzzer/fuzzer.c:739: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_2, copy, ret_size);
data/libsrtp2-2.3.0/fuzzer/fuzzer.c:769:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen("input.bin", "wb");
data/libsrtp2-2.3.0/fuzzer/fuzzer.h:4: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((dest), (src), (copysize));                                     \
data/libsrtp2-2.3.0/fuzzer/testmem.c:11:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen("/dev/null", "wb");
data/libsrtp2-2.3.0/fuzzer/testmem.c:23: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, data, size);
data/libsrtp2-2.3.0/srtp/ekt.c:231: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(packet, ekt->encrypted_master_key, emk_len);
data/libsrtp2-2.3.0/srtp/srtp.c:395: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(str->enc_xtn_hdr, p->enc_xtn_hdr,
data/libsrtp2-2.3.0/srtp/srtp.c:503: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(session_keys->mki_id, template_session_keys->mki_id,
data/libsrtp2-2.3.0/srtp/srtp.c:507: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(session_keys->salt, template_session_keys->salt,
data/libsrtp2-2.3.0/srtp/srtp.c:509: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(session_keys->c_salt, template_session_keys->c_salt,
data/libsrtp2-2.3.0/srtp/srtp.c:627: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(kdf->master_key, key, key_len);
data/libsrtp2-2.3.0/srtp/srtp.c:628: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(kdf->master_salt, key + key_len, salt_len);
data/libsrtp2-2.3.0/srtp/srtp.c:826: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(mki_tag_location, session_keys->mki_id, mki_size);
data/libsrtp2-2.3.0/srtp/srtp.c:901: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(session_keys->mki_id, master_key->mki_id, master_key->mki_size);
data/libsrtp2-2.3.0/srtp/srtp.c:934: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_key, key, (rtp_base_key_len + rtp_salt_len));
data/libsrtp2-2.3.0/srtp/srtp.c:975: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(session_keys->salt, tmp_key + rtp_base_key_len,
data/libsrtp2-2.3.0/srtp/srtp.c:1031: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(tmp_xtn_hdr_key, key,
data/libsrtp2-2.3.0/srtp/srtp.c:1166: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(session_keys->c_salt, tmp_key + rtcp_base_key_len,
data/libsrtp2-2.3.0/srtp/srtp.c:1516: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(&in.v16[3], &local_roc, sizeof(local_roc));
data/libsrtp2-2.3.0/srtp/srtp.c:1521: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(&in.v8[2], &hdr->ssrc, 4);
data/libsrtp2-2.3.0/srtp/srtp.c:1527: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(salt.v8, session_keys->salt, SRTP_AEAD_SALT_LEN);
data/libsrtp2-2.3.0/srtp/srtp.c:3456: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(&in.v16[1], &hdr->ssrc, 4); /* still in network order! */
data/libsrtp2-2.3.0/srtp/srtp.c:3473: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(salt.v8, session_keys->c_salt, 12);
data/libsrtp2-2.3.0/srtp/srtp.c:3557: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(trailer_p, &trailer, sizeof(trailer));
data/libsrtp2-2.3.0/srtp/srtp.c:4000: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(trailer_p, &trailer, sizeof(trailer));
data/libsrtp2-2.3.0/srtp/srtp.c:4255: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(tag_copy, auth_tag, tag_len);
data/libsrtp2-2.3.0/srtp/srtp.c:4492: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 + bytes_in_key, salt, bytes_in_salt);
data/libsrtp2-2.3.0/test/cutest.h:156: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/libsrtp2-2.3.0/test/cutest.h:317: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 spaces[32];
data/libsrtp2-2.3.0/test/cutest.h:443: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 tmp[32];
data/libsrtp2-2.3.0/test/cutest.h:471:21:  [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(tmp, "signal %d", WTERMSIG(exit_code));
data/libsrtp2-2.3.0/test/cutest.h:483: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 buffer[512] = { 0 };
data/libsrtp2-2.3.0/test/cutest.h:617:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test_verbose_level__ = atoi(argv[i] + 10);
data/libsrtp2-2.3.0/test/rdbx_driver.c:135: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[2048];
data/libsrtp2-2.3.0/test/rtp.h: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 body[RTP_MAX_BUF_LEN];
data/libsrtp2-2.3.0/test/rtp_decoder.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[PCAP_ERRBUF_SIZE];
data/libsrtp2-2.3.0/test/rtp_decoder.c:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[MAX_KEY_LEN];
data/libsrtp2-2.3.0/test/rtp_decoder.c:174: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 filter_exp[MAX_FILTER] = "";
data/libsrtp2-2.3.0/test/rtp_decoder.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 pcap_file[MAX_FILE] = "-";
data/libsrtp2-2.3.0/test/rtp_decoder.c:217:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            scs.key_size = atoi(optarg_s);
data/libsrtp2-2.3.0/test/rtp_decoder.c:230:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            scs.tag_size = atoi(optarg_s);
data/libsrtp2-2.3.0/test/rtp_decoder.c:298:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            rtp_packet_offset = atoi(optarg_s);
data/libsrtp2-2.3.0/test/rtp_decoder.c:726: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((void *)&message, rtp_packet, hdr->caplen - dcdr->rtp_offset);
data/libsrtp2-2.3.0/test/rtpw.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char word[MAX_WORD_LEN];
data/libsrtp2-2.3.0/test/rtpw.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[MAX_KEY_LEN];
data/libsrtp2-2.3.0/test/rtpw.c:208:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            key_size = atoi(optarg_s);
data/libsrtp2-2.3.0/test/rtpw.c:217:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            tag_size = atoi(optarg_s);
data/libsrtp2-2.3.0/test/rtpw.c:285: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).
    port = atoi(argv[optind_s++]);
data/libsrtp2-2.3.0/test/rtpw.c:542:16:  [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).
        dict = fopen(dictfile, "r");
data/libsrtp2-2.3.0/test/srtp_driver.c:756: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, extension_header, sizeof(extension_header));
data/libsrtp2-2.3.0/test/srtp_driver.c:1011: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(&tmp_policy, policy, sizeof(srtp_policy_t));
data/libsrtp2-2.3.0/test/srtp_driver.c:1070: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(hdr_enc, hdr, len);
data/libsrtp2-2.3.0/test/srtp_driver.c:1134: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(rcvr_policy, &tmp_policy, sizeof(srtp_policy_t));
data/libsrtp2-2.3.0/test/srtp_driver.c:1139: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(rcvr_policy, policy, sizeof(srtp_policy_t));
data/libsrtp2-2.3.0/test/srtp_driver.c:1285: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(hdr_enc, hdr, len);
data/libsrtp2-2.3.0/test/srtp_driver.c:1348: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(rcvr_policy, policy, sizeof(srtp_policy_t));
data/libsrtp2-2.3.0/test/srtp_driver.c:1431: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 *serv_descr[4] = { "none", "confidentiality", "authentication",
data/libsrtp2-2.3.0/test/srtp_driver.c:1433: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 *direction[3] = { "unknown", "outbound", "inbound" };
data/libsrtp2-2.3.0/test/srtp_driver.c:1557:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char packet_string[MTU];
data/libsrtp2-2.3.0/test/srtp_driver.c:1788: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 test_key_gcm[28] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:1956: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 test_key_ext_headers[30] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:2079: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 test_key_ext_headers[30] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:2202: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 aes_256_test_key[46] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:2333: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, policy_array[i], sizeof(srtp_policy_t));
data/libsrtp2-2.3.0/test/srtp_driver.c:2605:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_alt_key[46] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3140: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(recv_pkt_1, pkt_1, protected_msg_len_octets_1);
data/libsrtp2-2.3.0/test/srtp_driver.c:3147: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(recv_pkt_2, pkt_2, protected_msg_len_octets_2);
data/libsrtp2-2.3.0/test/srtp_driver.c:3257: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(recv_pkt, pkt, protected_msg_len_octets);
data/libsrtp2-2.3.0/test/srtp_driver.c:3393:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_key[46] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3402:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_key_2[46] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3411:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_mki_id[TEST_MKI_ID_SIZE] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3415:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_mki_id_2[TEST_MKI_ID_SIZE] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3665:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_256_key[46] = {
data/libsrtp2-2.3.0/test/srtp_driver.c:3675:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 test_256_key_2[46] = {
data/libsrtp2-2.3.0/test/util.c:52: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 bit_string[MAX_PRINT_STRING_LEN + 1];
data/libsrtp2-2.3.0/test/util.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 buf[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
data/libsrtp2-2.3.0/test/util.c:172: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 sextets[4] = { 0 };
data/libsrtp2-2.3.0/crypto/kernel/err.c:94: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).
            size_t l = strlen(msg);
data/libsrtp2-2.3.0/crypto/test/aes_calc.c:102: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(argv[1]) > AES_MAX_KEY_LEN * 2) {
data/libsrtp2-2.3.0/crypto/test/aes_calc.c:105: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).
                AES_MAX_KEY_LEN * 2, (unsigned)strlen(argv[1]));
data/libsrtp2-2.3.0/crypto/test/aes_calc.c:119: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(argv[2]) > 16 * 2) {
data/libsrtp2-2.3.0/crypto/test/aes_calc.c:122: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).
                16 * 2, (unsigned)strlen(argv[2]));
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:192:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = hex_string_to_octet_string(raw, hex1, strlen(hex1));
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:195:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    printf("expected length: %u\tstring: %s\n", (unsigned)strlen(hex1), hex1);
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:197:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = hex_string_to_octet_string(raw, hex2, strlen(hex2));
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:207: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).
    printf("strlen(s) = %u\n", (unsigned)strlen(s));
data/libsrtp2-2.3.0/crypto/test/datatypes_driver.c:209:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(s); i++) {
data/libsrtp2-2.3.0/test/rtp.c:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sender->message.body, msg, len);
data/libsrtp2-2.3.0/test/rtp.c:140:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg, receiver->message.body, octets_recvd);
data/libsrtp2-2.3.0/test/rtp_decoder.c:248:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(optarg_s) > MAX_FILTER) {
data/libsrtp2-2.3.0/test/rtp_decoder.c:289:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(optarg_s) > MAX_FILE) {
data/libsrtp2-2.3.0/test/rtp_decoder.c:537:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen(input_key));
data/libsrtp2-2.3.0/test/rtp_decoder.c:549:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(input_key) > policy.rtp.cipher_key_len * 2) {
data/libsrtp2-2.3.0/test/rtp_decoder.c:552: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).
                    policy.rtp.cipher_key_len * 2, (unsigned)strlen(input_key));
data/libsrtp2-2.3.0/test/rtpw.c:99: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.
#define usleep(us) Sleep((us) / 1000)
data/libsrtp2-2.3.0/test/rtpw.c:101: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.
#define usleep(us) sleep((us) / 1000000)
data/libsrtp2-2.3.0/test/rtpw.c:482:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((int)strlen(input_key) > policy.rtp.cipher_key_len * 2) {
data/libsrtp2-2.3.0/test/rtpw.c:485: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).
                    policy.rtp.cipher_key_len * 2, (unsigned)strlen(input_key));
data/libsrtp2-2.3.0/test/rtpw.c:553: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(word) + 1; /* plus one for null */
data/libsrtp2-2.3.0/test/rtpw.c:561:13:  [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(USEC_RATE);

ANALYSIS SUMMARY:

Hits = 151
Lines analyzed = 31151 in approximately 0.94 seconds (32996 lines/second)
Physical Source Lines of Code (SLOC) = 18575
Hits@level = [0] 510 [1]  23 [2] 119 [3]   1 [4]   8 [5]   0
Hits@level+ = [0+] 661 [1+] 151 [2+] 128 [3+]   9 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 35.5855 [1+] 8.12921 [2+] 6.89098 [3+] 0.484522 [4+] 0.430686 [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.