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/abe-1.1+dfsg/src/Menu.h
Examining data/abe-1.1+dfsg/src/Directories.h
Examining data/abe-1.1+dfsg/src/Map.h
Examining data/abe-1.1+dfsg/src/Font.h
Examining data/abe-1.1+dfsg/src/MapIO.h
Examining data/abe-1.1+dfsg/src/Monster.c
Examining data/abe-1.1+dfsg/src/Trans.h
Examining data/abe-1.1+dfsg/src/Map.c
Examining data/abe-1.1+dfsg/src/Image.h
Examining data/abe-1.1+dfsg/src/Util.c
Examining data/abe-1.1+dfsg/src/Monster.h
Examining data/abe-1.1+dfsg/src/Main.h
Examining data/abe-1.1+dfsg/src/Splash.h
Examining data/abe-1.1+dfsg/src/Font.c
Examining data/abe-1.1+dfsg/src/Directories.c
Examining data/abe-1.1+dfsg/src/Sound.h
Examining data/abe-1.1+dfsg/src/MapIO.c
Examining data/abe-1.1+dfsg/src/Util.h
Examining data/abe-1.1+dfsg/src/Common.h
Examining data/abe-1.1+dfsg/src/Trans.c
Examining data/abe-1.1+dfsg/src/Sound.c
Examining data/abe-1.1+dfsg/src/Icons.h
Examining data/abe-1.1+dfsg/src/Editor.h
Examining data/abe-1.1+dfsg/src/Image.c
Examining data/abe-1.1+dfsg/src/Editor.c
Examining data/abe-1.1+dfsg/src/Icons.c
Examining data/abe-1.1+dfsg/src/Splash.c
Examining data/abe-1.1+dfsg/src/Menu.c
Examining data/abe-1.1+dfsg/src/Main.c
Examining data/abe-1.1+dfsg/src/Game.h
Examining data/abe-1.1+dfsg/src/Game.c
Examining data/abe-1.1+dfsg/xcode/SDLMain.h

FINAL RESULTS:

data/abe-1.1+dfsg/src/Directories.c:19:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", pwent->pw_dir, PATH_SEP ".abe" PATH_SEP);
data/abe-1.1+dfsg/src/Directories.c:21:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP);
data/abe-1.1+dfsg/src/Game.c:17: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(path, getSaveGameDir());
data/abe-1.1+dfsg/src/Game.c:22:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path + len, "%s", formatted_name);
data/abe-1.1+dfsg/src/Game.c:24:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path + len, "%s", formatted_name, version);
data/abe-1.1+dfsg/src/Game.c:281:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s, "%s%s%s%s",
data/abe-1.1+dfsg/src/Image.c:324:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmp_path, "%s%s", getHomeUserAbe(), "tmp.bmp");
data/abe-1.1+dfsg/src/Image.c:326:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP IMAGES_DIR PATH_SEP "images.tar");
data/abe-1.1+dfsg/src/Map.c:1543: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(map.status, s);
data/abe-1.1+dfsg/src/MapIO.c:52:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP MAPS_DIR PATH_SEP "%s.dat", map.name);
data/abe-1.1+dfsg/src/MapIO.c:61:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP MAPS_DIR PATH_SEP "%s.dat", map.name);
data/abe-1.1+dfsg/src/Menu.c:85:9:  [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(s, entries[i].choices[t]);
data/abe-1.1+dfsg/src/Sound.c:52:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP SOUND_DIR PATH_SEP "%s.wav", name);
data/abe-1.1+dfsg/src/Sound.c:81:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP SOUND_DIR PATH_SEP "intro.ogg");
data/abe-1.1+dfsg/src/Sound.c:88:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, xstr(BASE_DIR) PATH_SEP SOUND_DIR PATH_SEP "game.ogg");
data/abe-1.1+dfsg/src/Game.c:386:76:  [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.
      if( event->key.keysym.mod & ( KMOD_CTRL | KMOD_SHIFT | KMOD_ALT ) && getenv( "ABE_IS_CHEATING" ) )
data/abe-1.1+dfsg/src/Common.h:40: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 name[40];
data/abe-1.1+dfsg/src/Directories.c:9: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Editor.c: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 s[80];
data/abe-1.1+dfsg/src/Editor.c:451: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(s, "x%d y%d level%d dir%d", cursor.pos_x, cursor.pos_y,
data/abe-1.1+dfsg/src/Editor.c:454: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(s, "spx%d spy%d px%d py%d", cursor.speed_x, cursor.speed_y,
data/abe-1.1+dfsg/src/Editor.c:457: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(s, "mouse x%d y%d", editor_cursor.pos_x, editor_cursor.pos_y);
data/abe-1.1+dfsg/src/Game.c:32: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Game.c:48: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Game.c: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).
  if(!(fp = fopen(path, "wb"))) {
data/abe-1.1+dfsg/src/Game.c:91: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Game.c:122:10:  [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, "rb");
data/abe-1.1+dfsg/src/Game.c:233: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[80];
data/abe-1.1+dfsg/src/Game.c:240: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(s, "%d", game.keys);
data/abe-1.1+dfsg/src/Game.c:242: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(s, "%d", game.balloons);
data/abe-1.1+dfsg/src/Game.c:244: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(s, "%d", game.lives);
data/abe-1.1+dfsg/src/Game.c:247: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(s, "%d", game.score);
data/abe-1.1+dfsg/src/Game.c:287: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(s, "d %d f %d t %d b %d h2o %d", map.delta, map.fps_override,
data/abe-1.1+dfsg/src/Icons.c:14: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[80];
data/abe-1.1+dfsg/src/Icons.c:16: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(s, "select an icon %d", icon_selection);
data/abe-1.1+dfsg/src/Icons.c:64: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(&pos2, &pos, sizeof(SDL_Rect));
data/abe-1.1+dfsg/src/Image.c:309: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 tmp_path[PATH_SIZE];
data/abe-1.1+dfsg/src/Image.c:311: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Image.c:312: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 buff[TAR_BLOCK_SIZE];    // a tar block
data/abe-1.1+dfsg/src/Image.c:316: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 name[TAR_NAME_SIZE + 1], size[TAR_SIZE_SIZE + 1];
data/abe-1.1+dfsg/src/Image.c:329: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, "rb");
data/abe-1.1+dfsg/src/Image.c:354:9:  [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(name, buff, TAR_NAME_SIZE);
data/abe-1.1+dfsg/src/Image.c:368:9:  [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(size, buff + TAR_SIZE_OFFSET, TAR_SIZE_SIZE);
data/abe-1.1+dfsg/src/Image.c:379: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(!(tmp = fopen(tmp_path, "wb"))) {
data/abe-1.1+dfsg/src/Main.c:143:11:  [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).
      n = atoi(argv[i + 1]);
data/abe-1.1+dfsg/src/Main.c:153:11:  [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).
      n = atoi(argv[i + 1]);
data/abe-1.1+dfsg/src/Map.h:90: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 status[80];
data/abe-1.1+dfsg/src/MapIO.c:16: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(!(fp = fopen(path, "wb"))) {
data/abe-1.1+dfsg/src/MapIO.c:51: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/MapIO.c:60: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/MapIO.c:78: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(!(fp = fopen(path, "rb"))) {
data/abe-1.1+dfsg/src/MapIO.c:149: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(!(fp = fopen(from, "rb"))) {
data/abe-1.1+dfsg/src/MapIO.c:173: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(!(fp = fopen(to, "wb"))) {
data/abe-1.1+dfsg/src/Menu.c:15: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 title[80];
data/abe-1.1+dfsg/src/Menu.c:17: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 choices[MAX_CHOICES][20];
data/abe-1.1+dfsg/src/Menu.c:69: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[200];
data/abe-1.1+dfsg/src/Monster.c:48: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(&old, live, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:65: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(live, &old, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:77: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(&old, live, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:93: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(live, &old, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:105: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(&old, live, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:122: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(live, &old, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:135: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(&old, live, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:152: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(live, &old, sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Monster.c:708:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_CRAB].name, "dungenous crab");
data/abe-1.1+dfsg/src/Monster.c:717:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_SMASHER].name, "smasher");
data/abe-1.1+dfsg/src/Monster.c:725:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_SMASHER2].name, "cursed smasher");
data/abe-1.1+dfsg/src/Monster.c:733:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_DEMON].name, "little demon");
data/abe-1.1+dfsg/src/Monster.c:742:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_PLATFORM].name, "platform");
data/abe-1.1+dfsg/src/Monster.c:749:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_PLATFORM2].name, "platform2");
data/abe-1.1+dfsg/src/Monster.c:756:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_SPIDER].name, "patient spider");
data/abe-1.1+dfsg/src/Monster.c:764:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_BEAR].name, "arctic cave bear");
data/abe-1.1+dfsg/src/Monster.c:773:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_TORCH].name, "torch");
data/abe-1.1+dfsg/src/Monster.c:781:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_ARROW].name, "arrow trap");
data/abe-1.1+dfsg/src/Monster.c:789:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_FIRE].name, "fire trap");
data/abe-1.1+dfsg/src/Monster.c:800:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_STAR].name, "star");
data/abe-1.1+dfsg/src/Monster.c:808:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_BULLET].name, "curious cannonball");
data/abe-1.1+dfsg/src/Monster.c:817:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_CANNON].name, "cannon");
data/abe-1.1+dfsg/src/Monster.c:824:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_CANNON2].name, "cannon");
data/abe-1.1+dfsg/src/Monster.c:831:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_BAT].name, "vampire bat");
data/abe-1.1+dfsg/src/Monster.c:839:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_GHOST].name, "entombed spirit");
data/abe-1.1+dfsg/src/Monster.c:847:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(monsters[MONSTER_END_GAME].name, "lost friend!");
data/abe-1.1+dfsg/src/Monster.c:984: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(&live_monsters[t], &live_monsters[t + 1], sizeof(LiveMonster));
data/abe-1.1+dfsg/src/Sound.c:51: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Sound.c: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 path[PATH_SIZE];
data/abe-1.1+dfsg/src/Util.c:169:9:  [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(buff + i, block + start, count * sizeof(Uint16));
data/abe-1.1+dfsg/src/Util.c:191: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(buff + i, block + start, count * sizeof(Uint16));
data/abe-1.1+dfsg/src/Util.c:199: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(buff, block, real_size * sizeof(Uint16));
data/abe-1.1+dfsg/src/Game.c:19: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(path);
data/abe-1.1+dfsg/src/Image.c:257: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).
  *(r + strlen(r) - 4) = 0;
data/abe-1.1+dfsg/src/Image.c:366: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 + strlen(name) - 4) = 0;
data/abe-1.1+dfsg/src/Menu.c:53: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).
    sum += strlen(entries[n].choices[t]);
data/abe-1.1+dfsg/src/Menu.c:61: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).
  return strlen(entries[n].choices[entries[n].selected]);
data/abe-1.1+dfsg/src/Menu.c:73: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(entries[i].title)) {
data/abe-1.1+dfsg/src/Menu.c:81:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(s, "");
data/abe-1.1+dfsg/src/Menu.c:84:11:  [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(s, " ");
data/abe-1.1+dfsg/src/Splash.c:15: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).
  if((int) text_pos < -((int) strlen(text) * (int) FONT_WIDTH)) {

ANALYSIS SUMMARY:

Hits = 97
Lines analyzed = 6851 in approximately 0.15 seconds (45420 lines/second)
Physical Source Lines of Code (SLOC) = 5479
Hits@level = [0] 106 [1]   9 [2]  72 [3]   1 [4]  15 [5]   0
Hits@level+ = [0+] 203 [1+]  97 [2+]  88 [3+]  16 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 37.0506 [1+] 17.704 [2+] 16.0613 [3+] 2.92024 [4+] 2.73773 [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.