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/uhub-0.4.1/autotest/test.c
Examining data/uhub-0.4.1/src/plugins/mod_topic.c
Examining data/uhub-0.4.1/src/plugins/mod_chat_history.c
Examining data/uhub-0.4.1/src/plugins/mod_auth_simple.c
Examining data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c
Examining data/uhub-0.4.1/src/plugins/mod_logging.c
Examining data/uhub-0.4.1/src/plugins/mod_welcome.c
Examining data/uhub-0.4.1/src/plugins/mod_example.c
Examining data/uhub-0.4.1/src/plugins/mod_no_guest_downloads.c
Examining data/uhub-0.4.1/src/plugins/mod_chat_only.c
Examining data/uhub-0.4.1/src/uhub.h
Examining data/uhub-0.4.1/src/core/user.c
Examining data/uhub-0.4.1/src/core/hubevent.c
Examining data/uhub-0.4.1/src/core/hub.h
Examining data/uhub-0.4.1/src/core/netevent.c
Examining data/uhub-0.4.1/src/core/command_parser.c
Examining data/uhub-0.4.1/src/core/netevent.h
Examining data/uhub-0.4.1/src/core/ioqueue.h
Examining data/uhub-0.4.1/src/core/eventid.h
Examining data/uhub-0.4.1/src/core/probe.c
Examining data/uhub-0.4.1/src/core/plugincallback.c
Examining data/uhub-0.4.1/src/core/ioqueue.c
Examining data/uhub-0.4.1/src/core/eventqueue.c
Examining data/uhub-0.4.1/src/core/plugininvoke.h
Examining data/uhub-0.4.1/src/core/usermanager.h
Examining data/uhub-0.4.1/src/core/plugincallback.h
Examining data/uhub-0.4.1/src/core/config.h
Examining data/uhub-0.4.1/src/core/inf.c
Examining data/uhub-0.4.1/src/core/hubevent.h
Examining data/uhub-0.4.1/src/core/usermanager.c
Examining data/uhub-0.4.1/src/core/route.h
Examining data/uhub-0.4.1/src/core/hub.c
Examining data/uhub-0.4.1/src/core/probe.h
Examining data/uhub-0.4.1/src/core/gen_config.c
Examining data/uhub-0.4.1/src/core/plugininvoke.c
Examining data/uhub-0.4.1/src/core/auth.h
Examining data/uhub-0.4.1/src/core/inf.h
Examining data/uhub-0.4.1/src/core/pluginloader.c
Examining data/uhub-0.4.1/src/core/config.c
Examining data/uhub-0.4.1/src/core/commands.h
Examining data/uhub-0.4.1/src/core/main.c
Examining data/uhub-0.4.1/src/core/gen_config.h
Examining data/uhub-0.4.1/src/core/command_parser.h
Examining data/uhub-0.4.1/src/core/commands.c
Examining data/uhub-0.4.1/src/core/auth.c
Examining data/uhub-0.4.1/src/core/eventqueue.h
Examining data/uhub-0.4.1/src/core/pluginloader.h
Examining data/uhub-0.4.1/src/core/user.h
Examining data/uhub-0.4.1/src/core/route.c
Examining data/uhub-0.4.1/src/network/timeout.h
Examining data/uhub-0.4.1/src/network/common.h
Examining data/uhub-0.4.1/src/network/connection.c
Examining data/uhub-0.4.1/src/network/timer.c
Examining data/uhub-0.4.1/src/network/dnsresolver.h
Examining data/uhub-0.4.1/src/network/backend.c
Examining data/uhub-0.4.1/src/network/connection.h
Examining data/uhub-0.4.1/src/network/epoll.c
Examining data/uhub-0.4.1/src/network/network.h
Examining data/uhub-0.4.1/src/network/ipcalc.c
Examining data/uhub-0.4.1/src/network/ipcalc.h
Examining data/uhub-0.4.1/src/network/kqueue.c
Examining data/uhub-0.4.1/src/network/backend.h
Examining data/uhub-0.4.1/src/network/tls.h
Examining data/uhub-0.4.1/src/network/dnsresolver.c
Examining data/uhub-0.4.1/src/network/select.c
Examining data/uhub-0.4.1/src/network/network.c
Examining data/uhub-0.4.1/src/network/timeout.c
Examining data/uhub-0.4.1/src/network/openssl.c
Examining data/uhub-0.4.1/src/util/tiger.c
Examining data/uhub-0.4.1/src/util/floodctl.h
Examining data/uhub-0.4.1/src/util/credentials.h
Examining data/uhub-0.4.1/src/util/tiger.h
Examining data/uhub-0.4.1/src/util/getopt.c
Examining data/uhub-0.4.1/src/util/misc.h
Examining data/uhub-0.4.1/src/util/threads.h
Examining data/uhub-0.4.1/src/util/config_token.h
Examining data/uhub-0.4.1/src/util/floodctl.c
Examining data/uhub-0.4.1/src/util/rbtree.c
Examining data/uhub-0.4.1/src/util/cbuffer.h
Examining data/uhub-0.4.1/src/util/config_token.c
Examining data/uhub-0.4.1/src/util/log.c
Examining data/uhub-0.4.1/src/util/memory.h
Examining data/uhub-0.4.1/src/util/misc.c
Examining data/uhub-0.4.1/src/util/list.h
Examining data/uhub-0.4.1/src/util/rbtree.h
Examining data/uhub-0.4.1/src/util/memory.c
Examining data/uhub-0.4.1/src/util/getopt.h
Examining data/uhub-0.4.1/src/util/log.h
Examining data/uhub-0.4.1/src/util/credentials.c
Examining data/uhub-0.4.1/src/util/threads.c
Examining data/uhub-0.4.1/src/util/cbuffer.c
Examining data/uhub-0.4.1/src/util/list.c
Examining data/uhub-0.4.1/src/tools/adcclient.h
Examining data/uhub-0.4.1/src/tools/adcclient.c
Examining data/uhub-0.4.1/src/tools/fuzzer.h
Examining data/uhub-0.4.1/src/tools/adcrush.c
Examining data/uhub-0.4.1/src/tools/admin.c
Examining data/uhub-0.4.1/src/tools/uhub-passwd.c
Examining data/uhub-0.4.1/src/plugin_api/types.h
Examining data/uhub-0.4.1/src/plugin_api/message_api.h
Examining data/uhub-0.4.1/src/plugin_api/handle.h
Examining data/uhub-0.4.1/src/plugin_api/command_api.h
Examining data/uhub-0.4.1/src/adc/sid.c
Examining data/uhub-0.4.1/src/adc/adcconst.h
Examining data/uhub-0.4.1/src/adc/message.h
Examining data/uhub-0.4.1/src/adc/sid.h
Examining data/uhub-0.4.1/src/adc/message.c
Examining data/uhub-0.4.1/src/system.h

FINAL RESULTS:

data/uhub-0.4.1/src/core/auth.c:460:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	struct auth_info* access;
data/uhub-0.4.1/src/core/auth.c:471:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access)
data/uhub-0.4.1/src/core/auth.c:487:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	hub_free(access);
data/uhub-0.4.1/src/core/command_parser.c:88:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(token, tmp);
data/uhub-0.4.1/src/core/main.c:203:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stdout, PRODUCT_STRING "\n");
data/uhub-0.4.1/src/core/main.c:204:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stdout, COPYRIGHT "\n"
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:51: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(query, sizeof(query), sql_fmt, args);
data/uhub-0.4.1/src/plugins/mod_logging.c:189:10:  [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.
		size = vsnprintf(logmsg + 20, 1004, format, args);
data/uhub-0.4.1/src/system.h:277:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/uhub-0.4.1/src/system.h:277:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/uhub-0.4.1/src/tools/adcclient.c:97: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/tools/adcclient.c:147: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(seed, 64, VERSION "%p", client);
data/uhub-0.4.1/src/tools/adcrush.c:130: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/tools/adcrush.c:461:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(ADCRUSH "\n");
data/uhub-0.4.1/src/tools/uhub-passwd.c:183: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(query, sizeof(query), sql, args);
data/uhub-0.4.1/src/util/cbuffer.c:94:10:  [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.
	bytes = vsnprintf(tmp, 1024, format, args);
data/uhub-0.4.1/src/util/log.c:59:47:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
void hub_log_initialize(const char* file, int syslog)
data/uhub-0.4.1/src/util/log.c:83:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (syslog)
data/uhub-0.4.1/src/util/log.c:158: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/util/log.c:170: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/util/log.c:184: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/util/log.c:207: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(logmsg, 1024, format, args);
data/uhub-0.4.1/src/util/log.h:80:54:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
extern void hub_log_initialize(const char* file, int syslog);
data/uhub-0.4.1/src/util/misc.c:324:3:  [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(buf, bufsize, PRINTF_SIZE_T " %s", bytes / divisor, quant[factor]);
data/uhub-0.4.1/src/util/misc.c:341:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	return snprintf(buf, sizeof(buf), PRINTF_UINT64_T, val) < 0 ? NULL : buf;
data/uhub-0.4.1/src/core/main.c:240:16:  [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 ((opt = getopt(argc, argv, "vqfc:l:hu:g:VCsSLp:")) != -1)
data/uhub-0.4.1/src/network/epoll.c:155:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("EVENT_NOEPOLL"))
data/uhub-0.4.1/src/network/kqueue.c:178:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("EVENT_NOKQUEUE"))
data/uhub-0.4.1/src/network/select.c:158:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("EVENT_NOSELECT"))
data/uhub-0.4.1/src/util/getopt.c:30:5:  [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.
int getopt(int argc, char* const argv[], const char *optstring)
data/uhub-0.4.1/src/util/getopt.h:27:12:  [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.
extern int getopt(int argc, char* const argv[], const char *optstring);
data/uhub-0.4.1/src/util/threads.c:101:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(mutex);
data/uhub-0.4.1/src/util/threads.c:111:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(mutex);
data/uhub-0.4.1/src/adc/message.c:135: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(buf, msg->cache, msg->length);
data/uhub-0.4.1/src/adc/message.c:154: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(&msg->cache[msg->length], string, len);
data/uhub-0.4.1/src/adc/message.c:280: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(copy->cache, cmd->cache, cmd->length);
data/uhub-0.4.1/src/adc/message.c:334: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 temp_sid[5];
data/uhub-0.4.1/src/adc/message.c:368: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(command->cache, line, length);
data/uhub-0.4.1/src/adc/message.c:592:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_remove_named_argument(struct adc_message* cmd, const char prefix_[2])
data/uhub-0.4.1/src/adc/message.c:598: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 prefix[4] = { ' ', prefix_[0], prefix_[1], '\0' };
data/uhub-0.4.1/src/adc/message.c:646:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_has_named_argument(struct adc_message* cmd, const char prefix_[2])
data/uhub-0.4.1/src/adc/message.c:650: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 prefix[4] = { ' ', prefix_[0], prefix_[1], '\0' };
data/uhub-0.4.1/src/adc/message.c:669:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* adc_msg_get_named_argument(struct adc_message* cmd, const char prefix_[2])
data/uhub-0.4.1/src/adc/message.c:675: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 prefix[4] = { ' ', prefix_[0], prefix_[1], '\0' };
data/uhub-0.4.1/src/adc/message.c:700:67:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_replace_named_argument(struct adc_message* cmd, const char prefix[2], const char* string)
data/uhub-0.4.1/src/adc/message.c:741:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_add_named_argument(struct adc_message* cmd, const char prefix[2], const char* string)
data/uhub-0.4.1/src/adc/message.c:757:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_add_named_argument_string(struct adc_message* cmd, const char prefix[2], const char* string)
data/uhub-0.4.1/src/adc/message.c:765:67:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_add_named_argument_int(struct adc_message* cmd, const char prefix[2], int num)
data/uhub-0.4.1/src/adc/message.c:772:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_add_named_argument_uint64(struct adc_message* cmd, const char prefix[2], uint64_t num)
data/uhub-0.4.1/src/adc/message.c:843:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int adc_msg_get_argument_index(struct adc_message* cmd, const char prefix[2])
data/uhub-0.4.1/src/adc/message.h:107:73:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_remove_named_argument(struct adc_message* cmd, const char prefix[2]);
data/uhub-0.4.1/src/adc/message.h:115:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_has_named_argument(struct adc_message* cmd, const char prefix[2]);
data/uhub-0.4.1/src/adc/message.h:127:72:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char* adc_msg_get_named_argument(struct adc_message* cmd, const char prefix[2]);
data/uhub-0.4.1/src/adc/message.h:137:76:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_get_named_argument_index(struct adc_message* cmd, const char prefix[2]);
data/uhub-0.4.1/src/adc/message.h:164:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_replace_named_argument(struct adc_message* cmd, const char prefix[2], const char* string);
data/uhub-0.4.1/src/adc/message.h:181:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_add_named_argument(struct adc_message* cmd, const char prefix[2], const char* string);
data/uhub-0.4.1/src/adc/message.h:191:77:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_add_named_argument_string(struct adc_message* cmd, const char prefix[2], const char* string);
data/uhub-0.4.1/src/adc/message.h:196:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_add_named_argument_int(struct adc_message* cmd, const char prefix[2], int integer);
data/uhub-0.4.1/src/adc/message.h:197:77:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int adc_msg_add_named_argument_uint64(struct adc_message* cmd, const char prefix[2], uint64_t num);
data/uhub-0.4.1/src/adc/sid.c:26: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 t_sid[5];
data/uhub-0.4.1/src/core/auth.c:102: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 buf1[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/core/auth.c:103: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 buf2[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/core/auth.c:443:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/uhub-0.4.1/src/core/auth.c:445: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 tiger_buf[MAX_CID_LEN+1];
data/uhub-0.4.1/src/core/auth.c:459:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/uhub-0.4.1/src/core/auth.c:462: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 raw_challenge[64];
data/uhub-0.4.1/src/core/auth.c:463: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 password_calc[64];
data/uhub-0.4.1/src/core/auth.c:480: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(&buf[0], access->password, password_len);
data/uhub-0.4.1/src/core/auth.c:481: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(&buf[password_len], raw_challenge, TIGERSIZE);
data/uhub-0.4.1/src/core/commands.c:455: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 pm_flag[7] = "PM";
data/uhub-0.4.1/src/core/commands.c:456: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 from_sid[5];
data/uhub-0.4.1/src/core/commands.c:463: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(pm_flag + 2, from_sid, sizeof(from_sid));
data/uhub-0.4.1/src/core/commands.c:560: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 rxbuf[64] = { "0 B" };
data/uhub-0.4.1/src/core/commands.c:561: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 txbuf[64] = { "0 B" };
data/uhub-0.4.1/src/core/hub.c:958:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void set_status_code(enum msg_status_level level, int code, char buffer[4])
data/uhub-0.4.1/src/core/hub.c:977: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 code[4];
data/uhub-0.4.1/src/core/hub.c:978:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/uhub-0.4.1/src/core/hub.c:1317: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(&loginfo->addr, &user->id.addr, sizeof(struct ip_addr_encap));
data/uhub-0.4.1/src/core/hub.h:90: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 cid[MAX_CID_LEN+1];
data/uhub-0.4.1/src/core/hub.h:91: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 nick[MAX_NICK_LEN+1];
data/uhub-0.4.1/src/core/inf.c: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 x_pid[64];
data/uhub-0.4.1/src/core/inf.c: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 raw_pid[64];
data/uhub-0.4.1/src/core/inf.c:145: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(user->id.cid, cid, MAX_CID_LEN);
data/uhub-0.4.1/src/core/inf.c:317: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(user->id.nick, nick, strlen(nick));
data/uhub-0.4.1/src/core/inf.c:379: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(user->id.user_agent, ua, MIN(strlen(ua), MAX_UA_LEN));
data/uhub-0.4.1/src/core/inf.c:430:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int shared_files = atoi(arg);
data/uhub-0.4.1/src/core/inf.c:447: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).
		int num = atoi(arg);
data/uhub-0.4.1/src/core/inf.c:457: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).
		int num = atoi(arg);
data/uhub-0.4.1/src/core/inf.c:467: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).
		int num = atoi(arg);
data/uhub-0.4.1/src/core/inf.c:477: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).
		int num = atoi(arg);
data/uhub-0.4.1/src/core/ioqueue.c:58: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(buf, q->buf, n);
data/uhub-0.4.1/src/core/ioqueue.c:86: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(q->buf, buf, bufsize);
data/uhub-0.4.1/src/core/main.c:410:19:  [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* pidfile = fopen(arg_pid, "w");
data/uhub-0.4.1/src/core/netevent.c:26: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 buf[MAX_RECV_BUF];
data/uhub-0.4.1/src/core/plugincallback.c: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 code_str[4];
data/uhub-0.4.1/src/core/probe.c:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char probe_recvbuf[PROBE_RECV_SIZE];
data/uhub-0.4.1/src/core/probe.c:55: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 buf[512];
data/uhub-0.4.1/src/core/probe.c:120: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(&probe->addr, addr, sizeof(struct ip_addr_encap));
data/uhub-0.4.1/src/core/user.c:25: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 buf[128];
data/uhub-0.4.1/src/core/user.c:55: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(&user->id.addr, addr, sizeof(struct ip_addr_encap));
data/uhub-0.4.1/src/core/user.c:112: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 prefix[2];
data/uhub-0.4.1/src/core/user.c:233:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int user_have_feature_cast_support(struct hub_user* user, char feature[4])
data/uhub-0.4.1/src/core/user.c:247:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int user_set_feature_cast_support(struct hub_user* u, char feature[4])
data/uhub-0.4.1/src/core/user.h:85: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 nick[MAX_NICK_LEN+1];    /** User's nick name */
data/uhub-0.4.1/src/core/user.h:86: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 cid[MAX_CID_LEN+1];      /** global client ID */
data/uhub-0.4.1/src/core/user.h:87: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 user_agent[MAX_UA_LEN+1];/** User agent string */
data/uhub-0.4.1/src/core/user.h:251:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int user_have_feature_cast_support(struct hub_user* user, char feature[4]);
data/uhub-0.4.1/src/core/user.h:259:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int user_set_feature_cast_support(struct hub_user* u, char feature[4]);
data/uhub-0.4.1/src/network/dnsresolver.c:187: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(&ipaddr->internal_ip_data.in, &addr4->sin_addr, sizeof(struct in_addr));
data/uhub-0.4.1/src/network/dnsresolver.c:192: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(&ipaddr->internal_ip_data.in6, &addr6->sin6_addr, sizeof(struct in6_addr));
data/uhub-0.4.1/src/network/ipcalc.c: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 buf[16];
data/uhub-0.4.1/src/network/ipcalc.c:94: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 address[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/network/ipcalc.c:153: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(addr, &addr6, sockaddr_size);
data/uhub-0.4.1/src/network/ipcalc.c:168: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(addr, &addr4, sockaddr_size);
data/uhub-0.4.1/src/network/ipcalc.c:481: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(&range->hi, &range->lo, sizeof(struct ip_addr_encap));
data/uhub-0.4.1/src/network/kqueue.c:257: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(&backend->changes[changes++], &con->ev_r, sizeof(struct kevent));
data/uhub-0.4.1/src/network/kqueue.c:263: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(&backend->changes[changes++], &con->ev_w, sizeof(struct kevent));
data/uhub-0.4.1/src/network/network.c:136: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 string[32];
data/uhub-0.4.1/src/network/network.c:391: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 address[INET6_ADDRSTRLEN+1] = { 0, };
data/uhub-0.4.1/src/network/network.c:401:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&ipaddr->internal_ip_data.in6, &addr6->sin6_addr, sizeof(struct in6_addr));
data/uhub-0.4.1/src/network/network.c:406: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(&ipaddr->internal_ip_data.in, &addr4->sin_addr, sizeof(struct in_addr));
data/uhub-0.4.1/src/network/network.c:584: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(dst, &addr6.sin6_addr, sizeof(addr6.sin6_addr));
data/uhub-0.4.1/src/network/network.c:588: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(dst, &addr4.sin_addr, sizeof(addr4.sin_addr));
data/uhub-0.4.1/src/network/network.c:599: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 address[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/network/network.c:638: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 address[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/plugin_api/types.h:51: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 nick[MAX_NICK_LEN+1];
data/uhub-0.4.1/src/plugin_api/types.h:52: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 cid[MAX_CID_LEN+1];
data/uhub-0.4.1/src/plugin_api/types.h:53: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 user_agent[MAX_UA_LEN+1];
data/uhub-0.4.1/src/plugin_api/types.h: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 nickname[MAX_NICK_LEN+1];
data/uhub-0.4.1/src/plugin_api/types.h: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 password[MAX_PASS_LEN+1];
data/uhub-0.4.1/src/plugin_api/types.h:89: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 nickname[MAX_NICK_LEN+1];      /* Nickname - only defined if (ban_nickname & flags). */
data/uhub-0.4.1/src/plugin_api/types.h:90: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 cid[MAX_CID_LEN+1];            /* CID - only defined if (ban_cid & flags). */
data/uhub-0.4.1/src/plugins/mod_auth_simple.c:185: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(data, info, sizeof(struct auth_info));
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:46: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 query[1024];
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:137: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 out[1024];
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:180: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 query[1024];
data/uhub-0.4.1/src/plugins/mod_chat_only.c:70: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(u, data->users, data->max_users);
data/uhub-0.4.1/src/plugins/mod_logging.c:61: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).
	data->fd = open(data->logfile, flags, 0664);
data/uhub-0.4.1/src/plugins/mod_logging.c:176: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 logmsg[1024];
data/uhub-0.4.1/src/plugins/mod_welcome.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAX_WELCOME_SIZE];
data/uhub-0.4.1/src/plugins/mod_welcome.c:51: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(filename, O_RDONLY);
data/uhub-0.4.1/src/system.h:282:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open _open
data/uhub-0.4.1/src/tools/adcclient.c:94: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 logmsg[1024];
data/uhub-0.4.1/src/tools/adcclient.c:139: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 seed[64];
data/uhub-0.4.1/src/tools/adcclient.c:140: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 pid[64];
data/uhub-0.4.1/src/tools/adcclient.c:141: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 cid[64];
data/uhub-0.4.1/src/tools/adcclient.c:388: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 buf[BIG_BUFSIZE];
data/uhub-0.4.1/src/tools/adcclient.c:693: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(&addr4->sin_addr, &ipaddr->internal_ip_data.in, sizeof(struct in_addr));
data/uhub-0.4.1/src/tools/adcclient.c:702: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(&addr6->sin6_addr, &ipaddr->internal_ip_data.in6, sizeof(struct in6_addr));
data/uhub-0.4.1/src/tools/adcclient.h:83: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 cid[MAX_CID_LEN+1];
data/uhub-0.4.1/src/tools/adcclient.h:84: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 name[MAX_NICK_LEN+1];
data/uhub-0.4.1/src/tools/adcclient.h:85: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 description[MAX_DESC_LEN+1];
data/uhub-0.4.1/src/tools/adcclient.h:86: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 address[INET6_ADDRSTRLEN+1];
data/uhub-0.4.1/src/tools/adcclient.h:87: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 version[MAX_UA_LEN+1];
data/uhub-0.4.1/src/tools/adcclient.h:94: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 message[128]; // optional
data/uhub-0.4.1/src/tools/adcrush.c:127: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 logmsg[1024];
data/uhub-0.4.1/src/tools/adcrush.c:201: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 tmp[256];
data/uhub-0.4.1/src/tools/adcrush.c:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024] = { 0, };
data/uhub-0.4.1/src/tools/adcrush.c:229:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16] = { 0, };
data/uhub-0.4.1/src/tools/adcrush.c:406: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 rxbuf[64] = { "0 B" };
data/uhub-0.4.1/src/tools/adcrush.c:407: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 txbuf[64] = { "0 B" };
data/uhub-0.4.1/src/tools/adcrush.c:442: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 nick[20];
data/uhub-0.4.1/src/tools/admin.c:27: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(&g_usermap[user->sid], user, sizeof(struct ADC_user));
data/uhub-0.4.1/src/tools/uhub-passwd.c: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 query[1024];
data/uhub-0.4.1/src/util/cbuffer.c:75: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(buf->buf + buf->size, msg, len);
data/uhub-0.4.1/src/util/cbuffer.c:89: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 tmp[1024];
data/uhub-0.4.1/src/util/cbuffer.c:101: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 tmp[1024];
data/uhub-0.4.1/src/util/log.c:65:12:  [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).
	memfile = fopen(MEMORY_DEBUG_FILE, "w");
data/uhub-0.4.1/src/util/log.c:74:12:  [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).
	netdump = fopen(NETWORK_DUMP_FILE, "w");
data/uhub-0.4.1/src/util/log.c:97:12:  [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).
	logfile = fopen(file, "a");
data/uhub-0.4.1/src/util/log.c:148: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 logmsg[1024];
data/uhub-0.4.1/src/util/log.c:149: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 timestamp[32];
data/uhub-0.4.1/src/util/memory.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, s, size);
data/uhub-0.4.1/src/util/memory.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, s, size);
data/uhub-0.4.1/src/util/memory.c:219: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).
	functrace = fopen(FTRACE_LOG, "w");
data/uhub-0.4.1/src/util/misc.c:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAX_RECV_BUF];
data/uhub-0.4.1/src/util/misc.c:240:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(file, 0);
data/uhub-0.4.1/src/util/misc.c:331: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 buf[22];
data/uhub-0.4.1/src/util/misc.c:339: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 buf[22];
data/uhub-0.4.1/src/util/misc.c:351: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(tmp, string, max);
data/uhub-0.4.1/src/util/misc.c:418: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 ts[32] = {0, };
data/uhub-0.4.1/src/adc/message.c:30:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uhub_assert(X->length == strlen(X->cache));
data/uhub-0.4.1/src/adc/message.c:532:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return adc_msg_parse(line, strlen(line));
data/uhub-0.4.1/src/adc/message.c:623: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).
			endlen = strlen(end);
data/uhub-0.4.1/src/adc/message.c:633:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			adc_msg_set_length(cmd, cmd->length - strlen(start));
data/uhub-0.4.1/src/adc/message.c:752:36:  [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).
	adc_msg_cache_append(cmd, string, strlen(string));
data/uhub-0.4.1/src/adc/message.c:785:36:  [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).
	adc_msg_cache_append(cmd, string, strlen(string));
data/uhub-0.4.1/src/adc/message.c:815:43:  [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 (argument && *argument && argument[strlen(argument)-1] == '\n')
data/uhub-0.4.1/src/adc/message.c:816:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					argument[strlen(argument)-1] = 0;
data/uhub-0.4.1/src/adc/message.c:977: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).
	for (i = 0; i < strlen(string); i++)
data/uhub-0.4.1/src/adc/sid.c:51:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!sid || strlen(sid) != 4) return 0;
data/uhub-0.4.1/src/adc/sid.c:54:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (x = 0; x < strlen(BASE32_ALPHABET); x++)
data/uhub-0.4.1/src/core/auth.c:30:26:  [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 (!strncmp(line, cmd, strlen(cmd)))
data/uhub-0.4.1/src/core/auth.c:32:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		data = &line[strlen(cmd)];
data/uhub-0.4.1/src/core/auth.c:56:26:  [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 (!strncmp(line, cmd, strlen(cmd)))
data/uhub-0.4.1/src/core/auth.c:58:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		data = &line[strlen(cmd)];
data/uhub-0.4.1/src/core/auth.c:88:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(info->nickname, data, MAX_NICK_LEN);
data/uhub-0.4.1/src/core/auth.c:90:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(info->password, data_extra, MAX_PASS_LEN);
data/uhub-0.4.1/src/core/auth.c:126:26:  [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 (!strncmp(line, cmd, strlen(cmd)))
data/uhub-0.4.1/src/core/auth.c:128:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		data = &line[strlen(cmd)];
data/uhub-0.4.1/src/core/auth.c:309:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(data.nickname, name, MAX_NICK_LEN);
data/uhub-0.4.1/src/core/auth.c:450:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tiger((uint64_t*) buf, strlen(buf), (uint64_t*) tiger_res);
data/uhub-0.4.1/src/core/auth.c:467:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!password || !user || strlen(password) != MAX_CID_LEN)
data/uhub-0.4.1/src/core/auth.c:478:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	password_len = strlen(access->password);
data/uhub-0.4.1/src/core/command_parser.c:81:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				size += (strlen(tmp) + 1);
data/uhub-0.4.1/src/core/command_parser.c:87:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(token, " ");
data/uhub-0.4.1/src/core/commands.c:72:29:  [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).
	uhub_assert(cmd->length == strlen(cmd->prefix));
data/uhub-0.4.1/src/core/commands.c:99:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t prefix_len = strlen(prefix);
data/uhub-0.4.1/src/core/commands.c:122:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		arg_count = strlen(handler->args);
data/uhub-0.4.1/src/core/commands.c:155: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).
	struct adc_message* command = adc_msg_construct(ADC_CMD_IMSG, strlen(buffer) + 6);
data/uhub-0.4.1/src/core/commands.c:198: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).
	for (n = 0; n < strlen(handler->args); n++)
data/uhub-0.4.1/src/core/commands.c:277:53:  [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).
	struct cbuffer* buf = cbuf_create(cbuf_size(msg) + strlen(cmd->prefix) + 7);
data/uhub-0.4.1/src/core/commands.c:300:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				for (n = strlen(command->prefix); n < cbase->prefix_length_max; n++)
data/uhub-0.4.1/src/core/commands.c:454:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t message_len = strlen(message);
data/uhub-0.4.1/src/core/commands.c:498:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t search_len = strlen(search);
data/uhub-0.4.1/src/core/commands.c:524:132:  [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 (memmem(log->cid, MAX_CID_LEN, search, search_len) || memmem(log->nick, MAX_NICK_LEN, search, search_len) || memmem(address, strlen(address), search, search_len))
data/uhub-0.4.1/src/core/commands.c:589:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	handle->length = strlen(prefix);
data/uhub-0.4.1/src/core/hub.c:174: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(arg) == 6)
data/uhub-0.4.1/src/core/hub.c:236:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				struct adc_message* message = adc_msg_construct(ADC_CMD_IMSG, 6 + strlen(tmp));
data/uhub-0.4.1/src/core/hub.c:919:61:  [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).
	hub->command_support = adc_msg_construct(ADC_CMD_ISUP, 6 + strlen(ADC_PROTO_SUPPORT));
data/uhub-0.4.1/src/core/hub.c:925:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hub->command_banner = adc_msg_construct(ADC_CMD_ISTA, 100 + strlen(server));
data/uhub-0.4.1/src/core/inf.c:55: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).
		while (strlen(it) > 4)
data/uhub-0.4.1/src/core/inf.c:106: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(cid) != MAX_CID_LEN)
data/uhub-0.4.1/src/core/inf.c:113: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(pid) != MAX_CID_LEN)
data/uhub-0.4.1/src/core/inf.c:234:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = strlen(nick);
data/uhub-0.4.1/src/core/inf.c:317:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(user->id.nick, nick, strlen(nick));
data/uhub-0.4.1/src/core/inf.c:318:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		user->id.nick[strlen(nick)] = 0;
data/uhub-0.4.1/src/core/inf.c:379:40:  [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(user->id.user_agent, ua, MIN(strlen(ua), MAX_UA_LEN));
data/uhub-0.4.1/src/core/plugincallback.c:63: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).
	struct adc_message* command = adc_msg_construct(ADC_CMD_IMSG, strlen(buffer) + 6);
data/uhub-0.4.1/src/core/plugincallback.c:75: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).
	struct adc_message* command = adc_msg_construct(ADC_CMD_ISTA, strlen(buffer) + 10);
data/uhub-0.4.1/src/core/plugincallback.c:163:45:  [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).
	command = adc_msg_construct(ADC_CMD_IINF, (strlen(new_str) + 8));
data/uhub-0.4.1/src/core/plugincallback.c:180:45:  [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).
	command = adc_msg_construct(ADC_CMD_IINF, (strlen(new_str) + 8));
data/uhub-0.4.1/src/core/user.c:132: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(argument) >= 2)
data/uhub-0.4.1/src/network/ipcalc.c:29:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!address || strlen(address) > 15 || strlen(address) < 7)
data/uhub-0.4.1/src/network/ipcalc.c:29:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!address || strlen(address) > 15 || strlen(address) < 7)
data/uhub-0.4.1/src/network/ipcalc.c:32: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).
	for (; i < strlen(address); i++)
data/uhub-0.4.1/src/plugin_api/command_api.h:71:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		PTR->length = strlen(PREFIX); \
data/uhub-0.4.1/src/plugins/mod_auth_simple.c:43:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(data->nickname, nick, MAX_NICK_LEN);
data/uhub-0.4.1/src/plugins/mod_auth_simple.c:44:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(data->password, pass, MAX_PASS_LEN);
data/uhub-0.4.1/src/plugins/mod_auth_simple.c:80:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(token);
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:140: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).
	for (; n < strlen(str); n++)
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:160:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(data->data->nickname, argv[i], MAX_NICK_LEN);
data/uhub-0.4.1/src/plugins/mod_auth_sqlite.c:162:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(data->data->password, argv[i], MAX_PASS_LEN);
data/uhub-0.4.1/src/plugins/mod_chat_history.c:44:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t loglen = strlen(message) + strlen(from->nick) + 13;
data/uhub-0.4.1/src/plugins/mod_chat_history.c:44:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t loglen = strlen(message) + strlen(from->nick) + 13;
data/uhub-0.4.1/src/plugins/mod_chat_history.c:117:53:  [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).
	struct cbuffer* msg = cbuf_create(cbuf_size(buf) + strlen(cmd->prefix) + 8);
data/uhub-0.4.1/src/plugins/mod_welcome.c:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, MAX_WELCOME_SIZE);
data/uhub-0.4.1/src/plugins/mod_welcome.c:166:36:  [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).
	struct cbuffer* buf = cbuf_create(strlen(msg));
data/uhub-0.4.1/src/system.h:284:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/uhub-0.4.1/src/tools/adcclient.c:149:26:  [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).
	tiger((uint64_t*) seed, strlen(seed), tiger_res1);
data/uhub-0.4.1/src/tools/adcclient.c:725: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(arg) < 9)
data/uhub-0.4.1/src/tools/adcclient.c:746:20:  [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 (split == 0 || strlen(split) < 2 || strlen(split) > 6)
data/uhub-0.4.1/src/tools/adcclient.c:746:41:  [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 (split == 0 || strlen(split) < 2 || strlen(split) > 6)
data/uhub-0.4.1/src/tools/adcrush.c:172:109:  [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).
		cmd = adc_msg_construct_source_dest(ADC_CMD_DMSG, ADC_client_get_sid(client), ADC_client_get_sid(client), strlen(msg));
data/uhub-0.4.1/src/tools/adcrush.c:174:76:  [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).
		cmd = adc_msg_construct_source(ADC_CMD_BMSG, ADC_client_get_sid(client), strlen(msg));
data/uhub-0.4.1/src/tools/adcrush.c:188:76:  [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).
		cmd = adc_msg_construct_source(ADC_CMD_FSCH, ADC_client_get_sid(client), strlen(search_messages[r]) + 6);
data/uhub-0.4.1/src/tools/adcrush.c:193:76:  [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).
		cmd = adc_msg_construct_source(ADC_CMD_BSCH, ADC_client_get_sid(client), strlen(search_messages[r]) + 6);
data/uhub-0.4.1/src/tools/adcrush.c:202:108:  [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).
	struct adc_message* cmd = adc_msg_construct_source_dest(ADC_CMD_DRES, ADC_client_get_sid(client), target, strlen(what) + strlen(token) + 64);
data/uhub-0.4.1/src/tools/adcrush.c:202:123:  [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).
	struct adc_message* cmd = adc_msg_construct_source_dest(ADC_CMD_DRES, ADC_client_get_sid(client), target, strlen(what) + strlen(token) + 64);
data/uhub-0.4.1/src/tools/adcrush.c:487:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!arg || strlen(arg) < 9)
data/uhub-0.4.1/src/tools/adcrush.c:506:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cfg_debug += strlen(argv[opt]) - 1;
data/uhub-0.4.1/src/tools/uhub-passwd.c:72:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (n = 0, size = strlen(str); n < strlen(str); n++)
data/uhub-0.4.1/src/tools/uhub-passwd.c:72:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (n = 0, size = strlen(str); n < strlen(str); n++)
data/uhub-0.4.1/src/tools/uhub-passwd.c:77:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (n = 0, i = 0; n < strlen(str); n++)
data/uhub-0.4.1/src/tools/uhub-passwd.c:113: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(username) > MAX_NICK_LEN)
data/uhub-0.4.1/src/tools/uhub-passwd.c:147: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(password) > MAX_PASS_LEN)
data/uhub-0.4.1/src/util/cbuffer.c:47:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf->size = strlen(buffer);
data/uhub-0.4.1/src/util/cbuffer.c:82:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(msg);
data/uhub-0.4.1/src/util/config_token.c:33:41:  [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* buffer = (char*) hub_malloc_zero(strlen(line) + 1);
data/uhub-0.4.1/src/util/credentials.c:83: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).
	switch (strlen(str))
data/uhub-0.4.1/src/util/memory.c:161:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t size = strlen(s);
data/uhub-0.4.1/src/util/memory.c:173:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t size = MIN(strlen(s), n);
data/uhub-0.4.1/src/util/misc.c:60:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pos = &string[strlen(string)-1];
data/uhub-0.4.1/src/util/misc.c:99:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return is_valid_utf8_str(string, strlen(string));
data/uhub-0.4.1/src/util/misc.c:247:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, MAX_RECV_BUF-1);
data/uhub-0.4.1/src/util/misc.c:272: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(value);
data/uhub-0.4.1/src/util/misc.c:288: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(value);
data/uhub-0.4.1/src/util/misc.c:349:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t max = MIN(strlen(string), n);
data/uhub-0.4.1/src/util/misc.c:410: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).
		string += strlen(split);
data/uhub-0.4.1/src/util/misc.c:477: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).
	switch (strlen(str))
data/uhub-0.4.1/src/util/misc.c:514:8:  [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(line);

ANALYSIS SUMMARY:

Hits = 281
Lines analyzed = 25264 in approximately 0.70 seconds (35905 lines/second)
Physical Source Lines of Code (SLOC) = 18125
Hits@level = [0] 203 [1] 100 [2] 148 [3]   8 [4]  25 [5]   0
Hits@level+ = [0+] 484 [1+] 281 [2+] 181 [3+]  33 [4+]  25 [5+]   0
Hits/KSLOC@level+ = [0+] 26.7034 [1+] 15.5034 [2+] 9.98621 [3+] 1.82069 [4+] 1.37931 [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.