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/ebtables-2.0.11/useful_functions.c
Examining data/ebtables-2.0.11/libebtc.c
Examining data/ebtables-2.0.11/include/linux/types.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_vlan.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_stp.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_redirect.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_pkttype.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_nflog.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_nat.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_mark_t.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_mark_m.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_log.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_limit.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ip6.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ip.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arpreply.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arp.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_among.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_802_3.h
Examining data/ebtables-2.0.11/include/linux/netfilter_bridge.h
Examining data/ebtables-2.0.11/include/linux/netfilter/xt_AUDIT.h
Examining data/ebtables-2.0.11/include/ethernetdb.h
Examining data/ebtables-2.0.11/include/ebtables_u.h
Examining data/ebtables-2.0.11/getethertype.c
Examining data/ebtables-2.0.11/extensions/ebtable_nat.c
Examining data/ebtables-2.0.11/extensions/ebtable_filter.c
Examining data/ebtables-2.0.11/extensions/ebtable_broute.c
Examining data/ebtables-2.0.11/extensions/ebt_vlan.c
Examining data/ebtables-2.0.11/extensions/ebt_ulog.c
Examining data/ebtables-2.0.11/extensions/ebt_string.c
Examining data/ebtables-2.0.11/extensions/ebt_stp.c
Examining data/ebtables-2.0.11/extensions/ebt_standard.c
Examining data/ebtables-2.0.11/extensions/ebt_redirect.c
Examining data/ebtables-2.0.11/extensions/ebt_nflog.c
Examining data/ebtables-2.0.11/extensions/ebt_nat.c
Examining data/ebtables-2.0.11/extensions/ebt_mark_m.c
Examining data/ebtables-2.0.11/extensions/ebt_mark.c
Examining data/ebtables-2.0.11/extensions/ebt_log.c
Examining data/ebtables-2.0.11/extensions/ebt_limit.c
Examining data/ebtables-2.0.11/extensions/ebt_ip6.c
Examining data/ebtables-2.0.11/extensions/ebt_ip.c
Examining data/ebtables-2.0.11/extensions/ebt_inat.c
Examining data/ebtables-2.0.11/extensions/ebt_arpreply.c
Examining data/ebtables-2.0.11/extensions/ebt_arp.c
Examining data/ebtables-2.0.11/extensions/ebt_among.c
Examining data/ebtables-2.0.11/extensions/ebt_AUDIT.c
Examining data/ebtables-2.0.11/extensions/ebt_802_3.c
Examining data/ebtables-2.0.11/extensions/ebt_pkttype.c
Examining data/ebtables-2.0.11/examples/ulog/test_ulog.c
Examining data/ebtables-2.0.11/ebtablesu.c
Examining data/ebtables-2.0.11/ebtablesd.c
Examining data/ebtables-2.0.11/ebtables.c
Examining data/ebtables-2.0.11/ebtables-standalone.c
Examining data/ebtables-2.0.11/ebtables-restore.c
Examining data/ebtables-2.0.11/communication.c

FINAL RESULTS:

data/ebtables-2.0.11/communication.c:65: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(new->name, u_repl->name);
data/ebtables-2.0.11/communication.c:122: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(hlp->name, entries->name);
data/ebtables-2.0.11/communication.c:133:4:  [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(tmp->in, e->in);
data/ebtables-2.0.11/communication.c:134:4:  [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(tmp->out, e->out);
data/ebtables-2.0.11/communication.c:135:4:  [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(tmp->logical_in, e->logical_in);
data/ebtables-2.0.11/communication.c:136:4:  [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(tmp->logical_out, e->logical_out);
data/ebtables-2.0.11/communication.c:476: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(new->in, e->in);
data/ebtables-2.0.11/communication.c:477: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(new->out, e->out);
data/ebtables-2.0.11/communication.c:478: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(new->logical_in, e->logical_in);
data/ebtables-2.0.11/communication.c:479: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(new->logical_out, e->logical_out);
data/ebtables-2.0.11/communication.c:580: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(new->name, entries->name);
data/ebtables-2.0.11/communication.c:602: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(hlp, repl->name);
data/ebtables-2.0.11/communication.c:715: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(repl.name, u_repl->name);
data/ebtables-2.0.11/communication.c:722: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(u_repl->name, repl.name);
data/ebtables-2.0.11/ebtables.c:327:5:  [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("-c %"PRIu64" %"PRIu64, pcnt, bcnt);
data/ebtables-2.0.11/ebtables.c:329:5:  [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(", pcnt = %"PRIu64" -- bcnt = %"PRIu64, pcnt, bcnt);
data/ebtables-2.0.11/ebtables.c:561:4:  [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(replace->filename, buffer);
data/ebtables-2.0.11/ebtables.c:786:4:  [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(replace->name, optarg);
data/ebtables-2.0.11/ebtables.c:811: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(new_entry->in, optarg);
data/ebtables-2.0.11/ebtables.c:824: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(new_entry->logical_in, optarg);
data/ebtables-2.0.11/ebtables.c:837: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(new_entry->out, optarg);
data/ebtables-2.0.11/ebtables.c:850: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(new_entry->logical_out, optarg);
data/ebtables-2.0.11/ebtables.c:1041:4:  [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(replace->filename, optarg);
data/ebtables-2.0.11/ebtablesd.c:64:3:  [4] (shell) execvp:
  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.
		execvp(args[0], args);
data/ebtables-2.0.11/ebtablesd.c:259:4:  [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(tmp.filename, argv[3]);
data/ebtables-2.0.11/ebtablesd.c:335:4:  [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(replace[i].filename, argv[3]);
data/ebtables-2.0.11/ebtablesu.c:78: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(pos, argv[i]);
data/ebtables-2.0.11/extensions/ebt_log.c:125: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((char *)loginfo->prefix, (char *)optarg);
data/ebtables-2.0.11/extensions/ebt_nflog.c: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(info->prefix, optarg);
data/ebtables-2.0.11/extensions/ebt_ulog.c:81: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(uloginfo->prefix, optarg);
data/ebtables-2.0.11/extensions/ebt_ulog.c:150:3:  [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(CP_NO_LIMIT_S);
data/ebtables-2.0.11/include/ebtables_u.h:398:23:  [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.
#define PRINT_VERSION printf(PROGNAME" v"PROGVERSION" (legacy) ("PROGDATE")\n")
data/ebtables-2.0.11/libebtc.c:272:4:  [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(m->m->u.name, m->name);
data/ebtables-2.0.11/libebtc.c:286:4:  [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(w->w->u.name, w->name);
data/ebtables-2.0.11/libebtc.c:299:4:  [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(t->t->u.name, t->name);
data/ebtables-2.0.11/libebtc.c:376:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/ebtables-2.0.11/libebtc.c:872: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(new->name, name);
data/ebtables-2.0.11/libebtc.c:923: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(entries->name, name);
data/ebtables-2.0.11/libebtc.c:1212: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(m->m->u.name, m->name);
data/ebtables-2.0.11/libebtc.c:1230: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(w->w->u.name, w->name);
data/ebtables-2.0.11/libebtc.c:1247: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(t->t->u.name, t->name);
data/ebtables-2.0.11/libebtc.c:1292: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(stderr, PROGNAME" v"PROGVERSION":%s:%d:--BUG--: \n", file, line);
data/ebtables-2.0.11/libebtc.c:1293:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, l);
data/ebtables-2.0.11/libebtc.c:1312: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(ebt_errormsg, ERRORMSG_MAXLEN, format, l);
data/ebtables-2.0.11/libebtc.c:1315:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, format, l);
data/ebtables-2.0.11/useful_functions.c:451:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "/%s", ebt_ip6_to_numeric(msk));
data/ebtables-2.0.11/useful_functions.c:570:3:  [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("%"PRIu8 ":%" PRIu8, type[0], type[1]);
data/ebtables-2.0.11/useful_functions.c:585: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("%"PRIu8, type[0]);
data/ebtables-2.0.11/ebtables-restore.c:59:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc_, argv_, "n", options, NULL)) != -1) {
data/ebtables-2.0.11/ebtables.c:556:12:  [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.
		buffer = getenv(ATOMIC_ENV_VARIABLE);
data/ebtables-2.0.11/ebtables.c:584:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv,
data/ebtables-2.0.11/communication.c:148: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(p, m_l->m, m_l->m->match_size +
data/ebtables-2.0.11/communication.c:157: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(p, w_l->w, w_l->w->watcher_size +
data/ebtables-2.0.11/communication.c:164: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(p, e->t, e->t->target_size +
data/ebtables-2.0.11/communication.c:205: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(data, repl, sizeof(struct ebt_replace));
data/ebtables-2.0.11/communication.c:206: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(data + sizeof(struct ebt_replace), (char *)repl->entries,
data/ebtables-2.0.11/communication.c:264: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).
	if (!(file = fopen(filename, "r+b"))) {
data/ebtables-2.0.11/communication.c:414: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(new->m, m, m->match_size + sizeof(struct ebt_entry_match));
data/ebtables-2.0.11/communication.c:441: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(new->w, w, w->watcher_size + sizeof(struct ebt_entry_watcher));
data/ebtables-2.0.11/communication.c:512: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(new->t, t, t->target_size +
data/ebtables-2.0.11/communication.c:593: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).
	if (!(file = fopen(filename, "r+b"))) {
data/ebtables-2.0.11/ebtables-restore.c:46:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[0].name, "filter");
data/ebtables-2.0.11/ebtables-restore.c:47:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[1].name, "nat");
data/ebtables-2.0.11/ebtables-restore.c:48:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[2].name, "broute");
data/ebtables-2.0.11/ebtables-restore.c:55: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 *argv[EBTD_ARGC_MAX], cmdline[EBTD_CMDLINE_MAXLN];
data/ebtables-2.0.11/ebtables-standalone.c:11:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace.name, "filter");
data/ebtables-2.0.11/ebtables.c:136: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(merge, oldopts, num_old * sizeof(struct option));
data/ebtables-2.0.11/ebtablesd.c:45:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[0].name, "filter");
data/ebtables-2.0.11/ebtablesd.c:46:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[1].name, "nat");
data/ebtables-2.0.11/ebtablesd.c:47:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(replace[2].name, "broute");
data/ebtables-2.0.11/ebtablesd.c: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 *argv[EBTD_ARGC_MAX], *args[4], name[] = "mkdir",
data/ebtables-2.0.11/ebtablesd.c:80:16:  [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).
	if ((readfd = open(EBTD_PIPE, O_RDONLY | O_NONBLOCK, 0)) == -1) {
data/ebtables-2.0.11/ebtablesd.c:254:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			tmp.filename = (char *)malloc(strlen(argv[3]) + 1);
data/ebtables-2.0.11/ebtablesd.c:260:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(tmp.name, "filter");
data/ebtables-2.0.11/ebtablesd.c:330:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			replace[i].filename = (char *)malloc(strlen(argv[3]) + 1);
data/ebtables-2.0.11/ebtablesu.c:69:17:  [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).
	if ((writefd = open(EBTD_PIPE, O_WRONLY, 0)) == -1) {
data/ebtables-2.0.11/examples/ulog/test_ulog.c:68: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.
static const char *hookstr[NF_BR_NUMHOOKS] =
data/ebtables-2.0.11/examples/ulog/test_ulog.c:80: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 buf[BUFLEN];
data/ebtables-2.0.11/examples/ulog/test_ulog.c:144: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_str[40], *ctmp;
data/ebtables-2.0.11/extensions/ebt_among.c:106: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(d, s, amount);
data/ebtables-2.0.11/extensions/ebt_among.c:185: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 mac[6];
data/ebtables-2.0.11/extensions/ebt_among.c:186: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 ip[4];
data/ebtables-2.0.11/extensions/ebt_among.c:189: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 token[4];
data/ebtables-2.0.11/extensions/ebt_among.c:260: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(((char *) workcopy->pool[nmacs].cmp) + 2, mac, 6);
data/ebtables-2.0.11/extensions/ebt_among.c:261: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(&(workcopy->pool[nmacs].ip), ip, 4);
data/ebtables-2.0.11/extensions/ebt_among.c:338: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).
			if ((fd = open(optarg, O_RDONLY)) == -1)
data/ebtables-2.0.11/extensions/ebt_among.c:365: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(h, *match, old_size+sizeof(struct ebt_entry_match));
data/ebtables-2.0.11/extensions/ebt_among.c:366: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((char *)h+old_size+sizeof(struct ebt_entry_match), wh,
data/ebtables-2.0.11/extensions/ebt_arpreply.c:63: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(replyinfo->mac, addr, ETH_ALEN);
data/ebtables-2.0.11/extensions/ebt_inat.c:116: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[4];
data/ebtables-2.0.11/extensions/ebt_inat.c: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 mac[6];
data/ebtables-2.0.11/extensions/ebt_inat.c:139: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).
				index = atoi(buf);
data/ebtables-2.0.11/extensions/ebt_inat.c:169: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(info->a[index].mac, mac, 6);
data/ebtables-2.0.11/extensions/ebt_inat.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 ip[4];
data/ebtables-2.0.11/extensions/ebt_inat.c:325: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 sub[4];
data/ebtables-2.0.11/extensions/ebt_inat.c:338: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 sub[4];
data/ebtables-2.0.11/extensions/ebt_limit.c:84:6:  [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).
	r = atoi(rate);
data/ebtables-2.0.11/extensions/ebt_nat.c:92: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(natinfo->mac, addr, ETH_ALEN);
data/ebtables-2.0.11/extensions/ebt_nat.c:127: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(natinfo->mac, addr, ETH_ALEN);
data/ebtables-2.0.11/extensions/ebt_string.c:81: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 hextmp[3];
data/ebtables-2.0.11/getethertype.c:51: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 line[BUFSIZ + 1];
data/ebtables-2.0.11/getethertype.c:53: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 *ethertype_aliases[MAXALIASES];
data/ebtables-2.0.11/getethertype.c:59: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).
		etherf = fopen(_PATH_ETHERTYPES, "r");
data/ebtables-2.0.11/getethertype.c:81: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).
	    && (etherf = fopen(_PATH_ETHERTYPES, "r")) == NULL) {
data/ebtables-2.0.11/include/ebtables_u.h:58: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[EBT_CHAIN_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h: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 name[EBT_TABLE_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h: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 name[EBT_TABLE_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h: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 in[IFNAMSIZ];
data/ebtables-2.0.11/include/ebtables_u.h: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 logical_in[IFNAMSIZ];
data/ebtables-2.0.11/include/ebtables_u.h:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[IFNAMSIZ];
data/ebtables-2.0.11/include/ebtables_u.h:129: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 logical_out[IFNAMSIZ];
data/ebtables-2.0.11/include/ebtables_u.h:130: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 sourcemac[ETH_ALEN];
data/ebtables-2.0.11/include/ebtables_u.h:131: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 sourcemsk[ETH_ALEN];
data/ebtables-2.0.11/include/ebtables_u.h:132: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 destmac[ETH_ALEN];
data/ebtables-2.0.11/include/ebtables_u.h:133: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 destmsk[ETH_ALEN];
data/ebtables-2.0.11/include/ebtables_u.h:149: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[EBT_FUNCTION_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h:183: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[EBT_FUNCTION_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h:207: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[EBT_FUNCTION_MAXNAMELEN];
data/ebtables-2.0.11/include/ebtables_u.h:367: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.
extern const char *ebt_hooknames[NF_BR_NUMHOOKS];
data/ebtables-2.0.11/include/ebtables_u.h:368: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.
extern const char *ebt_standard_targets[NUM_STANDARD_TARGETS];
data/ebtables-2.0.11/include/ebtables_u.h:369: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.
extern char ebt_errormsg[ERRORMSG_MAXLEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arp.h:28: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 smaddr[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arp.h:29: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 smmsk[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arp.h:30: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 dmaddr[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arp.h:31: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 dmmsk[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_arpreply.h:5: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 mac[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_nat.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 mac[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_nflog.h:20: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[EBT_NFLOG_PREFIX_SIZE];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_stp.h:28: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 root_addr[6], root_addrmsk[6];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_stp.h:31: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 sender_addr[6], sender_addrmsk[6];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h: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 prefix[EBT_ULOG_PREFIX_LEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:23: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 indev[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:24: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 outdev[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:25: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 physindev[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:26: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 physoutdev[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[EBT_ULOG_PREFIX_LEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebt_ulog.h:34: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 data[0] __attribute__
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:45: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[EBT_TABLE_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:61: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[EBT_TABLE_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:82: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[EBT_CHAIN_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.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 data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:125: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 name[EBT_EXTENSION_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:132: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 data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:138: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 name[EBT_EXTENSION_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:145: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 data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:151: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 name[EBT_EXTENSION_MAXNAMELEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h: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 data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:174: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 in[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:176: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 logical_in[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h: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 out[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h: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 logical_out[IFNAMSIZ];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:181: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 sourcemac[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:182: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 sourcemsk[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:183: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 destmac[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:184: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 destmsk[ETH_ALEN];
data/ebtables-2.0.11/include/linux/netfilter_bridge/ebtables.h:191: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 elems[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/ebtables-2.0.11/libebtc.c:45: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.
const char *ebt_hooknames[NF_BR_NUMHOOKS] =
data/ebtables-2.0.11/libebtc.c:147:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(LOCKFILE, O_CREAT, 00600);
data/ebtables-2.0.11/libebtc.c:336: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).
	procfile = open(PROC_SYS_MODPROBE, O_RDONLY);
data/ebtables-2.0.11/libebtc.c:361: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 *argv[3];
data/ebtables-2.0.11/libebtc.c:944: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(new, replace->chains, replace->max_chains/2*sizeof(void *));
data/ebtables-2.0.11/libebtc.c:1301:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char ebt_errormsg[ERRORMSG_MAXLEN];
data/ebtables-2.0.11/useful_functions.c:41:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char mac_type_unicast[ETH_ALEN] =   {0,0,0,0,0,0};
data/ebtables-2.0.11/useful_functions.c:42:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char msk_type_unicast[ETH_ALEN] =   {1,0,0,0,0,0};
data/ebtables-2.0.11/useful_functions.c:43:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char mac_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
data/ebtables-2.0.11/useful_functions.c:44:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char msk_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
data/ebtables-2.0.11/useful_functions.c:45:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char mac_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
data/ebtables-2.0.11/useful_functions.c:46:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char msk_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
data/ebtables-2.0.11/useful_functions.c:47:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char mac_type_bridge_group[ETH_ALEN] = {0x01,0x80,0xc2,0,0,0};
data/ebtables-2.0.11/useful_functions.c:48:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char msk_type_bridge_group[ETH_ALEN] = {255,255,255,255,255,255};
data/ebtables-2.0.11/useful_functions.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hlpmsk[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
data/ebtables-2.0.11/useful_functions.c:110: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(to, mac_type_unicast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:111: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(mask, msk_type_unicast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:115: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(to, mac_type_multicast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:116: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(mask, msk_type_multicast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:120: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(to, mac_type_broadcast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:121: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(mask, msk_type_broadcast, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:125: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(to, mac_type_bridge_group, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:126: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(mask, msk_type_bridge_group, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:133: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(mask, addr, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:138: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(to, addr, ETH_ALEN);
data/ebtables-2.0.11/useful_functions.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/ebtables-2.0.11/useful_functions.c:223: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(mask2, &mask22, 4);
data/ebtables-2.0.11/useful_functions.c:226: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(mask2, &mask22, 4);
data/ebtables-2.0.11/useful_functions.c:260: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[20];
data/ebtables-2.0.11/useful_functions.c:277:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "/%d", i);
data/ebtables-2.0.11/useful_functions.c:282:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "/%d.%d.%d.%d", ((unsigned char *)&mask)[0],
data/ebtables-2.0.11/useful_functions.c:293: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(dst, src, sizeof(struct in6_addr));
data/ebtables-2.0.11/useful_functions.c:382: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/ebtables-2.0.11/useful_functions.c:399:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "::");
data/ebtables-2.0.11/useful_functions.c:415: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[50+1];
data/ebtables-2.0.11/useful_functions.c:446: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[51+1];
data/ebtables-2.0.11/useful_functions.c:453:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "/%d", l);
data/ebtables-2.0.11/communication.c:599:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		hlp = (char *)malloc(strlen(repl->name) + 1);
data/ebtables-2.0.11/ebtables.c:558: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).
			replace->filename = malloc(strlen(buffer) + 1);
data/ebtables-2.0.11/ebtables.c:616: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).
				else if (strlen(optarg) >= EBT_CHAIN_MAXNAMELEN)
data/ebtables-2.0.11/ebtables.c:651: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).
				else if (strlen(argv[optind]) >= EBT_CHAIN_MAXNAMELEN)
data/ebtables-2.0.11/ebtables.c:784: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).
			if (strlen(optarg) > EBT_TABLE_MAXNAMELEN - 1)
data/ebtables-2.0.11/ebtables.c:808:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= IFNAMSIZ)
data/ebtables-2.0.11/ebtables.c:822:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= IFNAMSIZ)
data/ebtables-2.0.11/ebtables.c:835:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= IFNAMSIZ)
data/ebtables-2.0.11/ebtables.c:848:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= IFNAMSIZ)
data/ebtables-2.0.11/ebtables.c:1040:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			replace->filename = (char *)malloc(strlen(optarg) + 1);
data/ebtables-2.0.11/ebtablesd.c:99:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ntot = read(readfd, cmdline+offset, EBTD_CMDLINE_MAXLN-offset-1);
data/ebtables-2.0.11/ebtablesd.c:151: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).
			n2 += strlen(cmdline + base + n2) + 1;
data/ebtables-2.0.11/ebtablesd.c:254: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).
			tmp.filename = (char *)malloc(strlen(argv[3]) + 1);
data/ebtables-2.0.11/ebtablesd.c:330: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).
			replace[i].filename = (char *)malloc(strlen(argv[3]) + 1);
data/ebtables-2.0.11/ebtablesu.c:43: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(argv[i]);
data/ebtables-2.0.11/ebtablesu.c:79: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).
		pos += strlen(argv[i]);
data/ebtables-2.0.11/extensions/ebt_limit.c:70: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(delim+1) == 0)
data/ebtables-2.0.11/extensions/ebt_limit.c:73: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).
		if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0)
data/ebtables-2.0.11/extensions/ebt_limit.c:75: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).
		else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0)
data/ebtables-2.0.11/extensions/ebt_limit.c:77: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).
		else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0)
data/ebtables-2.0.11/extensions/ebt_limit.c:79: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).
		else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0)
data/ebtables-2.0.11/extensions/ebt_log.c:121: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(optarg) > sizeof(loginfo->prefix) - 1)
data/ebtables-2.0.11/extensions/ebt_nflog.c:71: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(optarg) > EBT_NFLOG_PREFIX_SIZE - 1)
data/ebtables-2.0.11/extensions/ebt_string.c:69: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(s) <= XT_STRING_MAX_PATTERN_SIZE) {
data/ebtables-2.0.11/extensions/ebt_string.c:70:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(info->pattern, s, XT_STRING_MAX_PATTERN_SIZE);
data/ebtables-2.0.11/extensions/ebt_string.c:83:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	slen = strlen(s);
data/ebtables-2.0.11/extensions/ebt_ulog.c:79: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(optarg) > EBT_ULOG_PREFIX_LEN - 1)
data/ebtables-2.0.11/libebtc.c:198:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(e->in, "");
data/ebtables-2.0.11/libebtc.c:199:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(e->out, "");
data/ebtables-2.0.11/libebtc.c:200:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(e->logical_in, "");
data/ebtables-2.0.11/libebtc.c:201:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(e->logical_out, "");
data/ebtables-2.0.11/libebtc.c:342:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(procfile, ret, 1024) == -1)
data/ebtables-2.0.11/useful_functions.c:187:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, ip, sizeof(buf) - 1);
data/ebtables-2.0.11/useful_functions.c:387:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, address, sizeof(buf) - 1);
data/ebtables-2.0.11/useful_functions.c:502: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).
		if (strncasecmp(icmp_codes[i].name, icmptype, strlen(icmptype)))

ANALYSIS SUMMARY:

Hits = 228
Lines analyzed = 11570 in approximately 0.34 seconds (33638 lines/second)
Physical Source Lines of Code (SLOC) = 9451
Hits@level = [0] 331 [1]  35 [2] 142 [3]   3 [4]  48 [5]   0
Hits@level+ = [0+] 559 [1+] 228 [2+] 193 [3+]  51 [4+]  48 [5+]   0
Hits/KSLOC@level+ = [0+] 59.1472 [1+] 24.1244 [2+] 20.4211 [3+] 5.39625 [4+] 5.07883 [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.