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/cubemap-1.4.3/acceptor.cpp
Examining data/cubemap-1.4.3/acceptor.h
Examining data/cubemap-1.4.3/accesslog.cpp
Examining data/cubemap-1.4.3/accesslog.h
Examining data/cubemap-1.4.3/client.cpp
Examining data/cubemap-1.4.3/client.h
Examining data/cubemap-1.4.3/config.cpp
Examining data/cubemap-1.4.3/config.h
Examining data/cubemap-1.4.3/httpinput.cpp
Examining data/cubemap-1.4.3/httpinput.h
Examining data/cubemap-1.4.3/input.cpp
Examining data/cubemap-1.4.3/input.h
Examining data/cubemap-1.4.3/input_stats.cpp
Examining data/cubemap-1.4.3/input_stats.h
Examining data/cubemap-1.4.3/log.cpp
Examining data/cubemap-1.4.3/log.h
Examining data/cubemap-1.4.3/main.cpp
Examining data/cubemap-1.4.3/metacube2.cpp
Examining data/cubemap-1.4.3/metacube2.h
Examining data/cubemap-1.4.3/parse.cpp
Examining data/cubemap-1.4.3/parse.h
Parsing failed to find end of parameter list; semicolon terminated it in (
				begin(a), end(a), begin(b),
				[](char a, char b) {
					return ascii_tolower(a) == ascii_tolower(b);
				});
	}
};
struct HTTPHash {
	size_t operator() (const std::string &s) const
	{
		std::s
Examining data/cubemap-1.4.3/sa_compare.cpp
Examining data/cubemap-1.4.3/sa_compare.h
Examining data/cubemap-1.4.3/server.cpp
Examining data/cubemap-1.4.3/server.h
Examining data/cubemap-1.4.3/serverpool.cpp
Examining data/cubemap-1.4.3/serverpool.h
Examining data/cubemap-1.4.3/stats.cpp
Examining data/cubemap-1.4.3/stats.h
Examining data/cubemap-1.4.3/stream.cpp
Examining data/cubemap-1.4.3/stream.h
Examining data/cubemap-1.4.3/thread.cpp
Examining data/cubemap-1.4.3/thread.h
Examining data/cubemap-1.4.3/timespec.cpp
Examining data/cubemap-1.4.3/timespec.h
Examining data/cubemap-1.4.3/tlse/ktls.h
Examining data/cubemap-1.4.3/tlse/tlse.c
Examining data/cubemap-1.4.3/tlse/tlse.h
Examining data/cubemap-1.4.3/udpinput.cpp
Examining data/cubemap-1.4.3/udpinput.h
Examining data/cubemap-1.4.3/udpstream.cpp
Examining data/cubemap-1.4.3/udpstream.h
Examining data/cubemap-1.4.3/util.cpp
Examining data/cubemap-1.4.3/util.h
Examining data/cubemap-1.4.3/version.h

FINAL RESULTS:

data/cubemap-1.4.3/log.cpp:71:2:  [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(formatted_msg, sizeof(formatted_msg), fmt, ap);
data/cubemap-1.4.3/main.cpp:297:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(argv0_copy, argv0_copy, "--test-config", config_filename_copy, nullptr);
data/cubemap-1.4.3/main.cpp:665:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(argv0_canon, argv0_canon, config_filename_canon, "--state", buf, nullptr);
data/cubemap-1.4.3/tlse/tlse.c:99:37:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_PRINT(...)            fprintf(stderr, __VA_ARGS__)
data/cubemap-1.4.3/main.cpp:355:11:  [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.
		int c = getopt_long(argc, argv, "s:t", long_options, &option_index);
data/cubemap-1.4.3/main.cpp:382:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath("/proc/self/exe", argv0_canon) == nullptr) {
data/cubemap-1.4.3/main.cpp:386:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(config_filename.c_str(), config_filename_canon) == nullptr) {
data/cubemap-1.4.3/tlse/tlse.c:5666:10:  [3] (random) random:
  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.
    if ((random) && (out_len > 2)) {
data/cubemap-1.4.3/tlse/tlse.c:5668:48:  [3] (random) random:
  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.
        DEBUG_DUMP_HEX_LABEL("PRE MASTER KEY", random, out_len);
data/cubemap-1.4.3/tlse/tlse.c:5670:34:  [3] (random) random:
  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.
        context->premaster_key = random;
data/cubemap-1.4.3/tlse/tlse.c:5674:18:  [3] (random) random:
  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.
        TLS_FREE(random);
data/cubemap-1.4.3/tlse/tlse.c:5710:10:  [3] (random) random:
  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.
    if ((random) && (out_len > 2)) {
data/cubemap-1.4.3/tlse/tlse.c:5715:35:  [3] (random) random:
  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.
        tls_packet_append(packet, random, out_len);
data/cubemap-1.4.3/tlse/tlse.c:5718:14:  [3] (random) random:
  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.
    TLS_FREE(random);
data/cubemap-1.4.3/acceptor.cpp:113: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[INET6_ADDRSTRLEN];
data/cubemap-1.4.3/accesslog.cpp:37:11:  [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).
		logfp = fopen(filename.c_str(), "a+");
data/cubemap-1.4.3/client.cpp:33: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[INET6_ADDRSTRLEN];
data/cubemap-1.4.3/client.cpp:193:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[16];
data/cubemap-1.4.3/config.cpp:92:13:  [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(filename.c_str(), "r");
data/cubemap-1.4.3/config.cpp:98: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[4096];
data/cubemap-1.4.3/config.cpp:184:13:  [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(filename.c_str(), "r");
data/cubemap-1.4.3/config.cpp:190: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[4096];
data/cubemap-1.4.3/httpinput.cpp:38: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).
	if (port == "http" || atoi(port.c_str()) == 80) {
data/cubemap-1.4.3/httpinput.cpp:77:2:  [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(&pending_data[0], serialized.pending_data().data(), serialized.pending_data().size());
data/cubemap-1.4.3/httpinput.cpp:244:17:  [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).
	int response = atoi(first_line_tokens[1].c_str());
data/cubemap-1.4.3/httpinput.cpp:423: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 buf[4096];
data/cubemap-1.4.3/httpinput.cpp:492: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 buf[4096];
data/cubemap-1.4.3/log.cpp:26:13:  [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(filename.c_str(), "a");
data/cubemap-1.4.3/log.cpp:68: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 formatted_msg[4096];
data/cubemap-1.4.3/log.cpp:77: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 timestamp[1024];
data/cubemap-1.4.3/log.cpp:79:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(timestamp, "???");
data/cubemap-1.4.3/log.cpp:128: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 errbuf[4096];
data/cubemap-1.4.3/main.cpp:362:15:  [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).
			state_fd = atoi(optarg);
data/cubemap-1.4.3/main.cpp:379: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 argv0_canon[PATH_MAX];
data/cubemap-1.4.3/main.cpp:380: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 config_filename_canon[PATH_MAX];
data/cubemap-1.4.3/main.cpp:661: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[16];
data/cubemap-1.4.3/main.cpp:662:2:  [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(buf, "%d", state_fd);
data/cubemap-1.4.3/metacube2.h:27: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 sync[8];    /* METACUBE2_SYNC */
data/cubemap-1.4.3/server.cpp:524:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/cubemap-1.4.3/server.cpp:1158:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64];
data/cubemap-1.4.3/server.cpp:1162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64];
data/cubemap-1.4.3/server.cpp:1214: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 error[256];
data/cubemap-1.4.3/server.cpp:1306: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[CMSG_SPACE(cmsg_len)];
data/cubemap-1.4.3/stream.cpp:345:4:  [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(ptr, &pts_hdr, sizeof(pts_hdr));
data/cubemap-1.4.3/stream.cpp:347:4:  [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(ptr, &pts_packet, sizeof(pts_packet));
data/cubemap-1.4.3/stream.cpp:351:3:  [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(ptr, &hdr, sizeof(hdr));
data/cubemap-1.4.3/stream.cpp:353:3:  [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(ptr, data, bytes);
data/cubemap-1.4.3/stream.cpp:359:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data_element.data.iov_base, data, bytes);
data/cubemap-1.4.3/stream.cpp:469: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/cubemap-1.4.3/stream.cpp:486: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 buf[256];
data/cubemap-1.4.3/tlse/ktls.h:71:11:  [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[TLS_CIPHER_AES_GCM_128_IV_SIZE];
data/cubemap-1.4.3/tlse/ktls.h:72:11:  [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 key[TLS_CIPHER_AES_GCM_128_KEY_SIZE];
data/cubemap-1.4.3/tlse/ktls.h:73:11:  [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 salt[TLS_CIPHER_AES_GCM_128_SALT_SIZE];
data/cubemap-1.4.3/tlse/ktls.h:74:11:  [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 rec_seq[TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:535: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[poly1305_block_size];
data/cubemap-1.4.3/tlse/tlse.c:556:72:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void __private_tls_poly1305_init(poly1305_context *ctx, const unsigned char key[32]) {
data/cubemap-1.4.3/tlse/tlse.c:643:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void __private_tls_poly1305_finish(poly1305_context *ctx, unsigned char mac[16]) {
data/cubemap-1.4.3/tlse/tlse.c:764:36:  [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.
int poly1305_verify(const unsigned char mac1[16], const unsigned char mac2[16]) {
data/cubemap-1.4.3/tlse/tlse.c:764:66:  [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.
int poly1305_verify(const unsigned char mac1[16], const unsigned char mac2[16]) {
data/cubemap-1.4.3/tlse/tlse.c:774: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 key[32];
data/cubemap-1.4.3/tlse/tlse.c:775: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 nonce[12];
data/cubemap-1.4.3/tlse/tlse.c:801: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 trail[16];
data/cubemap-1.4.3/tlse/tlse.c:914: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 local_mac[__TLS_MAX_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:915: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 local_aead_iv[__TLS_AES_GCM_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:917: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 local_nonce[__TLS_CHACHA20_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:921: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 remote_aead_iv[__TLS_AES_GCM_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:922: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 remote_mac[__TLS_MAX_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:924: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 remote_nonce[__TLS_CHACHA20_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:1087: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 remote_random[__TLS_CLIENT_RANDOM_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:1088: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 local_random[__TLS_SERVER_RANDOM_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:1089: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 session[__TLS_MAX_SESSION_ID];
data/cubemap-1.4.3/tlse/tlse.c:1147: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 hs_messages[11];
data/cubemap-1.4.3/tlse/tlse.c:1259:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void __private_b64_decodeblock(unsigned char in[4], unsigned char out[3]) {
data/cubemap-1.4.3/tlse/tlse.c:1259:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void __private_b64_decodeblock(unsigned char in[4], unsigned char out[3]) {
data/cubemap-1.4.3/tlse/tlse.c:1260:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    out[0] = (unsigned char )(in[0] << 2 | in[1] >> 4);
data/cubemap-1.4.3/tlse/tlse.c:1261:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    out[1] = (unsigned char )(in[1] << 4 | in[2] >> 2);
data/cubemap-1.4.3/tlse/tlse.c:1262:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    out[2] = (unsigned char )(((in[2] << 6) & 0xc0) | in[3]);
data/cubemap-1.4.3/tlse/tlse.c:1266:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char in[4], out[3], v;
data/cubemap-1.4.3/tlse/tlse.c:1586: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 hash[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:1723: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 hash[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2001: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 hash[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2169: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 hash[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2296:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest_out0[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2297:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest_out1[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2354: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 digest_out0[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2355: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 digest_out1[__TLS_MAX_HASH_LEN];
data/cubemap-1.4.3/tlse/tlse.c:2494: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 key[__TLS_MAX_KEY_EXPANSION_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:2535: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(context->crypto.ctx_remote_mac.remote_mac, &key[pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:2537: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(context->crypto.ctx_local_mac.local_mac, &key[pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:2540: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(context->crypto.ctx_local_mac.local_mac, &key[pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:2542: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(context->crypto.ctx_remote_mac.remote_mac, &key[pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:2567: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(context->crypto.ctx_remote_mac.remote_nonce, clientiv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2568: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(context->crypto.ctx_local_mac.local_nonce, serveriv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2572: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(context->crypto.ctx_remote_mac.remote_aead_iv, clientiv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2573: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(context->crypto.ctx_local_mac.local_aead_iv, serveriv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2580: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(context->crypto.ctx_local_mac.local_nonce, clientiv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2581: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(context->crypto.ctx_remote_mac.remote_nonce, serveriv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2585: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(context->crypto.ctx_local_mac.local_aead_iv, clientiv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2586: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(context->crypto.ctx_remote_mac.remote_aead_iv, serveriv, iv_length);
data/cubemap-1.4.3/tlse/tlse.c:2597: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(context->exportable_keys, serverkey, key_length);
data/cubemap-1.4.3/tlse/tlse.c:2598: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(context->exportable_keys + key_length, clientkey, key_length);
data/cubemap-1.4.3/tlse/tlse.c:2600: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(context->exportable_keys, clientkey, key_length);
data/cubemap-1.4.3/tlse/tlse.c:2601: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(context->exportable_keys + key_length, serverkey, key_length);
data/cubemap-1.4.3/tlse/tlse.c:2818: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 current_time[16];
data/cubemap-1.4.3/tlse/tlse.c:2844: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(*member, val, len);
data/cubemap-1.4.3/tlse/tlse.c:2865: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(*member + 2, val, len);
data/cubemap-1.4.3/tlse/tlse.c:3198:22:  [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_buffer[32];
data/cubemap-1.4.3/tlse/tlse.c:3260: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_buffer[32];
data/cubemap-1.4.3/tlse/tlse.c:3340:33:  [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(ct, packet->buf, header_size - 2);
data/cubemap-1.4.3/tlse/tlse.c:3350:33:  [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 + buf_pos, packet->buf + header_size, packet->len - header_size);
data/cubemap-1.4.3/tlse/tlse.c:3353:46:  [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_buf[5];
data/cubemap-1.4.3/tlse/tlse.c:3354:37:  [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(temp_buf, packet->buf, 3);
data/cubemap-1.4.3/tlse/tlse.c:3395:38:  [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 aad[13];
data/cubemap-1.4.3/tlse/tlse.c:3409:42:  [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 poly1305_key[POLY1305_KEYLEN];
data/cubemap-1.4.3/tlse/tlse.c:3415:42:  [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[12];
data/cubemap-1.4.3/tlse/tlse.c:3416:33:  [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, packet->context->crypto.ctx_local_mac.local_aead_iv, __TLS_AES_GCM_IV_LENGTH);
data/cubemap-1.4.3/tlse/tlse.c:3418:33:  [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(ct + ct_pos, iv + __TLS_AES_GCM_IV_LENGTH, 8);
data/cubemap-1.4.3/tlse/tlse.c:3435:29:  [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(ct, packet->buf, header_size - 2);
data/cubemap-1.4.3/tlse/tlse.c:3476: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->buf + packet->len, buf, len);
data/cubemap-1.4.3/tlse/tlse.c:3496: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[3];
data/cubemap-1.4.3/tlse/tlse.c:3524: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/urandom", "r");
data/cubemap-1.4.3/tlse/tlse.c:3562:22:  [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[__TLS_MAX_SHA_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:3577:22:  [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[__TLS_V11_HASH_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:3600:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(context->cached_handshake, in, len);
data/cubemap-1.4.3/tlse/tlse.c:3626: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(context->cached_handshake + context->cached_handshake_len, in, len);
data/cubemap-1.4.3/tlse/tlse.c:3661: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 temp[__TLS_MAX_SHA_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:3675: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 temp[__TLS_V11_HASH_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:3705: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(&prec, &hash->hash, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3712: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(&hash->hash, &prec, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3718: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(&prec, &hash->hash, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3720: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(&hash->hash, &prec, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3722: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(&prec, &hash->hash2, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3724: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(&hash->hash2, &prec, sizeof(hash_state));
data/cubemap-1.4.3/tlse/tlse.c:3746:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->tls_buffer + context->tls_buffer_len, packet->buf, packet->len);
data/cubemap-1.4.3/tlse/tlse.c:3773:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(context->application_buffer + context->application_buffer_len, buf, buf_len);
data/cubemap-1.4.3/tlse/tlse.c:3877:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, context->application_buffer, size);
data/cubemap-1.4.3/tlse/tlse.c:3995:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(context->default_dhe_p, p_hex_str, p_len);
data/cubemap-1.4.3/tlse/tlse.c:3998:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(context->default_dhe_g, g_hex_str, g_len);
data/cubemap-1.4.3/tlse/tlse.c:4024: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(alpn_ref, alpn, len);
data/cubemap-1.4.3/tlse/tlse.c:4596:22:  [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 dh_Ys[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4597:22:  [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 dh_p[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4598:22:  [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 dh_g[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4618:22:  [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 out[__TLS_MAX_RSA_KEY];
data/cubemap-1.4.3/tlse/tlse.c:4667: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[3];
data/cubemap-1.4.3/tlse/tlse.c:4698: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 dh_Ys[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4699: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 dh_p[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4700: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 dh_g[0xFFF];
data/cubemap-1.4.3/tlse/tlse.c:4746: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 out[__TLS_MAX_RSA_KEY];
data/cubemap-1.4.3/tlse/tlse.c:4768: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 out[__TLS_MAX_RSA_KEY];
data/cubemap-1.4.3/tlse/tlse.c:4794: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(message, context->remote_random, __TLS_CLIENT_RANDOM_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:4795: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(message + __TLS_CLIENT_RANDOM_SIZE, context->local_random, __TLS_SERVER_RANDOM_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:4796: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(message + __TLS_CLIENT_RANDOM_SIZE + __TLS_SERVER_RANDOM_SIZE, packet->buf + start_len, params_len);
data/cubemap-1.4.3/tlse/tlse.c:4852: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 dummy[3];
data/cubemap-1.4.3/tlse/tlse.c:5133: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 dummy[3];
data/cubemap-1.4.3/tlse/tlse.c:5263:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->dtls_cookie, &buf[res], len);
data/cubemap-1.4.3/tlse/tlse.c:5333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(context->remote_random, &buf[res], __TLS_CLIENT_RANDOM_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:5339:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->session, &buf[res], session_len);
data/cubemap-1.4.3/tlse/tlse.c:5451:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(context->sni, &buf[res + 5], sni_host_len);
data/cubemap-1.4.3/tlse/tlse.c:5506:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                    memcpy(context->negotiated_alpn, &alpn[alpn_pos], alpn_size);
data/cubemap-1.4.3/tlse/tlse.c:5586:25:  [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(cert->bytes, &buf[res2], certificate_size2);
data/cubemap-1.4.3/tlse/tlse.c:5683: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 rand_bytes[48];
data/cubemap-1.4.3/tlse/tlse.c:5704: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->context->premaster_key, rand_bytes, packet->context->premaster_key_len);
data/cubemap-1.4.3/tlse/tlse.c:5863: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(message, context->local_random, __TLS_CLIENT_RANDOM_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:5864: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(message + __TLS_CLIENT_RANDOM_SIZE, context->remote_random, __TLS_SERVER_RANDOM_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:5865: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(message + __TLS_CLIENT_RANDOM_SIZE + __TLS_SERVER_RANDOM_SIZE, packet_ref, packet_size);
data/cubemap-1.4.3/tlse/tlse.c:6026: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 hash[__TLS_MAX_SHA_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:6056: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(context->verify_data, out, size);
data/cubemap-1.4.3/tlse/tlse.c:6063: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(context->verify_data + context->verify_len, out, size);
data/cubemap-1.4.3/tlse/tlse.c:6485: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 aad[16];
data/cubemap-1.4.3/tlse/tlse.c:6499:22:  [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[12];
data/cubemap-1.4.3/tlse/tlse.c:6500: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(iv, context->crypto.ctx_remote_mac.remote_aead_iv, 4);
data/cubemap-1.4.3/tlse/tlse.c:6501: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(iv + 4, buf + header_size, 8);
data/cubemap-1.4.3/tlse/tlse.c:6515:22:  [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 tag[32];
data/cubemap-1.4.3/tlse/tlse.c:6542:22:  [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 poly1305_key[POLY1305_KEYLEN];
data/cubemap-1.4.3/tlse/tlse.c:6543:22:  [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 trail[16];
data/cubemap-1.4.3/tlse/tlse.c:6544:22:  [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 mac_tag[POLY1305_TAGLEN];
data/cubemap-1.4.3/tlse/tlse.c:6662:22:  [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 hmac_out[__TLS_MAX_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:6663:22:  [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_buf[5];
data/cubemap-1.4.3/tlse/tlse.c:6664: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(temp_buf, buf, 3);
data/cubemap-1.4.3/tlse/tlse.c:7011: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 oid[16];
data/cubemap-1.4.3/tlse/tlse.c:7065:29:  [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(cert->der_bytes, &buffer[start_pos], temp);
data/cubemap-1.4.3/tlse/tlse.c:7089:21:  [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(cert->der_bytes, &buffer[start_pos], temp);
data/cubemap-1.4.3/tlse/tlse.c:7227:25:  [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(oid, &buffer[pos], length);
data/cubemap-1.4.3/tlse/tlse.c:7229:25:  [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(oid, &buffer[pos], 16);
data/cubemap-1.4.3/tlse/tlse.c:7231:25:  [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(top_oid, oid, 16);
data/cubemap-1.4.3/tlse/tlse.c:7341:22:  [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 top_oid[16];
data/cubemap-1.4.3/tlse/tlse.c:7541: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 hash[__TLS_MAX_HASH_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:7542: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 out[__TLS_MIN_FINISHED_OPAQUE_LEN];
data/cubemap-1.4.3/tlse/tlse.c:7562: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(context->verify_data + context->verify_len, out, __TLS_MIN_FINISHED_OPAQUE_LEN);
data/cubemap-1.4.3/tlse/tlse.c:7570: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(context->verify_data, out, __TLS_MIN_FINISHED_OPAQUE_LEN);
data/cubemap-1.4.3/tlse/tlse.c:7638:15:  [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 *f = fopen(fname, "rb");
data/cubemap-1.4.3/tlse/tlse.c:7672:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(context->message_buffer + orig_len, buf, buf_len);
data/cubemap-1.4.3/tlse/tlse.c:7794: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[__TLS_AES_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:7865: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, packet->buf, size);
data/cubemap-1.4.3/tlse/tlse.c:7879: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 temp[0xFF];
data/cubemap-1.4.3/tlse/tlse.c:7896: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 local_iv[__TLS_AES_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:7897: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 remote_iv[__TLS_AES_IV_LENGTH];
data/cubemap-1.4.3/tlse/tlse.c:7907: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(local_iv, &buffer[buf_pos], iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7909: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(remote_iv, &buffer[buf_pos], iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7914: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(temp, &buffer[buf_pos], key_lengths);
data/cubemap-1.4.3/tlse/tlse.c:7919:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->exportable_keys, temp, key_lengths);
data/cubemap-1.4.3/tlse/tlse.c:7930: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(context->crypto.ctx_local_mac.local_nonce, local_iv, iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7931: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(context->crypto.ctx_remote_mac.remote_nonce, remote_iv, iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7937: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(context->crypto.ctx_local_mac.local_aead_iv, local_iv, iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7938: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(context->crypto.ctx_remote_mac.remote_aead_iv, remote_iv, iv_len);
data/cubemap-1.4.3/tlse/tlse.c:7964: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(context->crypto.ctx_local_mac.local_mac, &buffer[buf_pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:7968: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(context->crypto.ctx_remote_mac.remote_mac, &buffer[buf_pos], mac_length);
data/cubemap-1.4.3/tlse/tlse.c:7984: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(context->crypto.ctx_local.chacha_local.ks, &buffer[buf_pos], CHACHA_BLOCKLEN);
data/cubemap-1.4.3/tlse/tlse.c:7986: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(context->crypto.ctx_remote.chacha_remote.ks, &buffer[buf_pos], CHACHA_BLOCKLEN);
data/cubemap-1.4.3/tlse/tlse.c:7998: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(context->master_key, &buffer[buf_pos], master_key_len);
data/cubemap-1.4.3/tlse/tlse.c:8018: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(context->tls_buffer, &buffer[buf_pos], tls_buffer_len);
data/cubemap-1.4.3/tlse/tlse.c:8031: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(context->message_buffer, &buffer[buf_pos], message_buffer_len);
data/cubemap-1.4.3/tlse/tlse.c:8045: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(context->application_buffer, &buffer[buf_pos], application_buffer_len);
data/cubemap-1.4.3/tlse/tlse.c:8101: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(context->sni, sni, len);
data/cubemap-1.4.3/tlse/tlse.c:8188: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(crypto_info.rec_seq, &context->local_sequence_number, TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8196: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(crypto_info.rec_seq, &context->remote_sequence_number, TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8239: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(crypto_info.iv, &local_sequence_number, TLS_CIPHER_AES_GCM_128_IV_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8240: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(crypto_info.rec_seq, &local_sequence_number, TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8241: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(crypto_info.key, context->exportable_keys, TLS_CIPHER_AES_GCM_128_KEY_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8242: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(crypto_info.salt, context->crypto.ctx_local_mac.local_aead_iv, TLS_CIPHER_AES_GCM_128_SALT_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8254: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(crypto_info_read.iv, &remote_sequence_number, TLS_CIPHER_AES_GCM_128_IV_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8255: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(crypto_info_read.rec_seq, &remote_sequence_number, TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8256: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(crypto_info_read.key, context->exportable_keys + TLS_CIPHER_AES_GCM_128_KEY_SIZE, TLS_CIPHER_AES_GCM_128_KEY_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8257: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(crypto_info_read.salt, context->crypto.ctx_remote_mac.remote_aead_iv, TLS_CIPHER_AES_GCM_128_SALT_SIZE);
data/cubemap-1.4.3/tlse/tlse.c:8272: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[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8273:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_buf[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8370: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[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8378: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[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8463:15:  [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 *f = fopen(pem_filename, "rb");
data/cubemap-1.4.3/tlse/tlse.c:8530: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 client_message[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8561: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 client_message[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8618: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 client_message[0xFFFF];
data/cubemap-1.4.3/tlse/tlse.c:8666: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 mac[__TLS_SHA1_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:8705: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 iv[16];
data/cubemap-1.4.3/tlse/tlse.c:8706: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, salt, 14);
data/cubemap-1.4.3/tlse/tlse.c:8733: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 key_buf[16];
data/cubemap-1.4.3/tlse/tlse.c:8734: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/cubemap-1.4.3/tlse/tlse.c:8763:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_buffer[1024];
data/cubemap-1.4.3/tlse/tlse.c:8815: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(out, payload, payload_len);
data/cubemap-1.4.3/tlse/tlse.c:8821: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 digest_out[__TLS_SHA1_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:8840: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(out + out_len, digest_out, dlen);
data/cubemap-1.4.3/tlse/tlse.c:8873:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char digest_out[__TLS_SHA1_MAC_SIZE];
data/cubemap-1.4.3/tlse/tlse.c:8895: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(out, payload, payload_len - context->tag_size);
data/cubemap-1.4.3/udpinput.cpp:178:19:  [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).
			int port_num = atoi(port.c_str());
data/cubemap-1.4.3/udpinput.h:47: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 packet_buf[65536];
data/cubemap-1.4.3/util.cpp:21:11:  [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("/tmp", O_RDWR | O_TMPFILE, 0600);
data/cubemap-1.4.3/util.cpp:25:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		fd = mkstemp(filename);
data/cubemap-1.4.3/acceptor.cpp:147:4:  [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(100000);
data/cubemap-1.4.3/config.cpp:108:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(buf);
data/cubemap-1.4.3/httpinput.cpp:427:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ret = read(sock, buf, sizeof(buf));
data/cubemap-1.4.3/httpinput.cpp:496:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ret = read(sock, buf, sizeof(buf));
data/cubemap-1.4.3/httpinput.cpp:590: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).
				       METACUBE2_SYNC, strlen(METACUBE2_SYNC)));
data/cubemap-1.4.3/httpinput.cpp:596:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				drop_pending_data(pending_data.size() - (strlen(METACUBE2_SYNC) - 1));
data/cubemap-1.4.3/main.cpp:599:3:  [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(100000);
data/cubemap-1.4.3/main.cpp:670:3:  [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(200000);
data/cubemap-1.4.3/parse.h:28:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			std::equal(
data/cubemap-1.4.3/server.cpp:864:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	        ret = read(client->sock, buf, max_size);
data/cubemap-1.4.3/server.cpp:893:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(client->sock, buf, max_size);
data/cubemap-1.4.3/thread.cpp:80:4:  [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(100000);
data/cubemap-1.4.3/tlse/tlse.c:3984: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).
    int p_len = strlen(p_hex_str);
data/cubemap-1.4.3/tlse/tlse.c:3985: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).
    int g_len = strlen(g_hex_str);
data/cubemap-1.4.3/tlse/tlse.c:4013:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(alpn);
data/cubemap-1.4.3/tlse/tlse.c:4041:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int len = strlen(alpn_local);
data/cubemap-1.4.3/tlse/tlse.c:4510:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (prng_descriptor[wprng].read(buf, keysize, &prng) != (unsigned long)keysize) {
data/cubemap-1.4.3/tlse/tlse.c:4686: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).
                key_size = strlen(default_dhe_p);
data/cubemap-1.4.3/tlse/tlse.c:4688: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).
                key_size = strlen(default_dhe_g);
data/cubemap-1.4.3/tlse/tlse.c:4881: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).
            alpn_negotiated_len = strlen(context->negotiated_alpn);
data/cubemap-1.4.3/tlse/tlse.c:4888:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int len = strlen(context->alpn[i]);
data/cubemap-1.4.3/tlse/tlse.c:5051:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    sni_len = strlen(context->sni);
data/cubemap-1.4.3/tlse/tlse.c:5093: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).
                            int len = strlen(context->alpn[i]);
data/cubemap-1.4.3/tlse/tlse.c:8096: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).
        int len = strlen(sni);
data/cubemap-1.4.3/tlse/tlse.c:8768:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(b64);
data/cubemap-1.4.3/udpinput.cpp:184:5:  [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(200000);
data/cubemap-1.4.3/udpinput.cpp:196:5:  [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(200000);
data/cubemap-1.4.3/util.cpp:24:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t old_umask = umask(077);
data/cubemap-1.4.3/util.cpp:30:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(old_umask);
data/cubemap-1.4.3/util.cpp:81:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, &((*contents)[has_read]), len - has_read);

ANALYSIS SUMMARY:

Hits = 277
Lines analyzed = 17003 in approximately 0.49 seconds (34814 lines/second)
Physical Source Lines of Code (SLOC) = 13766
Hits@level = [0]  76 [1]  30 [2] 233 [3]  10 [4]   4 [5]   0
Hits@level+ = [0+] 353 [1+] 277 [2+] 247 [3+]  14 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 25.6429 [1+] 20.122 [2+] 17.9428 [3+] 1.017 [4+] 0.290571 [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.