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/ipset-7.6/lib/errcode.c
Examining data/ipset-7.6/lib/args.c
Examining data/ipset-7.6/lib/ipset_hash_net.c
Examining data/ipset-7.6/lib/ipset_hash_netportnet.c
Examining data/ipset-7.6/lib/print.c
Examining data/ipset-7.6/lib/mnl.c
Examining data/ipset-7.6/lib/types.c
Examining data/ipset-7.6/lib/ipset_hash_mac.c
Examining data/ipset-7.6/lib/ipset_hash_ipport.c
Examining data/ipset-7.6/lib/ipset_hash_netiface.c
Examining data/ipset-7.6/lib/ipset_hash_ipmac.c
Examining data/ipset-7.6/lib/ipset_hash_ip.c
Examining data/ipset-7.6/lib/ipset_hash_netnet.c
Examining data/ipset-7.6/lib/data.c
Examining data/ipset-7.6/lib/list_sort.c
Examining data/ipset-7.6/lib/debug.c
Examining data/ipset-7.6/lib/ipset_hash_ipmark.c
Examining data/ipset-7.6/lib/ipset_hash_ipportnet.c
Examining data/ipset-7.6/lib/parse.c
Examining data/ipset-7.6/lib/ipset_bitmap_ip.c
Examining data/ipset-7.6/lib/icmp.c
Examining data/ipset-7.6/lib/ipset_hash_netport.c
Examining data/ipset-7.6/lib/ipset_bitmap_ipmac.c
Examining data/ipset-7.6/lib/ipset_list_set.c
Examining data/ipset-7.6/lib/ipset_hash_ipportip.c
Examining data/ipset-7.6/lib/ipset_bitmap_port.c
Examining data/ipset-7.6/lib/icmpv6.c
Examining data/ipset-7.6/lib/ipset.c
Examining data/ipset-7.6/lib/session.c
Examining data/ipset-7.6/libltdl/lt__argz.c
Examining data/ipset-7.6/libltdl/lt_error.c
Examining data/ipset-7.6/libltdl/lt__strl.c
Examining data/ipset-7.6/libltdl/lt__alloc.c
Examining data/ipset-7.6/libltdl/libltdl/lt__strl.h
Examining data/ipset-7.6/libltdl/libltdl/lt_system.h
Examining data/ipset-7.6/libltdl/libltdl/lt__argz_.h
Examining data/ipset-7.6/libltdl/libltdl/lt_dlloader.h
Examining data/ipset-7.6/libltdl/libltdl/lt__private.h
Examining data/ipset-7.6/libltdl/libltdl/lt_error.h
Examining data/ipset-7.6/libltdl/libltdl/lt__glibc.h
Examining data/ipset-7.6/libltdl/libltdl/lt__dirent.h
Examining data/ipset-7.6/libltdl/libltdl/slist.h
Examining data/ipset-7.6/libltdl/libltdl/lt__alloc.h
Examining data/ipset-7.6/libltdl/ltdl.h
Examining data/ipset-7.6/libltdl/ltdl.c
Examining data/ipset-7.6/libltdl/lt_dlloader.c
Examining data/ipset-7.6/libltdl/slist.c
Examining data/ipset-7.6/libltdl/lt__dirent.c
Examining data/ipset-7.6/libltdl/loaders/preopen.c
Examining data/ipset-7.6/libltdl/loaders/dlopen.c
Examining data/ipset-7.6/libltdl/loaders/dld_link.c
Examining data/ipset-7.6/libltdl/loaders/load_add_on.c
Examining data/ipset-7.6/libltdl/loaders/dyld.c
Examining data/ipset-7.6/libltdl/loaders/loadlibrary.c
Examining data/ipset-7.6/libltdl/loaders/shl_load.c
Examining data/ipset-7.6/src/ui.c
Examining data/ipset-7.6/src/ipset.c
Examining data/ipset-7.6/kernel/net/netfilter/xt_set.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_mac.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_list_set.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmark.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_port.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netport.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_getport.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ip.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipport.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netportnet.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportip.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_gen.h
Examining data/ipset-7.6/kernel/net/netfilter/ipset/pfxlen.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netnet.c
Examining data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_net.c
Examining data/ipset-7.6/kernel/net/sched/em_ipset.c
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set_getport.h
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set.h
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/pfxlen.h
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set_list.h
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set_bitmap.h
Examining data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set_hash.h
Examining data/ipset-7.6/kernel/include/linux/jhash.h
Examining data/ipset-7.6/kernel/include/uapi/linux/netfilter/xt_set.h
Examining data/ipset-7.6/kernel/include/uapi/linux/netfilter/ipset/ip_set.h
Examining data/ipset-7.6/kernel/include/uapi/linux/netfilter/ipset/ip_set_list.h
Examining data/ipset-7.6/kernel/include/uapi/linux/netfilter/ipset/ip_set_bitmap.h
Examining data/ipset-7.6/kernel/include/uapi/linux/netfilter/ipset/ip_set_hash.h
Examining data/ipset-7.6/include/libipset/linux_ip_set_bitmap.h
Examining data/ipset-7.6/include/libipset/linux_ip_set.h
Examining data/ipset-7.6/include/libipset/session.h
Examining data/ipset-7.6/include/libipset/list_sort.h
Examining data/ipset-7.6/include/libipset/data.h
Examining data/ipset-7.6/include/libipset/linux_ip_set_hash.h
Examining data/ipset-7.6/include/libipset/icmpv6.h
Examining data/ipset-7.6/include/libipset/pfxlen.h
Examining data/ipset-7.6/include/libipset/nf_inet_addr.h
Examining data/ipset-7.6/include/libipset/ipset.h
Examining data/ipset-7.6/include/libipset/types.h
Examining data/ipset-7.6/include/libipset/transport.h
Examining data/ipset-7.6/include/libipset/mnl.h
Examining data/ipset-7.6/include/libipset/utils.h
Examining data/ipset-7.6/include/libipset/nfproto.h
Examining data/ipset-7.6/include/libipset/linux_ip_set_list.h
Examining data/ipset-7.6/include/libipset/print.h
Examining data/ipset-7.6/include/libipset/errcode.h
Examining data/ipset-7.6/include/libipset/icmp.h
Examining data/ipset-7.6/include/libipset/debug.h
Examining data/ipset-7.6/include/libipset/args.h
Examining data/ipset-7.6/include/libipset/parse.h
Examining data/ipset-7.6/include/libipset/compat.h

FINAL RESULTS:

data/ipset-7.6/include/libipset/ipset.h:69:26:  [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, 4, 5)));
data/ipset-7.6/include/libipset/session.h:112:26:  [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/ipset-7.6/lib/ipset.c:457:34:  [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.
static int __attribute__((format(printf, 4, 5)))
data/ipset-7.6/lib/ipset.c:472: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, msg, args);
data/ipset-7.6/lib/print.c:177: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, IPSET_ESCAPE_END);
data/ipset-7.6/lib/print.c:213: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, IPSET_ESCAPE_END);
data/ipset-7.6/lib/print.c:233:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	size = snprintf(buf + offset, len,				\
data/ipset-7.6/lib/print.c:523:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	size = snprintf(buf, len, "0x%08"PRIx32, *mark);
data/ipset-7.6/lib/print.c:618:10:  [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.
		size = snprintf(buf + offset, len, "0x%"PRIx32, mark);
data/ipset-7.6/lib/print.c:620:10:  [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.
		size = snprintf(buf + offset, len,
data/ipset-7.6/lib/print.c:787:10:  [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.
		size = snprintf(buf + offset, len, IPSET_PROTO_SEPARATOR);
data/ipset-7.6/lib/print.c:859:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	size = snprintf(buf + offset, len, IPSET_ELEM_SEPARATOR);
data/ipset-7.6/lib/print.c:869:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	size = snprintf(buf + offset, len, IPSET_ELEM_SEPARATOR);
data/ipset-7.6/lib/session.c:233:27:  [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.
int __attribute__((format(printf, 3, 4)))
data/ipset-7.6/lib/session.c:255:8:  [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.
	len = vsnprintf(session->report + offset,
data/ipset-7.6/lib/session.c:813:34:  [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.
static int __attribute__((format(printf, 2, 3)))
data/ipset-7.6/lib/session.c:823:9:  [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.
		ret = vsnprintf(session->outbuf + session->pos,
data/ipset-7.6/lib/session.c:1296: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(session->saved_setname, ipset_data_setname(data));
data/ipset-7.6/lib/session.c:2224: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(session->saved_setname, ipset_data_setname(data));
data/ipset-7.6/lib/session.c:2241:29:  [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.
int __attribute__ ((format (printf, 3, 4)))
data/ipset-7.6/lib/session.c:2249: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.
	len = vfprintf(session->ostream, fmt, args);
data/ipset-7.6/libltdl/libltdl/lt__private.h:117:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  void *		system;		/* system specific data */
data/ipset-7.6/libltdl/loaders/dlopen.c:229:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (attempt, "%s%s", filename, member);
data/ipset-7.6/libltdl/loaders/loadlibrary.c:170:7:  [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(wpath, filename);
data/ipset-7.6/libltdl/ltdl.c:522:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname);
data/ipset-7.6/libltdl/ltdl.c:718: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 (filename, dir_name);
data/ipset-7.6/libltdl/ltdl.c:724:6:  [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 (filename +lendir, base_name);
data/ipset-7.6/libltdl/ltdl.c:785:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  int		notfound	= access (filename, R_OK);
data/ipset-7.6/libltdl/ltdl.c:922:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf (name, "lib%s", p+2);
data/ipset-7.6/libltdl/ltdl.c:1212:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(attempt, "%s%s", filename, ext);
data/ipset-7.6/libltdl/ltdl.c:1307:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext);
data/ipset-7.6/libltdl/ltdl.c:1311:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (archive_name, "%s.%s", name, libext);
data/ipset-7.6/libltdl/ltdl.c:1820: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  (buf, dirnam);
data/ipset-7.6/libltdl/ltdl.c:2063: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(sym, handle->vtable->sym_prefix);
data/ipset-7.6/libltdl/ltdl.c:2064: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(sym, handle->info.name);
data/ipset-7.6/libltdl/ltdl.c:2068: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(sym, handle->info.name);
data/ipset-7.6/libltdl/ltdl.c:2072:7:  [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(sym, symbol);
data/ipset-7.6/libltdl/ltdl.c:2090:7:  [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(sym, handle->vtable->sym_prefix);
data/ipset-7.6/libltdl/ltdl.c:2091:7:  [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(sym, symbol);
data/ipset-7.6/libltdl/ltdl.c:2095:7:  [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(sym, symbol);
data/ipset-7.6/libltdl/loaders/loadlibrary.c:199:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    module = LoadLibrary (wpath);
data/ipset-7.6/libltdl/ltdl.c:1361:22:  [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.
	      search_path = getenv (LTDL_SEARCHPATH_VAR);
data/ipset-7.6/libltdl/ltdl.c:1369:22:  [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.
	      search_path = getenv (LT_MODULE_PATH_VAR);
data/ipset-7.6/libltdl/ltdl.c:1469:23:  [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.
		   && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name,
data/ipset-7.6/libltdl/ltdl.c:1472:23:  [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.
		   && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name,
data/ipset-7.6/libltdl/ltdl.c:1925:33:  [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.
	  is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
data/ipset-7.6/libltdl/ltdl.c:1932:33:  [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.
	  is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
data/ipset-7.6/include/libipset/ipset.h:21: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[IPSET_CMD_ALIASES];
data/ipset-7.6/include/libipset/ipset.h:40: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[2];
data/ipset-7.6/include/libipset/linux_ip_set.h:284: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[IPSET_MAXNAMELEN];
data/ipset-7.6/include/libipset/types.h:46: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[2];		/* option names */
data/ipset-7.6/include/libipset/utils.h:50:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, src, sizeof(struct in6_addr));
data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set.h:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[0];
data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set.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[IPSET_MAXNAMELEN];
data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set.h:241: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[IPSET_MAXNAMELEN];
data/ipset-7.6/kernel/include/linux/netfilter/ipset/ip_set.h:445: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(addr, src ? &ipv6_hdr(skb)->saddr : &ipv6_hdr(skb)->daddr,
data/ipset-7.6/kernel/include/uapi/linux/netfilter/ipset/ip_set.h:284: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[IPSET_MAXNAMELEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c:51: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 extensions[0]	/* data extensions */
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c:55: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 extensions[0]	/* MAC + data extensions */
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c:61:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ether[ETH_ALEN] __aligned(2);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c:67: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 ether[ETH_ALEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c:275: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(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_port.c:43: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 extensions[0]	/* data extensions */
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:324: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(ipaddr, nla_data(tb[IPSET_ATTR_IPADDR_IPV6]),
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1162: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(list, tmp, sizeof(struct ip_set *) * inst->ip_set_max);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1391:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from_name[IPSET_MAXNAMELEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1791: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(&errmsg->msg, nlh, nlh->nlmsg_len);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:80: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 value[0]	/* the array of the values */
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:571: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(tmp->value + d * dsize,
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:721: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(tmp, data, dsize);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:756: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(ht, m, sizeof(struct hbucket) +
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:767: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(d, data, dsize);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:969: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(n, old, sizeof(struct hbucket) +
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:985: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, d, sizeof(struct mtype_elem));
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:1018: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(&x->d, value, sizeof(struct mtype_elem));
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:1019: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(&x->ext, ext, sizeof(struct ip_set_ext));
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:1020: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(&x->mext, mext, sizeof(struct ip_set_ext));
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:1105: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(&x->d, value,
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_gen.h:1129: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(tmp->value + k * dsize, data, dsize);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.c:43:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char ether[ETH_ALEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.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(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.c:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char ether[ETH_ALEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.c:256: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(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_mac.c:34:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char ether[ETH_ALEN];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:63: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 iface[IFNAMSIZ];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:292: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 iface[IFNAMSIZ];
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_list_set.c:492: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[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char setname[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:50: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 setname2[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:65: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 typename[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:75: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 ether[ETH_ALEN];
data/ipset-7.6/lib/data.c:76: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[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:77: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 nameref[IPSET_MAXNAMELEN];
data/ipset-7.6/lib/data.c:78: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 iface[IFNAMSIZ];
data/ipset-7.6/lib/data.c:81: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 comment[IPSET_MAX_COMMENT_SIZE+1];
data/ipset-7.6/lib/data.c:348:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data->adt.ether, value, ETH_ALEN);
data/ipset-7.6/lib/debug.c:117:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(const char *) mnl_attr_get_payload(nla[i]));
data/ipset-7.6/lib/debug.c:121: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 addr[INET6_ADDRSTRLEN];
data/ipset-7.6/lib/debug.c:188:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(const char *) mnl_attr_get_payload(nla[i]));
data/ipset-7.6/lib/ipset.c:48: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 cmdline[MAX_CMDLINE_CHARS];	/* For restore mode */
data/ipset-7.6/lib/ipset.c:49: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 *newargv[MAX_ARGS];
data/ipset-7.6/lib/ipset.c:950: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[MAX_ARGS] = {};
data/ipset-7.6/lib/ipset.c:953: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(argv, oargv, sizeof(char *) * argc);
data/ipset-7.6/lib/parse.c: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 ether[ETH_ALEN];
data/ipset-7.6/lib/session.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char saved_setname[IPSET_MAXNAMELEN];	/* Saved setname */
data/ipset-7.6/lib/session.c: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 report[IPSET_ERRORBUFLEN];		/* Error/report buffer */
data/ipset-7.6/lib/session.c:249: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(session->report, "Error in line %u: ",
data/ipset-7.6/lib/session.c:1281:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  (char *) mnl_attr_get_payload(nla[IPSET_ATTR_TYPENAME]));
data/ipset-7.6/lib/session.c:1830:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[PRIVATE_MSG_BUFLEN] __attribute__ ((aligned)) = {};
data/ipset-7.6/lib/session.c:2373: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).
			f = fopen(filename, "r");
data/ipset-7.6/lib/session.c:2387: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).
			f = fopen(filename, "w");
data/ipset-7.6/lib/session.c:2448: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(filename, "r");
data/ipset-7.6/lib/session.c:2456: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(filename, "w");
data/ipset-7.6/lib/types.c: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 name[IPSET_MAXNAMELEN];		/* set name */
data/ipset-7.6/lib/types.c:622: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   path[256];
data/ipset-7.6/lib/types.c:623: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   file[256];
data/ipset-7.6/libltdl/libltdl/lt__dirent.h:65: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 d_name[LT_FILENAME_MAX];
data/ipset-7.6/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found";
data/ipset-7.6/libltdl/loaders/loadlibrary.c:139: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		wpath[MAX_PATH];
data/ipset-7.6/libltdl/lt__alloc.c:87:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy (newmem, mem, n);
data/ipset-7.6/libltdl/lt__argz.c:69: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 (argz + *pargz_len, buf, buf_len);
data/ipset-7.6/libltdl/lt__argz.c:166: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  (before, entry, entry_len);
data/ipset-7.6/libltdl/lt__dirent.c:51: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 file_spec[LT_FILENAME_MAX];
data/ipset-7.6/libltdl/lt_error.c:36: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	error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
data/ipset-7.6/libltdl/ltdl.c:756:17:  [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 ((*pfile = fopen (filename, LT_READTEXT_MODE)))
data/ipset-7.6/libltdl/ltdl.c:1023:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, &str[1], (end - str) - 1);
data/ipset-7.6/libltdl/ltdl.c:1383:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  file = fopen (attempt, LT_READTEXT_MODE);
data/ipset-7.6/libltdl/ltdl.c:2016: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	lsym[LT_SYMBOL_LENGTH];
data/ipset-7.6/libltdl/ltdl.c:2071:7:  [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(sym, "_LTX_");
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:357:30:  [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 = ext->comment ? strlen(ext->comment) : 0;
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:360:33:  [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).
		set->ext_size -= sizeof(*c) + strlen(c->str) + 1;
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:372:32:  [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).
	set->ext_size += sizeof(*c) + strlen(c->str) + 1;
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:402:32:  [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).
	set->ext_size -= sizeof(*c) + strlen(c->str) + 1;
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:889:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name, set->name, IPSET_MAXNAMELEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1366:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(set->name, name2, IPSET_MAXNAMELEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1423:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(from_name, from->name, IPSET_MAXNAMELEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1424:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(from->name, to->name, IPSET_MAXNAMELEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_core.c:1425:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(to->name, from_name, IPSET_MAXNAMELEN);
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:78:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 :
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:192: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(e.iface) == 0)
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:307:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 :
data/ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.c:405: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(e.iface) == 0)
data/ipset-7.6/lib/data.c:113:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst, src, len);
data/ipset-7.6/lib/data.c:132: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.
	strncat(dst, src, len);
data/ipset-7.6/lib/errcode.c:152:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define MATCH_TYPENAME(a, b)    STRNEQ(a, b, strlen(b))
data/ipset-7.6/lib/icmp.c:74:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (STRNCASEQ(icmp_typecodes[i].name, str, strlen(str))) {
data/ipset-7.6/lib/icmpv6.c:62:48:  [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 (STRNCASEQ(icmpv6_typecodes[i].name, str, strlen(str))) {
data/ipset-7.6/lib/ipset.c:180: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(arg);
data/ipset-7.6/lib/ipset.c:568:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	arg = calloc(strlen(buffer) + 1, sizeof(*buffer));
data/ipset-7.6/lib/ipset.c:609: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).
			calloc(strlen(arg) + 1, sizeof(*arg));
data/ipset-7.6/lib/ipset.c:617:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      arg, strlen(arg) + 1);
data/ipset-7.6/lib/ipset.c:618: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).
		memset(arg, 0, strlen(arg) + 1);
data/ipset-7.6/lib/ipset.c:1151: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(type->name) < 12 ? "\t" : "",
data/ipset-7.6/lib/ipset.c:1436: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).
		calloc(strlen(program_name) + 1, sizeof(*program_name));
data/ipset-7.6/lib/ipset.c:1442: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(program_name) + 1);
data/ipset-7.6/lib/parse.c:56: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).
		    str[strlen(str)-1] != sep[0])
data/ipset-7.6/lib/parse.c:190: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(str);
data/ipset-7.6/lib/parse.c:258:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!STREQ(str + strlen(str) - 1, IPSET_ESCAPE_END)) {
data/ipset-7.6/lib/parse.c:264: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).
		str[strlen(str) - 1] = '\0';
data/ipset-7.6/lib/parse.c:1399: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(str) > IPSET_MAXNAMELEN - 1) {			\
data/ipset-7.6/lib/parse.c:1746: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(str) > IPSET_MAXNAMELEN - 1)
data/ipset-7.6/lib/parse.c:1787: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).
	if (STRNEQ(str, pdev_prefix, strlen(pdev_prefix))) {
data/ipset-7.6/lib/parse.c:1788: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).
		offset = strlen(pdev_prefix);
data/ipset-7.6/lib/parse.c:1793: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(str + offset) > IFNAMSIZ - 1)
data/ipset-7.6/lib/parse.c:1824: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(str) > IPSET_MAX_COMMENT_SIZE)
data/ipset-7.6/lib/print.c:105: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).
	if (len < strlen("inet6") + 1)
data/ipset-7.6/lib/print.c:141: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).
	if (len < strlen(type->name) + 1)
data/ipset-7.6/lib/print.c:171: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(buf) + 2 > len) {
data/ipset-7.6/lib/print.c:175:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(buf + 1, buf, strlen(buf) + 1);
data/ipset-7.6/lib/print.c:179:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (err == 0 ? (int)strlen(buf) :
data/ipset-7.6/lib/print.c:207: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(buf) + 2 > len) {
data/ipset-7.6/lib/print.c:211:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(buf + 1, buf, strlen(buf) + 1);
data/ipset-7.6/lib/print.c:215:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (err == 0 ? (int)strlen(buf) :
data/ipset-7.6/lib/print.c:424: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).
	if (len < 2*IPSET_MAXNAMELEN + 2 + strlen("before"))
data/ipset-7.6/lib/print.c:475:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len < 2*strlen("65535") + 2)
data/ipset-7.6/lib/print.c:554: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).
	if (len < IFNAMSIZ + strlen("physdev:"))
data/ipset-7.6/lib/session.c:252: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).
	offset = strlen(session->report);
data/ipset-7.6/lib/session.c:262: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(session->report) < IPSET_ERRORBUFLEN - 1)
data/ipset-7.6/lib/session.c:263:3:  [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(session->report, "\n");
data/ipset-7.6/lib/session.c:714:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!d || strlen(d) >= attr->len)
data/ipset-7.6/lib/session.c:983:30:  [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).
	session->save_elem_prefix = strlen(ipset_data_setname(data)) + 5;
data/ipset-7.6/lib/session.c:1764: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).
		alen = strlen((const char *)d) + 1;
data/ipset-7.6/lib/types.c:506: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(type->name) > IPSET_MAXNAMELEN - 1)
data/ipset-7.6/lib/types.c:640:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			next = dir + strlen(dir);
data/ipset-7.6/libltdl/libltdl/lt__dirent.h:46: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).
#  define D_NAMLEN(dirent) (strlen((dirent)->d_name))
data/ipset-7.6/libltdl/libltdl/lt__dirent.h:54: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).
#  define D_NAMLEN(dirent)	(strlen((dirent)->d_name))
data/ipset-7.6/libltdl/loaders/dlopen.c:222: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).
      char *attempt = MALLOC (char, len + strlen (member) + 1);
data/ipset-7.6/libltdl/loaders/loadlibrary.c:179: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).
	    len = strlen (wpath);
data/ipset-7.6/libltdl/lt__alloc.c:95: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).
  return (char *) lt__memdup (string, strlen (string) +1);
data/ipset-7.6/libltdl/lt__argz.c:91:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  argz_len = 1+ strlen (str);
data/ipset-7.6/libltdl/lt__argz.c:141:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return argz_append (pargz, pargz_len, entry, 1+ strlen (entry));
data/ipset-7.6/libltdl/lt__argz.c:150: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).
    size_t entry_len	= 1+ strlen (entry);
data/ipset-7.6/libltdl/lt__dirent.c:101: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).
  entry->file_info.d_namlen = strlen (entry->file_info.d_name);
data/ipset-7.6/libltdl/lt__strl.c:61: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).
  length=strlen(dst);
data/ipset-7.6/libltdl/ltdl.c:1293:33:  [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).
	  archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2);
data/ipset-7.6/libltdl/ltdl.c:1293:73:  [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).
	  archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2);
data/ipset-7.6/libltdl/ltdl.c:1731:55:  [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).
    error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry));
data/ipset-7.6/libltdl/ltdl.c:1821:3:  [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/ipset-7.6/libltdl/ltdl.c:1822: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 (buf, dp->d_name, end_offset);
data/ipset-7.6/libltdl/ltdl.c:2166:48:  [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).
      assert ((int) (before - *ppath) <= (int) strlen (*ppath));
data/ipset-7.6/libltdl/ltdl.h:44: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).
#define LT_STRLEN(s)	(((s) && (s)[0]) ? strlen (s) : 0)
data/ipset-7.6/src/ui.c:140: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(arg);

ANALYSIS SUMMARY:

Hits = 202
Lines analyzed = 39295 in approximately 1.01 seconds (38922 lines/second)
Physical Source Lines of Code (SLOC) = 30407
Hits@level = [0] 100 [1]  73 [2]  82 [3]   7 [4]  40 [5]   0
Hits@level+ = [0+] 302 [1+] 202 [2+] 129 [3+]  47 [4+]  40 [5+]   0
Hits/KSLOC@level+ = [0+] 9.93192 [1+] 6.64321 [2+] 4.24244 [3+] 1.5457 [4+] 1.31549 [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.