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/orbital-eunuchs-sniper-1.30+svn20070601/src/target.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/zooms.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/prints.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/render_ai.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/parser.c
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/faststack.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/faststack.c
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp_ops.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp.c
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp_ops.c
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/io.c
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/ai.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/gameover.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.h
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/logoscreen.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp
Examining data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp

FINAL RESULTS:

data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:135:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(keyspath,"%s/%s",GAMEDATADIR,keysname);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/logoscreen.cpp:76:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s/%s", mediaPath, logoscreen_img);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:256:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(self->datadir, W_OK | R_OK | X_OK))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:260:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(self->datadir, W_OK | R_OK | X_OK))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:271:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(self->cfgpath, W_OK | R_OK))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:275:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(self->cfgpath, R_OK))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prints.cpp:46:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(cbuf,aString,arglist);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prints.cpp:70:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(cbuf,aString,arglist);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp.c:97: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(fakehead->val,sx->val);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp_ops.c:117: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(snew->val,s->val);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp_ops.c:197: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(cr->val,s->list->val);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:384:4:  [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.
			fprintf (stderr, usage, invocation);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:702:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s/%s", Game.mediaPath, city_img);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:711:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s/%s", Game.mediaPath, charseq_img);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:720:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s/%s", Game.mediaPath, aimap_img);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:731:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s/%s", Game.mediaPath, font_img);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:753:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s/%s", Game.mediaPath, zoomin_snd);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:759:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s/%s", Game.mediaPath, zoomout_snd);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:765:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s/%s", Game.mediaPath, boing_snd);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:771:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s/%s", Game.mediaPath, bgmusic);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:1511:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  return system(cmd);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:182: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(self->key, key);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:1483:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(menupath,"%s/%s",GAMEDATADIR,menuname);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:194:31:  [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.
    snprintf (uName, 9, "%s", getenv("USER"));
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:1671:5:  [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(SDL_GetTicks());
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:91: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).
  if (!(bindfile = fopen(fname, "r")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:136: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).
  if (!(keysfile = fopen(keyspath, "r"))) {
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:175: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.
  static char keyname[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:208: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 lookup[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:5: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 uName[9];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:6: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 names[10][9];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:31:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char score[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:40:12:  [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 ((f = fopen(gPrefs.scorepath, "rb")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:110: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 score[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:116: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).
    if ((f = fopen (gPrefs.scorepath, "rb")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:189: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 path[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:199:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (path, "rb");
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:210: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).
    if (!(f = fopen(gPrefs.scorepath, "wb")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:227: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 (&scores, &Game.HiScore.easy_s, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:228: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 (&names, &Game.HiScore.easy_n, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:232: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 (&scores, &Game.HiScore.medium_s, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:233: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 (&names, &Game.HiScore.medium_n, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:237: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 (&scores, &Game.HiScore.hard_s, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:238: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 (&names, &Game.HiScore.hard_n, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:251: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 (&Game.HiScore.easy_s, &scores, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:252: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 (&Game.HiScore.easy_n, &names, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:256: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 (&Game.HiScore.medium_s, &scores, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:257: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 (&Game.HiScore.medium_n, &names, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:261: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 (&Game.HiScore.hard_s, &scores, sizeof(int)*10);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/highscores.cpp:262: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 (&Game.HiScore.hard_n, &names, sizeof(char)*90);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/logoscreen.cpp:75: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 path[ strlen(mediaPath) + 1 + strlen(logoscreen_img) + 1 ];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.cpp:351: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 buf[3];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.cpp:491:22:  [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).
		*(int *)(pov->v) = atoi(arg);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:165: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).
  if (!(preffile = fopen(self->cfgpath, "r")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:169:24:  [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 (!(preffile = fopen(self->cfgpath, "r")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:225: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).
  if (!(preffile = fopen(self->cfgpath, "w")))
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prints.cpp:43: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 cbuf[4096];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prints.cpp:67: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 cbuf[4096];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/sexp.h:396: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 buf[BUFSIZ];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:491: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 chanuse[16];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:1506: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 cmd[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:1749: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 lpath[PATH_MAX];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.h:166: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 easy_n[10][9];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.h:168: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 medium_n[10][9];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.h:170: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 hard_n[10][9];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:430: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.
  static char buf[72];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:453: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.
  static char buf[1024];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:871: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 text[256];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:1484: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).
  if (!(guifile = fopen(menupath, "r"))) {
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:134: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).
  keyspath=(char*)calloc(1,strlen(GAMEDATADIR)+1+strlen(keysname)+1);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/binds.cpp:134: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).
  keyspath=(char*)calloc(1,strlen(GAMEDATADIR)+1+strlen(keysname)+1);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/logoscreen.cpp:75: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).
    char path[ strlen(mediaPath) + 1 + strlen(logoscreen_img) + 1 ];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/logoscreen.cpp:75: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).
    char path[ strlen(mediaPath) + 1 + strlen(logoscreen_img) + 1 ];
data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.cpp:173:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(opt);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/petopt.cpp:335: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).
	    pop->ci = strlen(pop->argv[pop->ai])-1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:116: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).
  homedirlen = strlen(pw_ent->pw_dir) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:117: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).
  datadirlen = homedirlen + strlen(dotdir) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:117: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).
  datadirlen = homedirlen + strlen(dotdir) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:118: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).
  bindlen = datadirlen + strlen(bindname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:118: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).
  bindlen = datadirlen + strlen(bindname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:119: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).
  cfgpathlen = datadirlen + strlen(confname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:119:48:  [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).
  cfgpathlen = datadirlen + strlen(confname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:120:27:  [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).
  scorelen = datadirlen + strlen(scorename) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:120: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).
  scorelen = datadirlen + strlen(scorename) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:121: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).
  keyslen = datadirlen + strlen(keysname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/prefs.cpp:121: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).
  keyslen = datadirlen + strlen(keysname) + strlen(PATHSEP) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/io.c:124:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    iow->cnt = read(iow->fd,iow->buf,BUFSIZ);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/sexpr/io.c:136:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    iow->cnt = read(iow->fd,iow->buf,BUFSIZ);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/snipe2d.cpp:662:25:  [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).
  path = (char*)alloca((strlen(Game.mediaPath) + 1 + 30 + 1) * sizeof(char));
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:175: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).
  n = strlen(key) + 1;
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:1482: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).
  menupath=(char*)calloc(1,strlen(GAMEDATADIR)+1+strlen(menuname)+1);
data/orbital-eunuchs-sniper-1.30+svn20070601/src/ui.cpp:1482: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).
  menupath=(char*)calloc(1,strlen(GAMEDATADIR)+1+strlen(menuname)+1);

ANALYSIS SUMMARY:

Hits = 92
Lines analyzed = 10510 in approximately 0.27 seconds (39588 lines/second)
Physical Source Lines of Code (SLOC) = 7277
Hits@level = [0] 124 [1]  23 [2]  44 [3]   2 [4]  23 [5]   0
Hits@level+ = [0+] 216 [1+]  92 [2+]  69 [3+]  25 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 29.6826 [1+] 12.6426 [2+] 9.48193 [3+] 3.43548 [4+] 3.16064 [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.