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/multipath-tools-0.8.4/kpartx/bsd.c
Examining data/multipath-tools-0.8.4/kpartx/byteorder.h
Examining data/multipath-tools-0.8.4/kpartx/crc32.c
Examining data/multipath-tools-0.8.4/kpartx/crc32.h
Examining data/multipath-tools-0.8.4/kpartx/dasd.c
Examining data/multipath-tools-0.8.4/kpartx/dasd.h
Examining data/multipath-tools-0.8.4/kpartx/devmapper.c
Examining data/multipath-tools-0.8.4/kpartx/devmapper.h
Examining data/multipath-tools-0.8.4/kpartx/dos.c
Examining data/multipath-tools-0.8.4/kpartx/dos.h
Examining data/multipath-tools-0.8.4/kpartx/efi.h
Examining data/multipath-tools-0.8.4/kpartx/gpt.c
Examining data/multipath-tools-0.8.4/kpartx/gpt.h
Examining data/multipath-tools-0.8.4/kpartx/kpartx.c
Examining data/multipath-tools-0.8.4/kpartx/kpartx.h
Examining data/multipath-tools-0.8.4/kpartx/lopart.c
Examining data/multipath-tools-0.8.4/kpartx/lopart.h
Examining data/multipath-tools-0.8.4/kpartx/mac.c
Examining data/multipath-tools-0.8.4/kpartx/mac.h
Examining data/multipath-tools-0.8.4/kpartx/ps3.c
Examining data/multipath-tools-0.8.4/kpartx/solaris.c
Examining data/multipath-tools-0.8.4/kpartx/sun.c
Examining data/multipath-tools-0.8.4/kpartx/unixware.c
Examining data/multipath-tools-0.8.4/kpartx/xstrncpy.c
Examining data/multipath-tools-0.8.4/kpartx/xstrncpy.h
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp.c
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp/libdmmp.h
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp_misc.c
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp_mp.c
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp_path.c
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp_pg.c
Examining data/multipath-tools-0.8.4/libdmmp/test/libdmmp_speed_test.c
Examining data/multipath-tools-0.8.4/libdmmp/test/libdmmp_test.c
Examining data/multipath-tools-0.8.4/libdmmp/libdmmp_private.h
Examining data/multipath-tools-0.8.4/libmpathcmd/mpath_cmd.c
Examining data/multipath-tools-0.8.4/libmpathcmd/mpath_cmd.h
Examining data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c
Examining data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.h
Examining data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c
Examining data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.h
Examining data/multipath-tools-0.8.4/libmpathpersist/mpath_updatepr.c
Examining data/multipath-tools-0.8.4/libmpathpersist/mpathpr.h
Examining data/multipath-tools-0.8.4/libmultipath/alias.c
Examining data/multipath-tools-0.8.4/libmultipath/alias.h
Examining data/multipath-tools-0.8.4/libmultipath/blacklist.h
Examining data/multipath-tools-0.8.4/libmultipath/byteorder.h
Examining data/multipath-tools-0.8.4/libmultipath/callout.c
Examining data/multipath-tools-0.8.4/libmultipath/callout.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/cciss.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/cciss_tur.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/directio.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/directio.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/libsg.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/libsg.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/rdac.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/readsector0.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/readsector0.h
Examining data/multipath-tools-0.8.4/libmultipath/checkers/tur.c
Examining data/multipath-tools-0.8.4/libmultipath/checkers/tur.h
Examining data/multipath-tools-0.8.4/libmultipath/config.c
Examining data/multipath-tools-0.8.4/libmultipath/config.h
Examining data/multipath-tools-0.8.4/libmultipath/configure.c
Examining data/multipath-tools-0.8.4/libmultipath/configure.h
Examining data/multipath-tools-0.8.4/libmultipath/debug.c
Examining data/multipath-tools-0.8.4/libmultipath/debug.h
Examining data/multipath-tools-0.8.4/libmultipath/defaults.c
Examining data/multipath-tools-0.8.4/libmultipath/defaults.h
Examining data/multipath-tools-0.8.4/libmultipath/devmapper.c
Examining data/multipath-tools-0.8.4/libmultipath/devmapper.h
Examining data/multipath-tools-0.8.4/libmultipath/dict.c
Examining data/multipath-tools-0.8.4/libmultipath/dict.h
Examining data/multipath-tools-0.8.4/libmultipath/discovery.c
Examining data/multipath-tools-0.8.4/libmultipath/discovery.h
Examining data/multipath-tools-0.8.4/libmultipath/dm-generic.c
Examining data/multipath-tools-0.8.4/libmultipath/dm-generic.h
Examining data/multipath-tools-0.8.4/libmultipath/dmparser.c
Examining data/multipath-tools-0.8.4/libmultipath/dmparser.h
Examining data/multipath-tools-0.8.4/libmultipath/file.c
Examining data/multipath-tools-0.8.4/libmultipath/file.h
Examining data/multipath-tools-0.8.4/libmultipath/foreign.c
Examining data/multipath-tools-0.8.4/libmultipath/foreign.h
Examining data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c
Examining data/multipath-tools-0.8.4/libmultipath/generic.c
Examining data/multipath-tools-0.8.4/libmultipath/generic.h
Examining data/multipath-tools-0.8.4/libmultipath/hwtable.c
Examining data/multipath-tools-0.8.4/libmultipath/hwtable.h
Examining data/multipath-tools-0.8.4/libmultipath/io_err_stat.c
Examining data/multipath-tools-0.8.4/libmultipath/io_err_stat.h
Examining data/multipath-tools-0.8.4/libmultipath/list.h
Examining data/multipath-tools-0.8.4/libmultipath/lock.c
Examining data/multipath-tools-0.8.4/libmultipath/lock.h
Examining data/multipath-tools-0.8.4/libmultipath/log.c
Examining data/multipath-tools-0.8.4/libmultipath/log.h
Examining data/multipath-tools-0.8.4/libmultipath/log_pthread.c
Examining data/multipath-tools-0.8.4/libmultipath/log_pthread.h
Examining data/multipath-tools-0.8.4/libmultipath/memory.c
Examining data/multipath-tools-0.8.4/libmultipath/memory.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme-lib.c
Examining data/multipath-tools-0.8.4/libmultipath/nvme-lib.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/argconfig.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/json.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme_ioctl.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/nvme-ioctl.c
Examining data/multipath-tools-0.8.4/libmultipath/nvme/nvme-ioctl.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/nvme.h
Examining data/multipath-tools-0.8.4/libmultipath/nvme/plugin.h
Examining data/multipath-tools-0.8.4/libmultipath/parser.c
Examining data/multipath-tools-0.8.4/libmultipath/parser.h
Examining data/multipath-tools-0.8.4/libmultipath/pgpolicies.c
Examining data/multipath-tools-0.8.4/libmultipath/pgpolicies.h
Examining data/multipath-tools-0.8.4/libmultipath/print.c
Examining data/multipath-tools-0.8.4/libmultipath/print.h
Examining data/multipath-tools-0.8.4/libmultipath/prio.c
Examining data/multipath-tools-0.8.4/libmultipath/prio.h
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/alua.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/alua.h
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_rtpg.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_rtpg.h
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/ana.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/const.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/emc.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/hp_sw.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/path_latency.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/random.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/rdac.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/sysfs.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.c
Examining data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.h
Examining data/multipath-tools-0.8.4/libmultipath/prkey.c
Examining data/multipath-tools-0.8.4/libmultipath/prkey.h
Examining data/multipath-tools-0.8.4/libmultipath/propsel.c
Examining data/multipath-tools-0.8.4/libmultipath/propsel.h
Examining data/multipath-tools-0.8.4/libmultipath/sg_include.h
Examining data/multipath-tools-0.8.4/libmultipath/structs.c
Examining data/multipath-tools-0.8.4/libmultipath/structs_vec.c
Examining data/multipath-tools-0.8.4/libmultipath/structs_vec.h
Examining data/multipath-tools-0.8.4/libmultipath/switchgroup.c
Examining data/multipath-tools-0.8.4/libmultipath/switchgroup.h
Examining data/multipath-tools-0.8.4/libmultipath/sysfs.c
Examining data/multipath-tools-0.8.4/libmultipath/sysfs.h
Examining data/multipath-tools-0.8.4/libmultipath/time-util.c
Examining data/multipath-tools-0.8.4/libmultipath/time-util.h
Examining data/multipath-tools-0.8.4/libmultipath/uevent.c
Examining data/multipath-tools-0.8.4/libmultipath/uevent.h
Examining data/multipath-tools-0.8.4/libmultipath/unaligned.h
Examining data/multipath-tools-0.8.4/libmultipath/util.c
Examining data/multipath-tools-0.8.4/libmultipath/util.h
Examining data/multipath-tools-0.8.4/libmultipath/uxsock.c
Examining data/multipath-tools-0.8.4/libmultipath/uxsock.h
Examining data/multipath-tools-0.8.4/libmultipath/vector.c
Examining data/multipath-tools-0.8.4/libmultipath/vector.h
Examining data/multipath-tools-0.8.4/libmultipath/version.h
Examining data/multipath-tools-0.8.4/libmultipath/wwids.c
Examining data/multipath-tools-0.8.4/libmultipath/wwids.h
Examining data/multipath-tools-0.8.4/libmultipath/blacklist.c
Examining data/multipath-tools-0.8.4/libmultipath/structs.h
Examining data/multipath-tools-0.8.4/mpathpersist/main.c
Examining data/multipath-tools-0.8.4/mpathpersist/main.h
Examining data/multipath-tools-0.8.4/multipath/main.c
Examining data/multipath-tools-0.8.4/multipathd/cli.c
Examining data/multipath-tools-0.8.4/multipathd/cli.h
Examining data/multipath-tools-0.8.4/multipathd/cli_handlers.c
Examining data/multipath-tools-0.8.4/multipathd/cli_handlers.h
Examining data/multipath-tools-0.8.4/multipathd/dmevents.c
Examining data/multipath-tools-0.8.4/multipathd/dmevents.h
Examining data/multipath-tools-0.8.4/multipathd/main.c
Examining data/multipath-tools-0.8.4/multipathd/main.h
Examining data/multipath-tools-0.8.4/multipathd/pidfile.c
Examining data/multipath-tools-0.8.4/multipathd/pidfile.h
Examining data/multipath-tools-0.8.4/multipathd/uxclnt.c
Examining data/multipath-tools-0.8.4/multipathd/uxclnt.h
Examining data/multipath-tools-0.8.4/multipathd/uxlsnr.c
Examining data/multipath-tools-0.8.4/multipathd/uxlsnr.h
Examining data/multipath-tools-0.8.4/multipathd/waiter.c
Examining data/multipath-tools-0.8.4/multipathd/waiter.h
Examining data/multipath-tools-0.8.4/tests/alias.c
Examining data/multipath-tools-0.8.4/tests/blacklist.c
Examining data/multipath-tools-0.8.4/tests/directio.c
Examining data/multipath-tools-0.8.4/tests/dmevents.c
Examining data/multipath-tools-0.8.4/tests/globals.c
Examining data/multipath-tools-0.8.4/tests/hwtable.c
Examining data/multipath-tools-0.8.4/tests/parser.c
Examining data/multipath-tools-0.8.4/tests/pgpolicy.c
Examining data/multipath-tools-0.8.4/tests/test-lib.c
Examining data/multipath-tools-0.8.4/tests/test-lib.h
Examining data/multipath-tools-0.8.4/tests/test-log.c
Examining data/multipath-tools-0.8.4/tests/test-log.h
Examining data/multipath-tools-0.8.4/tests/uevent.c
Examining data/multipath-tools-0.8.4/tests/unaligned.c
Examining data/multipath-tools-0.8.4/tests/util.c
Examining data/multipath-tools-0.8.4/tests/vpd.c
Examining data/multipath-tools-0.8.4/third-party/valgrind/drd.h
Examining data/multipath-tools-0.8.4/third-party/valgrind/valgrind.h

FINAL RESULTS:

data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:110:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			ssize_t nchars = readlink(path, buffer, sizeof(buffer)-1);
data/multipath-tools-0.8.4/libmultipath/util.c:182:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			    readlink(block_path, dev, FILE_NAME_SIZE-1) > 0) {
data/multipath-tools-0.8.4/kpartx/devmapper.c:128:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(prefixed_uuid, len, UUID_PREFIX "%s", part, uuid);
data/multipath-tools-0.8.4/kpartx/kpartx.c:99:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(VERSION_STRING);
data/multipath-tools-0.8.4/kpartx/kpartx.h:24:11:  [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.
		__ret = snprintf(var, __size, format, ##args);		\
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:103:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(ctx->last_err_msg, _LAST_ERR_MSG_BUFF_SIZE,
data/multipath-tools-0.8.4/libdmmp/libdmmp_misc.c:74:19:  [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.
	printed_bytes += vfprintf(stderr, format, args);
data/multipath-tools-0.8.4/libdmmp/libdmmp_private.h:136: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, 6, 7)));
data/multipath-tools-0.8.4/libdmmp/libdmmp_private.h:143: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, 6, 0)));
data/multipath-tools-0.8.4/libdmmp/test/libdmmp_test.c:34:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "FAIL: "__VA_ARGS__ ); \
data/multipath-tools-0.8.4/libdmmp/test/libdmmp_test.c:37:19:  [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 PASS(...) fprintf(stdout, "PASS: "__VA_ARGS__ );
data/multipath-tools-0.8.4/libmpathpersist/mpath_updatepr.c:69:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "setprkey key %" PRIx64 "%s", prkey, flagstr);
data/multipath-tools-0.8.4/libmultipath/alias.c:59: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(name, prefix);
data/multipath-tools-0.8.4/libmultipath/callout.c:88:12:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		retval = execv(argv[0], argv);
data/multipath-tools-0.8.4/libmultipath/callout.c:163: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(dst, string);
data/multipath-tools-0.8.4/libmultipath/config.c:320: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(dst, str);
data/multipath-tools-0.8.4/libmultipath/debug.c:44:4:  [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, fmt, ap);
data/multipath-tools-0.8.4/libmultipath/debug.h:2: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, 3, 4)));
data/multipath-tools-0.8.4/libmultipath/devmapper.c:62: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, 4, 5))) static void
data/multipath-tools-0.8.4/libmultipath/devmapper.c:88: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, f, ap);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:358:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(prefixed_uuid, UUID_PREFIX "%s", mpp->wwid);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1481: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(n, newdep);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1484:2:  [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(n, p);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:47:8:  [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.
	ret = snprintf(p, end - p, ##args);				\
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:199:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	return snprintf(buff, len, N_A);
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:332: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.
		return snprintf(buff, len, N_A);
data/multipath-tools-0.8.4/libmultipath/log.c:123:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buff, MAX_MSG_SIZE, fmt, ap);
data/multipath-tools-0.8.4/libmultipath/log.h:12:36:  [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 logdbg(file, fmt, args...) fprintf(file, fmt, ##args)
data/multipath-tools-0.8.4/libmultipath/log.h:38: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/multipath-tools-0.8.4/libmultipath/log_pthread.h:7: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/multipath-tools-0.8.4/libmultipath/memory.c:116:2:  [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, str);
data/multipath-tools-0.8.4/libmultipath/print.c:59:8:  [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.
	fwd = snprintf(var, size, format, ##args); \
data/multipath-tools-0.8.4/libmultipath/print.c:1224: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(f, "|-+- " PRINT_PG_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1226: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(f, "`-+- " PRINT_PG_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1244:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(f, " |- " PRINT_PATH_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1246:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(f, " `- " PRINT_PATH_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1269: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.
		fwd += snprintf(buff + fwd, len - fwd, PRINT_JSON_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1287: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.
	fwd +=  snprintf(buff + fwd, len  - fwd, PRINT_JSON_START_VERSION,
data/multipath-tools-0.8.4/libmultipath/print.c:1298: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.
		fwd += snprintf(buff + fwd, len - fwd, PRINT_JSON_INDENT);
data/multipath-tools-0.8.4/libmultipath/print.c:1332: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.
		fwd += snprintf(buff + fwd, len - fwd, PRINT_JSON_GROUP_NUM, i + 1);
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:54: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(args, "timeout=%i preferredsds=%s",
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:56:11:  [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.
	else if (sscanf(args, "preferredsds=%s timeout=%i",
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:58:11:  [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.
	else if (sscanf(args, "preferredsds=%s",
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:87: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(args, "preferredip=%s", preferredip) ==1) {}
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:109: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(path,dir_entry_p->d_name);
data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.c:107: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(path, pp->dev);
data/multipath-tools-0.8.4/libmultipath/prkey.c:104:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	bytes = sprintf(buf, "%s %s\n", keystr, wwid);
data/multipath-tools-0.8.4/libmultipath/prkey.c:171:4:  [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(keystr, PRKEY_SIZE, "0X%016" PRIx64, prkey);
data/multipath-tools-0.8.4/libmultipath/prkey.c:173:4:  [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(keystr, PRKEY_SIZE, "0x%016" PRIx64, prkey);
data/multipath-tools-0.8.4/libmultipath/structs.c:695: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(n, p);
data/multipath-tools-0.8.4/libmultipath/structs_vec.c:437: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(mpp->wwid, pp->wwid);
data/multipath-tools-0.8.4/libmultipath/util.c:206:11:  [4] (buffer) fscanf:
  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.
		int r = fscanf(fd,"%u %u %*d %s",&tmpmaj, &tmpmin, dev);
data/multipath-tools-0.8.4/libmultipath/util.h:39:11:  [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.
		__ret = snprintf(var, __size, format, ##args);		\
data/multipath-tools-0.8.4/mpathpersist/main.c:823:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, VERSION_STRING);
data/multipath-tools-0.8.4/multipath/main.c:134:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf (stderr, VERSION_STRING);
data/multipath-tools-0.8.4/multipathd/cli.c:399: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.
	len += snprintf(reply + len, maxlen - len, VERSION_STRING);
data/multipath-tools-0.8.4/multipathd/main.c:1235: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(wwid, pp->wwid);
data/multipath-tools-0.8.4/multipathd/main.c:1239: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(pp->wwid, wwid);
data/multipath-tools-0.8.4/tests/dmevents.c:171: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(np->name, dev->name);
data/multipath-tools-0.8.4/tests/hwtable.c:74: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, buflen, fn_template, hwt->tmpname, 0);
data/multipath-tools-0.8.4/tests/hwtable.c:76: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, buflen, fn_template, hwt->dirname, i);
data/multipath-tools-0.8.4/tests/pgpolicy.c:57: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(pp[i].tgt_node_name, tgt_node_name[i]);
data/multipath-tools-0.8.4/tests/pgpolicy.c:66: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(pp[i].serial, serial[i]);
data/multipath-tools-0.8.4/tests/test-log.c:9: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/multipath-tools-0.8.4/tests/test-log.c:17:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buff, MAX_MSG_SIZE, fmt, ap);
data/multipath-tools-0.8.4/tests/vpd.c:384: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(p, src);
data/multipath-tools-0.8.4/kpartx/kpartx.c:157:8:  [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.
	var = getenv("ACTION");
data/multipath-tools-0.8.4/kpartx/kpartx.c:163:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(devname = getenv("DEVNAME")))
data/multipath-tools-0.8.4/kpartx/kpartx.c:259:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((arg = getopt(argc, argv, short_opts)) != EOF)
data/multipath-tools-0.8.4/kpartx/kpartx.c:334:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (realpath(device, rpath) == NULL) {
data/multipath-tools-0.8.4/kpartx/lopart.c:124:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			found = realpath(path, NULL);
data/multipath-tools-0.8.4/kpartx/lopart.c:152:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			found = realpath(path, NULL);
data/multipath-tools-0.8.4/libmultipath/config.c:702:15:  [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.
	char *envp = getenv("WATCHDOG_USEC");
data/multipath-tools-0.8.4/libmultipath/discovery.c:1881:11:  [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.
		value = getenv(uid_attribute);
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:487:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	ppath = realpath(syspath, real);
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:667:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (realpath(pathbuf, realbuf) == NULL) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/random.c:15:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)tv.tv_usec);
data/multipath-tools-0.8.4/mpathpersist/main.c:191:7:  [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.
		c = getopt_long (argc, argv, "v:Cd:hHioYZK:S:PAT:skrGILcRX:l:f:",
data/multipath-tools-0.8.4/multipath/main.c:532:31:  [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.
	const char *dm_mp_dev_path = getenv(dmdp);
data/multipath-tools-0.8.4/multipath/main.c:910:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((arg = getopt(argc, argv, ":adcChl::FfM:v:p:b:BrR:itTquUwW")) != EOF ) {
data/multipath-tools-0.8.4/multipathd/main.c:2732: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.
	envp = getenv("OOMScoreAdjust");
data/multipath-tools-0.8.4/multipathd/main.c:2835: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.
	envp = getenv("LimitNOFILE");
data/multipath-tools-0.8.4/multipathd/main.c:3112:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((arg = getopt(argc, argv, ":dsv:k::Bniw")) != EOF ) {
data/multipath-tools-0.8.4/tests/alias.c:318:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(1);
data/multipath-tools-0.8.4/tests/alias.c:320:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		n = random() & 0xffff;
data/multipath-tools-0.8.4/kpartx/bsd.c:12: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	d_typename[16];		/* type name, e.g. "eagle" */
data/multipath-tools-0.8.4/kpartx/bsd.c:13: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	d_packname[16];		/* pack identifier */
data/multipath-tools-0.8.4/kpartx/dasd.c:77: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 type[5] = {0,};
data/multipath-tools-0.8.4/kpartx/dasd.c: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 pathname[256];
data/multipath-tools-0.8.4/kpartx/dasd.c:118: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(pathname, "/dev/.kpartx-node-%u-%u",
data/multipath-tools-0.8.4/kpartx/dasd.c:120:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd_dasd = open(pathname, O_RDONLY)) == -1) {
data/multipath-tools-0.8.4/kpartx/dasd.c:126:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd_dasd = open(pathname, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/dasd.c:193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy ((char *)&vlabel + 4, data, sizeof(vlabel) - 4);
data/multipath-tools-0.8.4/kpartx/dasd.c:234: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(&f1, data, sizeof(format1_label_t));
data/multipath-tools-0.8.4/kpartx/dasd.h:56: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 volkey[4];         /* volume key = volume label                 */
data/multipath-tools-0.8.4/kpartx/dasd.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 vollbl[4];	        /* volume label                              */
data/multipath-tools-0.8.4/kpartx/dasd.h:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char volid[6];	        /* volume identifier                         */
data/multipath-tools-0.8.4/kpartx/dasd.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 res1[5];	        /* reserved                                  */
data/multipath-tools-0.8.4/kpartx/dasd.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 cisize[4];	        /* CI-size for FBA,...                       */
data/multipath-tools-0.8.4/kpartx/dasd.h: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 blkperci[4];       /* no of blocks per CI (FBA), blanks for CKD */
data/multipath-tools-0.8.4/kpartx/dasd.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 labperci[4];       /* no of labels per CI (FBA), blanks for CKD */
data/multipath-tools-0.8.4/kpartx/dasd.h:66: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 res2[4];	        /* reserved                                  */
data/multipath-tools-0.8.4/kpartx/dasd.h:67: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 lvtoc[14];	        /* owner code for LVTOC                      */
data/multipath-tools-0.8.4/kpartx/dasd.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char res3[28];	        /* reserved                                  */
data/multipath-tools-0.8.4/kpartx/dasd.h:100: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  DS1DSNAM[44];       /* data set name                           */
data/multipath-tools-0.8.4/kpartx/dasd.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  DS1DSSN[6];         /* data set serial number                  */
data/multipath-tools-0.8.4/kpartx/dasd.h:109: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  DS1SYSCD[13];       /* system code                             */
data/multipath-tools-0.8.4/kpartx/dasd.h:124: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 DS1SCAL3[3];         /* secondary allocation quantity           */
data/multipath-tools-0.8.4/kpartx/dasd.h:150: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 type[4];			/* from discipline.name, 'none' for unknown */
data/multipath-tools-0.8.4/kpartx/dasd.h:156: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 characteristics[64];	/* from read_device_characteristics */
data/multipath-tools-0.8.4/kpartx/dasd.h:157: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 configuration_data[256];	/* from read_configuration_data */
data/multipath-tools-0.8.4/kpartx/dasd.h:172:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char EBCtoASC[256] =
data/multipath-tools-0.8.4/kpartx/devmapper.c:530: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 params[PARAMS_SIZE];
data/multipath-tools-0.8.4/kpartx/devmapper.c:532: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 dev_t[32];
data/multipath-tools-0.8.4/kpartx/devmapper.c:560:2:  [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(dev_t, "%d:%d", major(devt), minor(devt));
data/multipath-tools-0.8.4/kpartx/devmapper.c:645: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 params[PARAMS_SIZE];
data/multipath-tools-0.8.4/kpartx/devmapper.c:649: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 dev_t[32];
data/multipath-tools-0.8.4/kpartx/devmapper.c:710: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 uuid_buf[NONDM_UUID_BUFLEN];
data/multipath-tools-0.8.4/kpartx/kpartx.c:221: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 partname[PARTNAME_SIZE], params[PARTNAME_SIZE + 16];
data/multipath-tools-0.8.4/kpartx/kpartx.c:333: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 rpath[PATH_MAX];
data/multipath-tools-0.8.4/kpartx/kpartx.c:391:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(device, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:66: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 dev[64], *found = NULL, *p;
data/multipath-tools-0.8.4/kpartx/lopart.c:71: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[PATH_MAX];
data/multipath-tools-0.8.4/kpartx/lopart.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 bf_path[PATH_MAX];
data/multipath-tools-0.8.4/kpartx/lopart.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char backing_file[PATH_MAX];
data/multipath-tools-0.8.4/kpartx/lopart.c:87:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:106:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open (path, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:137:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(bf_path, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:162: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 dev[20], *next_loop_dev = NULL;
data/multipath-tools-0.8.4/kpartx/lopart.c:173:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			next_loop_fd = open("/dev/loop-control", O_RDWR);
data/multipath-tools-0.8.4/kpartx/lopart.c:182: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(dev, "/dev/loop%d", next_loop);
data/multipath-tools-0.8.4/kpartx/lopart.c:184:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open (dev, O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:206: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 ((procdev = fopen(PROC_DEVICES, "r")) != NULL) {
data/multipath-tools-0.8.4/kpartx/lopart.c:207: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 line[100];
data/multipath-tools-0.8.4/kpartx/lopart.c:253:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ffd = open (file, mode)) < 0) {
data/multipath-tools-0.8.4/kpartx/lopart.c:256:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			ffd = open (file, mode = O_RDONLY);
data/multipath-tools-0.8.4/kpartx/lopart.c:264:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (device, mode)) < 0) {
data/multipath-tools-0.8.4/kpartx/lopart.c:303:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (device, O_RDONLY)) < 0) {
data/multipath-tools-0.8.4/kpartx/ps3.c:44: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((unsigned char *) label + i * SECTOR_SIZE, data, SECTOR_SIZE);
data/multipath-tools-0.8.4/kpartx/solaris.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	v_volume[8];		/* volume name */
data/multipath-tools-0.8.4/kpartx/solaris.c:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	v_asciilabel[128];	/* for compatibility */
data/multipath-tools-0.8.4/kpartx/sun.c:29: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		info[128];	/* Informative text string */
data/multipath-tools-0.8.4/kpartx/unixware.c:18: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  d_magic[4];	/* the magic number */
data/multipath-tools-0.8.4/kpartx/unixware.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    d_serial[12];		/* serial number of the device */
data/multipath-tools-0.8.4/kpartx/unixware.c:38: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   v_magic[4];	/* the magic number */
data/multipath-tools-0.8.4/kpartx/unixware.c:40: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    v_name[8];		/* volume name */
data/multipath-tools-0.8.4/libdmmp/libdmmp.c: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 last_err_msg[_LAST_ERR_MSG_BUFF_SIZE];
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:283: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 errno_str_buff[_ERRNO_STR_BUFF_SIZE];
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:387: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 errno_str_buff[_ERRNO_STR_BUFF_SIZE];
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:420:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[_IPC_MAX_CMD_LEN];
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:478:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[_IPC_MAX_CMD_LEN];
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:308: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(&prkey, paramp->sa_key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:313: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(&mpp->reservation_key, paramp->sa_key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:372: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 params[PARAMS_SIZE], status[PARAMS_SIZE];
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:532: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(&paramp->key, &paramp->sa_key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:760: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 (pamp->key, &mpp->reservation_key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:783: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 (pamp->sa_key,
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:788: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 (pamp->trnptid_list[0],
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:795: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 (pamp->key, pr_buff->prin_descriptor.prin_readfd.descriptors[i]->key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:812: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 (pamp->sa_key, &mpp->reservation_key, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.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 devname[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:53:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(devname, O_RDONLY);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:59: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 cdb[MPATH_PROUT_CMDLEN] =
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:155: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(&paramp->private_buffer[buff_offset], &paramp->trnptid_list[i]->n_port_name, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:161: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(&paramp->private_buffer[buff_offset], &paramp->trnptid_list[i]->sas_address, 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:167: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(&paramp->private_buffer[buff_offset], &paramp->trnptid_list[i]->iscsi_name,len);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:212: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 tempbuff[MPATH_MAX_PARAM_LEN];
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:233: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( tempbuff, pr_buff->prin_descriptor.prin_readfd.private_buffer,MPATH_MAX_PARAM_LEN );
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:240: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(&fdesc.key, p, 8 );
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:258: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(ppbuff, &fdesc, sizeof(struct prin_fulldescr));
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:279: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(&fdesc->trnptid.n_port_name, &p[8], 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:286: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(&fdesc->trnptid.iscsi_name, &p[4], num);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:290: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(&fdesc->trnptid.sas_address, &p[4], 8);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:308: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 devname[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:309: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 cdb[MPATH_PRIN_CMDLEN] =
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:313:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(devname, O_RDONLY);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:489: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 buff[82];
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:503: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(&buff[bpos], "%.2x", (int)(unsigned char)c);
data/multipath-tools-0.8.4/libmpathpersist/mpath_updatepr.c:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/multipath-tools-0.8.4/libmpathpersist/mpath_updatepr.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 str[256];
data/multipath-tools-0.8.4/libmpathpersist/mpath_updatepr.c:71: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(str, "unsetprkey");
data/multipath-tools-0.8.4/libmpathpersist/mpathpr.h:7: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 dev[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmpathpersist/mpathpr.h:15: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 dev[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/alias.c:118: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[LINE_MAX];
data/multipath-tools-0.8.4/libmultipath/alias.c:188: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 line[LINE_MAX];
data/multipath-tools-0.8.4/libmultipath/alias.c:231: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[LINE_MAX];
data/multipath-tools-0.8.4/libmultipath/alias.c:287: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 buff[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/blacklist.c:354: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[PROTOCOL_BUF_SIZE];
data/multipath-tools-0.8.4/libmultipath/callout.c:32: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 arg[CALLOUT_MAX_SIZE];
data/multipath-tools-0.8.4/libmultipath/callout.c:34: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[argc + 1];
data/multipath-tools-0.8.4/libmultipath/callout.c:81:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		null_fd = open("/dev/null", O_WRONLY);
data/multipath-tools-0.8.4/libmultipath/checkers.c:16: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[CHECKER_NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char libname[LIB_CHECKER_NAMELEN];
data/multipath-tools-0.8.4/libmultipath/checkers.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 *generic_msg[CHECKER_GENERIC_MSGTABLE_SIZE] = {
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.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 wwn[16];
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:136: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 sense_buffer[128] = { 0, };
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:137: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 sb[SENSE_BUFF_LEN] = { 0, }, *sbb;
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:138: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 inqCmdBlk[INQUIRY_CMDLEN] = {INQUIRY_CMD, 1, 0xC0, 0,
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:143: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 wwnstr[33];
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:259: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(ct->wwn, &sense_buffer[10], 16);
data/multipath-tools-0.8.4/libmultipath/checkers/emc_clariion.c:267: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 buf[4096];
data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.c:49: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 inqCmdBlk[INQUIRY_CMDLEN] =
data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.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 sense_b[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.c:107: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 turCmdBlk[TUR_CMD_LEN] = { 0x00, 0, 0, 0, 0, 0 };
data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.c:109: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 sense_buffer[32];
data/multipath-tools-0.8.4/libmultipath/checkers/hp_sw.c:132: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 buff[MX_ALLOC_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers/libsg.c:23: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 rdCmd[cdbsz];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:50: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 header[8];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:53: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 dontcare0[3];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.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 dontcare1[6];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:64:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char cmd[MODE_SEN_SEL_CMDLEN];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:65:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sense_b[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c: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 inqCmdBlk[INQUIRY_CMDLEN] = { INQUIRY_CMD, 1, 0, 0, 0, 0 };
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:146: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 sense_b[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:215: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 dontcare0[7];
data/multipath-tools-0.8.4/libmultipath/checkers/rdac.c:222: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 dontcare1[34];
data/multipath-tools-0.8.4/libmultipath/checkers/readsector0.c:25:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4096];
data/multipath-tools-0.8.4/libmultipath/checkers/readsector0.c:26: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 sbuf[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/checkers/tur.c:112: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 turCmdBlk[TUR_CMD_LEN] = { 0x00, 0, 0, 0, 0, 0 };
data/multipath-tools-0.8.4/libmultipath/checkers/tur.c:113: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 sense_buffer[32];
data/multipath-tools-0.8.4/libmultipath/config.c:338: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 id[SCSI_VENDOR_SIZE+PATH_PRODUCT_SIZE];
data/multipath-tools-0.8.4/libmultipath/config.c:662: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[LINE_MAX];
data/multipath-tools-0.8.4/libmultipath/configure.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char adapter_name1[SLOT_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/configure.c: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 adapter_name2[SLOT_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/configure.c:616: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 buff[11];
data/multipath-tools-0.8.4/libmultipath/configure.c:1093: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 params[PARAMS_SIZE];
data/multipath-tools-0.8.4/libmultipath/configure.c:1279: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 alias[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/configure.c:1349: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 buff[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/configure.c:1525: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/libmultipath/debug.c:36: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 buff[16];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:80: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 buff[16];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:109: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[64];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:138: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 buff[64];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:254: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(conf->version, version, sizeof(version));
data/multipath-tools-0.8.4/libmultipath/devmapper.c:589:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[DM_UUID_LEN];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:606: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 part_uuid[DM_UUID_LEN], map_uuid[DM_UUID_LEN];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:848: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/libmultipath/devmapper.c:999:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[32];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1010:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[32];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1034:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[32];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1216: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 params[PARAMS_SIZE];
data/multipath-tools-0.8.4/libmultipath/devmapper.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 dev_t[32];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1404: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 buff[PARAMS_SIZE];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1563: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 dev_t[32], dm_dep[32];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1595: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(dm_dep, "%d:%d",
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1611: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 heads[4], sectors[4];
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1612: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 cylinders[10], start[32];
data/multipath-tools-0.8.4/libmultipath/dict.c:732: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 passwd_buf[1024];
data/multipath-tools-0.8.4/libmultipath/dict.c:757: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 passwd_buf[1024];
data/multipath-tools-0.8.4/libmultipath/dict.c:915: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[POLICY_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/dict.c:941:9:  [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("/proc/sys/fs/nr_open", "r");
data/multipath-tools-0.8.4/libmultipath/dict.c:982:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		conf->max_fds = atoi(buff);
data/multipath-tools-0.8.4/libmultipath/dict.c:1068:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*int_ptr = atoi(buff);
data/multipath-tools-0.8.4/libmultipath/dict.c:1115:23:  [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).
	else if ((*int_ptr = atoi(buff)) < 1)
data/multipath-tools-0.8.4/libmultipath/dict.c:1270:23:  [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).
	else if ((*int_ptr = atoi(buff)) < 1)
data/multipath-tools-0.8.4/libmultipath/discovery.c:134: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 devt[BLK_DEV_SIZE];
data/multipath-tools-0.8.4/libmultipath/discovery.c:287: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 attrname[9];
data/multipath-tools-0.8.4/libmultipath/discovery.c:491: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 host_name[HOST_NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/discovery.c:497:2:  [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(host_name, "host%d", pp->sg_id.host_no);
data/multipath-tools-0.8.4/libmultipath/discovery.c:530: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 host_name[HOST_NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/discovery.c:533:2:  [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(host_name, "host%d", pp->sg_id.host_no);
data/multipath-tools-0.8.4/libmultipath/discovery.c:553: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 value[16], *eptr;
data/multipath-tools-0.8.4/libmultipath/discovery.c:584: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 value[16], *eptr;
data/multipath-tools-0.8.4/libmultipath/discovery.c:585: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 rport_id[32];
data/multipath-tools-0.8.4/libmultipath/discovery.c:589:2:  [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(rport_id, "rport-%d:%d-%d",
data/multipath-tools-0.8.4/libmultipath/discovery.c:658:4:  [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(value, "off");
data/multipath-tools-0.8.4/libmultipath/discovery.c:693: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 session_id[64];
data/multipath-tools-0.8.4/libmultipath/discovery.c:694: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 value[11];
data/multipath-tools-0.8.4/libmultipath/discovery.c:696:2:  [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_id, "session%d", pp->sg_id.transport_id);
data/multipath-tools-0.8.4/libmultipath/discovery.c:734: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 end_dev_id[64];
data/multipath-tools-0.8.4/libmultipath/discovery.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 value[11];
data/multipath-tools-0.8.4/libmultipath/discovery.c:737:2:  [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(end_dev_id, "end_device-%d:%d",
data/multipath-tools-0.8.4/libmultipath/discovery.c:808: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 inqCmdBlk[INQUIRY_CMDLEN] =
data/multipath-tools-0.8.4/libmultipath/discovery.c:810: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 sense_b[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/discovery.c:861: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 buff[MX_ALLOC_LEN + 1] = {0};
data/multipath-tools-0.8.4/libmultipath/discovery.c:871: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(str, buff + 4, len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:994: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(out, in + 4, len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1088:9:  [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.
		len = sprintf(out, "%d", vpd_type);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1096:11:  [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.
			len += sprintf(out + len,
data/multipath-tools-0.8.4/libmultipath/discovery.c:1143: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(out + len, vpd, p_len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1169: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(out + len, vpd, p_len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1200: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(out, &in[44], len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1209: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 buff[4096];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1240: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 buff[4096];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1270: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 (str, buff, len);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1369:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pp->sg_id.lun = attr ? atoi(attr) : 0;
data/multipath-tools-0.8.4/libmultipath/discovery.c:1372:29:  [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).
	pp->sg_id.channel = attr ? atoi(attr) : 0;
data/multipath-tools-0.8.4/libmultipath/discovery.c:1396: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 attr_buff[NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1409:2:  [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(pp->vendor_id, "IBM");
data/multipath-tools-0.8.4/libmultipath/discovery.c:1417: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(pp->product_id,"S/390 DASD FBA");
data/multipath-tools-0.8.4/libmultipath/discovery.c:1419: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(pp->product_id,"S/390 DASD FBA");
data/multipath-tools-0.8.4/libmultipath/discovery.c:1421: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(pp->product_id,"S/390 DASD ECKD");
data/multipath-tools-0.8.4/libmultipath/discovery.c:1538: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 buff[SCSI_STATE_SIZE];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1653: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 vpd_data[VPD_DATA_SIZE] = {0};
data/multipath-tools-0.8.4/libmultipath/discovery.c:1835: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 mangled[256];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1849: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(mangled, value, len + 1);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1868: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(pp->wwid, mangled, len + 1);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1933: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 value[256];
data/multipath-tools-0.8.4/libmultipath/discovery.c:1989: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 buff[CALLOUT_MAX_SIZE];
data/multipath-tools-0.8.4/libmultipath/discovery.c:2121:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		pp->fd = open(udev_device_get_devnode(pp->udev), O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:152:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_features = atoi(mpp->features);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:176:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_hwhandler = atoi(mpp->hwhandler);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:199:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_pg = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:221:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mpp->nextpg = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:243:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			num_pg_args = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:272:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num_paths = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:280:20:  [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_paths_args = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:284: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 devname[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/dmparser.c:359:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					def_minio = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:414:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_feature_args = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:424:20:  [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).
			mpp->queuedio = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:439:23:  [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_hwhandler_args = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:453:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_pg = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:503:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num_paths = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:511:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num_pg_args = atoi(word);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:551:20:  [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).
			pp->failcount = atoi(word);
data/multipath-tools-0.8.4/libmultipath/file.c:129:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(file, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
data/multipath-tools-0.8.4/libmultipath/file.c:135:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(file, O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/foreign.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 pathbuf[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/foreign.c:146: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 errbuf[64];
data/multipath-tools-0.8.4/libmultipath/foreign.h:191: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[0];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fld[NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:237: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 fld[NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:483: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 real[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:586: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 sys_path[64];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:597:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(sys_path, O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:618: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 pathbuf[PATH_MAX], realbuf[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:747: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 state[16];
data/multipath-tools-0.8.4/libmultipath/generic.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char alias_buf[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/generic.c:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wwid_buf[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/io_err_stat.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		devname[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/io_err_stat.c:130: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 fpath[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/io_err_stat.c:137:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		p->fd = open(fpath, O_RDONLY | O_DIRECT);
data/multipath-tools-0.8.4/libmultipath/log.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[MAX_MSG_SIZE];
data/multipath-tools-0.8.4/libmultipath/log.c:155: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((void *)&msg->str, buff, strlen(buff) + 1);
data/multipath-tools-0.8.4/libmultipath/log.c:181:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src,  len);
data/multipath-tools-0.8.4/libmultipath/log.h:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[0];
data/multipath-tools-0.8.4/libmultipath/memory.c:225:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    ((long *) ((char *) alloc_list[i].ptr +
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:213: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			sn[20];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.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			mn[40];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:215: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			fr[8];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:283: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			subnqn[256];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1249: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		trsvcid[NVMF_TRSVCID_SIZE];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1251: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		subnqn[NVMF_NQN_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1252: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		traddr[NVMF_TRADDR_SIZE];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1254: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		common[NVMF_TSAS_SIZE];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1297: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		resv4[238];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1298: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		subsysnqn[NVMF_NQN_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1299: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		hostnqn[NVMF_NQN_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/nvme/linux/nvme.h:1300: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		resv5[256];
data/multipath-tools-0.8.4/libmultipath/nvme/nvme.h:150: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                node[1024];
data/multipath-tools-0.8.4/libmultipath/parser.c:246: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(token, quote_marker, sizeof(quote_marker));
data/multipath-tools-0.8.4/libmultipath/parser.c:284: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(token, start, strlen);
data/multipath-tools-0.8.4/libmultipath/parser.c:346: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(alloc, str, size);
data/multipath-tools-0.8.4/libmultipath/parser.c:589: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).
	stream = fopen(file, "r");
data/multipath-tools-0.8.4/libmultipath/print.c:557: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 host_id[32];
data/multipath-tools-0.8.4/libmultipath/print.c:563:2:  [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(host_id, "host%d", pp->sg_id.host_no);
data/multipath-tools-0.8.4/libmultipath/print.c:596: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 rport_id[32];
data/multipath-tools-0.8.4/libmultipath/print.c:602:2:  [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(rport_id, "rport-%d:%d-%d",
data/multipath-tools-0.8.4/libmultipath/print.c:633: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 adapter[SLOT_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/print.c:832: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 buff[MAX_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/print.c:873: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 buff[MAX_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/print.c:1001: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 buff[MAX_FIELD_LEN] = {};
data/multipath-tools-0.8.4/libmultipath/print.c:1068: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 buff[MAX_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/print.c:1103: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 buff[MAX_FIELD_LEN];
data/multipath-tools-0.8.4/libmultipath/print.c:1184: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 style[64];
data/multipath-tools-0.8.4/libmultipath/print.c:1186: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 fmt[64];
data/multipath-tools-0.8.4/libmultipath/print.c:1198:8:  [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.
		c += sprintf(c, "%c[%dm", 0x1B, 1); /* bold on */
data/multipath-tools-0.8.4/libmultipath/print.c:1203:8:  [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.
		c += sprintf(c, "%c[%dm", 0x1B, 0); /* bold off */
data/multipath-tools-0.8.4/libmultipath/print.c:2035: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 devpath[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/print.c:2099: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 line[MAX_LINE_LEN];
data/multipath-tools-0.8.4/libmultipath/print.c:2115: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 line[MAX_LINE_LEN];
data/multipath-tools-0.8.4/libmultipath/prio.c:92: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 libname[LIB_PRIO_NAMELEN];
data/multipath-tools-0.8.4/libmultipath/prio.h:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[PRIO_NAME_LEN];
data/multipath-tools-0.8.4/libmultipath/prio.h:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char args[PRIO_ARGS_LEN];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_rtpg.c:144: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		sense[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_rtpg.c:324: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		sense[SENSE_BUFF_LEN];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:33: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	length[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.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	vendor_identification[8];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:121: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	product_identification[16];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:122: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	product_revision[4];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:123: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	vendor_specific[20];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:129: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	version_descriptor[8][2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:130:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	reserved5[22];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:131:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	vendor_parameters[0];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:163: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		reserved1[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:164: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		tpg[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:176: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];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:189: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		length[2];			/* size-4    */
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:224: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			reserved2[4];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:225: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			length[4];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:237: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			obsolete1[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:239: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			rtpi[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:265: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			tpg[2];
data/multipath-tools-0.8.4/libmultipath/prioritizers/alua_spc3.h:280: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			length[4];		/* size-4 */
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.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 sdsname[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:39:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char inqCmdBlk[INQ_CMD_LEN] = { INQ_CMD_CODE, 0, 0, 0, INQ_REPLY_LEN, 0 };
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:40: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 inqBuff[INQ_REPLY_LEN];
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:42: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 sense_buffer[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char preferredsds_buff[255] = "";
data/multipath-tools-0.8.4/libmultipath/prioritizers/emc.c:17: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 sense_buffer[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/emc.c:18: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 sb[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/emc.c:19: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 inqCmdBlk[INQUIRY_CMDLEN] = {INQUIRY_CMD, 1, 0xC0, 0,
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char vendor[9];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char product[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:92: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 serial[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:93: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 ldev[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctrl[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:95: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 port[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:96: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 inqCmdBlk[INQ_CMD_LEN] = { INQ_CMD_CODE, 0, 0, 0, INQ_REPLY_LEN, 0 };
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:97: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 inqBuff[INQ_REPLY_LEN];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hds.c:99:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sense_buffer[32];
data/multipath-tools-0.8.4/libmultipath/prioritizers/hp_sw.c:37:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char turCmdBlk[TUR_CMD_LEN] = { 0x00, 0, 0, 0, 0, 0 };
data/multipath-tools-0.8.4/libmultipath/prioritizers/hp_sw.c:38: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 sb[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c: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 preferredip_buff[255] = "";
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:101: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[BUFFERSIZE];
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[BUFFERSIZE] = "/dev/disk/by-path/";
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:108: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 path[BUFFERSIZE] = "/dev/disk/by-path/";
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:39: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[10*5+1];
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128*5+1];
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:77:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sb[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:78: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 cdb[10] = {0xc0, 0, 0x1, 0xa, 0x98, 0xa,
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:128: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 results[256];
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:129: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 sb[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:130:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char cdb[INQUIRY_CMDLEN] = {INQUIRY_CMD, 1, 0xc1, 0,
data/multipath-tools-0.8.4/libmultipath/prioritizers/ontap.c:188: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 results[RESULTS_MAX];
data/multipath-tools-0.8.4/libmultipath/prioritizers/rdac.c:17: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 sense_buffer[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/rdac.c:18: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 sb[128];
data/multipath-tools-0.8.4/libmultipath/prioritizers/rdac.c:19: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 inqCmdBlk[INQUIRY_CMDLEN] = {INQUIRY_CMD, 1, 0xC9, 0,
data/multipath-tools-0.8.4/libmultipath/prioritizers/sysfs.c:43: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 buff[512];
data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.c:104: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(path, "%d:%d:%d:%d", pp->sg_id.host_no,
data/multipath-tools-0.8.4/libmultipath/prioritizers/weightedpath.c:136:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				priority = atoi(prio);
data/multipath-tools-0.8.4/libmultipath/prkey.c:22: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[4097];
data/multipath-tools-0.8.4/libmultipath/prkey.c:76: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(keystr, ptr, PRKEY_SIZE - 1);
data/multipath-tools-0.8.4/libmultipath/prkey.c:119: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 keystr[PRKEY_SIZE];
data/multipath-tools-0.8.4/libmultipath/prkey.c:146: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 keystr[PRKEY_SIZE];
data/multipath-tools-0.8.4/libmultipath/propsel.c:194: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 buff[13];
data/multipath-tools-0.8.4/libmultipath/propsel.c:210: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 buff[13];
data/multipath-tools-0.8.4/libmultipath/propsel.c:226: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 buff[POLICY_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/propsel.c:342: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:430: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 handler[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:459: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(handler, "1 ", 2);
data/multipath-tools-0.8.4/libmultipath/propsel.c:498: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 buff[44];
data/multipath-tools-0.8.4/libmultipath/propsel.c:584: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 buff[512];
data/multipath-tools-0.8.4/libmultipath/propsel.c:682: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:747: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:762: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:793: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 buff[PRKEY_SIZE];
data/multipath-tools-0.8.4/libmultipath/propsel.c:910: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:928: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:944: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:988: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1011: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1035: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1059: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1077: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1095: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1113: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/propsel.c:1168: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 buff[12];
data/multipath-tools-0.8.4/libmultipath/structs.c:663:2:  [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(n, "%0d", c);
data/multipath-tools-0.8.4/libmultipath/structs.h:261: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 dev[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:262: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 dev_t[BLK_DEV_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wwid[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:267: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 vendor_id[SCSI_VENDOR_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:268: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 product_id[PATH_PRODUCT_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:269: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 rev[PATH_REV_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:270: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 serial[SERIAL_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:271: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 tgt_node_name[NODE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:314: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 wwid[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:315: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 alias_old[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:419: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 adapter_name[SLOT_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs.h:472:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char sysfs_path[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/structs_vec.c:199: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/libmultipath/structs_vec.c:220: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 status[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/libmultipath/sysfs.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devpath[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:62:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(devpath, O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/sysfs.c:107: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 devpath[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:119:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(devpath, O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/sysfs.c: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 devpath[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:173:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(devpath, O_WRONLY);
data/multipath-tools-0.8.4/libmultipath/sysfs.c:216: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 attr[255];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:242: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[PATH_MAX], check_dev[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:300: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 pathbuf[PATH_MAX];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:328: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 uuid[6];
data/multipath-tools-0.8.4/libmultipath/sysfs.c:334:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(pathbuf, O_RDONLY);
data/multipath-tools-0.8.4/libmultipath/uevent.c:474: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(uev->buffer, buf, HOTPLUG_BUFFER_SIZE + OBJECT_SIZE);
data/multipath-tools-0.8.4/libmultipath/uevent.c:544:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(&sun.sun_path[1], "/org/kernel/dm/multipath_event");
data/multipath-tools-0.8.4/libmultipath/uevent.c:623: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 cred_msg[CMSG_SPACE(sizeof(struct ucred))];
data/multipath-tools-0.8.4/libmultipath/uevent.c:626:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[HOTPLUG_BUFFER_SIZE + OBJECT_SIZE];
data/multipath-tools-0.8.4/libmultipath/uevent.h:22: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[HOTPLUG_BUFFER_SIZE + OBJECT_SIZE];
data/multipath-tools-0.8.4/libmultipath/uevent.h:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *envp[HOTPLUG_NUM_ENVP];
data/multipath-tools-0.8.4/libmultipath/util.c:162: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 dev[FILE_NAME_SIZE];
data/multipath-tools-0.8.4/libmultipath/util.c: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 block_path[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/util.c:178: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(block_path,"/sys/dev/block/%u:%u", major, minor);
data/multipath-tools-0.8.4/libmultipath/util.c:200:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fd = fopen("/proc/partitions", "r"))) {
data/multipath-tools-0.8.4/libmultipath/util.c:295: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[PATH_SIZE], file[PATH_MAX], service[PATH_SIZE];
data/multipath-tools-0.8.4/libmultipath/util.c:372:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		r = r * 256 + (t ? atoi(t) : 0);
data/multipath-tools-0.8.4/libmultipath/uxsock.c:73: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.sun_path[1], name, len);
data/multipath-tools-0.8.4/libmultipath/wwids.c:29: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[LINE_MAX];
data/multipath-tools-0.8.4/libmultipath/wwids.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 buf[WWID_SIZE + 3];
data/multipath-tools-0.8.4/libmultipath/wwids.c:146: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[4097];
data/multipath-tools-0.8.4/libmultipath/wwids.c:305: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 tmp_wwid[WWID_SIZE];
data/multipath-tools-0.8.4/libmultipath/wwids.c:353: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 _shm_lock_path[sizeof(shm_dir)+sizeof(shm_lock)];
data/multipath-tools-0.8.4/libmultipath/wwids.c:392: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[PATH_MAX];
data/multipath-tools-0.8.4/mpathpersist/main.c:85: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).
	fl = fopen(batch_fn, "r");
data/multipath-tools-0.8.4/mpathpersist/main.c:479:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open (device_name, O_RDONLY)) < 0)
data/multipath-tools-0.8.4/mpathpersist/main.c:554: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(paramp->trnptid_list[j], &transportids[j],sizeof(struct transportid));
data/multipath-tools-0.8.4/mpathpersist/main.c:948: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(&transid[num_transportids].sas_address, lcp, 8);
data/multipath-tools-0.8.4/mpathpersist/main.c:970: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(&transid[num_transportids].iscsi_name[2], lcp, len);
data/multipath-tools-0.8.4/multipath/main.c:254: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 params[PARAMS_SIZE], status[PARAMS_SIZE];
data/multipath-tools-0.8.4/multipath/main.c:324: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 params[PARAMS_SIZE], status[PARAMS_SIZE];
data/multipath-tools-0.8.4/multipath/main.c:418: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[PATH_MAX];
data/multipath-tools-0.8.4/multipath/main.c:437:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/multipath-tools-0.8.4/multipath/main.c:445:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(path, O_RDWR|O_EXCL|O_CREAT, 0644);
data/multipath-tools-0.8.4/multipath/main.c:739:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(udev_device_get_devnode(pp->udev),
data/multipath-tools-0.8.4/multipath/main.c:819: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 command[1024], *p, *reply = NULL;
data/multipath-tools-0.8.4/multipath/main.c:921:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->verbosity = atoi(optarg);
data/multipath-tools-0.8.4/multipath/main.c:957:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			debug = atoi(optarg);
data/multipath-tools-0.8.4/multipath/main.c:1001:14:  [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).
			retries = atoi(optarg);
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:774: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 dev_path[PATH_SIZE];
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:798:4:  [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(dev_path, "dm-%d", minor);
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:886: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:1115:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int groupnum = atoi(get_keyparam(v, GROUP));
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:1467: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(*reply, "none\n");
data/multipath-tools-0.8.4/multipathd/dmevents.c:40: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[WWID_SIZE];
data/multipath-tools-0.8.4/multipathd/dmevents.c:89:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	waiter->fd = open("/dev/mapper/control", O_RDWR);
data/multipath-tools-0.8.4/multipathd/main.c:490: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/multipathd/main.c:922: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/multipathd/main.c:1087: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 params[PARAMS_SIZE] = {0};
data/multipath-tools-0.8.4/multipathd/main.c:1117: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 alias[WWID_SIZE];
data/multipath-tools-0.8.4/multipathd/main.c:1224: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 wwid[WWID_SIZE];
data/multipath-tools-0.8.4/multipathd/main.c:2739:9:  [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).
			fp = fopen(file, "w");
data/multipath-tools-0.8.4/multipathd/main.c:3049:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dev_null_fd = open("/dev/null", O_RDWR);
data/multipath-tools-0.8.4/multipathd/main.c:3125:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			verbosity = atoi(optarg);
data/multipath-tools-0.8.4/multipathd/main.c:3157: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 cmd[CMDSIZE];
data/multipath-tools-0.8.4/multipathd/main.c:3261: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(param->sa_key, &mpp->reservation_key, 8);
data/multipath-tools-0.8.4/multipathd/pidfile.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/multipath-tools-0.8.4/multipathd/pidfile.c:19:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((fd = open(pidFile, O_WRONLY | O_CREAT,
data/multipath-tools-0.8.4/multipathd/uxlsnr.c:234: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 buff[1024]
data/multipath-tools-0.8.4/multipathd/waiter.h:10: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 mapname[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.c:66: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[32];
data/multipath-tools-0.8.4/tests/alias.c:77: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[5];
data/multipath-tools-0.8.4/tests/alias.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/multipath-tools-0.8.4/tests/alias.c:97: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[32];
data/multipath-tools-0.8.4/tests/alias.c:107: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[32];
data/multipath-tools-0.8.4/tests/alias.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/multipath-tools-0.8.4/tests/alias.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/multipath-tools-0.8.4/tests/alias.c:137: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[32];
data/multipath-tools-0.8.4/tests/alias.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/multipath-tools-0.8.4/tests/alias.c:160: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[32];
data/multipath-tools-0.8.4/tests/alias.c:169:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4];
data/multipath-tools-0.8.4/tests/alias.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 buf[5];
data/multipath-tools-0.8.4/tests/alias.c:302: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[32];
data/multipath-tools-0.8.4/tests/alias.c:315: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[32];
data/multipath-tools-0.8.4/tests/alias.c:538: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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.c:565: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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.c:579: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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.c:594: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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/alias.c:595: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 line[WWID_SIZE + 10];
data/multipath-tools-0.8.4/tests/alias.c:614: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[WWID_SIZE];
data/multipath-tools-0.8.4/tests/directio.c:730:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	test_fd = open(DIO_TEST_DEV, O_RDONLY);
data/multipath-tools-0.8.4/tests/dmevents.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 name[WWID_SIZE];
data/multipath-tools-0.8.4/tests/hwtable.c:92: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/multipath-tools-0.8.4/tests/hwtable.c:132: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/multipath-tools-0.8.4/tests/hwtable.c:155:21:  [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).
	hwt->config_file = fopen(buf, "w+");
data/multipath-tools-0.8.4/tests/hwtable.c:161:27:  [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).
		hwt->conf_dir_file[i] = fopen(buf, "w+");
data/multipath-tools-0.8.4/tests/hwtable.c:257: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[sizeof(tmplate) + sizeof(bindings_name)];
data/multipath-tools-0.8.4/tests/hwtable.c:258: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 dirbuf[PATH_MAX];
data/multipath-tools-0.8.4/tests/hwtable.c:351: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/multipath-tools-0.8.4/tests/hwtable.c:498:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *tmp = fopen("/tmp/hwtable-" #x ".txt", "w");	\
data/multipath-tools-0.8.4/tests/hwtable.c:554:23:  [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).
	assert_int_not_equal(atoi(minio_99.value), DEFAULT_MINIO_RQ);
data/multipath-tools-0.8.4/tests/hwtable.c:555:23:  [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).
	assert_int_not_equal(atoi(npr_37.value), DEFAULT_NO_PATH_RETRY);
data/multipath-tools-0.8.4/tests/hwtable.c:1568:30:  [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).
	assert_int_equal(mp->minio, atoi(minio_99.value));
data/multipath-tools-0.8.4/tests/hwtable.c:1614:30:  [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).
	assert_int_equal(mp->minio, atoi(minio_99.value));
data/multipath-tools-0.8.4/tests/hwtable.c:1615:38:  [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).
	assert_int_equal(mp->no_path_retry, atoi(npr_37.value));
data/multipath-tools-0.8.4/tests/hwtable.c:1649:30:  [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).
	assert_int_equal(mp->minio, atoi(minio_99.value));
data/multipath-tools-0.8.4/tests/hwtable.c:1650:38:  [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).
	assert_int_equal(mp->no_path_retry, atoi(npr_37.value));
data/multipath-tools-0.8.4/tests/pgpolicy.c:75: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(p8[i].dev, "p8_%d", i);
data/multipath-tools-0.8.4/tests/pgpolicy.c:76: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(p8[i].dev_t, "8:%d", i);
data/multipath-tools-0.8.4/tests/pgpolicy.c:80: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(p4[i].dev, "p4_%d", i);
data/multipath-tools-0.8.4/tests/pgpolicy.c:81: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(p4[i].dev_t, "4:%d", i);
data/multipath-tools-0.8.4/tests/pgpolicy.c:84:2:  [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(p1[0].dev, "p1_0");
data/multipath-tools-0.8.4/tests/pgpolicy.c:85:2:  [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(p1[0].dev_t, "4:0");
data/multipath-tools-0.8.4/tests/pgpolicy.c:900: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 *serial[1] = {"1"};
data/multipath-tools-0.8.4/tests/test-log.c:12: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 buff[MAX_MSG_SIZE];
data/multipath-tools-0.8.4/tests/unaligned.c:13: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 memory[8] = {
data/multipath-tools-0.8.4/tests/unaligned.c:46: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(c + offset, memory, len);			\
data/multipath-tools-0.8.4/tests/util.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 dst[10];
data/multipath-tools-0.8.4/tests/util.c: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 dst[10];
data/multipath-tools-0.8.4/tests/util.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 dst[10];
data/multipath-tools-0.8.4/tests/util.c: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 dst[4];
data/multipath-tools-0.8.4/tests/util.c: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 dst[10];
data/multipath-tools-0.8.4/tests/util.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dst[4];
data/multipath-tools-0.8.4/tests/util.c:83: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.
        char dst[6];
data/multipath-tools-0.8.4/tests/util.c:92: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 dst[10];
data/multipath-tools-0.8.4/tests/util.c:96:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(src, "badbadno");
data/multipath-tools-0.8.4/tests/util.c:103: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.
        char dst[3];
data/multipath-tools-0.8.4/tests/util.c:111: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.
        char dst[10];
data/multipath-tools-0.8.4/tests/util.c:118: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.
        char dst[10];
data/multipath-tools-0.8.4/tests/util.c:125: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.
        char dst[10];
data/multipath-tools-0.8.4/tests/util.c:132: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.
        char dst[10];
data/multipath-tools-0.8.4/tests/util.c:139: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.
        char dst[10];
data/multipath-tools-0.8.4/tests/vpd.c:27: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 vpdbuf[VPD_BUFSIZ];
data/multipath-tools-0.8.4/tests/vpd.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wwid[WWID_SIZE];
data/multipath-tools-0.8.4/tests/vpd.c:66: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(io_hdr->dxferp, val, len);
data/multipath-tools-0.8.4/tests/vpd.c:94:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + 4 + size - len, id, len);
data/multipath-tools-0.8.4/tests/vpd.c:147: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(desc + 4, (const unsigned char *)vendor_id, vnd_len);
data/multipath-tools-0.8.4/tests/vpd.c:149: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(desc + 4 + 8, (const unsigned char *)id, n - 8);
data/multipath-tools-0.8.4/tests/vpd.c:378: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(p, src, match.rm_so);
data/multipath-tools-0.8.4/kpartx/dasd.c:184:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd_dasd, data, blocksize) == -1) {
data/multipath-tools-0.8.4/kpartx/dasd.c:231:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (read(fd_dasd, data, blocksize) != -1) {
data/multipath-tools-0.8.4/kpartx/dasd.c:252:33:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
			size  = cchh2blk(&f1.DS1EXT1.ulimit, &geo) -
data/multipath-tools-0.8.4/kpartx/dasd.h:79:9:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
	cchh_t ulimit;          /* ending point of this extent               */
data/multipath-tools-0.8.4/kpartx/devmapper.c:42: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).
		if (!strncmp(str, target->name, strlen(str)) &&
data/multipath-tools-0.8.4/kpartx/devmapper.c:120: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).
	int len = MAX_PREFIX_LEN + strlen(uuid) + 1;
data/multipath-tools-0.8.4/kpartx/devmapper.c:222:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (uuidtmp && strlen(uuidtmp))
data/multipath-tools-0.8.4/kpartx/devmapper.c:295: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 (map && strlen(map))
data/multipath-tools-0.8.4/kpartx/gpt.c:212:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytesread = read(fd, buffer, bytes);
data/multipath-tools-0.8.4/kpartx/kpartx.c:176: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(mapname);
data/multipath-tools-0.8.4/kpartx/kpartx.c:188: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(device) != (off + len)) {
data/multipath-tools-0.8.4/kpartx/kpartx.c:731:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, bp->block, READ_SIZE) != READ_SIZE) {
data/multipath-tools-0.8.4/kpartx/lopart.c:91:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(fd, dev, sizeof(dev) - 1);
data/multipath-tools-0.8.4/kpartx/lopart.c:141:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(fd, backing_file, sizeof(backing_file) - 1);
data/multipath-tools-0.8.4/kpartx/xstrncpy.c:8:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, n-1);
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:195: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).
	j_obj = json_tokener_parse_ex(j_token, j_str, strlen(j_str) + 1);
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:325: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(*output, "timeout", strlen("timeout")) == 0))
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:359: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).
		if ((*output == NULL) || (strlen(*output) == 0)) {
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:369: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).
		    strlen("permission deny")) == 0) {
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:427: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(cmd) == _IPC_MAX_CMD_LEN - 1) {
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:438: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).
	if (strncmp(output, "fail", strlen("fail")) == 0) {
data/multipath-tools-0.8.4/libdmmp/libdmmp.c:459: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).
	} else if (strncmp(output, "ok", strlen("ok")) != 0) {
data/multipath-tools-0.8.4/libdmmp/libdmmp_private.h:182: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(var) == 0) { \
data/multipath-tools-0.8.4/libmpathcmd/mpath_cmd.c:107:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&addr.sun_path[1], DEFAULT_SOCKET, sizeof(addr.sun_path) - 1);
data/multipath-tools-0.8.4/libmpathcmd/mpath_cmd.c:108: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(DEFAULT_SOCKET) + 1 + sizeof(sa_family_t);
data/multipath-tools-0.8.4/libmpathcmd/mpath_cmd.c:210: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(cmd) + 1;
data/multipath-tools-0.8.4/libmpathpersist/mpath_persist.c:84: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(pp->dev)){
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:130:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000);
data/multipath-tools-0.8.4/libmpathpersist/mpath_pr_ioctl.c:374:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000);
data/multipath-tools-0.8.4/libmultipath/alias.c:53:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int prefix_len = strlen(prefix);
data/multipath-tools-0.8.4/libmultipath/alias.c:82: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).
	if (!prefix || strncmp(alias, prefix, strlen(prefix)))
data/multipath-tools-0.8.4/libmultipath/alias.c:85: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(alias) == strlen(prefix))
data/multipath-tools-0.8.4/libmultipath/alias.c:85: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 (strlen(alias) == strlen(prefix))
data/multipath-tools-0.8.4/libmultipath/alias.c:88: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(alias) > strlen(prefix) + 7)
data/multipath-tools-0.8.4/libmultipath/alias.c:88:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(alias) > strlen(prefix) + 7)
data/multipath-tools-0.8.4/libmultipath/alias.c:92: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).
	c = alias + strlen(prefix);
data/multipath-tools-0.8.4/libmultipath/alias.c:211: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(wwid) > WWID_SIZE - 1) {
data/multipath-tools-0.8.4/libmultipath/alias.c:259: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).
	if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)){
data/multipath-tools-0.8.4/libmultipath/alias.c:259: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 (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)){
data/multipath-tools-0.8.4/libmultipath/alias.c:305: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(buff) > 0) {
data/multipath-tools-0.8.4/libmultipath/alias.c:422: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(buff)) {
data/multipath-tools-0.8.4/libmultipath/callout.c:102:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = read(fds[0], value + i, len - i-1);
data/multipath-tools-0.8.4/libmultipath/callout.c:179: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(pp->dev) + 1;
data/multipath-tools-0.8.4/libmultipath/callout.c:193: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(pp->dev_t) + 1;
data/multipath-tools-0.8.4/libmultipath/callout.c:212: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(pos) + 1;
data/multipath-tools-0.8.4/libmultipath/checkers.c:95:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!name || !strlen(name))
data/multipath-tools-0.8.4/libmultipath/checkers.c:360: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 (name && strlen(name)) {
data/multipath-tools-0.8.4/libmultipath/config.c:310: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/multipath-tools-0.8.4/libmultipath/configure.c:593:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					     action, strlen(action));
data/multipath-tools-0.8.4/libmultipath/configure.c:595: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(action));
data/multipath-tools-0.8.4/libmultipath/configure.c:653:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						   buff, strlen(buff));
data/multipath-tools-0.8.4/libmultipath/configure.c:744: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).
	    (strlen(cmpp->hwhandler) != strlen(mpp->hwhandler) ||
data/multipath-tools-0.8.4/libmultipath/configure.c:744: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).
	    (strlen(cmpp->hwhandler) != strlen(mpp->hwhandler) ||
data/multipath-tools-0.8.4/libmultipath/configure.c:746: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).
		    strlen(mpp->hwhandler)))) {
data/multipath-tools-0.8.4/libmultipath/configure.c:780: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).
		    strlen(mpp->selector))) {
data/multipath-tools-0.8.4/libmultipath/configure.c:1041:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pp->dev))
data/multipath-tools-0.8.4/libmultipath/configure.c:1104:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (refwwid && !strlen(refwwid))
data/multipath-tools-0.8.4/libmultipath/configure.c:1125: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(pp1->wwid) == 0) {
data/multipath-tools-0.8.4/libmultipath/configure.c:1479: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(tmpwwid))) {
data/multipath-tools-0.8.4/libmultipath/configure.c:1505:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (refwwid && strlen(refwwid) &&
data/multipath-tools-0.8.4/libmultipath/configure.c:1514: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).
	if (refwwid && strlen(refwwid)) {
data/multipath-tools-0.8.4/libmultipath/devmapper.c:181: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).
		if (!strncmp(str, target->name, strlen(str))) {
data/multipath-tools-0.8.4/libmultipath/devmapper.c:350: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(mpp->wwid) > 0) {
data/multipath-tools-0.8.4/libmultipath/devmapper.c:352: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(mpp->wwid) + 1);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1188:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000 * 1000 / LOOPS_PER_SEC);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1197: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 (map && strlen(map))
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1263:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    !isdigit(*(p + strlen(dev_t)))
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1408: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).
	if (strncmp(name, rd->old, strlen(rd->old)) != 0)
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1410:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (offset = strlen(rd->old); name[offset] && !(isdigit(name[offset])); offset++); /* do nothing */
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1429:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (isdigit(new[strlen(new)-1]))
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1482: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).
	n += strlen(newdep);
data/multipath-tools-0.8.4/libmultipath/devmapper.c:1483: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).
	p += strlen(dep);
data/multipath-tools-0.8.4/libmultipath/dict.c:978: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(buff) == 3 &&
data/multipath-tools-0.8.4/libmultipath/dict.c:1061: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(buff) == 6 && !strcmp(buff, "manual"))
data/multipath-tools-0.8.4/libmultipath/dict.c:1063: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).
	else if (strlen(buff) == 9 && !strcmp(buff, "immediate"))
data/multipath-tools-0.8.4/libmultipath/dict.c:1065: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).
	else if (strlen(buff) == 10 && !strcmp(buff, "followover"))
data/multipath-tools-0.8.4/libmultipath/dict.c:1156: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(buff) == 4 && !strcmp(buff, "once"))
data/multipath-tools-0.8.4/libmultipath/dict.c:1158: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).
	else if (strlen(buff) == 6 && !strcmp(buff, "always"))
data/multipath-tools-0.8.4/libmultipath/discovery.c:247: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).
	for (l = strlen(attr); l >= 1 && isspace(attr[l-1]); l--);	\
data/multipath-tools-0.8.4/libmultipath/discovery.c:519:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pci_name, value, SLOT_NAME_SIZE);
data/multipath-tools-0.8.4/libmultipath/discovery.c:540:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ip_address, value, SLOT_NAME_SIZE);
data/multipath-tools-0.8.4/libmultipath/discovery.c:637: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).
						   value, strlen(value));
data/multipath-tools-0.8.4/libmultipath/discovery.c:660:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf(value, "0");
data/multipath-tools-0.8.4/libmultipath/discovery.c:664:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					   value, strlen(value));
data/multipath-tools-0.8.4/libmultipath/discovery.c:676:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					   value, strlen(value));
data/multipath-tools-0.8.4/libmultipath/discovery.c:720: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).
						 value, strlen(value)) <= 0) {
data/multipath-tools-0.8.4/libmultipath/discovery.c:752: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).
					 value, strlen(value)) <= 0)
data/multipath-tools-0.8.4/libmultipath/discovery.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).
	    strlen(checker_message(c)))
data/multipath-tools-0.8.4/libmultipath/discovery.c:1838: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(value);
data/multipath-tools-0.8.4/libmultipath/discovery.c:1880:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!value || strlen(value) == 0)
data/multipath-tools-0.8.4/libmultipath/discovery.c:1882: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).
	if (value && strlen(value)) {
data/multipath-tools-0.8.4/libmultipath/discovery.c:2003: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(pp->wwid);
data/multipath-tools-0.8.4/libmultipath/discovery.c:2081: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(pp->dev_t) && !(mask & DI_SYSFS)) {
data/multipath-tools-0.8.4/libmultipath/discovery.c:2158: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).
	if ((mask & DI_WWID) && !strlen(pp->wwid)) {
data/multipath-tools-0.8.4/libmultipath/discovery.c:2161:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strlen(pp->wwid)) {
data/multipath-tools-0.8.4/libmultipath/discovery.c:2186:51:  [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 ((mask & DI_PRIO) && path_state == PATH_UP && strlen(pp->wwid)) {
data/multipath-tools-0.8.4/libmultipath/dmparser.c:26: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).
	dstlen = strlen(*dst);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:27: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).
	len = dstlen + strlen(word) + 2;
data/multipath-tools-0.8.4/libmultipath/dmparser.c:38:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p, word, len - dstlen - 1);
data/multipath-tools-0.8.4/libmultipath/dmparser.c:105: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(pp->dev_t) ) {
data/multipath-tools-0.8.4/libmultipath/dmparser.c:299: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(devname))
data/multipath-tools-0.8.4/libmultipath/dmparser.c:313: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(mpp->wwid)) {
data/multipath-tools-0.8.4/libmultipath/dmparser.c:321: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).
				if (!strlen(pp->wwid) &&
data/multipath-tools-0.8.4/libmultipath/dmparser.c:322: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(mpp->wwid))
data/multipath-tools-0.8.4/libmultipath/dmparser.c:335: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(mpp->wwid))
data/multipath-tools-0.8.4/libmultipath/dmparser.c:342:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strlen(pp->wwid))
data/multipath-tools-0.8.4/libmultipath/file.c:160: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).
		int len = strlen(header);
data/multipath-tools-0.8.4/libmultipath/foreign.c:179: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(fn);
data/multipath-tools-0.8.4/libmultipath/foreign/nvme.c:136: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).
	for (n = strlen(str) - 1; n >= 0 && str[n] == ' '; n--);
data/multipath-tools-0.8.4/libmultipath/log.c:120: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((char *)&lastmsg->str) * sizeof(char) + 1;
data/multipath-tools-0.8.4/libmultipath/log.c:124: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).
	len = ALIGN(sizeof(struct logmsg) + strlen(buff) * sizeof(char) + 1,
data/multipath-tools-0.8.4/libmultipath/log.c:155:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy((void *)&msg->str, buff, strlen(buff) + 1);
data/multipath-tools-0.8.4/libmultipath/log.c:177:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen((char *)&src->str) * sizeof(char) +
data/multipath-tools-0.8.4/libmultipath/memory.c:114: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).
	size = strlen(str) + 1;
data/multipath-tools-0.8.4/libmultipath/parser.c:135: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(name);
data/multipath-tools-0.8.4/libmultipath/parser.c:139:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(keyword->string) == len) &&
data/multipath-tools-0.8.4/libmultipath/parser.c:204: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).
	int strlen;
data/multipath-tools-0.8.4/libmultipath/parser.c:284: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).
			memcpy(token, start, strlen);
data/multipath-tools-0.8.4/libmultipath/parser.c:285: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).
			*(token + strlen) = '\0';
data/multipath-tools-0.8.4/libmultipath/parser.c:338: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).
		size = strlen(str);
data/multipath-tools-0.8.4/libmultipath/parser.c:368: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(str) + 1;
data/multipath-tools-0.8.4/libmultipath/parser.c:375: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 character.
			strncat(alloc, " ", 1);
data/multipath-tools-0.8.4/libmultipath/parser.c:376: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(alloc, str, len - strlen(alloc) - 1);
data/multipath-tools-0.8.4/libmultipath/parser.c:376: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).
		strncat(alloc, str, len - strlen(alloc) - 1);
data/multipath-tools-0.8.4/libmultipath/print.c:281:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pp->vendor_id) && strlen(pp->product_id))
data/multipath-tools-0.8.4/libmultipath/print.c:281: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).
			if (strlen(pp->vendor_id) && strlen(pp->product_id))
data/multipath-tools-0.8.4/libmultipath/print.c:299:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pp->vendor_id))
data/multipath-tools-0.8.4/libmultipath/print.c:315:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pp->product_id))
data/multipath-tools-0.8.4/libmultipath/print.c:331:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pp->rev))
data/multipath-tools-0.8.4/libmultipath/print.c:404: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 (!pp || !strlen(pp->dev))
data/multipath-tools-0.8.4/libmultipath/print.c:413: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 (!pp || !strlen(pp->dev))
data/multipath-tools-0.8.4/libmultipath/print.c:817: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).
		*width = strlen(header);
data/multipath-tools-0.8.4/libmultipath/print.c:845: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).
			pd[j].width = MAX(pd[j].width, strlen(buff));
data/multipath-tools-0.8.4/libmultipath/print.c:886: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).
			mpd[j].width = MAX(mpd[j].width, strlen(buff));
data/multipath-tools-0.8.4/libmultipath/prio.c:75:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!name || !strlen(name))
data/multipath-tools-0.8.4/libmultipath/prio.c:158: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 (name && strlen(name)) {
data/multipath-tools-0.8.4/libmultipath/prio.c:168:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst->name, src->name, PRIO_NAME_LEN);
data/multipath-tools-0.8.4/libmultipath/prioritizers/datacore.c:66: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(preferredsds) <= 1) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:60:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(result, &string[start], size);
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:93: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(preferredip) <= 7) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:116: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 (device!=NULL && strncmp(device, dev, strlen(device)) == 0) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/iet.c:120:47:  [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 (ip!=NULL && strncmp(ip, preferredip, strlen(ip)) == 0) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/path_latency.c:121:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num_read = read(fd, buf, sz);
data/multipath-tools-0.8.4/libmultipath/prioritizers/path_latency.c:169:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(str, "io_num=", 7) && strlen(str) > 7) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/path_latency.c:175:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(str, "base_num=", 9) && strlen(str) > 9) {
data/multipath-tools-0.8.4/libmultipath/prioritizers/sysfs.c:53: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(sysfs_access_state_map[i].name))) {
data/multipath-tools-0.8.4/libmultipath/prkey.c:33:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read(fd, buf, 4096);
data/multipath-tools-0.8.4/libmultipath/prkey.c:49:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    *(ptr + strlen(wwid)) != '\n')
data/multipath-tools-0.8.4/libmultipath/prkey.c:50:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ptr = strstr(ptr + strlen(wwid), wwid);
data/multipath-tools-0.8.4/libmultipath/prkey.c:56: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).
			ptr[strlen(wwid)] = '\0';
data/multipath-tools-0.8.4/libmultipath/prkey.c:121:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strlen(mpp->wwid))
data/multipath-tools-0.8.4/libmultipath/prkey.c:148: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(mpp->wwid))
data/multipath-tools-0.8.4/libmultipath/propsel.c:314: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(mp->alias_old) > 0) {
data/multipath-tools-0.8.4/libmultipath/structs.c:304: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(pp->dev_t)) {
data/multipath-tools-0.8.4/libmultipath/structs.c:308: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(pp->dev)) {
data/multipath-tools-0.8.4/libmultipath/structs.c:400: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(alias);
data/multipath-tools-0.8.4/libmultipath/structs.c:406: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(mpp->alias) == len &&
data/multipath-tools-0.8.4/libmultipath/structs.c:573: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).
	l = strlen(e) + strlen(n) + 2;
data/multipath-tools-0.8.4/libmultipath/structs.c:573: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).
	l = strlen(e) + strlen(n) + 2;
data/multipath-tools-0.8.4/libmultipath/structs.c:627: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).
	q = o + strlen(o);
data/multipath-tools-0.8.4/libmultipath/structs.c:646:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(n, "0");
data/multipath-tools-0.8.4/libmultipath/structs.c:657: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).
	l = strlen(*f) - d;
data/multipath-tools-0.8.4/libmultipath/structs.c:683: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(n, p, (size_t)(e - p));
data/multipath-tools-0.8.4/libmultipath/structs.c:690: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(p)) {
data/multipath-tools-0.8.4/libmultipath/structs.c:693: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(p)) {
data/multipath-tools-0.8.4/libmultipath/structs_vec.c:426: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(pp->wwid))
data/multipath-tools-0.8.4/libmultipath/sysfs.c:86:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(fd, value, value_len);
data/multipath-tools-0.8.4/libmultipath/sysfs.c:145:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(fd, value, value_len);
data/multipath-tools-0.8.4/libmultipath/sysfs.c:341:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		nr = read(fd, uuid, sizeof(uuid));
data/multipath-tools-0.8.4/libmultipath/uevent.c:118: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(attr);
data/multipath-tools-0.8.4/libmultipath/uevent.c:125: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(var) > len &&
data/multipath-tools-0.8.4/libmultipath/uevent.c:479: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).
	bufpos = strlen(buffer) + 1;
data/multipath-tools-0.8.4/libmultipath/uevent.c:500: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).
		keylen = strlen(key);
data/multipath-tools-0.8.4/libmultipath/uevent.c:545: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).
	addrlen = offsetof(struct sockaddr_un, sun_path) + strlen(sun.sun_path+1) + 1;
data/multipath-tools-0.8.4/libmultipath/uevent.c:657: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).
		bufpos = strlen(buf) + 1;
data/multipath-tools-0.8.4/libmultipath/util.c:31: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).
	for (i=strlen(str)-1; i >=0 && isspace(str[i]); --i) ;
data/multipath-tools-0.8.4/libmultipath/util.c:33: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).
	return strlen(str);
data/multipath-tools-0.8.4/libmultipath/util.c:41: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 (!src || !dst || !strlen(src))
data/multipath-tools-0.8.4/libmultipath/util.c:46: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).
	for (e = p + strlen(p) - 1; e >= p && isspace(*e); --e) ;
data/multipath-tools-0.8.4/libmultipath/util.c:51: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).
	return strlen(dst);
data/multipath-tools-0.8.4/libmultipath/util.c:105:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*word, sentence, len);
data/multipath-tools-0.8.4/libmultipath/util.c:146:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return (bytes + strlen(src));
data/multipath-tools-0.8.4/libmultipath/util.c:258: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).
	if (!strncmp(name, "/dev/", 5) && strlen(name) > 5)
data/multipath-tools-0.8.4/libmultipath/util.c:316: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(d->d_name) < 6)
data/multipath-tools-0.8.4/libmultipath/util.c:319:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p = d->d_name + strlen(d->d_name) - 6;
data/multipath-tools-0.8.4/libmultipath/util.c:392:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (*ptr == '\0' || strlen(ptr) > 16)
data/multipath-tools-0.8.4/libmultipath/util.c:394: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(ptr) != strspn(ptr, "0123456789aAbBcCdDeEfF"))
data/multipath-tools-0.8.4/libmultipath/util.c:409: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(flagstr) == 5 && strcmp(flagstr, "aptpl") == 0)
data/multipath-tools-0.8.4/libmultipath/uxsock.c:70: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(name) + 1;
data/multipath-tools-0.8.4/libmultipath/wwids.c:32:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc(f)) != EOF){
data/multipath-tools-0.8.4/libmultipath/wwids.c:40:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = fgetc(f)) != '/') {
data/multipath-tools-0.8.4/libmultipath/wwids.c:77: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).
	if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
data/multipath-tools-0.8.4/libmultipath/wwids.c:77: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 (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
data/multipath-tools-0.8.4/libmultipath/wwids.c:119: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(WWIDS_FILE_HEADER);
data/multipath-tools-0.8.4/libmultipath/wwids.c:157:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read(fd, buf, 4096);
data/multipath-tools-0.8.4/libmultipath/wwids.c:204: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(wwid) + 4; /* two slashes the newline and a zero byte */
data/multipath-tools-0.8.4/mpathpersist/main.c:913: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(lcp);
data/multipath-tools-0.8.4/mpathpersist/main.c:940: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(lcp);
data/multipath-tools-0.8.4/mpathpersist/main.c:957: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).
		len = ecp ? (ecp - lcp) : (int)strlen(lcp);
data/multipath-tools-0.8.4/multipath/main.c:117:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!refwwid || !strlen(refwwid))
data/multipath-tools-0.8.4/multipath/main.c:208: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(pp->dev)) {
data/multipath-tools-0.8.4/multipath/main.c:263:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (refwwid && strlen(refwwid) &&
data/multipath-tools-0.8.4/multipath/main.c:831: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(command) == 0)
data/multipath-tools-0.8.4/multipathd/cli.c:238: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/multipath-tools-0.8.4/multipathd/cli.c:243: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).
		klen = strlen(kw->str);
data/multipath-tools-0.8.4/multipathd/cli.c:474: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/cli.c:485: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/cli.c:634: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/multipath-tools-0.8.4/multipathd/cli_handlers.c:746: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:790: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:1468: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/cli_handlers.c:1476: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/main.c:100:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(__m))			      \
data/multipath-tools-0.8.4/multipathd/main.c:402: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(mpp->wwid))
data/multipath-tools-0.8.4/multipathd/main.c:850: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 (!pp->mpp && !strlen(pp->wwid)) {
data/multipath-tools-0.8.4/multipathd/main.c:930: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(pp->wwid) == 0) {
data/multipath-tools-0.8.4/multipathd/main.c:1232:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strlen(pp->wwid))
data/multipath-tools-0.8.4/multipathd/main.c:1370: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(str, "list", strlen("list")) != 0) &&
data/multipath-tools-0.8.4/multipathd/main.c:1371: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(str, "show", strlen("show")) != 0)) {
data/multipath-tools-0.8.4/multipathd/main.c:1374: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/main.c:1386: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/main.c:1392: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(*reply) + 1;
data/multipath-tools-0.8.4/multipathd/main.c:1581:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(077);
data/multipath-tools-0.8.4/multipathd/main.c:1995: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("change"));
data/multipath-tools-0.8.4/multipathd/main.c:2054:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strlen(pp->wwid) &&
data/multipath-tools-0.8.4/multipathd/main.c:3105:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask(077) | 022);
data/multipath-tools-0.8.4/multipathd/main.c:3105:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask(077) | 022);
data/multipath-tools-0.8.4/multipathd/pidfile.c:45: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).
	if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
data/multipath-tools-0.8.4/multipathd/pidfile.c:45: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 (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
data/multipath-tools-0.8.4/multipathd/uxclnt.c:82: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).
		size_t llen = strlen(line);
data/multipath-tools-0.8.4/multipathd/uxlsnr.c:242:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buff, sizeof(buff));
data/multipath-tools-0.8.4/tests/alias.c:153: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).
	assert_int_equal(rc, strlen(MPATH_ID_INT_MAX));
data/multipath-tools-0.8.4/tests/alias.c:598:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(line + strlen(line), 'W', sizeof(line) - 2 - strlen(line));
data/multipath-tools-0.8.4/tests/alias.c:598:54:  [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(line + strlen(line), 'W', sizeof(line) - 2 - strlen(line));
data/multipath-tools-0.8.4/tests/alias.c:647: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).
	expect_value(__wrap_write, count, strlen(ln));
data/multipath-tools-0.8.4/tests/alias.c:649: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).
	will_return(__wrap_write, strlen(ln));
data/multipath-tools-0.8.4/tests/alias.c:663: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).
	expect_value(__wrap_write, count, strlen(ln));
data/multipath-tools-0.8.4/tests/alias.c:665: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).
	will_return(__wrap_write, strlen(ln));
data/multipath-tools-0.8.4/tests/alias.c:708: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).
	expect_value(__wrap_write, count, strlen(ln));
data/multipath-tools-0.8.4/tests/alias.c:710: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).
	will_return(__wrap_write, strlen(ln) - 1);
data/multipath-tools-0.8.4/tests/dmevents.c:73:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dev->name, name, WWID_SIZE);
data/multipath-tools-0.8.4/tests/dmevents.c:156: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).
				  strlen(dev->name) + 1);
data/multipath-tools-0.8.4/tests/dmevents.c:174: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).
		event_nr = align_ptr(np->name + strlen(dev->name) + 1);
data/multipath-tools-0.8.4/tests/hwtable.c:264: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 string.
	strncat(dirbuf, "/lib", sizeof(dirbuf) - 5);
data/multipath-tools-0.8.4/tests/hwtable.c:507:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert_int_equal(strlen(cfg2), strlen(cfg1));
data/multipath-tools-0.8.4/tests/hwtable.c:507: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).
	assert_int_equal(strlen(cfg2), strlen(cfg1));
data/multipath-tools-0.8.4/tests/test-lib.c:178: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).
	return strlen(value);
data/multipath-tools-0.8.4/tests/util.c:270: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:281: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:293: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:306: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:307: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).
	assert_int_equal(sizeof(tst) - 1, strlen(tst));
data/multipath-tools-0.8.4/tests/util.c:320: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:337: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:354: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).
	assert_int_equal(rc, strlen(src_str));
data/multipath-tools-0.8.4/tests/util.c:370: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).
	assert_int_equal(rc, strlen(empty));
data/multipath-tools-0.8.4/tests/util.c:383: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).
	assert_int_equal(rc, strlen(empty));
data/multipath-tools-0.8.4/tests/vpd.c:348: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).
	assert_int_equal(returned, strlen(wwid));
data/multipath-tools-0.8.4/tests/vpd.c:361:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *dst = calloc(1, strlen(src) + 1);
data/multipath-tools-0.8.4/tests/vpd.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).
	exp_len = len - strlen(str_prefix[type]);			\

ANALYSIS SUMMARY:

Hits = 871
Lines analyzed = 69285 in approximately 1.71 seconds (40413 lines/second)
Physical Source Lines of Code (SLOC) = 53371
Hits@level = [0] 671 [1] 260 [2] 526 [3]  19 [4]  64 [5]   2
Hits@level+ = [0+] 1542 [1+] 871 [2+] 611 [3+]  85 [4+]  66 [5+]   2
Hits/KSLOC@level+ = [0+] 28.8921 [1+] 16.3197 [2+] 11.4482 [3+] 1.59263 [4+] 1.23663 [5+] 0.0374735
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.