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/bloboats-1.0.2+dfsg/src/game.h
Examining data/bloboats-1.0.2+dfsg/src/model.cpp
Examining data/bloboats-1.0.2+dfsg/src/spring.cpp
Examining data/bloboats-1.0.2+dfsg/src/vec.cpp
Examining data/bloboats-1.0.2+dfsg/src/wall.cpp
Examining data/bloboats-1.0.2+dfsg/src/config.h
Examining data/bloboats-1.0.2+dfsg/src/vec.h
Examining data/bloboats-1.0.2+dfsg/src/particle.cpp
Examining data/bloboats-1.0.2+dfsg/src/particle.h
Examining data/bloboats-1.0.2+dfsg/src/path.cpp
Examining data/bloboats-1.0.2+dfsg/src/menu.h
Examining data/bloboats-1.0.2+dfsg/src/wall.h
Examining data/bloboats-1.0.2+dfsg/src/models/tux.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/broken.h
Examining data/bloboats-1.0.2+dfsg/src/models/boulder.h
Examining data/bloboats-1.0.2+dfsg/src/models/hirvio.h
Examining data/bloboats-1.0.2+dfsg/src/models/canvas.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/invader.h
Examining data/bloboats-1.0.2+dfsg/src/models/tux.h
Examining data/bloboats-1.0.2+dfsg/src/models/paatti.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/broken.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/canvas.h
Examining data/bloboats-1.0.2+dfsg/src/models/invader.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/paatti.h
Examining data/bloboats-1.0.2+dfsg/src/models/hirvio.cpp
Examining data/bloboats-1.0.2+dfsg/src/models/boulder.cpp
Examining data/bloboats-1.0.2+dfsg/src/connection.cpp
Examining data/bloboats-1.0.2+dfsg/src/sound.cpp
Examining data/bloboats-1.0.2+dfsg/src/condition.cpp
Examining data/bloboats-1.0.2+dfsg/src/handler.h
Examining data/bloboats-1.0.2+dfsg/src/game.cpp
Examining data/bloboats-1.0.2+dfsg/src/path.h
Examining data/bloboats-1.0.2+dfsg/src/compiling_settings.h
Examining data/bloboats-1.0.2+dfsg/src/level.h
Examining data/bloboats-1.0.2+dfsg/src/model_tex.h
Examining data/bloboats-1.0.2+dfsg/src/water.cpp
Examining data/bloboats-1.0.2+dfsg/src/element.cpp
Examining data/bloboats-1.0.2+dfsg/src/font.h
Examining data/bloboats-1.0.2+dfsg/src/mouse.cpp
Examining data/bloboats-1.0.2+dfsg/src/compat.cpp
Examining data/bloboats-1.0.2+dfsg/src/handler.cpp
Examining data/bloboats-1.0.2+dfsg/src/font.cpp
Examining data/bloboats-1.0.2+dfsg/src/menutext.cpp
Examining data/bloboats-1.0.2+dfsg/src/model_tex.cpp
Examining data/bloboats-1.0.2+dfsg/src/connection.h
Examining data/bloboats-1.0.2+dfsg/src/media.h
Examining data/bloboats-1.0.2+dfsg/src/texfile.h
Examining data/bloboats-1.0.2+dfsg/src/text.h
Examining data/bloboats-1.0.2+dfsg/src/sound.h
Examining data/bloboats-1.0.2+dfsg/src/mouse.h
Examining data/bloboats-1.0.2+dfsg/src/element.h
Examining data/bloboats-1.0.2+dfsg/src/model.h
Examining data/bloboats-1.0.2+dfsg/src/player.h
Examining data/bloboats-1.0.2+dfsg/src/keyboard.cpp
Examining data/bloboats-1.0.2+dfsg/src/viewport.cpp
Examining data/bloboats-1.0.2+dfsg/src/player.cpp
Examining data/bloboats-1.0.2+dfsg/src/compat.h
Examining data/bloboats-1.0.2+dfsg/src/condition.h
Examining data/bloboats-1.0.2+dfsg/src/graphics.cpp
Examining data/bloboats-1.0.2+dfsg/src/media.cpp
Examining data/bloboats-1.0.2+dfsg/src/keyboard.h
Examining data/bloboats-1.0.2+dfsg/src/text.cpp
Examining data/bloboats-1.0.2+dfsg/src/texfile.cpp
Examining data/bloboats-1.0.2+dfsg/src/spring.h
Examining data/bloboats-1.0.2+dfsg/src/config.cpp
Examining data/bloboats-1.0.2+dfsg/src/water.h
Examining data/bloboats-1.0.2+dfsg/src/menutext.h
Examining data/bloboats-1.0.2+dfsg/src/level.cpp
Examining data/bloboats-1.0.2+dfsg/src/graphics.h
Examining data/bloboats-1.0.2+dfsg/src/main.cpp
Examining data/bloboats-1.0.2+dfsg/src/window.cpp
Examining data/bloboats-1.0.2+dfsg/src/window.h
Examining data/bloboats-1.0.2+dfsg/src/menu.cpp

FINAL RESULTS:

data/bloboats-1.0.2+dfsg/src/main.cpp:169:5:  [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(replay, argv[i]);
data/bloboats-1.0.2+dfsg/src/menu.cpp:184:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (levpath, "%s/levels/meri%d.hsc", Path->datadir, i);
data/bloboats-1.0.2+dfsg/src/menu.cpp:886:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (ghostpath, "%s/ghost/meri%d.brc", Path->privdir, level);
data/bloboats-1.0.2+dfsg/src/menu.cpp:961:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path1, "%s/levels/meri%d.dat", Path->datadir, level);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1073:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (tpath, "%s%d%s", Path->data("levels/meri"), level, ".tdt");
data/bloboats-1.0.2+dfsg/src/menu.cpp:1095: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.
			if ( sscanf(s, "%d %f %f %f %f %s\n", &lnum, &ax, &ay, &bx, &by, d) != 6) break;
data/bloboats-1.0.2+dfsg/src/menu.cpp:1297:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (ghostpath, "%s/ghost/meri%d.brc", Path->privdir, level);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1319:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (title, "*%s", (char*)levelname[level].c_str());
data/bloboats-1.0.2+dfsg/src/menu.cpp:1412:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf (path, "%s/records/last.brc", Path->privdir);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2161:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (t, "DELETE \"%s\"?", Player[playernum].name);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2290:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (nick1[i], "%s", hi_nicks[level][i].c_str());
data/bloboats-1.0.2+dfsg/src/menu.cpp:2297:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (nick2[i], "%s", Player[Config.currentplayer].name);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2369:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf (nick1[i], "%s", hi_nicks[level][i].c_str());
data/bloboats-1.0.2+dfsg/src/menu.cpp:2377:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf (nick2[i], "%s", Player[Config.currentplayer].name);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2499:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf (to, Path->priv("records/%s.brc"), path);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2613:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf (buf, "%s/records/%s.brc", Path->privdir, path);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2731:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (str, "%s", (char*)levelname[i].c_str() );
data/bloboats-1.0.2+dfsg/src/menu.cpp:2742:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (list[i], "%s %d:%.2d.%.2d", (char*)hi_nicks[i][0].c_str(), (int)(t1/60), (int)(t1)%60, (int)(t1*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3054:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf (buf, "%s/records/%s.brc", Path->privdir,
data/bloboats-1.0.2+dfsg/src/menu.cpp:3084:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf (p, "%s/records/%s.brc", Path->privdir, filename[selection-1].c_str());
data/bloboats-1.0.2+dfsg/src/menu.cpp:3234:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (str, "%s", Player[Config.currentplayer].name);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3294: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.
				s = sscanf(str, "%s\n", str2);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3307: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.
					s = sscanf(str, "%s %f\n", str2, &time);
data/bloboats-1.0.2+dfsg/src/path.cpp:74: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.
			if ( sscanf(s, "%s %s", d1, d2 ) == 2) {
data/bloboats-1.0.2+dfsg/src/path.cpp:168:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (strtemp, "%s/%s", datadir, s);
data/bloboats-1.0.2+dfsg/src/path.cpp:178:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (strtemp, "%s/%s", privdir, s);
data/bloboats-1.0.2+dfsg/src/path.cpp:219:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (frompath, "%s/%s", from, p->d_name);
data/bloboats-1.0.2+dfsg/src/path.cpp:220:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (topath, "%s/%s", to, p->d_name);
data/bloboats-1.0.2+dfsg/src/player.cpp:46: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(name, nick);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:85:6:  [4] (buffer) fscanf:
  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.
	if (fscanf(fp, "datadir %s\n", datapath) != 1) warn("Couldn't parse configfile.\n");
data/bloboats-1.0.2+dfsg/src/viewport.cpp:110:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/images/alus.png", datapath);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:113:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/images/invader.png", datapath);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:116:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/sounds/vroom.wav", datapath);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:118:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/sounds/finish.wav", datapath);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:120:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/sounds/explosion.wav", datapath);
data/bloboats-1.0.2+dfsg/src/viewport.cpp:122:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (path, "%s/sounds/roarr.wav", datapath);
data/bloboats-1.0.2+dfsg/src/path.cpp:96: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.
								p+=getenv(envname.c_str());
data/bloboats-1.0.2+dfsg/src/path.cpp:103:32:  [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.
					} else if (d2[i]=='~') p+=getenv("HOME");
data/bloboats-1.0.2+dfsg/src/compat.cpp:72: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 (str, "%d.%d.%d.%d", (Uint8)ip, (Uint8)(ip>>8), (Uint8)(ip>>16), (Uint8)(ip>>24) );
data/bloboats-1.0.2+dfsg/src/compat.cpp:83: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 *fp = fopen(f, "rb");
data/bloboats-1.0.2+dfsg/src/config.cpp:71: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 *fp = fopen( Path->priv("config.dat"), "r");
data/bloboats-1.0.2+dfsg/src/config.cpp:166: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 *fp = fopen( Path->priv("config.dat"), "w+");
data/bloboats-1.0.2+dfsg/src/game.cpp:945: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 *fp = fopen("mapinfo.txt", "w+");
data/bloboats-1.0.2+dfsg/src/game.cpp:986: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 text1[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:987: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 text2[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:988: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 text3[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:989: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 text4[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:990: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 text5[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:991: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 (text1, "NEAREST PARTICLE: %d", closestp);
data/bloboats-1.0.2+dfsg/src/game.cpp:992: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 (text2, "NEAREST SPRING: %d", closests);
data/bloboats-1.0.2+dfsg/src/game.cpp:993: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 (text3, "X: %f  Y: %f", m.x, m.y);
data/bloboats-1.0.2+dfsg/src/game.cpp:994: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 (text4, "NEAREST WALL: %d.%d", closestw, closestside);
data/bloboats-1.0.2+dfsg/src/game.cpp:995: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 (text5, "WALL TYPE: %d", closesttype);
data/bloboats-1.0.2+dfsg/src/game.cpp:1050: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 text1[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:1055: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 (text1, "%d:%.2d.%.2d", min, sek, sad);
data/bloboats-1.0.2+dfsg/src/game.cpp:1060: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 text2[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:1061: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 text3[200];
data/bloboats-1.0.2+dfsg/src/game.cpp:1070:6:  [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 (text2, "%d FPS", (int)fps );
data/bloboats-1.0.2+dfsg/src/game.cpp:1072:6:  [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 (text2, "MAX FPS");
data/bloboats-1.0.2+dfsg/src/keyboard.h:71: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 keydown[SDLK_LAST];
data/bloboats-1.0.2+dfsg/src/keyboard.h:72: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 keydouble[SDLK_LAST];
data/bloboats-1.0.2+dfsg/src/level.cpp:65: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 *fp = fopen( Path->data(filename), "r");
data/bloboats-1.0.2+dfsg/src/main.cpp:160:16:  [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 *fp = fopen(argv[i], "rb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:111: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 *fp = fopen( Path->priv("players.dat") , "r");
data/bloboats-1.0.2+dfsg/src/menu.cpp:115: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 nick[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:116: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 str[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:183: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 levpath[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:185:14:  [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 *fp = fopen(levpath, "r");
data/bloboats-1.0.2+dfsg/src/menu.cpp:884: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 ghostpath[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:889:15:  [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).
		ghostfile = fopen(ghostpath, "rb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:891:15:  [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).
		ghostfile = fopen(replay, "rb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:960: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 path1[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:963:14:  [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 *dat = fopen(path1, "r");
data/bloboats-1.0.2+dfsg/src/menu.cpp:972: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 mdl[200], levtex[200], shiptex[200], goaltex[200], groundtex[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:973: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 icetex[200], tentacletex[200], invadertex[200], bouldertex[200], tuxtex[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1060: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).
		recfile = fopen( Path->priv("records/last.brc"), "wb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:1072: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 tpath[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1079:16:  [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 *tfile = fopen( tpath, "r" );
data/bloboats-1.0.2+dfsg/src/menu.cpp:1088: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 s[1024];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1089: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 d[1024];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1113: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 tstr[200]; // here be time
data/bloboats-1.0.2+dfsg/src/menu.cpp:1155:25:  [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.
						if (time > 0.005) sprintf (tstr, "%d:%.2d.%.2d", (int)(time/60), (int)(time)%60, (int)(time*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1156:12:  [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.
						else sprintf(tstr, "FINISHED REPLAY");
data/bloboats-1.0.2+dfsg/src/menu.cpp:1318: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 title[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1411: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.
							char path[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1532: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 str[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:1538:30:  [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.
				if (message==MSG_RECORD) sprintf (str, "TOP SCORE: %d:%.2d.%.2d",
data/bloboats-1.0.2+dfsg/src/menu.cpp:1541:30:  [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.
				if (message==MSG_TOPTEN) sprintf (str, "HIGH SCORE: %d:%.2d.%.2d",
data/bloboats-1.0.2+dfsg/src/menu.cpp:1544:28:  [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.
				if (message==MSG_TIME) sprintf (str, "%d:%.2d.%.2d",
data/bloboats-1.0.2+dfsg/src/menu.cpp:1547:30:  [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.
				if (message==MSG_FAILED) sprintf (str, "YOU FAILED" );
data/bloboats-1.0.2+dfsg/src/menu.cpp:1564: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 str[64];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2030: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 nick[NICK_MAXLEN+1];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2160: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[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2273: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 numbers[10][4];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2275: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 time1[10][15];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2276: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 time2[10][15];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2278: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 nick1[10][15];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2279: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 nick2[10][15];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2287: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 (numbers[i], "%2d.", i+1);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2291: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 (time1[i], "%d:%.2d.%.2d", (int)(t1/60), (int)(t1)%60, (int)(t1*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2298: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 (time2[i], "%d:%.2d.%.2d", (int)(t2/60), (int)(t2)%60, (int)(t2*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2370:7:  [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 (time1[i], "%d:%.2d.%.2d", (int)(t1/60), (int)(t1)%60, (int)(t1*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2378:7:  [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 (time2[i], "%d:%.2d.%.2d", (int)(t2/60), (int)(t2)%60, (int)(t2*100.0)%100);
data/bloboats-1.0.2+dfsg/src/menu.cpp:2438: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 path[20+1];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2498: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 to[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2553: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 path[20+1];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2612: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 buf[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2659: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 *fp = fopen( Path->priv("players.dat"), "w");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2697: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 *fp = fopen( Path->priv("levels.dat"), "w");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2721: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 time[MAXLEVELS][200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2722: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 nick[MAXLEVELS][200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2723: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 list[MAXLEVELS][200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:2728: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[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3053: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 buf[1200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3083:7:  [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 p[1000];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3166: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 *infile = fopen(from, "rb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3167:18:  [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 *outfile = fopen(to, "wb");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3231: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 str[40];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3244: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 (str, "%d/6", 6-secrets);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3267: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 *fp = fopen(Path->priv("levels.dat"), "r");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3278:8:  [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).
		fp = fopen(Path->priv("levels.dat"), "r");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3282: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[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3283: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 str2[200];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3711: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 str[20];
data/bloboats-1.0.2+dfsg/src/menu.cpp:3712:31:  [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.
			if (Config.musicvol == 10) sprintf (str, "MUSICVOL 10");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3713:9:  [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.
			else sprintf (str, "MUSICVOL %d ", Config.musicvol);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3715:31:  [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.
			if (Config.soundvol == 10) sprintf (str, "SOUNDVOL 10");
data/bloboats-1.0.2+dfsg/src/menu.cpp:3716:9:  [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.
			else sprintf (str, "SOUNDVOL %d ", Config.soundvol);
data/bloboats-1.0.2+dfsg/src/model.cpp:57: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 *fp = fopen( Path->data(filename), "r");
data/bloboats-1.0.2+dfsg/src/mouse.h:55: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 * blank_cursor[36][32];
data/bloboats-1.0.2+dfsg/src/path.cpp:39: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 *fp = fopen(cfgfile, "r");
data/bloboats-1.0.2+dfsg/src/path.cpp:43:8:  [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).
		fp = fopen("bloboats.dirs", "r");
data/bloboats-1.0.2+dfsg/src/path.cpp:63: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 s[1024];
data/bloboats-1.0.2+dfsg/src/path.cpp:64: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 d1[24];
data/bloboats-1.0.2+dfsg/src/path.cpp:65: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 d2[1020];
data/bloboats-1.0.2+dfsg/src/path.cpp:144: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 (datadir, "data");
data/bloboats-1.0.2+dfsg/src/path.cpp:152: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 (privdir, "private");
data/bloboats-1.0.2+dfsg/src/path.cpp:272:19:  [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 *infile = fopen(from, "rb");
data/bloboats-1.0.2+dfsg/src/path.cpp:273:20:  [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 *outfile = fopen(to, "wb");
data/bloboats-1.0.2+dfsg/src/path.h:53: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 strtemp[2048];
data/bloboats-1.0.2+dfsg/src/viewport.cpp:66: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 datapath[200], path[300];
data/bloboats-1.0.2+dfsg/src/viewport.cpp:83: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 *fp = fopen(DEFAULT_CONFIGFILE, "r"); // Load path config
data/bloboats-1.0.2+dfsg/src/compat.cpp:30:10:  [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).
	int len=strlen(str);
data/bloboats-1.0.2+dfsg/src/compat.cpp:58:12:  [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).
	int len = strlen(str);
data/bloboats-1.0.2+dfsg/src/compat.cpp:77: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 ( strcmp ( &filepath[strlen(filepath)-strlen(extension)], extension ) == 0 ) return 1;
data/bloboats-1.0.2+dfsg/src/compat.cpp:77:43:  [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 ( strcmp ( &filepath[strlen(filepath)-strlen(extension)], extension ) == 0 ) return 1;
data/bloboats-1.0.2+dfsg/src/compat.cpp:145:10:  [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).
	int len=strlen(str);
data/bloboats-1.0.2+dfsg/src/compat.cpp:175:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(parameter, &(str[start]), (i-start));
data/bloboats-1.0.2+dfsg/src/compat.cpp:207:10:  [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).
	int len=strlen(str);
data/bloboats-1.0.2+dfsg/src/compat.cpp:231:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(parameter, &(str[start]), (i-start));
data/bloboats-1.0.2+dfsg/src/compat.cpp:243:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int q = fgetc(fp);
data/bloboats-1.0.2+dfsg/src/font.cpp:79:18:  [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).
	for (int i=0; i<strlen(str); i++) {
data/bloboats-1.0.2+dfsg/src/font.h:38:21:  [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).
const int big_num = strlen(big_ch);
data/bloboats-1.0.2+dfsg/src/game.cpp:1082:50:  [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).
				Font.WriteString (ptxt, Window.width/2-30.0*(strlen(ptxt)-1), Window.height/2-100.0, 60.0);
data/bloboats-1.0.2+dfsg/src/game.cpp:1083:51:  [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).
				Font.WriteString (ptxt2, Window.width/2-12.0*(strlen(ptxt2)-1), Window.height/2-30.0, 24.0);
data/bloboats-1.0.2+dfsg/src/main.cpp:168:23:  [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).
				replay = new char[strlen(argv[i])+1];
data/bloboats-1.0.2+dfsg/src/menu.cpp:121: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).
				if (nick && strlen(nick)>1 ) {
data/bloboats-1.0.2+dfsg/src/menu.cpp:122: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).
					nick[strlen(nick)-1]='\0';
data/bloboats-1.0.2+dfsg/src/menu.cpp:978:7:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ( fscanf(dat, "%190s\n%190s\n%190s\n%190s\n%190s\n%190s\n%190s\n%190s\n%190s\n%190s\n%d\n%f %f %f %f\n%f %f %f %f %f\n%f %f %f",
data/bloboats-1.0.2+dfsg/src/menu.cpp:1178:47:  [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).
				Font.WriteString(lname, Window.width/2-20*strlen(lname), Window.height/2-120, 40);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1180:51:  [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).
				Font.WriteString(ghostname, Window.width/2-15*strlen(ghostname), Window.height/2-70, 30);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1181:60:  [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 (state==1) Font.WriteString(tstr, Window.width/2-15*strlen(tstr), Window.height/2+70, 30);
data/bloboats-1.0.2+dfsg/src/menu.cpp:1550:45:  [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).
				Font.WriteString(str, Window.width/2-15*strlen(str), Window.height/2+180, 30 );
data/bloboats-1.0.2+dfsg/src/menu.cpp:2099: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).
				if (strlen(nick) >= 1) {
data/bloboats-1.0.2+dfsg/src/menu.cpp:2293:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf (nick1[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2294:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf (time1[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2300:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf (nick2[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2301:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf (time2[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2372:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
						sprintf (nick1[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2373:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
						sprintf (time1[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2380:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
						sprintf (nick2[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2381:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
						sprintf (time2[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2496: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).
				if (strlen(path) >= 1 && strcmp(path, "LAST") != 0 ) {
data/bloboats-1.0.2+dfsg/src/menu.cpp:2611: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).
				if (strlen(path) >= 1) {
data/bloboats-1.0.2+dfsg/src/menu.cpp:2744:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf (list[i], "-");
data/bloboats-1.0.2+dfsg/src/menu.cpp:2887:14:  [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).
					int w = strlen(list[i-1]);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3181:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int q = fgetc(infile);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3235:40:  [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).
		Font.WriteString(str, Window.width - strlen(str)*30-10, 10.0, 30);
data/bloboats-1.0.2+dfsg/src/menu.cpp:3245:40:  [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).
		Font.WriteString(str, Window.width - strlen(str)*30-10, 40.0, 30);
data/bloboats-1.0.2+dfsg/src/menutext.cpp:27: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(txt) >= 100) {
data/bloboats-1.0.2+dfsg/src/menutext.cpp:59: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(txt) >= 100) {
data/bloboats-1.0.2+dfsg/src/path.cpp:116:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy (ps, p.c_str(), p.size()+1);
data/bloboats-1.0.2+dfsg/src/path.cpp:163:7:  [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(s) >= 1024 ) {
data/bloboats-1.0.2+dfsg/src/path.cpp:173:7:  [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(s) >= 1024 ) {
data/bloboats-1.0.2+dfsg/src/path.cpp:216:31:  [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).
			char *frompath = new char[ strlen(from) + strlen(p->d_name) + 2 ];
data/bloboats-1.0.2+dfsg/src/path.cpp:216:46:  [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).
			char *frompath = new char[ strlen(from) + strlen(p->d_name) + 2 ];
data/bloboats-1.0.2+dfsg/src/path.cpp:217:29:  [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).
			char *topath = new char[ strlen(to) + strlen(p->d_name) + 2 ];
data/bloboats-1.0.2+dfsg/src/path.cpp:217:42:  [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).
			char *topath = new char[ strlen(to) + strlen(p->d_name) + 2 ];
data/bloboats-1.0.2+dfsg/src/path.cpp:287:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int q = fgetc(infile);
data/bloboats-1.0.2+dfsg/src/player.cpp:45:18:  [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).
	name = new char[strlen(nick)+1];

ANALYSIS SUMMARY:

Hits = 190
Lines analyzed = 15051 in approximately 0.40 seconds (37798 lines/second)
Physical Source Lines of Code (SLOC) = 8870
Hits@level = [0] 223 [1]  48 [2] 104 [3]   2 [4]  36 [5]   0
Hits@level+ = [0+] 413 [1+] 190 [2+] 142 [3+]  38 [4+]  36 [5+]   0
Hits/KSLOC@level+ = [0+] 46.5614 [1+] 21.4205 [2+] 16.009 [3+] 4.2841 [4+] 4.05862 [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.