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/vor-0.5.8/rocks.c
Examining data/vor-0.5.8/args.c
Examining data/vor-0.5.8/autopilot.h
Examining data/vor-0.5.8/rocks.h
Examining data/vor-0.5.8/sound.c
Examining data/vor-0.5.8/file.h
Examining data/vor-0.5.8/sound.h
Examining data/vor-0.5.8/dust.h
Examining data/vor-0.5.8/sprite.c
Examining data/vor-0.5.8/mt.h
Examining data/vor-0.5.8/dust.c
Examining data/vor-0.5.8/float.h
Examining data/vor-0.5.8/sprite.h
Examining data/vor-0.5.8/vorconfig.h
Examining data/vor-0.5.8/font.c
Examining data/vor-0.5.8/autopilot.c
Examining data/vor-0.5.8/font_guts.c
Examining data/vor-0.5.8/score.h
Examining data/vor-0.5.8/args.h
Examining data/vor-0.5.8/mt.c
Examining data/vor-0.5.8/common.h
Examining data/vor-0.5.8/main.c
Examining data/vor-0.5.8/score.c
Examining data/vor-0.5.8/globals.h
Examining data/vor-0.5.8/file.c
Examining data/vor-0.5.8/font.h

FINAL RESULTS:

data/vor-0.5.8/file.c:43:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s, DATA_DIR);
data/vor-0.5.8/file.c:44:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s+sizeof(DATA_DIR)-1, filename);
data/vor-0.5.8/file.c:116:3:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		getenv("VOR_DATA"),
data/vor-0.5.8/file.c:146:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	dir = getenv("HOME"); if(!dir) return false;
data/vor-0.5.8/file.c:58:9:  [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).
	return fopen("scores", mode);
data/vor-0.5.8/file.c:79:2:  [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(s, path, plen);
data/vor-0.5.8/file.c:81:2:  [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(s+plen+1, file, flen+1);
data/vor-0.5.8/file.c:115: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 *data_options[3] = {
data/vor-0.5.8/file.c:164:9:  [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).
	return fopen(g_score_file, mode);
data/vor-0.5.8/globals.h:27:8:  [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.
extern char topline[1024];
data/vor-0.5.8/main.c:83:1:  [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 topline[1024];
data/vor-0.5.8/main.c:121:1:  [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 *msgs[2][3] = {
data/vor-0.5.8/main.c:721: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.
									char tmp[30];
data/vor-0.5.8/main.c:725:27:  [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).
										screenshot_fp = fopen(screenshot_filename, "r");
data/vor-0.5.8/rocks.c:46: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 a[ROCK_LEN];
data/vor-0.5.8/score.c:58:8:  [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 char *titles[2] = { "Normal\n", "Easy\n" };
data/vor-0.5.8/score.c:160: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 s[16];
data/vor-0.5.8/score.c:169: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 t[1024];
data/vor-0.5.8/score.h:31: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 name[32];
data/vor-0.5.8/file.c:41:30:  [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).
	s = malloc(sizeof(DATA_DIR)+strlen(filename));
data/vor-0.5.8/file.c:75:9:  [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).
	plen = strlen(path);
data/vor-0.5.8/file.c:76:9:  [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).
	flen = strlen(file);
data/vor-0.5.8/font_guts.c:16:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((bit = getc(stdin)) != EOF) {
data/vor-0.5.8/score.c:73: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).
			ret = fseek(f, strlen(titles[j]), SEEK_CUR);
data/vor-0.5.8/score.c:197: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).
	n = strlen(name);

ANALYSIS SUMMARY:

Hits = 25
Lines analyzed = 3200 in approximately 0.09 seconds (35422 lines/second)
Physical Source Lines of Code (SLOC) = 2223
Hits@level = [0]  29 [1]   6 [2]  15 [3]   2 [4]   2 [5]   0
Hits@level+ = [0+]  54 [1+]  25 [2+]  19 [3+]   4 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 24.2915 [1+] 11.2461 [2+] 8.54701 [3+] 1.79937 [4+] 0.899685 [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.