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/libuinputplus-0.1.4/CommonIncludes.hpp
Examining data/libuinputplus-0.1.4/test.cpp
Examining data/libuinputplus-0.1.4/uInput.cpp
Examining data/libuinputplus-0.1.4/uInput.hpp
Examining data/libuinputplus-0.1.4/uInputResource.cpp
Examining data/libuinputplus-0.1.4/uInputSetup.cpp
Examining data/libuinputplus-0.1.4/uInputSetup.hpp

FINAL RESULTS:

data/libuinputplus-0.1.4/uInput.cpp:30: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_WRONLY | O_NONBLOCK);
data/libuinputplus-0.1.4/uInputSetup.cpp:23: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(usetup.name, __name.c_str(), len);
data/libuinputplus-0.1.4/uInputSetup.hpp:73: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(&setup, &(other.setup), sizeof(uinput_abs_setup));
data/libuinputplus-0.1.4/uInputSetup.hpp:111: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(&usetup, &(other.usetup), sizeof(uinput_setup));
data/libuinputplus-0.1.4/uInput.cpp:246: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*5);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 644 in approximately 0.03 seconds (21183 lines/second)
Physical Source Lines of Code (SLOC) = 394
Hits@level = [0]   0 [1]   1 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.6904 [1+] 12.6904 [2+] 10.1523 [3+]   0 [4+]   0 [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.