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/libevdev-1.10.0+dfsg/test/test-common-uinput.h
Examining data/libevdev-1.10.0+dfsg/test/test-int-queue.c
Examining data/libevdev-1.10.0+dfsg/test/test-libevdev-events.c
Examining data/libevdev-1.10.0+dfsg/test/test-main.c
Examining data/libevdev-1.10.0+dfsg/test/test-libevdev-has-event.c
Examining data/libevdev-1.10.0+dfsg/test/test-common-uinput.c
Examining data/libevdev-1.10.0+dfsg/test/test-event-codes.c
Examining data/libevdev-1.10.0+dfsg/test/test-compile-pedantic.c
Examining data/libevdev-1.10.0+dfsg/test/test-event-names.c
Examining data/libevdev-1.10.0+dfsg/test/test-libevdev-init.c
Examining data/libevdev-1.10.0+dfsg/test/test-uinput.c
Examining data/libevdev-1.10.0+dfsg/test/test-kernel.c
Examining data/libevdev-1.10.0+dfsg/test/test-common.c
Examining data/libevdev-1.10.0+dfsg/test/test-link.c
Examining data/libevdev-1.10.0+dfsg/test/test-context.c
Examining data/libevdev-1.10.0+dfsg/test/test-common.h
Examining data/libevdev-1.10.0+dfsg/include/linux/input.h
Examining data/libevdev-1.10.0+dfsg/include/linux/uinput.h
Examining data/libevdev-1.10.0+dfsg/include/linux/linux/input.h
Examining data/libevdev-1.10.0+dfsg/include/linux/linux/uinput.h
Examining data/libevdev-1.10.0+dfsg/include/linux/linux/input-event-codes.h
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-util.h
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.h
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput-int.h
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev.h
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev.c
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c
Examining data/libevdev-1.10.0+dfsg/libevdev/libevdev-int.h
Examining data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c
Examining data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c
Examining data/libevdev-1.10.0+dfsg/tools/mouse-dpi-tool.c
Examining data/libevdev-1.10.0+dfsg/tools/libevdev-events.c

FINAL RESULTS:

data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:147:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, args);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.h:33:75:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define LIBEVDEV_ATTRIBUTE_PRINTF(_format, _args) __attribute__ ((format (printf, _format, _args)))
data/libevdev-1.10.0+dfsg/test/test-common.c:37:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, args);
data/libevdev-1.10.0+dfsg/test/test-main.c:99: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.
			if (getenv("LIBEVDEV_SKIP_ROOT_TESTS"))
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:154: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, "h", opts, &option_index);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:207: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, "h", opts, &option_index);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:253: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, "h", opts, &option_index);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:291: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, "h", opts, &option_index);
data/libevdev-1.10.0+dfsg/include/linux/linux/uinput.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 name[UINPUT_MAX_NAME_SIZE];
data/libevdev-1.10.0+dfsg/include/linux/linux/uinput.h:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[UINPUT_MAX_NAME_SIZE];
data/libevdev-1.10.0+dfsg/libevdev/libevdev-int.h:213: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(ev, dev->queue, n * sizeof(*ev));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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(DEV_INPUT_DIR) + 64] = DEV_INPUT_DIR;
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:251:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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(SYS_INPUT_DIR) + 64] = SYS_INPUT_DIR;
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:278: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(buf, O_RDONLY);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:399: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/uinput", O_RDWR|O_CLOEXEC);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.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 buf[256];
data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:591: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(dev->key_values, keystate, rc);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:617: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(dev->sw_values, swstate, rc);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:644: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(dev->led_values, ledstate, rc);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:739: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(changes_out, changes, sizeof(*changes) * nslots);
data/libevdev-1.10.0+dfsg/test/test-common-uinput.c:145: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("/dev/uinput", O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-common-uinput.c:159: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).
	d->dev_fd = open(devnode, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-kernel.c:56: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(uinput_device_get_devnode(uidev), O_RDONLY|O_NONBLOCK);
data/libevdev-1.10.0+dfsg/test/test-kernel.c:148: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(uinput_device_get_devnode(uidev), O_RDONLY|O_NONBLOCK);
data/libevdev-1.10.0+dfsg/test/test-libevdev-init.c:492: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).
	dev_fd = open(libevdev_uinput_get_devnode(uidev),
data/libevdev-1.10.0+dfsg/test/test-libevdev-init.c:498: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).
	other_fd = open(libevdev_uinput_get_devnode(uidev),
data/libevdev-1.10.0+dfsg/test/test-libevdev-init.c:526: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).
	dev_fd = open(libevdev_uinput_get_devnode(uidev),
data/libevdev-1.10.0+dfsg/test/test-libevdev-init.c:646: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(uinput_device_get_devnode(uidev), O_RDONLY);
data/libevdev-1.10.0+dfsg/test/test-uinput.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(devnode, O_RDONLY);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:131: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:143: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).
	fd2 = open(devnode, O_RDONLY);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:184: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:186: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).
	fd2 = open(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:234: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:270: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:272: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).
	fd2 = open(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:326: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:328: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).
	fd2 = open(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:387: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(UINPUT_NODE, O_RDWR);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:397: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).
	fd2 = open(devnode, O_RDONLY);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:445: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(devnode, O_RDONLY);
data/libevdev-1.10.0+dfsg/tools/libevdev-events.c:150: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_RDONLY);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:165:24:  [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).
				absinfo->minimum = atoi(optarg);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:168:24:  [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).
				absinfo->maximum = atoi(optarg);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:171: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).
				absinfo->fuzz = atoi(optarg);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:174: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).
				absinfo->flat = atoi(optarg);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:177:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				absinfo->resolution = atoi(optarg);
data/libevdev-1.10.0+dfsg/tools/libevdev-tweak-device.c:449: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_RDWR);
data/libevdev-1.10.0+dfsg/tools/mouse-dpi-tool.c:277: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|O_NONBLOCK);
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.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 modalias[PATH_MAX];
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c:166: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).
	fp = fopen("/sys/class/dmi/id/modalias", "r");
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c:168: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(match, "ERROR READING DMI MODALIAS");
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char match[PATH_MAX];
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c:261: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|O_NONBLOCK);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:73: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).
	return libevdev_event_type_from_name_n(name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:109: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).
		l = strlen(e);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:122:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return libevdev_event_code_from_name_n(type, name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:149:60:  [1] (buffer) strlen:
  Does not handle 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 libevdev_event_value_from_name_n(type, code, name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:172: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).
	return libevdev_property_from_name_n(name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:192:52:  [1] (buffer) strlen:
  Does not handle 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 libevdev_event_code_from_code_name_n(name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-names.c:213:52:  [1] (buffer) strlen:
  Does not handle 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 libevdev_event_type_from_code_name_n(name, strlen(name));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:198:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	           UI_GET_SYSNAME(sizeof(buf) - strlen(DEV_INPUT_DIR)),
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:199: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).
		   &buf[strlen(DEV_INPUT_DIR)]);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:254: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).
		   UI_GET_SYSNAME(sizeof(buf) - strlen(SYS_INPUT_DIR)),
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:255: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).
		   &buf[strlen(SYS_INPUT_DIR)]);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:290:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof(buf));
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:334:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uidev.name, libevdev_get_name(dev), UINPUT_MAX_NAME_SIZE - 1);
data/libevdev-1.10.0+dfsg/libevdev/libevdev-uinput.c:372:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(setup.name, libevdev_get_name(dev), UINPUT_MAX_NAME_SIZE - 1);
data/libevdev-1.10.0+dfsg/libevdev/libevdev.c:873:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(dev->fd, next, free_elem * sizeof(struct input_event));
data/libevdev-1.10.0+dfsg/test/test-event-codes.c:259: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("INPUT_PROP_POINTER") - 1), -1);
data/libevdev-1.10.0+dfsg/test/test-libevdev-has-event.c:479: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).
	ck_assert_int_eq(strlen(str), 0);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:284:2:  [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(1500000);
data/libevdev-1.10.0+dfsg/test/test-uinput.c:402:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd2, events_read, sizeof(events_read));
data/libevdev-1.10.0+dfsg/tools/touchpad-edge-detector.c:176: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).
	modalias[strlen(modalias) - 1] = '\0'; /* drop \n */

ANALYSIS SUMMARY:

Hits = 74
Lines analyzed = 15272 in approximately 0.41 seconds (36830 lines/second)
Physical Source Lines of Code (SLOC) = 9458
Hits@level = [0]  92 [1]  20 [2]  46 [3]   5 [4]   3 [5]   0
Hits@level+ = [0+] 166 [1+]  74 [2+]  54 [3+]   8 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 17.5513 [1+] 7.82406 [2+] 5.70945 [3+] 0.845845 [4+] 0.317192 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.