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/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp
Examining data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp
Examining data/entropybroker-2.9/auth.cpp
Examining data/entropybroker-2.9/auth.h
Examining data/entropybroker-2.9/client_egd.cpp
Examining data/entropybroker-2.9/client_file.cpp
Examining data/entropybroker-2.9/client_linux_kernel.cpp
Examining data/entropybroker-2.9/config.cpp
Examining data/entropybroker-2.9/config.h
Examining data/entropybroker-2.9/data_logger.cpp
Examining data/entropybroker-2.9/data_logger.h
Examining data/entropybroker-2.9/data_store_int.cpp
Examining data/entropybroker-2.9/data_store_int.h
Examining data/entropybroker-2.9/defines.h
Examining data/entropybroker-2.9/encrypt_stream.cpp
Examining data/entropybroker-2.9/encrypt_stream.h
Examining data/entropybroker-2.9/encrypt_stream_3des.cpp
Examining data/entropybroker-2.9/encrypt_stream_3des.h
Examining data/entropybroker-2.9/encrypt_stream_aes.cpp
Examining data/entropybroker-2.9/encrypt_stream_aes.h
Examining data/entropybroker-2.9/encrypt_stream_blowfish.cpp
Examining data/entropybroker-2.9/encrypt_stream_blowfish.h
Examining data/entropybroker-2.9/encrypt_stream_camellia.cpp
Examining data/entropybroker-2.9/encrypt_stream_camellia.h
Examining data/entropybroker-2.9/error.cpp
Examining data/entropybroker-2.9/error.h
Examining data/entropybroker-2.9/fips140.cpp
Examining data/entropybroker-2.9/fips140.h
Examining data/entropybroker-2.9/graph.cpp
Examining data/entropybroker-2.9/graph.h
Examining data/entropybroker-2.9/handle_client.cpp
Examining data/entropybroker-2.9/handle_client.h
Examining data/entropybroker-2.9/hasher.cpp
Examining data/entropybroker-2.9/hasher.h
Examining data/entropybroker-2.9/hasher_md5.cpp
Examining data/entropybroker-2.9/hasher_md5.h
Examining data/entropybroker-2.9/hasher_ripemd160.cpp
Examining data/entropybroker-2.9/hasher_ripemd160.h
Examining data/entropybroker-2.9/hasher_sha512.cpp
Examining data/entropybroker-2.9/hasher_sha512.h
Examining data/entropybroker-2.9/hasher_type.h
Examining data/entropybroker-2.9/hasher_whirlpool.cpp
Examining data/entropybroker-2.9/hasher_whirlpool.h
Examining data/entropybroker-2.9/hc_protocol.cpp
Examining data/entropybroker-2.9/hc_protocol.h
Examining data/entropybroker-2.9/http_bundle.cpp
Examining data/entropybroker-2.9/http_bundle.h
Examining data/entropybroker-2.9/http_file.cpp
Examining data/entropybroker-2.9/http_file.h
Examining data/entropybroker-2.9/http_file_404.cpp
Examining data/entropybroker-2.9/http_file_404.h
Examining data/entropybroker-2.9/http_file_file.cpp
Examining data/entropybroker-2.9/http_file_file.h
Examining data/entropybroker-2.9/http_file_graph_data_logger.cpp
Examining data/entropybroker-2.9/http_file_graph_data_logger.h
Examining data/entropybroker-2.9/http_file_logfile.cpp
Examining data/entropybroker-2.9/http_file_logfile.h
Examining data/entropybroker-2.9/http_file_root.cpp
Examining data/entropybroker-2.9/http_file_root.h
Examining data/entropybroker-2.9/http_file_stats.cpp
Examining data/entropybroker-2.9/http_file_stats.h
Examining data/entropybroker-2.9/http_file_users.cpp
Examining data/entropybroker-2.9/http_file_users.h
Examining data/entropybroker-2.9/http_file_version.cpp
Examining data/entropybroker-2.9/http_file_version.h
Examining data/entropybroker-2.9/http_request_t.h
Examining data/entropybroker-2.9/http_server.cpp
Examining data/entropybroker-2.9/http_server.h
Examining data/entropybroker-2.9/kernel_prng_io.cpp
Examining data/entropybroker-2.9/kernel_prng_io.h
Examining data/entropybroker-2.9/kernel_prng_rw.cpp
Examining data/entropybroker-2.9/kernel_prng_rw.h
Examining data/entropybroker-2.9/log.cpp
Examining data/entropybroker-2.9/log.h
Examining data/entropybroker-2.9/main.cpp
Examining data/entropybroker-2.9/math.cpp
Examining data/entropybroker-2.9/math.h
Examining data/entropybroker-2.9/my_pty.cpp
Examining data/entropybroker-2.9/my_pty.h
Examining data/entropybroker-2.9/plot.cpp
Examining data/entropybroker-2.9/pool.cpp
Examining data/entropybroker-2.9/pool.h
Examining data/entropybroker-2.9/pool_crypto.cpp
Examining data/entropybroker-2.9/pool_crypto.h
Examining data/entropybroker-2.9/pools.cpp
Examining data/entropybroker-2.9/pools.h
Examining data/entropybroker-2.9/protocol.cpp
Examining data/entropybroker-2.9/protocol.h
Examining data/entropybroker-2.9/proxy_knuth_b.cpp
Examining data/entropybroker-2.9/proxy_knuth_m.cpp
Examining data/entropybroker-2.9/random_source.cpp
Examining data/entropybroker-2.9/random_source.h
Examining data/entropybroker-2.9/scc.cpp
Examining data/entropybroker-2.9/scc.h
Examining data/entropybroker-2.9/server_Araneus_Alea.cpp
Examining data/entropybroker-2.9/server_ComScire_R2000KU.cpp
Examining data/entropybroker-2.9/server_audio.cpp
Examining data/entropybroker-2.9/server_cycle_count.cpp
Examining data/entropybroker-2.9/server_egd.cpp
Examining data/entropybroker-2.9/server_ext_proc.cpp
Examining data/entropybroker-2.9/server_linux_kernel.cpp
Examining data/entropybroker-2.9/server_push_file.cpp
Examining data/entropybroker-2.9/server_qwqng.cpp
Examining data/entropybroker-2.9/server_smartcard.cpp
Examining data/entropybroker-2.9/server_stream.cpp
Examining data/entropybroker-2.9/server_timers.cpp
Examining data/entropybroker-2.9/server_usb.cpp
Examining data/entropybroker-2.9/server_utils.cpp
Examining data/entropybroker-2.9/server_utils.h
Examining data/entropybroker-2.9/server_v4l.cpp
Examining data/entropybroker-2.9/signals.cpp
Examining data/entropybroker-2.9/signals.h
Examining data/entropybroker-2.9/statistics.cpp
Examining data/entropybroker-2.9/statistics.h
Examining data/entropybroker-2.9/statistics_global.cpp
Examining data/entropybroker-2.9/statistics_global.h
Examining data/entropybroker-2.9/statistics_log.cpp
Examining data/entropybroker-2.9/statistics_log.h
Examining data/entropybroker-2.9/statistics_user.cpp
Examining data/entropybroker-2.9/statistics_user.h
Examining data/entropybroker-2.9/stirrer.cpp
Examining data/entropybroker-2.9/stirrer.h
Examining data/entropybroker-2.9/stirrer_3des.cpp
Examining data/entropybroker-2.9/stirrer_3des.h
Examining data/entropybroker-2.9/stirrer_aes.cpp
Examining data/entropybroker-2.9/stirrer_aes.h
Examining data/entropybroker-2.9/stirrer_blowfish.cpp
Examining data/entropybroker-2.9/stirrer_blowfish.h
Examining data/entropybroker-2.9/stirrer_camellia.cpp
Examining data/entropybroker-2.9/stirrer_camellia.h
Examining data/entropybroker-2.9/stirrer_type.h
Examining data/entropybroker-2.9/test_TFO.cpp
Examining data/entropybroker-2.9/test_asound2.cpp
Examining data/entropybroker-2.9/test_cryptopp.cpp
Examining data/entropybroker-2.9/test_gcc.cpp
Examining data/entropybroker-2.9/test_libftdi.cpp
Examining data/entropybroker-2.9/test_libgd2.cpp
Examining data/entropybroker-2.9/test_libpng.cpp
Examining data/entropybroker-2.9/test_libqwqng.cpp
Examining data/entropybroker-2.9/test_libusb.cpp
Examining data/entropybroker-2.9/test_pcsclite.cpp
Examining data/entropybroker-2.9/test_zlib.cpp
Examining data/entropybroker-2.9/users.cpp
Examining data/entropybroker-2.9/users.h
Examining data/entropybroker-2.9/utils.cpp
Examining data/entropybroker-2.9/utils.h
Examining data/entropybroker-2.9/web_server.cpp
Examining data/entropybroker-2.9/web_server.h

FINAL RESULTS:

data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:73:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(statusString_, statusString.c_str());
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:86:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(devId_, deviceId.c_str());
data/entropybroker-2.9/client_egd.cpp:175:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(addr.sun_path, path);
data/entropybroker-2.9/config.cpp:163:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(p_file, par);
data/entropybroker-2.9/config.cpp:165:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(p_file, "%s/%s", cur_dir, par);
data/entropybroker-2.9/config.cpp:231:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(p_file, par);
data/entropybroker-2.9/config.cpp:233:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				sprintf(p_file, VAR_DIR "/%s", par);
data/entropybroker-2.9/error.cpp:22: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(buffer, sizeof buffer, format, ap);
data/entropybroker-2.9/log.cpp:30:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(buffer, sizeof buffer, format, ap);
data/entropybroker-2.9/my_pty.cpp:139:49:  [4] (shell) system:
  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.
#error I'm sorry, but I don't know what kind of system this is.
data/entropybroker-2.9/server_Araneus_Alea.cpp:166:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(server_type, sizeof server_type, "eb_server_Araneus_Alea v" VERSION);
data/entropybroker-2.9/server_egd.cpp:60:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(addr.sun_path, path);
data/entropybroker-2.9/utils.cpp:415:13:  [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.
		if (-1 == execlp(shell, shell, "-c", cmd, NULL))
data/entropybroker-2.9/client_egd.cpp:257:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "t:T:hX:P:d:I:L:l:sn")) != -1)
data/entropybroker-2.9/client_file.cpp:96:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "b:S:hc:f:X:P:I:L:l:sn")) != -1)
data/entropybroker-2.9/client_linux_kernel.cpp:73:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "b:hX:P:I:L:l:sn")) != -1)
data/entropybroker-2.9/config.cpp:46:18:  [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.
	char *cur_dir = realpath(cur_dir_dummy, NULL);
data/entropybroker-2.9/main.cpp:100:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "hP:c:S:L:l:sn")) != -1)
data/entropybroker-2.9/main.cpp:166:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(rand_seed);
data/entropybroker-2.9/proxy_knuth_b.cpp:400:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "V:j:p:U:hf:X:P:I:L:l:sn")) != -1)
data/entropybroker-2.9/proxy_knuth_m.cpp:424:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "V:j:p:U:hf:X:P:I:L:l:sn")) != -1)
data/entropybroker-2.9/server_Araneus_Alea.cpp:84:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hSX:P:o:L:l:snv")) != -1)
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:81:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hSX:P:o:L:l:snv")) != -1)
data/entropybroker-2.9/server_audio.cpp:335:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hX:P:So:d:L:l:sn")) != -1)
data/entropybroker-2.9/server_cycle_count.cpp:130:14:  [3] (buffer) getopt:
  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((sw = getopt(argc, argv, "I:hX:P:So:L:l:sn")) != -1)
data/entropybroker-2.9/server_egd.cpp:120:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:t:T:hSX:P:a:b:o:d:L:l:snv")) != -1)
data/entropybroker-2.9/server_ext_proc.cpp:83:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "b:I:So:hc:Z:X:P:o:p:d:L:l:sn")) != -1)
data/entropybroker-2.9/server_linux_kernel.cpp:74:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hX:P:So:L:l:sn")) != -1)
data/entropybroker-2.9/server_push_file.cpp:74:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "S:I:f:hX:P:o:p:d:L:l:sn")) != -1)
data/entropybroker-2.9/server_qwqng.cpp:80:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hSX:P:o:L:l:snv")) != -1)
data/entropybroker-2.9/server_smartcard.cpp:88:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "hX:P:So:I:L:l:sn")) != -1)
data/entropybroker-2.9/server_stream.cpp:262:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "hSX:P:o:p:I:d:L:l:sn")) != -1)
data/entropybroker-2.9/server_timers.cpp:95:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "I:hX:P:So:L:l:sn")) != -1)
data/entropybroker-2.9/server_usb.cpp:103:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "hX:P:So:I:L:l:sn")) != -1)
data/entropybroker-2.9/server_v4l.cpp:170:13:  [3] (buffer) getopt:
  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((c = getopt(argc, argv, "hSX:P:f:o:I:d:L:l:sn")) != -1)
data/entropybroker-2.9/utils.cpp:344:3:  [3] (random) seed48:
  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.
		seed48(seed16v);
data/entropybroker-2.9/utils.cpp:354:9:  [3] (random) drand48:
  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.
	return drand48();
data/entropybroker-2.9/utils.cpp:361:9:  [3] (random) lrand48:
  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.
	return lrand48();
data/entropybroker-2.9/utils.cpp:368:13:  [3] (random) drand48:
  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.
	return int(drand48() * double(max));
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:494: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(manuInfo,QNG[j].manufacturer, 128);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:495: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(serialInfo,QNG[j].serialnumber, 9);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:496: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(descInfo,QNG[j].description, 128);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:513: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(manuInfo,QNG[j].manufacturer, 128);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:514: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(serialInfo,QNG[j].serialnumber, 9);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:515: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(descInfo,QNG[j].description, 128);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:561: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 serialNumCheck[6];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:577: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(serialNumCheck, internalSerialNum_, 6);
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:702: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 serialNumCheck[6];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp:227:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 manufacturer[128], description[128], serialnumber[9];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp:231: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 serialInfo[9];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp:232: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 descInfo[128];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp:233: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 manuInfo[128];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.hpp:239: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 internalSerialNum_[6];
data/entropybroker-2.9/auth.cpp:65: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 rnd_str[128];
data/entropybroker-2.9/auth.cpp:117: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 hash_cmp_str[256], *hash_cmp = reinterpret_cast<char *>(malloc(hash_len)), *hash_in = reinterpret_cast<char *>(malloc(hash_len));
data/entropybroker-2.9/auth.cpp:172: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 max_get_put_size_bytes[4];
data/entropybroker-2.9/auth.cpp:191: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 prot_ver[4 + 1] = { 0 };
data/entropybroker-2.9/auth.cpp:281: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 hash_cmp_str[256], *hash_cmp = reinterpret_cast<char *>(malloc(hash_len)), *hash_in = reinterpret_cast<char *>(malloc(hash_len));
data/entropybroker-2.9/auth.cpp:319: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 max_get_put_size_bytes[4];
data/entropybroker-2.9/auth.cpp:332: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 prot_ver[4 + 1] = { 0 };
data/entropybroker-2.9/auth.cpp:339: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).
	int eb_ver = atoi(prot_ver);
data/entropybroker-2.9/client_egd.cpp:101: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 reply[4];
data/entropybroker-2.9/client_egd.cpp:114: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 cmd[3];
data/entropybroker-2.9/client_egd.cpp:126: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 buffer[256];
data/entropybroker-2.9/client_egd.cpp:266: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).
				egd_port =  atoi(optarg);
data/entropybroker-2.9/client_egd.cpp:292: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/client_file.cpp:101:18:  [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).
				block_size = atoi(optarg);
data/entropybroker-2.9/client_file.cpp:107:18:  [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).
				sleep_time = atoi(optarg);
data/entropybroker-2.9/client_file.cpp:113:13:  [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).
				count = atoi(optarg);
data/entropybroker-2.9/client_file.cpp:139: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/client_file.cpp:179: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 *fh = fopen(file, "wb");
data/entropybroker-2.9/client_file.cpp:199: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 buffer[4096];
data/entropybroker-2.9/client_linux_kernel.cpp:61:22:  [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 dev_random_fd = open(DEV_RANDOM, O_RDWR);
data/entropybroker-2.9/client_linux_kernel.cpp:78:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				interval = atoi(optarg);
data/entropybroker-2.9/client_linux_kernel.cpp:100: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/config.cpp:49:20:  [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 *fh = fopen(config, "r");
data/entropybroker-2.9/config.cpp:119:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char read_buffer[4096], *lf, *par;
data/entropybroker-2.9/config.cpp:143:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		parval = atoi(par);
data/entropybroker-2.9/data_store_int.cpp:22: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 *fh = fopen(file.c_str(), "r");
data/entropybroker-2.9/data_store_int.cpp:59: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 *fh = fopen(file.c_str(), "wb");
data/entropybroker-2.9/encrypt_stream_3des.cpp:44: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 dummy[24] = { 0 };
data/entropybroker-2.9/encrypt_stream_3des.cpp:45: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(dummy, key_in, std::min(int(sizeof dummy), key_len));
data/entropybroker-2.9/encrypt_stream_aes.cpp:41: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_use[CryptoPP::AES::DEFAULT_KEYLENGTH] = { 0 };
data/entropybroker-2.9/encrypt_stream_aes.cpp:42: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(key_use, key_in, std::min(CryptoPP::AES::DEFAULT_KEYLENGTH, key_len));
data/entropybroker-2.9/encrypt_stream_camellia.cpp:41: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 temp_key[CryptoPP::Camellia::DEFAULT_KEYLENGTH] = { 0 };
data/entropybroker-2.9/encrypt_stream_camellia.cpp:42: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(temp_key, key_in, std::min(CryptoPP::Camellia::DEFAULT_KEYLENGTH, key_len));
data/entropybroker-2.9/error.cpp:18: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 buffer[4096];
data/entropybroker-2.9/fips140.cpp:307: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.
	static char stats_buffer[4096];
data/entropybroker-2.9/fips140.h:4: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 fips140_rval[20000/8];
data/entropybroker-2.9/fips140.h:30:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char fips140_bit1cnt[256];
data/entropybroker-2.9/graph.cpp:162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[128];
data/entropybroker-2.9/hc_protocol.cpp:39: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:48: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:58: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:85: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:95: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 buffer[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:117: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 n_bits[4] = { 255 };
data/entropybroker-2.9/hc_protocol.cpp:204: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(&ent_buffer_in[hash_len], temp_buffer, cur_n_bytes);
data/entropybroker-2.9/hc_protocol.cpp:243: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(&output_buffer[8], ent_buffer, out_len);
data/entropybroker-2.9/hc_protocol.cpp:282: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 dummy_buffer[4];
data/entropybroker-2.9/hc_protocol.cpp:314: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 n_bits[4];
data/entropybroker-2.9/hc_protocol.cpp:337: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 msg[4 + 4];
data/entropybroker-2.9/hc_protocol.cpp:425: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 cmd[4];
data/entropybroker-2.9/hc_protocol.cpp:483: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 buffer[8];
data/entropybroker-2.9/http_bundle.cpp:18: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, data_in, data_len_in);
data/entropybroker-2.9/http_file_file.cpp:53:14:  [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 *fh = fopen(file.c_str(), "rb");
data/entropybroker-2.9/http_file_graph_data_logger.cpp:67: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).
		width = std::max(240, atoi(it -> second.c_str()));
data/entropybroker-2.9/http_file_graph_data_logger.cpp:71:26:  [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).
		height = std::max(200, atoi(it -> second.c_str()));
data/entropybroker-2.9/kernel_prng_io.cpp:23: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(DEV_RANDOM, O_RDONLY);
data/entropybroker-2.9/kernel_prng_io.cpp:39: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(DEV_RANDOM, O_WRONLY);
data/entropybroker-2.9/kernel_prng_io.cpp:50: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(&(output -> buf[0]), data, n);
data/entropybroker-2.9/kernel_prng_io.cpp:65: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 *fh = fopen(PROC_POOLSIZE, "r");
data/entropybroker-2.9/kernel_prng_rw.cpp:22: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(DEV_RANDOM, O_RDONLY);
data/entropybroker-2.9/kernel_prng_rw.cpp:38: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(DEV_URANDOM, O_RDONLY);
data/entropybroker-2.9/kernel_prng_rw.cpp:65: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(DEV_URANDOM, O_WRONLY);
data/entropybroker-2.9/log.cpp:20:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[4096];
data/entropybroker-2.9/log.cpp:24: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 timestr[256] = { 0 };
data/entropybroker-2.9/log.cpp:38: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 *fh = fopen(log_file, "a+");
data/entropybroker-2.9/main.cpp:125: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/my_pty.cpp:98: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).
	ptm = open(multiplexer, O_RDWR | O_NOCTTY);
data/entropybroker-2.9/my_pty.cpp:114: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).
		*fd_slave = open(pts, O_RDWR | O_NOCTTY);
data/entropybroker-2.9/my_pty.cpp:132: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).
	*fd_slave = open(line, O_RDWR);
data/entropybroker-2.9/plot.cpp:26:14:  [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 *fhi = fopen(file_in, "rb");
data/entropybroker-2.9/plot.cpp:33:14:  [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 *fho = fopen(file_out, "wb");
data/entropybroker-2.9/plot.cpp:86: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 *row_pointers[256];
data/entropybroker-2.9/pool.cpp:66: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 *fh = fopen(file_name.c_str(), "rb");
data/entropybroker-2.9/pool.cpp:184:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char val_buffer[8];
data/entropybroker-2.9/pool.cpp:281: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(entropy_data, hash, n_given);
data/entropybroker-2.9/pools.cpp:128:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[128];
data/entropybroker-2.9/pools.cpp:132:14:  [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 *fh = fopen(new_cache_file.c_str(), "wb");
data/entropybroker-2.9/pools.cpp:179:14:  [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 *fh = fopen(cache_list.at(0).first.c_str(), "r");
data/entropybroker-2.9/protocol.cpp:95: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(dest, password, std::min(strlen(password), ivec_size));
data/entropybroker-2.9/protocol.cpp:132:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char logout_msg[8] = { 0 };
data/entropybroker-2.9/protocol.cpp:218:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char ivec[8] = { 0 };
data/entropybroker-2.9/protocol.cpp:266:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[8];
data/entropybroker-2.9/protocol.cpp:297: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 reply[8] = { 0 };
data/entropybroker-2.9/protocol.cpp:298: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 header[8] = { 0 };
data/entropybroker-2.9/protocol.cpp:373: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(&temp_buffer[hash_len], bytes_in, cur_n_bytes);
data/entropybroker-2.9/protocol.cpp:472:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char request[8];
data/entropybroker-2.9/protocol.cpp:496:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char reply[8];
data/entropybroker-2.9/protocol.cpp:533:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 xmit_buffer[8];
data/entropybroker-2.9/protocol.cpp:625: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(where_to, &temp_buffer[hash_len], will_get_n_bytes);
data/entropybroker-2.9/proxy_knuth_b.cpp: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 buffer[4];
data/entropybroker-2.9/proxy_knuth_b.cpp:84: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 buffer[4];
data/entropybroker-2.9/proxy_knuth_b.cpp:97: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 *fh = fopen(file.c_str(), "rb");
data/entropybroker-2.9/proxy_knuth_b.cpp:138: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 *fh = fopen(file.c_str(), "wb");
data/entropybroker-2.9/proxy_knuth_b.cpp:158: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 bit_cnt[4] = { 0 };
data/entropybroker-2.9/proxy_knuth_b.cpp:168: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 reply[4 + 4] = { 0 };
data/entropybroker-2.9/proxy_knuth_b.cpp:225: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(lt -> table, buffer_out, do_n_bytes);
data/entropybroker-2.9/proxy_knuth_b.cpp:242: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(&lt -> A[lt -> n_A], buffer_out, do_n_bytes);
data/entropybroker-2.9/proxy_knuth_b.cpp:266: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 cmd[4] = { 0 };
data/entropybroker-2.9/proxy_knuth_b.cpp:413: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).
				listen_port = atoi(optarg);
data/entropybroker-2.9/proxy_knuth_b.cpp:437: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/proxy_knuth_b.cpp:609:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dummy_str[256];
data/entropybroker-2.9/proxy_knuth_b.cpp:615:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ivec[8] = { 0 };
data/entropybroker-2.9/proxy_knuth_m.cpp:77: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 buffer[4];
data/entropybroker-2.9/proxy_knuth_m.cpp:87: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 buffer[4];
data/entropybroker-2.9/proxy_knuth_m.cpp:100: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 *fh = fopen(file.c_str(), "rb");
data/entropybroker-2.9/proxy_knuth_m.cpp:147: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 *fh = fopen(file.c_str(), "wb");
data/entropybroker-2.9/proxy_knuth_m.cpp:169: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 bit_cnt[4] = { 0 };
data/entropybroker-2.9/proxy_knuth_m.cpp:179: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 reply[4 + 4] = { 0 };
data/entropybroker-2.9/proxy_knuth_m.cpp:236: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(lt -> table, buffer_out, do_n_bytes);
data/entropybroker-2.9/proxy_knuth_m.cpp:253: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(&lt -> A[lt -> n_A], buffer_out, do_n_bytes);
data/entropybroker-2.9/proxy_knuth_m.cpp:267: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(&lt -> B[lt -> n_B], buffer_out, do_n_bytes);
data/entropybroker-2.9/proxy_knuth_m.cpp:290: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 cmd[4] = { 0 };
data/entropybroker-2.9/proxy_knuth_m.cpp:437: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).
				listen_port = atoi(optarg);
data/entropybroker-2.9/proxy_knuth_m.cpp:461: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/proxy_knuth_m.cpp:634:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ivec[8] = { 0 };
data/entropybroker-2.9/scc.cpp:108: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 stats_buffer[128];
data/entropybroker-2.9/scc.h:6: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 buffer[SCC_BUFFER_SIZE];
data/entropybroker-2.9/server_Araneus_Alea.cpp:68: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 bytes[4096];
data/entropybroker-2.9/server_Araneus_Alea.cpp:74: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 server_type[128];
data/entropybroker-2.9/server_Araneus_Alea.cpp:117: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:65: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 bytes[4096];
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:73: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 server_type[128];
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:114: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_audio.cpp:150: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 bytes[4096]; // 4096 * 8: 9992, must be less then 9999
data/entropybroker-2.9/server_audio.cpp:153: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 server_type[128];
data/entropybroker-2.9/server_audio.cpp:368: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_cycle_count.cpp:65: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 *fh = fopen(cache_size_file, "r");
data/entropybroker-2.9/server_cycle_count.cpp:81: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 *fh = fopen(cache_line_size_file, "r");
data/entropybroker-2.9/server_cycle_count.cpp:159: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_cycle_count.cpp:217: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 bytes[4096];
data/entropybroker-2.9/server_egd.cpp:99: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 bytes[4096];
data/entropybroker-2.9/server_egd.cpp:110: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 server_type[128];
data/entropybroker-2.9/server_egd.cpp:133: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).
				egd_port =  atoi(optarg);
data/entropybroker-2.9/server_egd.cpp:155: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).
				read_bytes_per_interval = atoi(optarg);
data/entropybroker-2.9/server_egd.cpp:177: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_egd.cpp:253:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char request[2], reply[1];
data/entropybroker-2.9/server_ext_proc.cpp:88:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				idle = atoi(optarg);
data/entropybroker-2.9/server_ext_proc.cpp:124: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_ext_proc.cpp:178: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 buffer[32768];
data/entropybroker-2.9/server_linux_kernel.cpp:103: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_linux_kernel.cpp:149: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 bytes[4096];
data/entropybroker-2.9/server_push_file.cpp:61: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 bytes[4096];
data/entropybroker-2.9/server_push_file.cpp:107: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_push_file.cpp:138: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 *fh = fopen(file, "rb");
data/entropybroker-2.9/server_qwqng.cpp:65: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 bytes[4096];
data/entropybroker-2.9/server_qwqng.cpp:72: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 server_type[128];
data/entropybroker-2.9/server_qwqng.cpp:113: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_smartcard.cpp:75: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 bytes[4096];
data/entropybroker-2.9/server_smartcard.cpp:121: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_smartcard.cpp:243: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(&bytes[index], pbRecvBuffer, n_to_add);
data/entropybroker-2.9/server_stream.cpp:58: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).
	switch(atoi(pars[0]))
data/entropybroker-2.9/server_stream.cpp:193: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).
	switch(atoi(pars[1]))
data/entropybroker-2.9/server_stream.cpp:247: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 bytes[BLOCK_SIZE];
data/entropybroker-2.9/server_stream.cpp:299: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_stream.cpp:330:13:  [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).
		read_fd = open(device, O_RDONLY);
data/entropybroker-2.9/server_timers.cpp:82: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 bytes[4096];
data/entropybroker-2.9/server_timers.cpp:124: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_usb.cpp:41: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 buffer[256];
data/entropybroker-2.9/server_usb.cpp:89: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 bytes[4096];
data/entropybroker-2.9/server_usb.cpp:132: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_utils.cpp:22: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 *fh = fopen(file, "a+");
data/entropybroker-2.9/server_v4l.cpp:52: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).
	*fd = open(dev_name, O_RDWR);
data/entropybroker-2.9/server_v4l.cpp:75: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 format[5];
data/entropybroker-2.9/server_v4l.cpp:76: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(format, &fmt.fmt.pix.pixelformat, 4);
data/entropybroker-2.9/server_v4l.cpp:187: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).
				device_settle = atoi(optarg);
data/entropybroker-2.9/server_v4l.cpp:209: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).
				log_level = atoi(optarg);
data/entropybroker-2.9/server_v4l.cpp:299: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(img1, io_buffer, io_buffer_len);
data/entropybroker-2.9/server_v4l.cpp:306: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(img2, io_buffer, io_buffer_len);
data/entropybroker-2.9/statistics_log.cpp:35: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 *fh = fopen(file.c_str(), "a+");
data/entropybroker-2.9/stirrer_3des.cpp:37: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 temp_key[24] = { 0 };
data/entropybroker-2.9/stirrer_3des.cpp:42: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(temp_key, data_in, data_in_size);
data/entropybroker-2.9/stirrer_3des.cpp:47: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(target, temp_buffer, target_size);
data/entropybroker-2.9/stirrer_aes.cpp:36: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 temp_key[32] = { 0 };
data/entropybroker-2.9/stirrer_aes.cpp:41: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(temp_key, data_in, data_in_size);
data/entropybroker-2.9/stirrer_aes.cpp:47: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(target, temp_buffer, target_size);
data/entropybroker-2.9/stirrer_blowfish.cpp:44: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(target, temp_buffer, target_size);
data/entropybroker-2.9/stirrer_camellia.cpp:42: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(target, temp_buffer, target_size);
data/entropybroker-2.9/users.cpp:92:34:  [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).
			u.allowance = u.max_get_bps = atoi(pars[2].c_str());
data/entropybroker-2.9/utils.cpp:288: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 portnr_str[8];
data/entropybroker-2.9/utils.cpp:373: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 *fh = fopen(file, "w");
data/entropybroker-2.9/utils.cpp:488:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(&end[1]);
data/entropybroker-2.9/utils.cpp:496:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(colon + 1);
data/entropybroker-2.9/utils.cpp:524: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 buffer[4096] = { "?" };
data/entropybroker-2.9/utils.cpp:532: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 buffer2[4096];
data/entropybroker-2.9/utils.cpp:624: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 buffer[4096];
data/entropybroker-2.9/utils.cpp:718: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 buffer[4] = { 0 };
data/entropybroker-2.9/utils.cpp:738: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 buffer[4];
data/entropybroker-2.9/utils.cpp:803: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 time_buffer[128];
data/entropybroker-2.9/utils.cpp:826: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 buffer[4];
data/entropybroker-2.9/utils.cpp:858: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 buffer[4];
data/entropybroker-2.9/ComScire_R2000KU/qwqng.cpp:589: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(10*1000);
data/entropybroker-2.9/client_egd.cpp:170: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).
	if (strlen(path) >= sizeof addr.sun_path)
data/entropybroker-2.9/client_egd.cpp:176:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
data/entropybroker-2.9/client_egd.cpp:319:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/client_file.cpp:173:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/client_linux_kernel.cpp:134:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/config.cpp:133:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(cmd) == 0)
data/entropybroker-2.9/config.cpp:161: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).
			char *p_file = static_cast<char *>(malloc(strlen(cur_dir) + strlen(par) + 1 + 1));
data/entropybroker-2.9/config.cpp:161:64:  [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).
			char *p_file = static_cast<char *>(malloc(strlen(cur_dir) + strlen(par) + 1 + 1));
data/entropybroker-2.9/config.cpp:229: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).
			char *p_file = static_cast<char *>(malloc(strlen(VAR_DIR) + strlen(par) + 1 + 1));
data/entropybroker-2.9/config.cpp:229:64:  [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).
			char *p_file = static_cast<char *>(malloc(strlen(VAR_DIR) + strlen(par) + 1 + 1));
data/entropybroker-2.9/handle_client.cpp:166:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int rc_pipe = read(p -> to_thread[0], &cmd, 1);
data/entropybroker-2.9/handle_client.cpp:440:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int rc_pipe = read(p -> to_main[0], &cmd, 1);
data/entropybroker-2.9/http_bundle.cpp:29: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).
	data_len = strlen(data_in);
data/entropybroker-2.9/http_file_file.cpp:87:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*len = strlen((char *)*p);
data/entropybroker-2.9/http_server.cpp:27:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int rc = read(fd_in, &request_data[request_data_size], HTTP_SERVER_READ_SIZE);
data/entropybroker-2.9/http_server.cpp:125:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(what);
data/entropybroker-2.9/kernel_prng_rw.cpp:44:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rc = read(fd, buffer, n);
data/entropybroker-2.9/main.cpp:139:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/plot.cpp:42:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int x = fgetc(fhi);
data/entropybroker-2.9/plot.cpp:43:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int y = fgetc(fhi);
data/entropybroker-2.9/pools.cpp:189:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (fgetc(fh) == -1)
data/entropybroker-2.9/protocol.cpp:95:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(dest, password, std::min(strlen(password), ivec_size));
data/entropybroker-2.9/protocol.cpp:150:2:  [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((long)sleep_micro_seconds);
data/entropybroker-2.9/proxy_knuth_b.cpp:344: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(250000); // FIXME condwait or so
data/entropybroker-2.9/proxy_knuth_b.cpp:469:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/proxy_knuth_m.cpp:368: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(250000); // FIXME condwait or so
data/entropybroker-2.9/proxy_knuth_m.cpp:493:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_Araneus_Alea.cpp:145:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:142:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_ComScire_R2000KU.cpp:193: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(10000); // do not hog cpu
data/entropybroker-2.9/server_audio.cpp:392:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_cycle_count.cpp:187:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_egd.cpp:55:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(path) >= sizeof addr.sun_path)
data/entropybroker-2.9/server_egd.cpp:61:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
data/entropybroker-2.9/server_egd.cpp:211:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_egd.cpp:299: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(read_interval * 1000000.0);
data/entropybroker-2.9/server_ext_proc.cpp:151:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_ext_proc.cpp:201:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			got_bytes = read(child_fd, buffer, sizeof buffer);
data/entropybroker-2.9/server_linux_kernel.cpp:127:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_push_file.cpp:134:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_push_file.cpp:142:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_qwqng.cpp:141:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_qwqng.cpp:191: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(10000); // do not hog cpu
data/entropybroker-2.9/server_smartcard.cpp:68:2:  [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(100);
data/entropybroker-2.9/server_smartcard.cpp:149:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_stream.cpp:337:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_timers.cpp:152:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_usb.cpp:160:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/server_v4l.cpp:236:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0177);
data/entropybroker-2.9/utils.cpp:73:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rc = read(fd, whereto, len);
data/entropybroker-2.9/utils.cpp:145:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(fd, whereto, len);
data/entropybroker-2.9/utils.cpp:664:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int split_len = strlen(split);
data/entropybroker-2.9/utils.cpp:811:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int rc = fgetc(fh);

ANALYSIS SUMMARY:

Hits = 298
Lines analyzed = 18823 in approximately 0.48 seconds (38892 lines/second)
Physical Source Lines of Code (SLOC) = 14386
Hits@level = [0] 417 [1]  54 [2] 205 [3]  26 [4]  13 [5]   0
Hits@level+ = [0+] 715 [1+] 298 [2+] 244 [3+]  39 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 49.7011 [1+] 20.7146 [2+] 16.9609 [3+] 2.71097 [4+] 0.903656 [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.