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/air-quality-sensor-0.1.5/src/air10.c

FINAL RESULTS:

data/air-quality-sensor-0.1.5/src/air10.c:255:3:  [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.
  printf (("Usage: %s [OPTION]\n\
data/air-quality-sensor-0.1.5/src/air10.c:270:3:  [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.
  printf (("\
data/air-quality-sensor-0.1.5/src/air10.c:287:15:  [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.
  while ((c = getopt_long (argc, argv, "hVv", longopts, &option_index)) != -1)
data/air-quality-sensor-0.1.5/src/air10.c:74: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] = "";
data/air-quality-sensor-0.1.5/src/air10.c:75: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 usb_io_buf[USB_BUF_LEN] = "\x40\x68\x2a\x54"
data/air-quality-sensor-0.1.5/src/air10.c:145:22:  [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.
  value = ((unsigned char *) usb_io_buf)[3] << 8
data/air-quality-sensor-0.1.5/src/air10.c:146:18:  [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 *) usb_io_buf)[2] << 0;
data/air-quality-sensor-0.1.5/src/air10.c:172:16:  [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 strDesc[256];

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 331 in approximately 0.03 seconds (9983 lines/second)
Physical Source Lines of Code (SLOC) = 246
Hits@level = [0]  18 [1]   0 [2]   5 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  26 [1+]   8 [2+]   8 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 105.691 [1+] 32.5203 [2+] 32.5203 [3+] 12.1951 [4+] 8.13008 [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.