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/ykush-control-1.1.0+ds/ykushcmd/ykushcmd.cpp
Examining data/ykush-control-1.1.0+ds/ykushcmd/usbcom.h
Examining data/ykush-control-1.1.0+ds/ykushcmd/targetver.h
Examining data/ykush-control-1.1.0+ds/ykushcmd/stdafx.h
Examining data/ykush-control-1.1.0+ds/ykushcmd/stdafx.cpp
Examining data/ykush-control-1.1.0+ds/ykushcmd/platformdefs.h
Examining data/ykush-control-1.1.0+ds/ykushcmd/commandParser.h
Examining data/ykush-control-1.1.0+ds/ykushcmd/commandParser.cpp
Examining data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp

FINAL RESULTS:

data/ykush-control-1.1.0+ds/ykushcmd/commandParser.cpp:182: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 cmds[3] = { 0x21, 0x22, 0x23 };
data/ykush-control-1.1.0+ds/ykushcmd/commandParser.cpp:183: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 resps[3];
data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp:166: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.
    unsigned char buf[65];
data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp:167: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.
    unsigned char buf6[6];
data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp:170:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t wstr[MAX_STR];
data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp:174:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t serial[newsize];
data/ykush-control-1.1.0+ds/ykushcmd/usbcom.cpp:179: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).
		size_t origsize = strlen(iSerial) + 1;

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 678 in approximately 0.07 seconds (9501 lines/second)
Physical Source Lines of Code (SLOC) = 320
Hits@level = [0]  31 [1]   1 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  38 [1+]   7 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 118.75 [1+] 21.875 [2+] 18.75 [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.