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/randmac-0.1/randmac.c

FINAL RESULTS:

data/randmac-0.1/randmac.c:177:2:  [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(printfmt[(eui64 << 1) + uppercase],
data/randmac-0.1/randmac.c:135:7:  [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, short_options,
data/randmac-0.1/randmac.c:155:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL) + getpid());
data/randmac-0.1/randmac.c:93:17:  [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 *stream = fopen(EUICSV, "r");
data/randmac-0.1/randmac.c:121:11:  [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 mac[6];
data/randmac-0.1/randmac.c:107:26:  [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 (strncmp(s, tail, strlen(s)) == 0) {

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 182 in approximately 0.02 seconds (9685 lines/second)
Physical Source Lines of Code (SLOC) = 151
Hits@level = [0]   5 [1]   1 [2]   2 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  11 [1+]   6 [2+]   5 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 72.8477 [1+] 39.7351 [2+] 33.1126 [3+] 19.8675 [4+] 6.62252 [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.