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/wev-1.0.0/shm.c
Examining data/wev-1.0.0/shm.h
Examining data/wev-1.0.0/wev.c

FINAL RESULTS:

data/wev-1.0.0/wev.c:97:7:  [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.
	n += vprintf(fmt, ap);
data/wev-1.0.0/wev.c:307:4:  [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(SPACER "sym: %-12s (%d), ", buf, sym);
data/wev-1.0.0/wev.c:347: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(SPACER "sym: %-12s (%d), ", buf, sym);
data/wev-1.0.0/wev.c:373: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(SPACER "depressed: %08X", mods_depressed);
data/wev-1.0.0/wev.c:375: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(SPACER "latched: %08X", mods_latched);
data/wev-1.0.0/wev.c:377: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(SPACER "locked: %08X", mods_locked);
data/wev-1.0.0/wev.c:564:4:  [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("\n" SPACER);
data/wev-1.0.0/wev.c:839:16:  [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, "f:F:ghM:")) != -1) {
data/wev-1.0.0/wev.c:271:13:  [2] (misc) fopen:
  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).
		FILE *f = fopen(state->opts.dump_map, "w");
data/wev-1.0.0/wev.c:303:4:  [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 buf[128];
data/wev-1.0.0/wev.c:341: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 buf[128];
data/wev-1.0.0/shm.c:23:19:  [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).
		randname(name + strlen(name) - 6);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 987 in approximately 0.04 seconds (24151 lines/second)
Physical Source Lines of Code (SLOC) = 866
Hits@level = [0]  27 [1]   1 [2]   3 [3]   1 [4]   7 [5]   0
Hits@level+ = [0+]  39 [1+]  12 [2+]  11 [3+]   8 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 45.0346 [1+] 13.8568 [2+] 12.7021 [3+] 9.23788 [4+] 8.08314 [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.