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/wordwarvi-1.00+dfsg1/wwvi_font.c
Examining data/wordwarvi-1.00+dfsg1/version.h
Examining data/wordwarvi-1.00+dfsg1/ogg_to_pcm.h
Examining data/wordwarvi-1.00+dfsg1/ogg_to_pcm.c
Examining data/wordwarvi-1.00+dfsg1/rumble.h
Examining data/wordwarvi-1.00+dfsg1/wwvi_font.h
Examining data/wordwarvi-1.00+dfsg1/wwviaudio.h
Examining data/wordwarvi-1.00+dfsg1/levels.h
Examining data/wordwarvi-1.00+dfsg1/joystick.c
Examining data/wordwarvi-1.00+dfsg1/my_point.h
Examining data/wordwarvi-1.00+dfsg1/joystick.h
Examining data/wordwarvi-1.00+dfsg1/rumble.c
Examining data/wordwarvi-1.00+dfsg1/stamp.c
Examining data/wordwarvi-1.00+dfsg1/wordwarvi.c
Examining data/wordwarvi-1.00+dfsg1/wwviaudio.c

FINAL RESULTS:

data/wordwarvi-1.00+dfsg1/wordwarvi.c:2036:2:  [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(textline[n].string, s);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10102: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(highscore[slot].name, highscore_initials);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10741:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rc = system(cmd);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10757:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rc = system(cmd);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10998:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(textline[GAME_OVER].string, "%s", 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11024:4:  [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(textline[GAME_OVER+1].string, FINAL_MSG1);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11025:4:  [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(textline[GAME_OVER].string, FINAL_MSG2);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11040:4:  [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(textline[GAME_OVER+1].string, FINAL_MSG1);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11041:4:  [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(textline[GAME_OVER].string, FINAL_MSG2);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:12334:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(str, "%15s %s", keyactionstring[k],
data/wordwarvi-1.00+dfsg1/wordwarvi.c:12351:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(str, "%15s %s", keyactionstring[k],
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13217:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/.wordwarvi/.highscores", homedir);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13329:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/.wordwarvi/.exrc", homedir);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13367:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "set rumbledevice=%s\n", filename);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13369:4:  [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(rumbledevicestring, filename);	
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13373:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "set starmotion=%s\n", starmotion);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13460:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "set difficulty=%s\n", difficulty);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13475:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "set joystick=%s\n", js);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13477:4:  [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(joystickdevice, js);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13480:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "set %s\n", word);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13532:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "map button %d %s", &button, actionname);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13537:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		rc = sscanf(s, "map %s %s", keyname, actionname);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13565:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd) != 0)
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13649:2:  [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(joystick_device, JOYSTICK_DEVNAME);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13799:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				n = sscanf(optarg, "%s", difficulty);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13813:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				n = sscanf(optarg, "%s", rumbledevicestring);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13822:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					n = sscanf(optarg, "%s", starmotion);
data/wordwarvi-1.00+dfsg1/stamp.c:15:22:  [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.
	source_date_epoch = getenv("SOURCE_DATE_EPOCH");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:2651:11:  [3] (random) random:
  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.
	return ((random() & 0x0000ffff) * n) >> 16;
data/wordwarvi-1.00+dfsg1/wordwarvi.c:2670:12:  [3] (random) random:
  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.
	return (((random() & 0x0000ffff) * n) >> 16) + min(a,b);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8395:53:  [3] (random) random:
  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.
	perturbation = percent * (lower - upper) * ((0.0 + random()) / (0.0 + RAND_MAX) - 0.5);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11294:2:  [3] (random) srandom:
  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.
	srandom(level.random_seed);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11399:23:  [3] (random) random:
  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.
		level.random_seed = random();
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11432:2:  [3] (random) srandom:
  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.
	srandom(level.random_seed);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11433:22:  [3] (random) random:
  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.
	level.random_seed = random(); /* deterministic */
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13213:12:  [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.
	homedir = getenv("HOME");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13326:12:  [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.
	homedir = getenv("HOME");
data/wordwarvi-1.00+dfsg1/joystick.c:41:16:  [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).
	joystick_fd = open(joystick_device, O_RDONLY | O_NONBLOCK); /* read write for force feedback? */
data/wordwarvi-1.00+dfsg1/ogg_to_pcm.c:49: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[8192];
data/wordwarvi-1.00+dfsg1/ogg_to_pcm.c:57:7:  [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).
	in = fopen(infile, "r");
data/wordwarvi-1.00+dfsg1/ogg_to_pcm.c:119:3:  [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(bufferptr, buf, ret);
data/wordwarvi-1.00+dfsg1/rumble.c:128:13:  [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).
	event_fd = open(filename, O_RDWR);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:1779: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 string[80];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:1788: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[4];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:1793: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 highscore_initials[4];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:2127: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 msg[21];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:2346: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 rumbledevicestring[PATH_MAX];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8162: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 count[15];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8163:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(count, "TL:%d", total);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8268:28:  [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.
		draw_string(w, (unsigned char *) textline[i].string);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8424: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 message[20];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8426:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(message, "%d", score);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8916: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(&host_list[injection_point], &injection[0], (ninject * sizeof(injection[0])));
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8950: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(p, mosquey_roof, sizeof(mosquey_roof));
data/wordwarvi-1.00+dfsg1/wordwarvi.c:9284: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(building, scratch, sizeof(scratch[0]) * npoints);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10018: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 message[20];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10024:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(highscore_initials, "   ");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10081:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(message, "%d", game_state.score);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10123:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(message, "Time remaining: %d", timeleft);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10199: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[100];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10246:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(s, "Using The Source                   %6d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10259:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Elapsed time               %02d:%02d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10271:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "SAM stations destroyed:    %2d/%2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10282:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Laser turrets killed:      %2d/%2d    %5d", 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10289:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Missiles killed:              %2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10300:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Rockets killed:            %2d/%2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10310:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Octo-viruses killed:       %2d/%2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10320:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "gdb processes killed:      %2d/%2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10329:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Emacs processes killed:    %2d/%2d    %5d",
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10338:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "vi .swp files rescued:     %2d/%2d    %5d", 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10344:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s, "Node cleared! Total bonus points:  %6d\n", bonus_points);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10369: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 statusstr[100]; 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10471:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(statusstr, "Score:   %7d", game_state.score);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10473:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(statusstr, "Bombs:   %7d", game_state.nbombs);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10475:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(statusstr, "Lives:   %7d", game_state.lives);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10477:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(statusstr, "Credits: %7d", credits);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10479:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(statusstr, "Humans:      %d/%d", game_state.humanoids, level.nhumanoids);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10735: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 cmd[1024];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10740:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "xdg-screensaver suspend 0x%08x > /dev/null 2>&1 &", xwindow_id);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10751: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 cmd[1024];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10756:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "xdg-screensaver resume 0x%08x > /dev/null 2>&1 &", xwindow_id);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10815:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(textline[GAME_OVER].string, " Game Over");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10821:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(textline[GAME_OVER].string, " Game Over");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10831:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(textline[GAME_OVER].string, "Insert Coin");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10920: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 score[20];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10927:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(score, "%c%c%c   %12d", 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10983:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(textline[GAME_OVER].string, "Level %d...", 
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11007:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(textline[GAME_OVER].string, "Prepare to die!");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11009:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(textline[GAME_OVER].string, "Go Santa, Go!");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11056:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(textline[GAME_OVER+1].string, "NEW HIGH");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11057:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(textline[GAME_OVER].string, "SCORE!!!");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:12185: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.
unsigned char *keycharmap[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:12326: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 str[50];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13208: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 filename[PATH_MAX+1];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13218:7:  [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(filename, O_CREAT | O_RDWR, 0644);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13245:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(highscore[i].name, "vi ");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13250:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(highscore[0].name, "RMS"); /* as in RMS. */
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13252:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(highscore[1].name, "B_M"); /* As in Bram Moolenaar */
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13254:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(highscore[2].name, "JOY"); /* as in Bill */
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13256:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(highscore[2].name, "JWZ"); /* xemacs... */
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13308: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 line[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13309: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 word[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13311: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 filename[PATH_MAX];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13312: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 js[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13319: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 keyname[256], actionname[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13320: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 difficulty[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13321: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 starmotion[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13331: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).
	exrcfile = fopen(filename, "r");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13639: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 joystick_device[PATH_MAX+1];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13642: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 difficulty[256];
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13821:6:  [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 starmotion[256];
data/wordwarvi-1.00+dfsg1/wwvi_font.c:208:3:  [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(v->p, scratch, sizeof(struct my_point_t) * npoints);
data/wordwarvi-1.00+dfsg1/wwviaudio.c:120: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 filebuf[PATH_MAX];
data/wordwarvi-1.00+dfsg1/joystick.c:54:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(joystick_fd, jse, sizeof(*jse)); 
data/wordwarvi-1.00+dfsg1/joystick.c:131:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:5560:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(textline[CREDITS].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:6818:17:  [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).
			o->counter = strlen(randomlisp)-1;
data/wordwarvi-1.00+dfsg1/wordwarvi.c:8418:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *) o->tsd.floating_message.msg, msg, 20);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10062:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(message, "A");	
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10082: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).
		len = strlen(message);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10826:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(textline[GAME_OVER].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10851:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(textline[GAME_OVER].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:10982:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(textline[CREDITS].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11029:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(textline[GAME_OVER].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11060:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(textline[GAME_OVER].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:11473:2:  [1] (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). Risk is low because the source is a constant character.
	strcpy(textline[CREDITS].string, "");
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13229:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, highscore[i].name, 3);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13232:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, &bigendian_score, sizeof(bigendian_score));
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13274:11:  [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).
	z = x + (strlen(x) - 1);
data/wordwarvi-1.00+dfsg1/wordwarvi.c:13770:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(joystick_device, optarg, PATH_MAX); 
data/wordwarvi-1.00+dfsg1/wwviaudio.c:132:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(filebuf, filename, PATH_MAX);

ANALYSIS SUMMARY:

Hits = 131
Lines analyzed = 16414 in approximately 0.48 seconds (34407 lines/second)
Physical Source Lines of Code (SLOC) = 12770
Hits@level = [0] 171 [1]  18 [2]  76 [3]  10 [4]  27 [5]   0
Hits@level+ = [0+] 302 [1+] 131 [2+] 113 [3+]  37 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 23.6492 [1+] 10.2584 [2+] 8.84886 [3+] 2.89742 [4+] 2.11433 [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.