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/libccrtp-2.0.9/src/queue.cpp
Examining data/libccrtp-2.0.9/src/outqueue.cpp
Examining data/libccrtp-2.0.9/src/duplex.cpp
Examining data/libccrtp-2.0.9/src/rtppkt.cpp
Examining data/libccrtp-2.0.9/src/pool.cpp
Examining data/libccrtp-2.0.9/src/control.cpp
Examining data/libccrtp-2.0.9/src/private.h
Examining data/libccrtp-2.0.9/src/ccrtp/ext.h
Examining data/libccrtp-2.0.9/src/ccrtp/rtp.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/twofish.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/hmac.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/twofish.c
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skeinApi.c
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skein_port.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/SrtpSymCrypto.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/macSkein.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/brg_types.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skein_iv.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skein.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/brg_endian.h
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/hmac.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/macSkein.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skein_block.c
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/InitializeGcrypt.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcrypthmac.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp
Examining data/libccrtp-2.0.9/src/ccrtp/crypto/skeinApi.h
Examining data/libccrtp-2.0.9/src/ccrtp/pool.h
Examining data/libccrtp-2.0.9/src/ccrtp/ioqueue.h
Examining data/libccrtp-2.0.9/src/ccrtp/queuebase.h
Examining data/libccrtp-2.0.9/src/ccrtp/formats.h
Examining data/libccrtp-2.0.9/src/ccrtp/base.h
Examining data/libccrtp-2.0.9/src/ccrtp/CryptoContext.h
Examining data/libccrtp-2.0.9/src/ccrtp/channel.h
Examining data/libccrtp-2.0.9/src/ccrtp/CryptoContextCtrl.h
Examining data/libccrtp-2.0.9/src/ccrtp/iqueue.h
Examining data/libccrtp-2.0.9/src/ccrtp/oqueue.h
Examining data/libccrtp-2.0.9/src/ccrtp/cqueue.h
Examining data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h
Examining data/libccrtp-2.0.9/src/ccrtp/rtppkt.h
Examining data/libccrtp-2.0.9/src/ccrtp/sources.h
Examining data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp
Examining data/libccrtp-2.0.9/src/CryptoContext.cpp
Examining data/libccrtp-2.0.9/src/incqueue.cpp
Examining data/libccrtp-2.0.9/src/source.cpp
Examining data/libccrtp-2.0.9/src/rtcppkt.cpp
Examining data/libccrtp-2.0.9/src/members.cpp
Examining data/libccrtp-2.0.9/src/data.cpp
Examining data/libccrtp-2.0.9/src/socket.cpp
Examining data/libccrtp-2.0.9/ccrtp-config.h
Examining data/libccrtp-2.0.9/phone/server.cpp
Examining data/libccrtp-2.0.9/phone/rtp.cpp
Examining data/libccrtp-2.0.9/phone/phone.h
Examining data/libccrtp-2.0.9/phone/config.cpp
Examining data/libccrtp-2.0.9/phone/phone.cpp
Examining data/libccrtp-2.0.9/phone/server.h
Examining data/libccrtp-2.0.9/demo/rtpsend.cpp
Examining data/libccrtp-2.0.9/demo/audiotx.cpp
Examining data/libccrtp-2.0.9/demo/ccsrtptest.cpp
Examining data/libccrtp-2.0.9/demo/ccrtptest.cpp
Examining data/libccrtp-2.0.9/demo/audiorx.cpp
Examining data/libccrtp-2.0.9/demo/audio.h
Examining data/libccrtp-2.0.9/demo/rtphello.cpp
Examining data/libccrtp-2.0.9/demo/rtpduphello.cpp
Examining data/libccrtp-2.0.9/demo/rtplisten.cpp

FINAL RESULTS:

data/libccrtp-2.0.9/phone/phone.cpp:63:22:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while(EOF != (opt = getopt_long(argc, argv, "mudp:FDh", long_options, &idx)))
data/libccrtp-2.0.9/phone/phone.cpp:125:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	chdir(getenv("HOME"));
data/libccrtp-2.0.9/demo/audiorx.cpp:57:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        audiooutput=open("/dev/audio",O_WRONLY/*|O_NDELAY*/);
data/libccrtp-2.0.9/demo/audiotx.cpp:77:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        audioinput=open(filename,O_RDONLY|O_NDELAY);
data/libccrtp-2.0.9/demo/audiotx.cpp:141: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 buffer[PACKET_SIZE];
data/libccrtp-2.0.9/demo/ccrtptest.cpp:48:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char data[65535];
data/libccrtp-2.0.9/demo/rtpduphello.cpp:134: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 tmstring[30];
data/libccrtp-2.0.9/demo/rtphello.cpp:136:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tmstring[30];
data/libccrtp-2.0.9/demo/rtphello.cpp:226:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char salute[50];
data/libccrtp-2.0.9/demo/rtphello.cpp:242:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tmstring[30];
data/libccrtp-2.0.9/demo/rtplisten.cpp:137: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).
    tpport_t port = atoi(argv[2]);
data/libccrtp-2.0.9/demo/rtplisten.cpp:144:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        foo = new Listener(ia,atoi(argv[2]));
data/libccrtp-2.0.9/demo/rtpsend.cpp:78:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    Sender sender((unsigned char *)argv[1], InetHostAddress(argv[2]),
data/libccrtp-2.0.9/demo/rtpsend.cpp:79:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        atoi(argv[3]), atoi(argv[4]), atoi(argv[5]));
data/libccrtp-2.0.9/demo/rtpsend.cpp:79: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).
        atoi(argv[3]), atoi(argv[4]), atoi(argv[5]));
data/libccrtp-2.0.9/demo/rtpsend.cpp:79:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        atoi(argv[3]), atoi(argv[4]), atoi(argv[5]));
data/libccrtp-2.0.9/phone/phone.cpp:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/libccrtp-2.0.9/phone/phone.cpp:102:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = ::open(".phonepid", O_RDONLY);
data/libccrtp-2.0.9/phone/phone.cpp:109:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pid = atol(buf);
data/libccrtp-2.0.9/phone/phone.cpp:147:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fifo.open(".phonectrl", std::ios::out);
data/libccrtp-2.0.9/phone/phone.h:54:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		{return (tpport_t) atoi(getLast("port"));};
data/libccrtp-2.0.9/phone/phone.h:60:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		{return (microtimeout_t)atol(getLast("timer")) * 1000l;};
data/libccrtp-2.0.9/phone/phone.h:66:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		{return (microtimeout_t)atol(getLast("expire")) * 1000l;};
data/libccrtp-2.0.9/phone/phone.h:106:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                {return atoi(getLast("audio"));};
data/libccrtp-2.0.9/phone/phone.h:114:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                {return atoi(getLast("rtp"));};
data/libccrtp-2.0.9/phone/phone.h:122:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                {return atoi(getLast("priority"));};
data/libccrtp-2.0.9/phone/phone.h:130:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                {return atoi(getLast("stack"));};
data/libccrtp-2.0.9/phone/phone.h:202:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(void) = 0;	// open device channel
data/libccrtp-2.0.9/phone/server.cpp:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libccrtp-2.0.9/phone/server.cpp:51:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open("/dev/null", O_RDWR);
data/libccrtp-2.0.9/phone/server.cpp:52:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open("/dev/null", O_RDWR);
data/libccrtp-2.0.9/phone/server.cpp:53:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open("/dev/null", O_RDWR);
data/libccrtp-2.0.9/phone/server.cpp:54:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		slog.open("phone", Slog::classDaemon);
data/libccrtp-2.0.9/phone/server.cpp:60:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		slog.open("phone", Slog::classDaemon);
data/libccrtp-2.0.9/phone/server.cpp:71:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fifo.open(".phonectrl", std::ios::in | std::ios::out);
data/libccrtp-2.0.9/src/CryptoContext.cpp:86: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(this->master_key, master_key, master_key_length);
data/libccrtp-2.0.9/src/CryptoContext.cpp:90: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(this->master_salt, master_salt, master_salt_length);
data/libccrtp-2.0.9/src/CryptoContext.cpp:214: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 iv[16];
data/libccrtp-2.0.9/src/CryptoContext.cpp:215: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( iv, k_s, 4 );
data/libccrtp-2.0.9/src/CryptoContext.cpp:241: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 iv[16];
data/libccrtp-2.0.9/src/CryptoContext.cpp:244: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(iv, rtp->getRawPacket(), 12);
data/libccrtp-2.0.9/src/CryptoContext.cpp:265:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[20];
data/libccrtp-2.0.9/src/CryptoContext.cpp:284: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, temp, getTagLength());
data/libccrtp-2.0.9/src/CryptoContext.cpp:292: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, temp, getTagLength());
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:80: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(this->master_key, master_key, master_key_length);
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:84: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(this->master_salt, master_salt, master_salt_length);
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:210: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 iv[16];
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:238: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 iv[16];
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:257: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(iv+8, rtp, 8);
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:273:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[20];
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:292: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, temp, getTagLength());
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:300: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, temp, getTagLength());
data/libccrtp-2.0.9/src/CryptoContextCtrl.cpp:319: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(iv, master_salt, 14);
data/libccrtp-2.0.9/src/ccrtp/crypto/SrtpSymCrypto.h:339: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 derivedIv[16];
data/libccrtp-2.0.9/src/ccrtp/crypto/SrtpSymCrypto.h:342: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(derivedIv, rtpPacket, 12);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp: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 temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:147: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(&output[ctr*SRTP_BLOCK_SIZE], temp, length % SRTP_BLOCK_SIZE);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:158:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:190:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:229: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 maskedKey[MAX_KEYLEN];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:230: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 saltMask[MAX_KEYLEN];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:241: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(saltMask, salt, saltLen);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:265: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 ivAccent[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp:266: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 S[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcrypthmac.cpp:40: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(mac, p, SHA1_DIGEST_LENGTH);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcrypthmac.cpp:63: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(mac, p, SHA1_DIGEST_LENGTH);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcrypthmac.cpp:89: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(mac, p, SHA1_DIGEST_LENGTH);
data/libccrtp-2.0.9/src/ccrtp/crypto/gcrypt/gcrypthmac.cpp:107: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(mac, p, SHA1_DIGEST_LENGTH);
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:119:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:134: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(&output[ctr*SRTP_BLOCK_SIZE], temp, length % SRTP_BLOCK_SIZE );
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:145:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:177:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:216: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 maskedKey[MAX_KEYLEN];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:217: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 saltMask[MAX_KEYLEN];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(saltMask, salt, saltLen);
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:253: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 ivAccent[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/openssl/SrtpSymCrypto.cpp:254: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 S[SRTP_BLOCK_SIZE];
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:104:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,cfg.b,sizeof(cfg.b));     /* copy over into ctx->X[] */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:151:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&ctx->b[ctx->h.bCnt],msg,n);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:175:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:212:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:299:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,cfg.b,sizeof(cfg.b));     /* copy over into ctx->X[] */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:346:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&ctx->b[ctx->h.bCnt],msg,n);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:370:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:407:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:491:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,cfg.b,sizeof(cfg.b));     /* copy over into ctx->X[] */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:538:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&ctx->b[ctx->h.bCnt],msg,n);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:562:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:599:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:680:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:709:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skein.c:738:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->X,X,sizeof(X));   /* restore the counter mode key for next time */
data/libccrtp-2.0.9/src/ccrtp/crypto/skeinApi.c:78:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->XSave, X, Xlen);
data/libccrtp-2.0.9/src/ccrtp/crypto/skeinApi.c:119:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->XSave, X, Xlen);
data/libccrtp-2.0.9/src/ccrtp/crypto/skeinApi.c:141:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(X, ctx->XSave, Xlen);
data/libccrtp-2.0.9/src/ccrtp/crypto/skein_port.h:60:49:  [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 Skein_Put64_LSB_First(dst08,src64,bCnt) memcpy(dst08,src64,bCnt)
data/libccrtp-2.0.9/src/ccrtp/crypto/skein_port.h:61:49:  [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 Skein_Get64_LSB_First(dst64,src08,wCnt) memcpy(dst64,src08,8*(wCnt))
data/libccrtp-2.0.9/src/ccrtp/crypto/twofish.c:1413:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( K, key, key_len ); 
data/libccrtp-2.0.9/src/ccrtp/crypto/twofish.c:1515: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( sptr+4, kptr, 8 ); 
data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h:180: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 data[1];     ///< item content.
data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h:216: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 [4];         ///< Name of the APP packet,
data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h:219: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 data[1]; ///< application dependent data.
data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h:378:7:  [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(&receiverInfo,&ri,
data/libccrtp-2.0.9/src/ccrtp/rtcppkt.h:458:7:  [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(&senderInfo,&si,
data/libccrtp-2.0.9/src/ccrtp/rtppkt.h:354:7:  [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 + pos,src,len); }
data/libccrtp-2.0.9/src/control.cpp:541: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(reason,rtcpRecvBuffer + endpointer + 1,len);
data/libccrtp-2.0.9/src/control.cpp:776: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 buffer[BYE_BUFFER_LENGTH] = {0};
data/libccrtp-2.0.9/src/control.cpp:801: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(buffer + len,reason.c_str(),pkt->info.BYE.length);
data/libccrtp-2.0.9/src/control.cpp:998: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((rtcpSendBuffer + len),cname,cnameLen);
data/libccrtp-2.0.9/src/control.cpp: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(reinterpret_cast<char *>(rtcpSendBuffer + len),
data/libccrtp-2.0.9/src/control.cpp:1079: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,value,len);
data/libccrtp-2.0.9/src/control.cpp:1088: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,value,len);
data/libccrtp-2.0.9/src/members.cpp:150: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(senderInfo,si,sizeof(RTCPCompoundHandler::SenderInfo));
data/libccrtp-2.0.9/src/members.cpp:160: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(receiverInfo,ri,sizeof(RTCPCompoundHandler::ReceiverInfo));
data/libccrtp-2.0.9/src/outqueue.cpp:610: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((unsigned char*)(packet->getPayload()) + offset,
data/libccrtp-2.0.9/src/queue.cpp:133:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[64];
data/libccrtp-2.0.9/src/queue.cpp:135: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 md5[16];
data/libccrtp-2.0.9/src/queue.cpp:371: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 cbuf[8];
data/libccrtp-2.0.9/src/queue.cpp:374:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char pad[64]={
data/libccrtp-2.0.9/src/queue.cpp:414: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, md5, 16);
data/libccrtp-2.0.9/src/queue.cpp: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 dbuf[36];
data/libccrtp-2.0.9/src/queue.cpp:440:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(dbuf + 2 * i, "%02x", md5[i]);
data/libccrtp-2.0.9/src/queue.cpp:442:14:  [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.
        std::sprintf(dbuf + 2 * i, "%02x", md5[i]);
data/libccrtp-2.0.9/src/queue.cpp:475: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(message.data.cname,
data/libccrtp-2.0.9/src/queue.cpp:498:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/dev/urandom",O_RDONLY);
data/libccrtp-2.0.9/demo/audiotx.cpp:150:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            count = ::read(audioinput,buffer,PACKET_SIZE);
data/libccrtp-2.0.9/demo/rtpduphello.cpp:151:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen((char *)helloA));
data/libccrtp-2.0.9/demo/rtpduphello.cpp:173: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).
                     strlen((char *)helloB));
data/libccrtp-2.0.9/demo/rtphello.cpp:240:6:  [1] (buffer) strlen:
  Does not handle 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((char *)salute)+1);
data/libccrtp-2.0.9/demo/rtpsend.cpp:59: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).
                data,strlen((char *)data) + 1);
data/libccrtp-2.0.9/phone/phone.cpp:106:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	::read(fd, buf, 16);
data/libccrtp-2.0.9/src/control.cpp:762:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(reason.c_str()) +
data/libccrtp-2.0.9/src/control.cpp:763: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).
            (4 - (strlen(reason.c_str()) & 0x03)));
data/libccrtp-2.0.9/src/control.cpp:800: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).
        pkt->info.BYE.length = (uint8)strlen(reason.c_str());
data/libccrtp-2.0.9/src/control.cpp:1009:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        item->len = (uint8)strlen(content);
data/libccrtp-2.0.9/src/queue.cpp:502:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( read(fd,&number,sizeof(number)) != sizeof(number) ) {

ANALYSIS SUMMARY:

Hits = 136
Lines analyzed = 23884 in approximately 0.62 seconds (38684 lines/second)
Physical Source Lines of Code (SLOC) = 12186
Hits@level = [0]  22 [1]  11 [2] 123 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+] 158 [1+] 136 [2+] 125 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.9657 [1+] 11.1603 [2+] 10.2577 [3+] 0.164123 [4+]   0 [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.