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/openuniverse-1.0beta3.1+dfsg/acconfig.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/cfglex.c
Examining data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c
Examining data/openuniverse-1.0beta3.1+dfsg/src/astrolib.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/gravity.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/positions.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/texture.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/bmf.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/gui.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/radar.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/texture.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/camera.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/gui.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/macros.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/rings.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/timer.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/milkyway.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/events.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/joystick.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/mouse.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/sun.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/mp3.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/glext.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/comet.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/flares.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/font.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/info.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/init.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/jpeg.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/keyboard.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/lex.cfg.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/ou.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/ou.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/scrnshot.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/texfont.cpp
Examining data/openuniverse-1.0beta3.1+dfsg/src/texfont.h
Examining data/openuniverse-1.0beta3.1+dfsg/src/util.cpp

FINAL RESULTS:

data/openuniverse-1.0beta3.1+dfsg/src/cfglex.c:990: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(cfglval.name, yytext); return NAME; }
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1120: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(planets[body_index].Name, yyvsp[-22]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1151: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(planets[body_index].Name, yyvsp[-22]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1186: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(planets[body_index].Name, yyvsp[-17]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1215: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(planets[body_index].Name, yyvsp[-19]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1248: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(planets[body_index].Name, yyvsp[-23]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1304: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(planets[body_index].Name, yyvsp[-15]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1407:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(msg, count == 0 ? ", expecting `" : " or `");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1408:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(msg, yytname[x]);
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1533:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    	sprintf(s, "%s/ou.conf", confpath);
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:780:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1573: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(planets[body_index].Name, yyvsp[-22]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1605: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(planets[body_index].Name, yyvsp[-22]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1642: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(planets[body_index].Name, yyvsp[-17]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1672: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(planets[body_index].Name, yyvsp[-19]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1706: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(planets[body_index].Name, yyvsp[-23]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1765: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(planets[body_index].Name, yyvsp[-15]. name );
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1995:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    	sprintf(s, "%s/ou.conf", confpath);
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:47:6:  [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(game_string, s[i + 1]);
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:59: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(logfileName, DEF_LOGFILE_NAME);
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:65:6:  [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(logfileName, s[i + 1]);
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:71:6:  [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(logfileName, DEF_LOGFILE_NAME);
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:36:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%s/autoevent.dat", eventpath);
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:92:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%s/dumpevent.dat", eventpath);
data/openuniverse-1.0beta3.1+dfsg/src/flares.cpp:47:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "Couldn't read image %s\n", filename);
data/openuniverse-1.0beta3.1+dfsg/src/flares.cpp:53:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "Invalid flare image: %s\n", filename);
data/openuniverse-1.0beta3.1+dfsg/src/gui.cpp:314:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "  %s", planets[i].Name);
data/openuniverse-1.0beta3.1+dfsg/src/gui.cpp:335:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "  %s", planets[i].Name);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:186:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "%s", planets[currtarget].Name);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:190:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "Tracking %s", planets[currtarget].Name);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:195:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "%s as seen from %s", planets[currtarget].Name,
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:200:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "Orbiting around %s", planets[currtarget].Name);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:209:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Body distance from %s (Km): %.2f",
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:222:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Camera speed (Km / sec) rel to %s: %.2f",
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:225:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Camera speed (c) rel to %s: %.2f",
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:238:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "N: %.3f F: %.3f %s", nearclip, farclip,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:127:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Couldn't read image %s/cyclo.jpg\n", texturepath);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:488:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up body: %s", planets[body].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:557:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(sbuf, "Couldn't read image %s/%s\n", texturepath,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:711:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up Asteroid: %s", planets[body].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:780:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up body: %s", planets[body].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:813:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up orbiter: %s", planets[body].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:879:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up SpaceShip: %s", planets[body].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:957:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up rings: %s", planets[planets[body].Sat].Name);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:963:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Couldn't read image %s/%s\n", texturepath, texfile);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1032:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sbuf, "Setting up atmosphere: %s",
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1039:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Couldn't read image %s/%s\n", texturepath, texfile);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1280:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sbuf, "Couldn't read image %s/sun.jpg\n", texturepath);
data/openuniverse-1.0beta3.1+dfsg/src/jpeg.cpp:84:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/%s", texturepath, fname);
data/openuniverse-1.0beta3.1+dfsg/src/lex.cfg.cpp:1065: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(cfglval.name, cfgtext); return NAME; }
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:37:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s, "%s/%s", modelspath, filename);
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:40:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "Can't open file %s", filename);
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:94:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(s, "reading image %s",
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:228:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(s, "error reading image %s",
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:34:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%s/messier.dat", datapath);
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:48:3:  [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.
		sscanf(line, "%s %s %f %f %f %f\n",
data/openuniverse-1.0beta3.1+dfsg/src/mp3.cpp:41:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s, "%s/*.mp3", MP3_DIR);
data/openuniverse-1.0beta3.1+dfsg/src/mp3.cpp:53:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s, "%s/%s", MP3_DIR, "2001.mp3");
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:79:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define error(s) fprintf(stderr,s)
data/openuniverse-1.0beta3.1+dfsg/src/scrnshot.cpp:48:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%s/%s", shotspath, filename);
data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp:36:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(line, "%s/stars.dat", datapath);
data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp:57: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(stars[i].Name, line);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:86:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(t);
data/openuniverse-1.0beta3.1+dfsg/src/cfglex.c:980:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ cfglval.ival = atoi(yytext); return INTEGER_NUM; }
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:88: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 name[100];
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1112: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(planets[0].Name, "The Sun");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1398:8:  [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(msg, "parse error");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1528: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 s[200];
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1530: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, "ou.conf");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1531: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).
    cfgin = fopen(s, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1534: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).
    	cfgin = fopen(s, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:211: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 name[100];
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1564: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(planets[0].Name, "The Sun");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1990: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 s[200];
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1992: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, "ou.conf");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1993: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).
    cfgin = fopen(s, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:1996: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).
    	cfgin = fopen(s, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.h:131: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 name[100];
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:32: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 eventpath[100] = EVENTS_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:33:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[200];
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:37:6:  [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).
	f = fopen(line, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:87: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 eventpath[100] = EVENTS_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:88:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[200];
data/openuniverse-1.0beta3.1+dfsg/src/events.cpp:93:6:  [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).
	f = fopen(line, "wt");
data/openuniverse-1.0beta3.1+dfsg/src/flares.cpp:35: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[20], sbuf[100];
data/openuniverse-1.0beta3.1+dfsg/src/flares.cpp:44: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(filename,"flare%d.jpg",j+1);
data/openuniverse-1.0beta3.1+dfsg/src/font.cpp:22: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 fontpath[100] = FONT_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/gui.cpp:287: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:35: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:214: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(sbuf, "Camera distance from Sun (Km): %.2f",
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:217: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(sbuf, "Time factor: %d sec / iteration", timefactor);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:229: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(sbuf, "Zoom factor: %.2f", 10.0 / zoom);
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:233: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(sbuf, "FOV: %.1f  FPS: %.1f TEX: %.1f", fov, fps,
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:245: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(sbuf, "up: (%f) %f %f %f", MODULE(camup), camup[X], camup[Y],
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:249: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(sbuf, "eye: (%f) %f %f %f", MODULE(cameye), cameye[X],
data/openuniverse-1.0beta3.1+dfsg/src/info.cpp:253: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(sbuf, "angle: %f", RAD2DEG(acos(DOTPRODUCT(cameye, camup))));
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:62: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 texturepath[100] = TEXTURE_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:63: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 confpath[100] = CONF_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:64: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 tmpimg[258 * 258 * 4], *splash_image;
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:123: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:178: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.
			const char *files[4]={"splash1.jpg", "splash2.jpg", "splash3.jpg", "splash4.jpg"};
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:193:5:  [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(tmpimg + i * 256 * 3,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:212:5:  [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(tmpimg + i * 256 * 3,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:228:5:  [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(tmpimg + i * 256 * 3,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:246:5:  [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(tmpimg + i * 256 * 3,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:485: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:611:7:  [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(tmpimg + k * (width + 2) * components +
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:616:7:  [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(tmpimg + k * (width + 2) * components,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:620:7:  [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(tmpimg + k * (width + 2) * components +
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:635:7:  [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(tmpimg + k * width * components,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:709: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:778: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:811: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:877: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:955: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1028: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 localimage[258 * 258 * 4];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1030: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1087:6:  [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(tmpimg + k * (width + 2) * components +
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1092:6:  [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(tmpimg + k * (width + 2) * components,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1096:6:  [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(tmpimg + k * (width + 2) * components +
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1134:6:  [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(tmpimg + k * width * components,
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1263: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:1275: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(planets[0].Name, "Sun");
data/openuniverse-1.0beta3.1+dfsg/src/joystick.cpp:159: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).
	if ((joy_fd = open("/dev/js0", O_RDONLY)) < 0)
data/openuniverse-1.0beta3.1+dfsg/src/jpeg.cpp:76: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[128];
data/openuniverse-1.0beta3.1+dfsg/src/jpeg.cpp:86: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).
	if ((infile = fopen(filename, "rb")) == NULL) {
data/openuniverse-1.0beta3.1+dfsg/src/jpeg.cpp:176: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(image_buffer +
data/openuniverse-1.0beta3.1+dfsg/src/keyboard.cpp:27: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/keyboard.cpp:121: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(sbuf, "sshot%d.jpg", frames);
data/openuniverse-1.0beta3.1+dfsg/src/keyboard.cpp:269: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/keyboard.cpp:290: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(sbuf, "frame%d.ppm", frames);
data/openuniverse-1.0beta3.1+dfsg/src/lex.cfg.cpp:1055:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ cfglval.ival = atoi(cfgtext); return INTEGER_NUM; }
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:16: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 modelspath[100] = MODEL_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:28: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[120];				/* openuniverse */
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.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).
	if (!(in = fopen(s, "rb"))) {
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:79: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 *) malloc(MaterialList[i].texture_name_length);
data/openuniverse-1.0beta3.1+dfsg/src/loadbmf.cpp:213: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 *) malloc(StripMaterialList[i].texture_name_length);
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:26: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[100] = DATA_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:27: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[100], texname[20];
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:35:6:  [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).
	f = fopen(line, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/messier.cpp:62: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(line, "Couldn't read image mw.jpg\n");
data/openuniverse-1.0beta3.1+dfsg/src/milkyway.cpp:29: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 sbuf[100];
data/openuniverse-1.0beta3.1+dfsg/src/milkyway.cpp:36: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(sbuf, "Couldn't read image mw.jpg\n");
data/openuniverse-1.0beta3.1+dfsg/src/milkyway.cpp:62:4:  [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(localimage + i * tw * components,
data/openuniverse-1.0beta3.1+dfsg/src/mp3.cpp:36: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/openuniverse-1.0beta3.1+dfsg/src/ou.cpp:49: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 game_string[20] = "640x480:16";
data/openuniverse-1.0beta3.1+dfsg/src/ou.cpp:162: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/ou.cpp:217: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(sbuf, "\n%.2f frames/sec\n\n", (float) frames / sec);
data/openuniverse-1.0beta3.1+dfsg/src/ou.cpp:531:23:  [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).
             int fd = open(logfileName, O_CREAT | O_EXCL | O_TRUNC | O_RDWR, 0600);
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:101:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char texturepath[100], fontpath[100], confpath[100];
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:115:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char sbuf[100], game_string[20];
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:135: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[20];
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:142: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[20];
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:158: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[20];
data/openuniverse-1.0beta3.1+dfsg/src/radar.cpp:28: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 sbuf[80];
data/openuniverse-1.0beta3.1+dfsg/src/radar.cpp:79: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(sbuf, "Objects in range: %d", inrange);
data/openuniverse-1.0beta3.1+dfsg/src/radar.cpp:81: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(sbuf, "Range (million Km): %.1f", range / 1000.0);
data/openuniverse-1.0beta3.1+dfsg/src/scrnshot.cpp:40: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 shotspath[100] = SHOTS_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/scrnshot.cpp:41:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[200];
data/openuniverse-1.0beta3.1+dfsg/src/scrnshot.cpp:49: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).
	if ((outfile = fopen(line, "wb")) == NULL) {
data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp:27: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[100] = DATA_DIR;
data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp:28:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[100], *tmp;
data/openuniverse-1.0beta3.1+dfsg/src/stars.cpp:37: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).
		f = fopen(line, "rt");
data/openuniverse-1.0beta3.1+dfsg/src/texfont.cpp:39: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 newfilename[1024];
data/openuniverse-1.0beta3.1+dfsg/src/texture.cpp:71: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[80];
data/openuniverse-1.0beta3.1+dfsg/src/texture.cpp:112: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 testByte[4];
data/openuniverse-1.0beta3.1+dfsg/src/texture.cpp:130:21:  [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).
	if ((image->file = fopen(fileName, "rb")) == NULL) {
data/openuniverse-1.0beta3.1+dfsg/src/cfglex.c:632:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1394:16:  [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).
	      size += strlen(yytname[x]) + 15, count++;
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.c:1409:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(msg, "'");
data/openuniverse-1.0beta3.1+dfsg/src/cfgparse.tab.cpp:901: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).
#   define yystrlen strlen
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:58: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).
				logfileName=(char*)malloc(strlen(DEF_LOGFILE_NAME));
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:64:33:  [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).
 					logfileName=(char*)malloc(strlen(s[i+1]));
data/openuniverse-1.0beta3.1+dfsg/src/cmdline.cpp:70:33:  [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).
 					logfileName=(char*)malloc(strlen(DEF_LOGFILE_NAME));
data/openuniverse-1.0beta3.1+dfsg/src/font.cpp:53:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str, string, strlen(string));
data/openuniverse-1.0beta3.1+dfsg/src/font.cpp:53:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncpy(str, string, strlen(string));
data/openuniverse-1.0beta3.1+dfsg/src/font.cpp:59:34:  [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).
	txfRenderString(txf, str, (int) strlen(str));
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:331: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).
	printstring(width / 2 - strlen(s) * glyphwidth / 2, height / 2, 0, s);
data/openuniverse-1.0beta3.1+dfsg/src/init.cpp:491: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).
	switch (texfile[strlen(texfile) - 1]) {
data/openuniverse-1.0beta3.1+dfsg/src/joystick.cpp:97:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = read(joy_fd, &js, sizeof(struct js_event));
data/openuniverse-1.0beta3.1+dfsg/src/lex.cfg.cpp:686:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( cfgin )) != EOF && c != '\n'; ++n ) \
data/openuniverse-1.0beta3.1+dfsg/src/lex.cfg.cpp:1877:28:  [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).
	return cfg_scan_bytes(str,strlen(str) );
data/openuniverse-1.0beta3.1+dfsg/src/ou.h:81:18:  [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.
#define delay(x) usleep(x*1000)

ANALYSIS SUMMARY:

Hits = 183
Lines analyzed = 18837 in approximately 0.51 seconds (36902 lines/second)
Physical Source Lines of Code (SLOC) = 14497
Hits@level = [0]  84 [1]  16 [2] 104 [3]   1 [4]  62 [5]   0
Hits@level+ = [0+] 267 [1+] 183 [2+] 167 [3+]  63 [4+]  62 [5+]   0
Hits/KSLOC@level+ = [0+] 18.4176 [1+] 12.6233 [2+] 11.5196 [3+] 4.34573 [4+] 4.27675 [5+]   0
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.