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/sysfsutils-2.1.0+repack/cmd/names.c
Examining data/sysfsutils-2.1.0+repack/cmd/names.h
Examining data/sysfsutils-2.1.0+repack/cmd/systool.c
Examining data/sysfsutils-2.1.0+repack/test/test_bus.c
Examining data/sysfsutils-2.1.0+repack/test/test-defs.h
Examining data/sysfsutils-2.1.0+repack/test/get_module.c
Examining data/sysfsutils-2.1.0+repack/test/test.c
Examining data/sysfsutils-2.1.0+repack/test/test_attr.c
Examining data/sysfsutils-2.1.0+repack/test/get_driver.c
Examining data/sysfsutils-2.1.0+repack/test/test_utils.c
Examining data/sysfsutils-2.1.0+repack/test/testout.c
Examining data/sysfsutils-2.1.0+repack/test/dlist_test.c
Examining data/sysfsutils-2.1.0+repack/test/test_driver.c
Examining data/sysfsutils-2.1.0+repack/test/test_module.c
Examining data/sysfsutils-2.1.0+repack/test/test_class.c
Examining data/sysfsutils-2.1.0+repack/test/get_device.c
Examining data/sysfsutils-2.1.0+repack/test/test_device.c
Examining data/sysfsutils-2.1.0+repack/lib/dlist.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_module.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs.h
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_class.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_driver.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_device.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_bus.c
Examining data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c
Examining data/sysfsutils-2.1.0+repack/include/dlist.h
Examining data/sysfsutils-2.1.0+repack/include/libsysfs.h

FINAL RESULTS:

data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:157:7:  [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.
	if ((readlink(path, linkpath, SYSFS_PATH_MAX)) < 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs.h:59:33:  [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 dprintf(format, arg...) fprintf(stderr, format, ## arg)
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:134: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(link, cdev->path);
data/sysfsutils-2.1.0+repack/test/dlist_test.c:225: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(stemp->label,label);
data/sysfsutils-2.1.0+repack/test/get_driver.c:53: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(path, SYSFS_BUS_NAME);
data/sysfsutils-2.1.0+repack/test/get_driver.c:55: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(path, argv[1]);
data/sysfsutils-2.1.0+repack/test/get_driver.c:57: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(path, SYSFS_DRIVERS_NAME);
data/sysfsutils-2.1.0+repack/test/get_driver.c:59: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(path, argv[2]);
data/sysfsutils-2.1.0+repack/test/test-defs.h:47:35:  [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 dbg_print(format, arg...) fprintf(my_stdout, format, ## arg)
data/sysfsutils-2.1.0+repack/test/test.c:235: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(path1, val_root_dev_path);
data/sysfsutils-2.1.0+repack/test/test.c:237: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(path1, val_subdir_name);
data/sysfsutils-2.1.0+repack/test/test.c:242: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(path1, val_drv_path);
data/sysfsutils-2.1.0+repack/test/test.c:244: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(path1, val_drv_dev_name);
data/sysfsutils-2.1.0+repack/test/test.c:249: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(path1, val_dir_path);
data/sysfsutils-2.1.0+repack/test/test.c:252: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(path1, val_subdir_link_name);
data/sysfsutils-2.1.0+repack/test/test.c:257: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(path1, val_class_dev_path);
data/sysfsutils-2.1.0+repack/test/test.c:259: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(path1, val_class_dev_attr);
data/sysfsutils-2.1.0+repack/test/test.c:264: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(path1, val_dev_path);
data/sysfsutils-2.1.0+repack/test/test.c:266: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(path1, val_dev_attr);
data/sysfsutils-2.1.0+repack/test/test.c:271: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(path1, val_drv_path);
data/sysfsutils-2.1.0+repack/test/test.c:273: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(path1, val_drv_attr_name);
data/sysfsutils-2.1.0+repack/cmd/systool.c:660:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while((opt = getopt(argc, argv, cmd_options)) != EOF) {
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:67:20:  [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.
		sysfs_path_env = getenv(SYSFS_PATH_ENV);
data/sysfsutils-2.1.0+repack/cmd/names.c:202: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(a->pci_id_file_name, O_RDONLY);
data/sysfsutils-2.1.0+repack/cmd/systool.c:54: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 sysfs_mnt_path[SYSFS_PATH_MAX]; /* sysfs mount point */
data/sysfsutils-2.1.0+repack/cmd/systool.c:256: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 buf[128], value[256], path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/cmd/systool.c:587:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subsys[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.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 name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.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 path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bus[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bus_id[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bus[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char driver_name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subsystem[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.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 path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char classname[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h: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 name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SYSFS_NAME_LEN];
data/sysfsutils-2.1.0+repack/include/libsysfs.h:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:159: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(sysattr->path, O_RDONLY)) < 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:236: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(sysattr->path, O_WRONLY)) < 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:355:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX], *linkname;
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:457:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:497:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX], *dir_name;
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:545:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:593:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX], path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX], devpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.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 path[SYSFS_PATH_MAX], drvpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.c:193:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buspath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX], target[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_bus.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 drvpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *c, *e, name[SYSFS_PATH_MAX], link[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:135:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(link, "/subsystem");
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c: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 temp_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:217:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char abs_path[SYSFS_PATH_MAX], tmp_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:303:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linkpath[SYSFS_PATH_MAX], devpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:395:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *c, classpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:451:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX], *cdev_name;
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:525:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.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 path[SYSFS_PATH_MAX], devpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.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 devpath[SYSFS_PATH_MAX], path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.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 path[SYSFS_PATH_MAX], devpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.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 bus_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.c:346:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysfs_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_device.c:376:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ppath[SYSFS_PATH_MAX], dpath[SYSFS_PATH_MAX], *tmp;
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:207: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(sysattr->path, O_WRONLY)) < 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:282: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(sysattr->path, O_RDONLY)) < 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:610:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.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 file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:691:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:731:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.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 new_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_driver.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 drvpath[SYSFS_PATH_MAX], *c = NULL;
data/sysfsutils-2.1.0+repack/lib/sysfs_driver.c:198:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_driver.c:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX], mod_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_module.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 modpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_module.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ppath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_module.c:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ppath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:55: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 sysfs_path[SYSFS_PATH_MAX] = "";
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devdir[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:142:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linkpath[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.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 temp_path[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/test/dlist_test.c:37: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 label[80];
data/sysfsutils-2.1.0+repack/test/test.c: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 path1[SYSFS_PATH_MAX];
data/sysfsutils-2.1.0+repack/test/test.c:250:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(path1, "/devices");
data/sysfsutils-2.1.0+repack/test/test.c:297:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	my_stdout = fopen(file_name,"w");
data/sysfsutils-2.1.0+repack/test/test_utils.c:128:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(path, "/some/path/is/this/");
data/sysfsutils-2.1.0+repack/cmd/names.c:118:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (strlen(q+2) < 3 ||
data/sysfsutils-2.1.0+repack/cmd/names.c:126:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (strlen(q) < 5 ||
data/sysfsutils-2.1.0+repack/cmd/names.c:211:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, a->nl_list, st.st_size) != st.st_size)
data/sysfsutils-2.1.0+repack/cmd/systool.c:35:30:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define safestrcpy(to, from)	strncpy(to, from, sizeof(to)-1)
data/sysfsutils-2.1.0+repack/cmd/systool.c:36:30:  [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.
#define safestrcat(to, from)	strncat(to, from, sizeof(to) - strlen(to)-1)
data/sysfsutils-2.1.0+repack/cmd/systool.c:36:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define safestrcat(to, from)	strncat(to, from, sizeof(to) - strlen(to)-1)
data/sysfsutils-2.1.0+repack/cmd/systool.c:41:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(to, from, max-1); \
data/sysfsutils-2.1.0+repack/cmd/systool.c:47:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(to, from, max - strlen(to)-1); \
data/sysfsutils-2.1.0+repack/cmd/systool.c:47:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(to, from, max - strlen(to)-1); \
data/sysfsutils-2.1.0+repack/cmd/systool.c:130: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).
	char *p = value + (strlen(value) - 1);
data/sysfsutils-2.1.0+repack/cmd/systool.c:178: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).
		} else if (attr->value && strlen(attr->value) > 0) {
data/sysfsutils-2.1.0+repack/cmd/systool.c:666:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((strlen(optarg) + 1) > SYSFS_NAME_LEN) {
data/sysfsutils-2.1.0+repack/cmd/systool.c:715: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(*argv)) < SYSFS_NAME_LEN) {
data/sysfsutils-2.1.0+repack/include/libsysfs.h:243:3:  [1] (buffer) strlen:
  Does not handle 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(((struct sysfs_attribute *)new_elem)->name))) < 0 ? 1 : 0);
data/sysfsutils-2.1.0+repack/lib/sysfs.h:36:30:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define safestrcpy(to, from)	strncpy(to, from, sizeof(to)-1)
data/sysfsutils-2.1.0+repack/lib/sysfs.h:37:30:  [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.
#define safestrcat(to, from)	strncat(to, from, sizeof(to) - strlen(to)-1)
data/sysfsutils-2.1.0+repack/lib/sysfs.h:37:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define safestrcat(to, from)	strncat(to, from, sizeof(to) - strlen(to)-1)
data/sysfsutils-2.1.0+repack/lib/sysfs.h:42:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(to, from, max-1); \
data/sysfsutils-2.1.0+repack/lib/sysfs.h:48:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(to, from, max - strlen(to)-1); \
data/sysfsutils-2.1.0+repack/lib/sysfs.h:48:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(to, from, max - strlen(to)-1); \
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:29:4:  [1] (buffer) strlen:
  Does not handle 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 *)new))) < 0 ? 1 : 0);
data/sysfsutils-2.1.0+repack/lib/sysfs_attr.c:164:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(fd, fbuf, pgsize);
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:69:5:  [1] (buffer) strlen:
  Does not handle 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 *)a)) == 0)
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:132:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cdev->classname, c, count);
data/sysfsutils-2.1.0+repack/lib/sysfs_class.c:240: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(tmp_path, abs_path, strlen(abs_path))) == 0) {
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:287:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(fd, fbuf, pgsize);
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:347: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).
	length = strlen(attr->value);
data/sysfsutils-2.1.0+repack/lib/sysfs_dir.c:503:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (linkpath == NULL || strlen(linkpath) > SYSFS_PATH_MAX) {
data/sysfsutils-2.1.0+repack/lib/sysfs_driver.c:239: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 (!strncmp(ln, SYSFS_MODULE_NAME, strlen(ln)))
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:41: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(path);
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:196: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).
			s = &devdir[strlen(devdir)-1];
data/sysfsutils-2.1.0+repack/lib/sysfs_utils.c:202: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).
			safestrcpymax(s, d, (SYSFS_PATH_MAX-strlen(devdir)));
data/sysfsutils-2.1.0+repack/test/get_driver.c:52:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, "/");
data/sysfsutils-2.1.0+repack/test/get_driver.c:54:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, "/");
data/sysfsutils-2.1.0+repack/test/get_driver.c:56:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, "/");
data/sysfsutils-2.1.0+repack/test/get_driver.c:58:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, "/");
data/sysfsutils-2.1.0+repack/test/test.c:236:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test.c:243:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test.c:251:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test.c:258:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test.c:265:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test.c:272:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path1, "/");
data/sysfsutils-2.1.0+repack/test/test_attr.c:228:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(new_value, sysattr->value, sysattr->len);
data/sysfsutils-2.1.0+repack/test/test_attr.c:239:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(new_value, "this should not get copied in the attrib",
data/sysfsutils-2.1.0+repack/test/test_attr.c:261:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(new_value, sysattr->value, sysattr->len);
data/sysfsutils-2.1.0+repack/test/test_attr.c:269:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(new_value, "this should not get copied in the attrib",
data/sysfsutils-2.1.0+repack/test/testout.c:31: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).
        char *p = value + (strlen(value) - 1);

ANALYSIS SUMMARY:

Hits = 147
Lines analyzed = 11249 in approximately 0.30 seconds (37668 lines/second)
Physical Source Lines of Code (SLOC) = 8026
Hits@level = [0] 162 [1]  47 [2]  77 [3]   2 [4]  20 [5]   1
Hits@level+ = [0+] 309 [1+] 147 [2+] 100 [3+]  23 [4+]  21 [5+]   1
Hits/KSLOC@level+ = [0+] 38.4999 [1+] 18.3155 [2+] 12.4595 [3+] 2.86569 [4+] 2.6165 [5+] 0.124595
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.