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/nftables-0.9.7/src/nfnl_osf.c
Examining data/nftables-0.9.7/src/utils.c
Examining data/nftables-0.9.7/src/exthdr.c
Examining data/nftables-0.9.7/src/socket.c
Examining data/nftables-0.9.7/src/erec.c
Examining data/nftables-0.9.7/src/xt.c
Examining data/nftables-0.9.7/src/parser_bison.h
Examining data/nftables-0.9.7/src/proto.c
Examining data/nftables-0.9.7/src/evaluate.c
Examining data/nftables-0.9.7/src/numgen.c
Examining data/nftables-0.9.7/src/ct.c
Examining data/nftables-0.9.7/src/statement.c
Examining data/nftables-0.9.7/src/print.c
Examining data/nftables-0.9.7/src/xfrm.c
Examining data/nftables-0.9.7/src/json.c
Examining data/nftables-0.9.7/src/cli.c
Examining data/nftables-0.9.7/src/netlink.c
Examining data/nftables-0.9.7/src/scanner.c
Examining data/nftables-0.9.7/src/datatype.c
Examining data/nftables-0.9.7/src/misspell.c
Examining data/nftables-0.9.7/src/main.c
Examining data/nftables-0.9.7/src/cmd.c
Examining data/nftables-0.9.7/src/libnftables.c
Examining data/nftables-0.9.7/src/hash.c
Examining data/nftables-0.9.7/src/netlink_delinearize.c
Examining data/nftables-0.9.7/src/rt.c
Examining data/nftables-0.9.7/src/netlink_linearize.c
Examining data/nftables-0.9.7/src/gmputil.c
Examining data/nftables-0.9.7/src/cache.c
Examining data/nftables-0.9.7/src/fib.c
Examining data/nftables-0.9.7/src/parser_bison.c
Examining data/nftables-0.9.7/src/osf.c
Examining data/nftables-0.9.7/src/iface.c
Examining data/nftables-0.9.7/src/mnl.c
Examining data/nftables-0.9.7/src/segtree.c
Examining data/nftables-0.9.7/src/meta.c
Examining data/nftables-0.9.7/src/payload.c
Examining data/nftables-0.9.7/src/mergesort.c
Examining data/nftables-0.9.7/src/ipopt.c
Examining data/nftables-0.9.7/src/expression.c
Examining data/nftables-0.9.7/src/monitor.c
Examining data/nftables-0.9.7/src/rule.c
Examining data/nftables-0.9.7/src/tcpopt.c
Examining data/nftables-0.9.7/src/mini-gmp.c
Examining data/nftables-0.9.7/src/rbtree.c
Examining data/nftables-0.9.7/src/parser_json.c
Examining data/nftables-0.9.7/include/exthdr.h
Examining data/nftables-0.9.7/include/payload.h
Examining data/nftables-0.9.7/include/parser.h
Examining data/nftables-0.9.7/include/netlink.h
Examining data/nftables-0.9.7/include/cmd.h
Examining data/nftables-0.9.7/include/rbtree.h
Examining data/nftables-0.9.7/include/misspell.h
Examining data/nftables-0.9.7/include/nftables.h
Examining data/nftables-0.9.7/include/osf.h
Examining data/nftables-0.9.7/include/gmputil.h
Examining data/nftables-0.9.7/include/tcpopt.h
Examining data/nftables-0.9.7/include/list.h
Examining data/nftables-0.9.7/include/fib.h
Examining data/nftables-0.9.7/include/socket.h
Examining data/nftables-0.9.7/include/headers.h
Examining data/nftables-0.9.7/include/numgen.h
Examining data/nftables-0.9.7/include/nftables/libnftables.h
Examining data/nftables-0.9.7/include/erec.h
Examining data/nftables-0.9.7/include/statement.h
Examining data/nftables-0.9.7/include/rule.h
Examining data/nftables-0.9.7/include/cli.h
Examining data/nftables-0.9.7/include/json.h
Examining data/nftables-0.9.7/include/xt.h
Examining data/nftables-0.9.7/include/mini-gmp.h
Examining data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h
Examining data/nftables-0.9.7/include/linux/netfilter_decnet.h
Examining data/nftables-0.9.7/include/linux/netfilter_bridge.h
Examining data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h
Examining data/nftables-0.9.7/include/linux/netfilter/nfnetlink_osf.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_synproxy.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_conntrack_common.h
Examining data/nftables-0.9.7/include/linux/netfilter/nfnetlink.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_conntrack_tuple_common.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_nat.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_log.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_tables_compat.h
Examining data/nftables-0.9.7/include/linux/netfilter/nf_tables.h
Examining data/nftables-0.9.7/include/linux/netfilter_ipv4.h
Examining data/nftables-0.9.7/include/linux/netfilter_arp.h
Examining data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h
Examining data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h
Examining data/nftables-0.9.7/include/linux/netfilter.h
Examining data/nftables-0.9.7/include/linux/netfilter_ipv6.h
Examining data/nftables-0.9.7/include/hash.h
Examining data/nftables-0.9.7/include/ct.h
Examining data/nftables-0.9.7/include/datatype.h
Examining data/nftables-0.9.7/include/meta.h
Examining data/nftables-0.9.7/include/utils.h
Examining data/nftables-0.9.7/include/ipopt.h
Examining data/nftables-0.9.7/include/proto.h
Examining data/nftables-0.9.7/include/xfrm.h
Examining data/nftables-0.9.7/include/rt.h
Examining data/nftables-0.9.7/include/iface.h
Examining data/nftables-0.9.7/include/mnl.h
Examining data/nftables-0.9.7/include/expression.h
Examining data/nftables-0.9.7/include/cache.h

FINAL RESULTS:

data/nftables-0.9.7/include/nftables.h:215:24:  [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.
	__attribute__((format(printf, 2, 3)));
data/nftables-0.9.7/include/nftables.h:217:24:  [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.
	__attribute__((format(printf, 2, 0)));
data/nftables-0.9.7/include/utils.h:24:31:  [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 pr_debug(fmt, arg...) printf(fmt, ##arg)
data/nftables-0.9.7/include/utils.h:32:49:  [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 __fmtstring(x, y)	__attribute__((format(printf, x, y)))
data/nftables-0.9.7/include/utils.h:42:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define BUG(fmt, arg...)	({ fprintf(stderr, "BUG: " fmt, ##arg); assert(0); })
data/nftables-0.9.7/src/erec.c:51: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.
__attribute__((format(printf, 3, 0)))
data/nftables-0.9.7/src/erec.c:69: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.
__attribute__((format(printf, 3, 4)))
data/nftables-0.9.7/src/evaluate.c:3731:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (sscanf(prio_str, "%s %c %d", prio_fst, &op, &prio_snd) < 3) {
data/nftables-0.9.7/src/libnftables.c:456:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(nlbuf, "%s\n", buf);
data/nftables-0.9.7/src/main.c:483:4:  [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(buf, argv[i]);
data/nftables-0.9.7/src/parser_bison.c:4046:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/nftables-0.9.7/src/parser_bison.c:8412:5:  [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(str, sizeof(str), "%s + %" PRIu64, (yyvsp[-2].string), (yyvsp[0].val));
data/nftables-0.9.7/src/parser_bison.c:8429:5:  [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(str, sizeof(str), "%s - %" PRIu64, (yyvsp[-2].string), (yyvsp[0].val));
data/nftables-0.9.7/src/parser_bison.c:10549:5:  [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(str, sizeof(str), "%" PRIu64, (yyvsp[0].val));
data/nftables-0.9.7/src/parser_json.c:67:3:  [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(buf, sep);
data/nftables-0.9.7/src/parser_json.c:72:3:  [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(buf, sep);
data/nftables-0.9.7/src/parser_json.c:77:3:  [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(buf, sep);
data/nftables-0.9.7/src/parser_json.c:82:3:  [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(buf, sep);
data/nftables-0.9.7/src/parser_json.c:87:3:  [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(buf, sep);
data/nftables-0.9.7/src/parser_json.c:125: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.
__attribute__((format(printf, 2, 3)))
data/nftables-0.9.7/src/parser_json.c:349: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, sizeof(buf),
data/nftables-0.9.7/src/print.c:20:8:  [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.
	ret = vfprintf(octx->output_fp, fmt, arg);
data/nftables-0.9.7/src/xt.c:272: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->u.user.name, tg->name);
data/nftables-0.9.7/src/cli.c:45:9:  [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.
	home = getenv("HOME");
data/nftables-0.9.7/src/main.c:363:9:  [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.
		val = getopt_long(argc, argv, optstring, options, NULL);
data/nftables-0.9.7/include/iface.h:8: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[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter/nfnetlink_osf.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	genre[MAXGENRELEN];
data/nftables-0.9.7/include/linux/netfilter/nfnetlink_osf.h:59: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	genre[MAXGENRELEN];
data/nftables-0.9.7/include/linux/netfilter/nfnetlink_osf.h:60: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[MAXGENRELEN];
data/nftables-0.9.7/include/linux/netfilter/nfnetlink_osf.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	subtype[MAXGENRELEN];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:35: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 addr[ARPT_DEV_ADDR_LEN_MAX];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:36: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 mask[ARPT_DEV_ADDR_LEN_MAX];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:62: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 iniface[IFNAMSIZ], outiface[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:63: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 iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:108: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];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:133: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:155: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_arp/arp_tables.h:186: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[EBT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:57: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:78: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.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 data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:120: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 name[EBT_FUNCTION_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:125: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:130: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 name[EBT_FUNCTION_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:135: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:140: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 name[EBT_FUNCTION_MAXNAMELEN];
data/nftables-0.9.7/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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:161: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:163: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:165: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:167: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:168:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sourcemac[ETH_ALEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:169:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sourcemsk[ETH_ALEN];
data/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:170: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:171: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/nftables-0.9.7/include/linux/netfilter_bridge/ebtables.h:178: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/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char iniface[IFNAMSIZ], outiface[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:73:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:120: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];
data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:155: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:177: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_ipv4/ip_tables.h:208: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char iniface[IFNAMSIZ], outiface[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:66: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 iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:124: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];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:192: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:214: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/linux/netfilter_ipv6/ip6_tables.h:245: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[XT_TABLE_MAXNAMELEN];
data/nftables-0.9.7/include/netlink.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		chain[NFT_CHAIN_MAXNAMELEN];
data/nftables-0.9.7/include/rule.h:137: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 *table_flags_name[TABLE_FLAGS_MAX];
data/nftables-0.9.7/include/rule.h:422: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[16];
data/nftables-0.9.7/include/rule.h:465: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		ctx[NFT_SECMARK_CTX_MAXLEN];
data/nftables-0.9.7/src/cli.c:38: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 histfile[PATH_MAX];
data/nftables-0.9.7/src/datatype.c:265: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 chain[NFT_CHAIN_MAXNAMELEN];
data/nftables-0.9.7/src/datatype.c:413: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[len+1];
data/nftables-0.9.7/src/datatype.c:460: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[strlen(sym->identifier) + 1], *p;
data/nftables-0.9.7/src/datatype.c:494: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[NI_MAXHOST];
data/nftables-0.9.7/src/datatype.c:551: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[NI_MAXHOST];
data/nftables-0.9.7/src/datatype.c:735: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[512], namebuf[512], *p;
data/nftables-0.9.7/src/datatype.c:742:6:  [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).
	f = fopen(filename, "r");
data/nftables-0.9.7/src/datatype.c:1010:8:  [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).
		ms = atoi(str) * MSEC_PER_SEC;
data/nftables-0.9.7/src/datatype.c:1132: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 desc[256] = "concatenation of (";
data/nftables-0.9.7/src/datatype.c:1133: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[256] = "";
data/nftables-0.9.7/src/datatype.c:1263:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num = atoi(sym->identifier);
data/nftables-0.9.7/src/erec.c: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 buf[1024] = {};
data/nftables-0.9.7/src/erec.c:102:7:  [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).
		f = fopen(indesc->name, "r");
data/nftables-0.9.7/src/evaluate.c:297: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[data_len];
data/nftables-0.9.7/src/evaluate.c:332: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 unescaped_str[data_len];
data/nftables-0.9.7/src/evaluate.c:3295: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[NF_LOG_PREFIXLEN] = {}, tmp[NF_LOG_PREFIXLEN] = {};
data/nftables-0.9.7/src/evaluate.c:3708: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 prio_str[NFT_NAME_MAXLEN];
data/nftables-0.9.7/src/evaluate.c:3709: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 prio_fst[NFT_NAME_MAXLEN];
data/nftables-0.9.7/src/expression.c:411: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[len];
data/nftables-0.9.7/src/fib.c:23: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 *fib_result[NFT_FIB_RESULT_MAX + 1] = {
data/nftables-0.9.7/src/gmputil.c:136: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[len];
data/nftables-0.9.7/src/iface.c:64: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/json.c:38: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/nftables-0.9.7/src/json.c:171: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/nftables-0.9.7/src/json.c:885:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/nftables-0.9.7/src/json.c:985: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] = "0x";
data/nftables-0.9.7/src/json.c:997: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[len+1];
data/nftables-0.9.7/src/json.c:1237: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 prefix[NF_LOG_PREFIXLEN] = {};
data/nftables-0.9.7/src/libnftables.c:197: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(cookie->buf + cookie->pos, buf, buflen);
data/nftables-0.9.7/src/main.c:141: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 optstring[2 * NR_NFT_OPTIONS + 2];
data/nftables-0.9.7/src/main.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 optbuf[33] = "";
data/nftables-0.9.7/src/mergesort.c: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 data[512];
data/nftables-0.9.7/src/meta.c: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 name[IFNAMSIZ];
data/nftables-0.9.7/src/meta.c:386: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 timestr[21];
data/nftables-0.9.7/src/meta.c:974: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/nftables-0.9.7/src/mnl.c:79: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[NFT_NLMSG_MAXSIZE];
data/nftables-0.9.7/src/mnl.c: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 buf[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:369: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 rcv_buf[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:637: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:670: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 ifname[IFNAMSIZ];
data/nftables-0.9.7/src/mnl.c:866: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:993: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1218: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1431: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1601: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1631: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1669: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/mnl.c:1703: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 ifname[IFNAMSIZ];
data/nftables-0.9.7/src/mnl.c:1854: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[NFT_NLMSG_MAXSIZE];
data/nftables-0.9.7/src/monitor.c:793: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 *const nftnl_msg_types[NFT_MSG_MAX] = {
data/nftables-0.9.7/src/monitor.c:830: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[256] = "";
data/nftables-0.9.7/src/netlink.c:252: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[len];
data/nftables-0.9.7/src/netlink.c:260: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(nld->value, data, len);
data/nftables-0.9.7/src/netlink.c:275: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 chain[NFT_CHAIN_MAXNAMELEN];
data/nftables-0.9.7/src/netlink.c:315: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[len];
data/nftables-0.9.7/src/netlink.c:321: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(nld->value, data, len);
data/nftables-0.9.7/src/netlink.c:329: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[len];
data/nftables-0.9.7/src/netlink.c:339: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(nld->value, data, len);
data/nftables-0.9.7/src/netlink.c:922: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(set->desc.field_len, data, len);
data/nftables-0.9.7/src/netlink.c:1020: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[len];
data/nftables-0.9.7/src/netlink.c:1424: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(obj->ct_timeout.timeout,
data/nftables-0.9.7/src/netlink_delinearize.c:172: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 chain_name[NFT_CHAIN_MAXNAMELEN] = {};
data/nftables-0.9.7/src/netlink_delinearize.c:2173: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[len + 2];
data/nftables-0.9.7/src/netlink_delinearize.c:2189: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[len + 3];
data/nftables-0.9.7/src/netlink_linearize.c:1045: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 prefix[NF_LOG_PREFIXLEN] = {};
data/nftables-0.9.7/src/nfnl_osf.c:214: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 obuf[MAXOPTSTRLEN];
data/nftables-0.9.7/src/nfnl_osf.c:219: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/src/nfnl_osf.c:359: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/nftables-0.9.7/src/nfnl_osf.c:365:8:  [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).
	inf = fopen(OS_SIGNATURES, "r");
data/nftables-0.9.7/src/numgen.c:18: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 *numgen_type[NFT_NG_RANDOM + 1] = {
data/nftables-0.9.7/src/parser_bison.c:4340: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/nftables-0.9.7/src/parser_bison.c:5801: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 yymsgbuf[128];
data/nftables-0.9.7/src/parser_bison.c:8411: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 str[NFT_NAME_MAXLEN];
data/nftables-0.9.7/src/parser_bison.c:8427: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 str[NFT_NAME_MAXLEN];
data/nftables-0.9.7/src/parser_bison.c:9096: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.
				start = (char *)(yyvsp[0].string);
data/nftables-0.9.7/src/parser_bison.c:10547: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 str[64];
data/nftables-0.9.7/src/parser_json.c:61: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[1024];
data/nftables-0.9.7/src/parser_json.c:68:3:  [2] (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 string.
		strcat(buf, "RHS");
data/nftables-0.9.7/src/parser_json.c:73:3:  [2] (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 string.
		strcat(buf, "STMT");
data/nftables-0.9.7/src/parser_json.c:78:3:  [2] (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 string.
		strcat(buf, "PRIMARY");
data/nftables-0.9.7/src/parser_json.c:83:3:  [2] (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 string.
		strcat(buf, "DTYPE");
data/nftables-0.9.7/src/parser_json.c:88:3:  [2] (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 string.
		strcat(buf, "SET_RHS");
data/nftables-0.9.7/src/parser_json.c:331: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/nftables-0.9.7/src/parser_json.c:2596: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.
	const char name[IFNAMSIZ];
data/nftables-0.9.7/src/parser_json.c:2749: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.
	const char *obj_tbl[__NFT_OBJECT_MAX] = {
data/nftables-0.9.7/src/parser_json.c:3227:27:  [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).
			obj->ct_expect.dport = atoi(tmp);
data/nftables-0.9.7/src/parser_json.c:3230:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			obj->ct_expect.size = atoi(tmp);
data/nftables-0.9.7/src/rule.c:1217: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 priobuf[STD_PRIO_BUFSIZE];
data/nftables-0.9.7/src/rule.c:1281: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 priobuf[STD_PRIO_BUFSIZE];
data/nftables-0.9.7/src/rule.c:1392: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 *table_flags_name[TABLE_FLAGS_MAX] = {
data/nftables-0.9.7/src/rule.c:2348: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 priobuf[STD_PRIO_BUFSIZE];
data/nftables-0.9.7/src/scanner.c:6457:6:  [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).
	f = fopen(filename, "r");
data/nftables-0.9.7/src/scanner.c:6587: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[PATH_MAX];
data/nftables-0.9.7/src/scanner.c:6642: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_indesc, indesc, sizeof(*new_indesc));
data/nftables-0.9.7/src/statement.c:251: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 *objref_type[NFT_OBJECT_MAX + 1] = {
data/nftables-0.9.7/src/statement.c:314: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 *syslog_level[NFT_LOGLEVEL_MAX + 1] = {
data/nftables-0.9.7/src/statement.c:350: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 prefix[NF_LOG_PREFIXLEN] = {};
data/nftables-0.9.7/src/statement.c:841: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 * const nfproto_family_name_array[NFPROTO_NUMPROTO] = {
data/nftables-0.9.7/src/xt.c:182: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(clone, t, sizeof(struct xtables_target));
data/nftables-0.9.7/src/xt.c:191: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(clone, m, sizeof(struct xtables_match));
data/nftables-0.9.7/src/xt.c:224: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(&m->data, mtinfo, mt_len);
data/nftables-0.9.7/src/xt.c:269: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(&t->data, tginfo, tg_len);
data/nftables-0.9.7/src/xt.c:318: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[MNL_SOCKET_BUFFER_SIZE];
data/nftables-0.9.7/include/cache.h:42: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(key); i++)
data/nftables-0.9.7/src/cli.c:58: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(line);
data/nftables-0.9.7/src/cli.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).
		len += strlen(multiline);
data/nftables-0.9.7/src/datatype.c:327: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).
				   (strlen(sym->identifier) + 1) * BITS_PER_BYTE,
data/nftables-0.9.7/src/datatype.c:426: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).
				   (strlen(sym->identifier) + 1) * BITS_PER_BYTE,
data/nftables-0.9.7/src/datatype.c:460:11:  [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 buf[strlen(sym->identifier) + 1], *p;
data/nftables-0.9.7/src/datatype.c:752:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(p, "0x%x %511s\n", &val, namebuf) != 2 &&
data/nftables-0.9.7/src/datatype.c:753:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		    sscanf(p, "0x%x %511s #", &val, namebuf) != 2 &&
data/nftables-0.9.7/src/datatype.c:754:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		    sscanf(p, "%u %511s\n", &val, namebuf) != 2 &&
data/nftables-0.9.7/src/datatype.c:755:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		    sscanf(p, "%u %511s #", &val, namebuf) != 2) {
data/nftables-0.9.7/src/datatype.c:939: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).
	unsigned int max_digits = strlen("12345678");
data/nftables-0.9.7/src/datatype.c:947: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(c);
data/nftables-0.9.7/src/datatype.c:1143:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(desc, ", ", sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1143: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).
			strncat(desc, ", ", sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1144:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(name, " . ", sizeof(name) - strlen(name) - 1);
data/nftables-0.9.7/src/datatype.c:1144: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).
			strncat(name, " . ", sizeof(name) - strlen(name) - 1);
data/nftables-0.9.7/src/datatype.c:1146:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(desc, i->desc, sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1146: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).
		strncat(desc, i->desc, sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1147:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(name, i->name, sizeof(name) - strlen(name) - 1);
data/nftables-0.9.7/src/datatype.c:1147: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).
		strncat(name, i->name, sizeof(name) - strlen(name) - 1);
data/nftables-0.9.7/src/datatype.c:1152:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat(desc, ")", sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1152: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).
	strncat(desc, ")", sizeof(desc) - strlen(desc) - 1);
data/nftables-0.9.7/src/datatype.c:1202: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 (strncmp(str, "bytes", strlen("bytes")) == 0)
data/nftables-0.9.7/src/datatype.c:1204: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).
	else if (strncmp(str, "kbytes", strlen("kbytes")) == 0)
data/nftables-0.9.7/src/datatype.c:1206: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).
	else if (strncmp(str, "mbytes", strlen("mbytes")) == 0)
data/nftables-0.9.7/src/datatype.c:1272: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).
					   strlen(sym->identifier) * BITS_PER_BYTE,
data/nftables-0.9.7/src/evaluate.c:310: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(data) == 0)
data/nftables-0.9.7/src/evaluate.c:314: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).
	datalen = strlen(data) - 1;
data/nftables-0.9.7/src/evaluate.c:3325: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).
				   strlen(prefix) * BITS_PER_BYTE, prefix);
data/nftables-0.9.7/src/json.c:894: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).
				memmove(buf, buf + 1, strlen(buf));
data/nftables-0.9.7/src/libnftables.c:455: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).
	nlbuf = xzalloc(strlen(buf) + 2);
data/nftables-0.9.7/src/main.c:319: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 - 1]) + 1;
data/nftables-0.9.7/src/main.c:474:11:  [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]) + strlen(" ");
data/nftables-0.9.7/src/main.c:474: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).
			len += strlen(argv[i]) + strlen(" ");
data/nftables-0.9.7/src/main.c:485:5:  [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(buf, " ");
data/nftables-0.9.7/src/meta.c:93:11:  [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 (str[strlen(str) - 1] == ':')
data/nftables-0.9.7/src/mini-gmp.c:4167: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).
  dp = (unsigned char *) gmp_xalloc (strlen (sp));
data/nftables-0.9.7/src/mini-gmp.c:4241: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).
  len = strlen (str);
data/nftables-0.9.7/src/misspell.c:32: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).
	unsigned int len_a = strlen(a);
data/nftables-0.9.7/src/misspell.c:33: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).
	unsigned int len_b = strlen(b);
data/nftables-0.9.7/src/misspell.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).
	len_a = strlen(a);
data/nftables-0.9.7/src/misspell.c:84: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_b = strlen(b);
data/nftables-0.9.7/src/netlink.c:173: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).
						   nld.chain, strlen(nld.chain));
data/nftables-0.9.7/src/netlink.c:378: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).
					    strlen(nld->chain) * BITS_PER_BYTE,
data/nftables-0.9.7/src/netlink.c:1645: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).
						 strlen(chain) * BITS_PER_BYTE,
data/nftables-0.9.7/src/netlink_delinearize.c:937: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).
						       (strlen(prefix) + 1) * BITS_PER_BYTE,
data/nftables-0.9.7/src/nfnl_osf.c:380: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).
		len = strlen(buf) - 1;
data/nftables-0.9.7/src/parser_bison.c:4237: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).
#   define yystrlen strlen
data/nftables-0.9.7/src/parser_bison.c:8015: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).
							 strlen((yyvsp[0].string)) * BITS_PER_BYTE, (yyvsp[0].string));
data/nftables-0.9.7/src/parser_bison.c:8398: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).
								strlen((yyvsp[0].string)) * BITS_PER_BYTE,
data/nftables-0.9.7/src/parser_bison.c:8415: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).
								strlen(str) * BITS_PER_BYTE,
data/nftables-0.9.7/src/parser_bison.c:8432: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).
								strlen(str) * BITS_PER_BYTE,
data/nftables-0.9.7/src/parser_bison.c:8459:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							   strlen((yyvsp[0].string)) * BITS_PER_BYTE, (yyvsp[0].string));
data/nftables-0.9.7/src/parser_bison.c:8828: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((yyvsp[0].string)) > NFTNL_UDATA_COMMENT_MAXLEN) {
data/nftables-0.9.7/src/parser_bison.c:9082:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								   (strlen((yyvsp[0].string)) + 1) * BITS_PER_BYTE, (yyvsp[0].string));
data/nftables-0.9.7/src/parser_bison.c:9119: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).
									   (strlen(start) + 1) * BITS_PER_BYTE,
data/nftables-0.9.7/src/parser_bison.c:11810: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).
							 strlen((yyvsp[0].string)) * BITS_PER_BYTE,
data/nftables-0.9.7/src/parser_json.c:1134: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).
				   strlen(chain) * BITS_PER_BYTE, chain);
data/nftables-0.9.7/src/parser_json.c:2166: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).
						       (strlen(tmpstr) + 1) * BITS_PER_BYTE, tmpstr);
data/nftables-0.9.7/src/parser_json.c:2648: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).
					   strlen(name) * BITS_PER_BYTE,
data/nftables-0.9.7/src/rule.c:1197:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(buf, std_prio_str, bufsize);
data/nftables-0.9.7/src/rule.c:1199: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).
					snprintf(buf + strlen(buf),
data/nftables-0.9.7/src/rule.c:1200: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).
						 bufsize - strlen(buf), " + %d",
data/nftables-0.9.7/src/rule.c:1203: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).
					snprintf(buf + strlen(buf),
data/nftables-0.9.7/src/rule.c:1204: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).
						 bufsize - strlen(buf), " - %d",
data/nftables-0.9.7/src/scanner.c:2772:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int chr = fgetc(yyin);						\
data/nftables-0.9.7/src/scanner.c:3046:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/nftables-0.9.7/src/scanner.c:5926:37:  [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 yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/nftables-0.9.7/src/scanner.c:6531: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(path);
data/nftables-0.9.7/src/scanner.c:6577: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).
	return (strncmp(filename, "./", strlen("./")) != 0 &&
data/nftables-0.9.7/src/scanner.c:6578: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).
		strncmp(filename, "../", strlen("../")) != 0 &&
data/nftables-0.9.7/src/utils.c:85: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(in); i++) {

ANALYSIS SUMMARY:

Hits = 249
Lines analyzed = 72169 in approximately 1.81 seconds (39860 lines/second)
Physical Source Lines of Code (SLOC) = 57871
Hits@level = [0]  95 [1]  72 [2] 152 [3]   2 [4]  23 [5]   0
Hits@level+ = [0+] 344 [1+] 249 [2+] 177 [3+]  25 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 5.94426 [1+] 4.30267 [2+] 3.05853 [3+] 0.431995 [4+] 0.397436 [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.