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/consolation-0.0.8/src/input.c
Examining data/consolation-0.0.8/src/shared.c
Examining data/consolation-0.0.8/src/consolation.c
Examining data/consolation-0.0.8/src/selection.c
Examining data/consolation-0.0.8/src/shared.h
Examining data/consolation-0.0.8/src/action.c
Examining data/consolation-0.0.8/src/consolation.h

FINAL RESULTS:

data/consolation-0.0.8/src/shared.c:64: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/consolation-0.0.8/src/input.c:337:9:  [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/consolation-0.0.8/src/input.c:56: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.
static const char *seat_or_devices[MAX_DEVICES+1] = {"seat0"};
data/consolation-0.0.8/src/selection.c:42:12:  [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).
  int fd = open("/dev/tty0",O_RDONLY);
data/consolation-0.0.8/src/selection.c:72:5:  [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 argp[2]; /*Force struct alignment*/
data/consolation-0.0.8/src/selection.c:82: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/tty0",O_RDONLY);
data/consolation-0.0.8/src/selection.c:131:12:  [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).
  int fd = open("/dev/tty0",O_RDWR);
data/consolation-0.0.8/src/selection.c:142:5:  [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 subcode[4];
data/consolation-0.0.8/src/selection.c:150: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/tty0",O_RDONLY);
data/consolation-0.0.8/src/selection.c:167:5:  [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 padding[3];
data/consolation-0.0.8/src/selection.c:199: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/tty0",O_RDWR);
data/consolation-0.0.8/src/shared.c:247: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).
	int fd = open(path, flags);
data/consolation-0.0.8/src/shared.h:94: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[256];
data/consolation-0.0.8/src/shared.h:110: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 disable_pattern[64];
data/consolation-0.0.8/src/shared.c:370:6:  [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).
	if (strlen(options->match) > 0 &&

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 1569 in approximately 0.11 seconds (14268 lines/second)
Physical Source Lines of Code (SLOC) = 1265
Hits@level = [0]  16 [1]   1 [2]  12 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  31 [1+]  15 [2+]  14 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 24.5059 [1+] 11.8577 [2+] 11.0672 [3+] 1.58103 [4+] 0.790514 [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.