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/te923con-0.6.1/te923com.h
Examining data/te923con-0.6.1/te923usb.c
Examining data/te923con-0.6.1/te923com.c
Examining data/te923con-0.6.1/te923usb.h
Examining data/te923con-0.6.1/te923con.h
Examining data/te923con-0.6.1/te923con.c

FINAL RESULTS:

data/te923con-0.6.1/te923con.c:169:18:  [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, "Ddhi:svb" ) ) != -1 ) {
data/te923con-0.6.1/te923com.c:52:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int read_from_te923( usb_dev_handle *devh, int adr, unsigned char rbuf[BUFLEN] ) {
data/te923con-0.6.1/te923com.c:77:7:  [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( rbuf + count, buf + 1, bytes );
data/te923con-0.6.1/te923com.c:286: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[BUFLEN];
data/te923con-0.6.1/te923com.c:287: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 databuf[BUFLEN];
data/te923con-0.6.1/te923com.c:329: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( databuf, buf + 5, 11 );
data/te923con-0.6.1/te923com.c:335: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( databuf + 11, buf + 1, 21 );
data/te923con-0.6.1/te923com.c:350: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[BUFLEN];
data/te923con-0.6.1/te923com.c:372: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[BUFLEN];
data/te923con-0.6.1/te923com.h:37:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int read_from_te923( usb_dev_handle *devh, int adr, unsigned char rbuf[BUFLEN] );
data/te923con-0.6.1/te923con.h:59: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.
  signed char _t[6], _h[6];
data/te923con-0.6.1/te923usb.c:50: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 driver_name[driver_name_len];

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 954 in approximately 0.05 seconds (21071 lines/second)
Physical Source Lines of Code (SLOC) = 664
Hits@level = [0] 112 [1]   0 [2]  11 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+] 124 [1+]  12 [2+]  12 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 186.747 [1+] 18.0723 [2+] 18.0723 [3+] 1.50602 [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.