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/powermanga-0.93.1/src/sdl_mixer.h
Examining data/powermanga-0.93.1/src/log_recorder.h
Examining data/powermanga-0.93.1/src/menu_sections.c
Examining data/powermanga-0.93.1/src/shots.c
Examining data/powermanga-0.93.1/src/display_x11.c
Examining data/powermanga-0.93.1/src/energy_gauge.h
Examining data/powermanga-0.93.1/src/script_page.c
Examining data/powermanga-0.93.1/src/electrical_shock.c
Examining data/powermanga-0.93.1/src/log_recorder.c
Examining data/powermanga-0.93.1/src/gfxroutines.c
Examining data/powermanga-0.93.1/src/counter_shareware.c
Examining data/powermanga-0.93.1/src/starfield.h
Examining data/powermanga-0.93.1/src/movie.h
Examining data/powermanga-0.93.1/src/curve_phase.h
Examining data/powermanga-0.93.1/src/curve_phase.c
Examining data/powermanga-0.93.1/src/explosions.c
Examining data/powermanga-0.93.1/src/movie.c
Examining data/powermanga-0.93.1/src/sdl_mixer.c
Examining data/powermanga-0.93.1/src/bonus.c
Examining data/powermanga-0.93.1/src/lispreader.h
Examining data/powermanga-0.93.1/src/display.h
Examining data/powermanga-0.93.1/src/lonely_foes.c
Examining data/powermanga-0.93.1/src/config_file.c
Examining data/powermanga-0.93.1/src/options_panel.c
Examining data/powermanga-0.93.1/src/sprites_string.c
Examining data/powermanga-0.93.1/src/spaceship.c
Examining data/powermanga-0.93.1/src/energy_gauge.c
Examining data/powermanga-0.93.1/src/assembler.h
Examining data/powermanga-0.93.1/src/menu.h
Examining data/powermanga-0.93.1/src/inits_game.c
Examining data/powermanga-0.93.1/src/menu_sections.h
Examining data/powermanga-0.93.1/src/grid_phase.c
Examining data/powermanga-0.93.1/src/guardians.h
Examining data/powermanga-0.93.1/src/tools.h
Examining data/powermanga-0.93.1/src/script_page.h
Examining data/powermanga-0.93.1/src/electrical_shock.h
Examining data/powermanga-0.93.1/src/scale3x.c
Examining data/powermanga-0.93.1/src/config_file.h
Examining data/powermanga-0.93.1/src/powermanga.c
Examining data/powermanga-0.93.1/src/satellite_protections.c
Examining data/powermanga-0.93.1/src/texts.h
Examining data/powermanga-0.93.1/src/scalebit.c
Examining data/powermanga-0.93.1/src/counter_shareware.h
Examining data/powermanga-0.93.1/src/display_sdl.c
Examining data/powermanga-0.93.1/src/scale3x.h
Examining data/powermanga-0.93.1/src/meteors_phase.c
Examining data/powermanga-0.93.1/src/special_keys.c
Examining data/powermanga-0.93.1/src/menu.c
Examining data/powermanga-0.93.1/src/shots.h
Examining data/powermanga-0.93.1/src/scale2x.h
Examining data/powermanga-0.93.1/src/explosions.h
Examining data/powermanga-0.93.1/src/spaceship_weapons.h
Examining data/powermanga-0.93.1/src/shockwave.h
Examining data/powermanga-0.93.1/src/starfield.c
Examining data/powermanga-0.93.1/src/sprites_string.h
Examining data/powermanga-0.93.1/src/bonus.h
Examining data/powermanga-0.93.1/src/congratulations.h
Examining data/powermanga-0.93.1/src/gfx_wrapper.c
Examining data/powermanga-0.93.1/src/images.c
Examining data/powermanga-0.93.1/src/extra_gun.h
Examining data/powermanga-0.93.1/src/scrolltext.c
Examining data/powermanga-0.93.1/src/enemies.c
Examining data/powermanga-0.93.1/src/tools.c
Examining data/powermanga-0.93.1/src/lispreader.c
Examining data/powermanga-0.93.1/src/gfx_wrapper.h
Examining data/powermanga-0.93.1/src/congratulations.c
Examining data/powermanga-0.93.1/src/scale2x.c
Examining data/powermanga-0.93.1/src/extra_gun.c
Examining data/powermanga-0.93.1/src/options_panel.h
Examining data/powermanga-0.93.1/src/display.c
Examining data/powermanga-0.93.1/src/guardians.c
Examining data/powermanga-0.93.1/src/spaceship_weapons.c
Examining data/powermanga-0.93.1/src/spaceship.h
Examining data/powermanga-0.93.1/src/scrolltext.h
Examining data/powermanga-0.93.1/src/main.c
Examining data/powermanga-0.93.1/src/meteors_phase.h
Examining data/powermanga-0.93.1/src/text_overlay.h
Examining data/powermanga-0.93.1/src/images.h
Examining data/powermanga-0.93.1/src/text_overlay.c
Examining data/powermanga-0.93.1/src/scalebit.h
Examining data/powermanga-0.93.1/src/shockwave.c
Examining data/powermanga-0.93.1/src/satellite_protections.h
Examining data/powermanga-0.93.1/src/texts.c
Examining data/powermanga-0.93.1/src/gfxroutines.h
Examining data/powermanga-0.93.1/src/powermanga.h
Examining data/powermanga-0.93.1/src/lonely_foes.h
Examining data/powermanga-0.93.1/src/grid_phase.h
Examining data/powermanga-0.93.1/src/enemies.h

FINAL RESULTS:

data/powermanga-0.93.1/src/bonus.c:168:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/bonus-gems/bonus-gem-%01d", type + 1);
data/powermanga-0.93.1/src/bonus.c:176:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/config_file.c:237:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (configname, "%s/%s", config_dir, config_file_name);
data/powermanga-0.93.1/src/config_file.c:454:11:  [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 (stdout,
data/powermanga-0.93.1/src/config_file.c:485:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          printf (POWERMANGA_VERSION);
data/powermanga-0.93.1/src/curve_phase.c:395:7:  [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 (str_file, str_tmp);
data/powermanga-0.93.1/src/display_sdl.c:2207:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (tmp, "scriptorder%d_%s.txt", num, lang);
data/powermanga-0.93.1/src/enemies.c:193:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/enemies/enemies-%02d", type + 1);
data/powermanga-0.93.1/src/enemies.c:197:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/enemies.c:209:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/enemies/bloodsuker-%02d", type + 1);
data/powermanga-0.93.1/src/enemies.c:216:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/enemies.c:231:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/enemies/special-%02d", type + 1);
data/powermanga-0.93.1/src/enemies.c:238:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/explosions.c:152:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/explosions/explosion-%01d", type + 1);
data/powermanga-0.93.1/src/explosions.c:160:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/explosions.c:172:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/explosions/fragment-%01d", type + 1);
data/powermanga-0.93.1/src/explosions.c:180:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/extra_gun.c:161:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/extra-guns/extra-gun-%01d", type + 1);
data/powermanga-0.93.1/src/extra_gun.c:169:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/guardians.c:2849:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/guardians/guardian-%02d", guardian_num);
data/powermanga-0.93.1/src/guardians.c:2859:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
              sprintf (filename,
data/powermanga-0.93.1/src/inits_game.c:245:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename,
data/powermanga-0.93.1/src/log_recorder.c:314:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  msg_len = vsnprintf (buffer_message, LOG_MESSAGE_SIZE, format, args);
data/powermanga-0.93.1/src/main.c:86:3:  [4] (shell) execl:
  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.
  execl ("/usr/gp2x/gp2xmenu", "/usr/gp2x/gp2xmenu", NULL);
data/powermanga-0.93.1/src/main.c:201:3:  [4] (shell) ShellExecute:
  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.
  ShellExecute (0, "open", ".\\html\\ar01s06s02.html", 0, 0, SW_SHOWNORMAL);
data/powermanga-0.93.1/src/menu.c:145:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/menu/menu-%01d", type + 1);
data/powermanga-0.93.1/src/menu.c:153:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/meteors_phase.c:375:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/meteors/level-%02d", i);
data/powermanga-0.93.1/src/meteors_phase.c:382:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename, EXPORT_DIR "/meteors/level-%02d/type-%01d", i,
data/powermanga-0.93.1/src/meteors_phase.c:390:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
              sprintf (filename,
data/powermanga-0.93.1/src/options_panel.c:281:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/options/option-%02d", type + 1);
data/powermanga-0.93.1/src/options_panel.c:289:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/options_panel.c:306:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/multipliers/multiplier-%1d", frame);
data/powermanga-0.93.1/src/satellite_protections.c:198:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/satellites/satellite-%01d", type + 1);
data/powermanga-0.93.1/src/satellite_protections.c:206:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/script_page.c:39:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define   sprintf   _snwprintf
data/powermanga-0.93.1/src/script_page.c:66:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (name, "%s%s", script_dirname, filename);
data/powermanga-0.93.1/src/script_page.c:346:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (page->FONTES[nfonte].strfile, "%s", fname);
data/powermanga-0.93.1/src/script_page.c:807:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf (f, "%s", ss);
data/powermanga-0.93.1/src/script_page.c:819:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf (f, "%s", ss);
data/powermanga-0.93.1/src/script_page.c:832:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", ss);
data/powermanga-0.93.1/src/script_page.c:863:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:866:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:869:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:875:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:876:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:883:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:884:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:891:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:892:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:907:11:  [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 (&str[car (str, (char) '=') + 1], "%s", tmp);
data/powermanga-0.93.1/src/script_page.c:918:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:919:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:926:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:927:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:934:11:  [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 (&str[car (str, (char) '=') + 1], "%s", page->OPS[n].name);
data/powermanga-0.93.1/src/script_page.c:935:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:945:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:963:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:975:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:977:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:981:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1023:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1026:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1029:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
              fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1032:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1039:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
              fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1044:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1047:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
              fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1049:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          fscanf (f, "%s", str);
data/powermanga-0.93.1/src/script_page.c:1056:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
              fscanf (f, "%s", str);
data/powermanga-0.93.1/src/scrolltext.c:184:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/scrolltext/char-%02d.png", i);
data/powermanga-0.93.1/src/shots.c:121:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/shots/shot-%03d", type + 1);
data/powermanga-0.93.1/src/shots.c:129:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/spaceship.c:101:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename, model, type + 1, frame);
data/powermanga-0.93.1/src/spaceship.c:139:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/ships/ship-%01d", type + 1);
data/powermanga-0.93.1/src/spaceship.c:146:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename, EXPORT_DIR "/ships/ship-%01d/ship-%01d.png",
data/powermanga-0.93.1/src/sprites_string.c:173:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/fonts/game/%02d", i + 1);
data/powermanga-0.93.1/src/sprites_string.c:181:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/sprites_string.c:199:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/fonts/big/%02d", i + 1);
data/powermanga-0.93.1/src/sprites_string.c:207:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/sprites_string.c:225:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/fonts/score/%02d", i + 1);
data/powermanga-0.93.1/src/sprites_string.c:233:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename,
data/powermanga-0.93.1/src/sprites_string.c:321:7:  [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 (string_allocated, string);
data/powermanga-0.93.1/src/sprites_string.c:694: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 (sprite_str->string, str);
data/powermanga-0.93.1/src/starfield.c:175:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (filename, EXPORT_DIR "/stars/stars-%01d", type + 1);
data/powermanga-0.93.1/src/starfield.c:182:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf (filename, EXPORT_DIR "/stars/stars-%01d/star-%01d.png",
data/powermanga-0.93.1/src/texts.c:297:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (text_level->string, "%s %d", texts_loaded[TEXT_LEVEL],
data/powermanga-0.93.1/src/tools.c:598: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 (pathname, wince_module_pathname);
data/powermanga-0.93.1/src/tools.c:651:11:  [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 (pathname, prefix_dir);
data/powermanga-0.93.1/src/tools.c:652:11:  [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 (pathname, subdir);
data/powermanga-0.93.1/src/tools.c:653:11:  [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 (pathname, name);
data/powermanga-0.93.1/src/tools.c:677:11:  [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 (pathname, home_dir);
data/powermanga-0.93.1/src/tools.c:678:11:  [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 (pathname, *p + 1);
data/powermanga-0.93.1/src/tools.c:680:11:  [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 (pathname, name);
data/powermanga-0.93.1/src/tools.c:692:11:  [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 (pathname, *p);
data/powermanga-0.93.1/src/tools.c:694:11:  [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 (pathname, name);
data/powermanga-0.93.1/src/tools.c:757: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 (fname, filename);
data/powermanga-0.93.1/src/tools.c:759:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf (fname, filename, lang);
data/powermanga-0.93.1/src/tools.c:791:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf (fname, filename, num);
data/powermanga-0.93.1/src/config_file.c:63:7:  [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 (getenv ("LANG") != NULL)
data/powermanga-0.93.1/src/config_file.c:65:20:  [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 (strncmp (getenv ("LANG"), "fr", 2) == 0)
data/powermanga-0.93.1/src/config_file.c:69:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      else if (strncmp (getenv ("LANG"), "it", 2) == 0)
data/powermanga-0.93.1/src/config_file.c:125:11:  [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 (getenv ("XDG_CONFIG_HOME") != NULL)
data/powermanga-0.93.1/src/config_file.c:127:29:  [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.
          length += strlen (getenv ("XDG_CONFIG_HOME")) + 1;
data/powermanga-0.93.1/src/config_file.c:131:15:  [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 (getenv ("HOME") != NULL)
data/powermanga-0.93.1/src/config_file.c:133:33:  [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.
              length += strlen (getenv ("HOME"));
data/powermanga-0.93.1/src/config_file.c:154:7:  [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 (getenv ("XDG_CONFIG_HOME") != NULL)
data/powermanga-0.93.1/src/config_file.c:157:17:  [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.
                getenv ("XDG_CONFIG_HOME"), config_filename);
data/powermanga-0.93.1/src/config_file.c:162:18:  [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.
                (getenv ("HOME") ? getenv ("HOME") : "."), config_filename);
data/powermanga-0.93.1/src/config_file.c:162:36:  [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.
                (getenv ("HOME") ? getenv ("HOME") : "."), config_filename);
data/powermanga-0.93.1/src/menu.c:456:3:  [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 (1);
data/powermanga-0.93.1/src/tools.c:661:26:  [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.
              home_dir = getenv ("HOME");
data/powermanga-0.93.1/src/config_file.c:38:14:  [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 const char *lang_to_text[MAX_OF_LANGUAGES] = { "en", "fr", "it" };
data/powermanga-0.93.1/src/counter_shareware.c:305: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 (GameCount[n].name, buffer + pos, nb);
data/powermanga-0.93.1/src/counter_shareware.c:363: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 (buffer + pos, GameCount[n].name, nb);
data/powermanga-0.93.1/src/counter_shareware.c:457: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 (GameCount[0].name, gamename, strlen (gamename) + 1);
data/powermanga-0.93.1/src/counter_shareware.c:471:11:  [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 (GameCount[num_of_games].name, gamename,
data/powermanga-0.93.1/src/counter_shareware.h:72: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[256];
data/powermanga-0.93.1/src/curve_phase.c:393:7:  [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 (str_file, "data/levels/curves_phase/curves_");
data/powermanga-0.93.1/src/curve_phase.h:55:12:  [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.
    signed char delta_x[MAX_PNT_OF_CURVE];
data/powermanga-0.93.1/src/curve_phase.h:57:12:  [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.
    signed char delta_y[MAX_PNT_OF_CURVE];
data/powermanga-0.93.1/src/curve_phase.h:59:12:  [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.
    signed char angle[MAX_PNT_OF_CURVE];
data/powermanga-0.93.1/src/display.c:117: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 coulor[COLORS_ENUM_NUMOF];
data/powermanga-0.93.1/src/display.h:201:19:  [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 unsigned char coulor[COLORS_ENUM_NUMOF];
data/powermanga-0.93.1/src/display_sdl.c:167: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 driver_name[32];
data/powermanga-0.93.1/src/display_sdl.c:2198: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[256];
data/powermanga-0.93.1/src/display_sdl.c:2199:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[256];
data/powermanga-0.93.1/src/display_sdl.c:2263:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (str, "%d", n);
data/powermanga-0.93.1/src/display_sdl.c:2331:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf (str, "%d", (Sint32) nbsec);
data/powermanga-0.93.1/src/display_x11.c:1495: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 *) shmat (SHMInfo[index].shmid, 0, 0);
data/powermanga-0.93.1/src/electrical_shock.c:46:17:  [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 unsigned char color_eclair[2];
data/powermanga-0.93.1/src/enemies.c:65:17:  [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 unsigned char enemy_dead_colors[NUMOF_DEAD_COLORS + 1];
data/powermanga-0.93.1/src/gfxroutines.c:97: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 (src, dest, width);
data/powermanga-0.93.1/src/gfxroutines.c:339: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( dest, src, i ); \
data/powermanga-0.93.1/src/gfxroutines.c:359: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 (p2, s2, z * 4);
data/powermanga-0.93.1/src/gfxroutines.c:365: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 (p2, s2, z);
data/powermanga-0.93.1/src/gfxroutines.c:390: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 (p2, s2, z * 4);
data/powermanga-0.93.1/src/gfxroutines.c:396: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 (p2, s2, z * 2);
data/powermanga-0.93.1/src/gfxroutines.c:423: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 (p, s, z * 4);
data/powermanga-0.93.1/src/gfxroutines.c:429: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 (p8, s8, z);
data/powermanga-0.93.1/src/gfxroutines.c:456: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 (p, s, z * 4);
data/powermanga-0.93.1/src/gfxroutines.c:460: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 (p, s, z * 4);
data/powermanga-0.93.1/src/lispreader.c:80: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.
static char token_string[MAX_TOKEN_LENGTH + 1] = "";
data/powermanga-0.93.1/src/lispreader.c:601:33:  [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).
      return lisp_make_integer (atoi (token_string));
data/powermanga-0.93.1/src/log_recorder.c:50:14:  [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 const char *log_levels[LOG_NUMOF] = {
data/powermanga-0.93.1/src/log_recorder.c:139: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).
  log_fstream = fopen (filename, "a");
data/powermanga-0.93.1/src/menu_sections.c:114: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.
static char high_scores_values[32] = {
data/powermanga-0.93.1/src/menu_sections.c:122: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.
static char high_scores_names[MAX_OF_HIGH_SCORES][4] = {
data/powermanga-0.93.1/src/menu_sections.c:632:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (high_scores_values, "%08d", score);
data/powermanga-0.93.1/src/menu_sections.c:782: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).
  fstream = fopen (filename, "rb");
data/powermanga-0.93.1/src/menu_sections.c:887: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[PLAYERNAME_LENGHT] = { 'T', 'L', 'K' };
data/powermanga-0.93.1/src/menu_sections.c:2032:5:  [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).
    open ("data/menu_order_keystrokes.bin", O_WRONLY | O_CREAT, 0666);
data/powermanga-0.93.1/src/script_page.c:49: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.
static char sname[512];
data/powermanga-0.93.1/src/script_page.c:280:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[256];
data/powermanga-0.93.1/src/script_page.c:573:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[256];
data/powermanga-0.93.1/src/script_page.c:799: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 ss[512];
data/powermanga-0.93.1/src/script_page.c:861:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[256];
data/powermanga-0.93.1/src/script_page.c:906: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.
          char tmp[256];
data/powermanga-0.93.1/src/script_page.c:999:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[512];
data/powermanga-0.93.1/src/script_page.c:1015: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 (pathname, "rb");
data/powermanga-0.93.1/src/script_page.c:1483: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.
static char dither16[5][2][2] =
data/powermanga-0.93.1/src/script_page.c:1971:11:  [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 (ptr2, ptr, window_width * window_height * 4);
data/powermanga-0.93.1/src/script_page.c:2033:11:  [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 (ptr2, ptr, window_width * window_height * 4);
data/powermanga-0.93.1/src/script_page.c:2133:11:  [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 (ptr2, ptr, window_width * window_height * 4);
data/powermanga-0.93.1/src/script_page.h:58: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 strfile[256];
data/powermanga-0.93.1/src/script_page.h:59: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[256];
data/powermanga-0.93.1/src/script_page.h:71: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 strfile[256];
data/powermanga-0.93.1/src/script_page.h:72: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[256];
data/powermanga-0.93.1/src/script_page.h:85: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[512];
data/powermanga-0.93.1/src/sdl_mixer.c:58:14:  [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 const char *sounds_filenames[SOUND_NUMOF] = {
data/powermanga-0.93.1/src/shockwave.c:80: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 shockwave_colors[NUMOF_COLORS_SHOCKWAVE + 1];
data/powermanga-0.93.1/src/texts.c:271:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (text_score->string, "%08d", player_score);
data/powermanga-0.93.1/src/tools.c:875: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).
  fstream = fopen (filename, "rb");
data/powermanga-0.93.1/src/tools.c:877: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).
  fstream = fopen (filename, "r");
data/powermanga-0.93.1/src/tools.c:938: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).
  fstream = fopen (pathname, "rb");
data/powermanga-0.93.1/src/tools.c:940: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).
  fstream = fopen (pathname, "r");
data/powermanga-0.93.1/src/tools.c:991: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).
  fstream = fopen (filename, "wb");
data/powermanga-0.93.1/src/tools.c:1061: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 os_name[32];
data/powermanga-0.93.1/src/tools.c:1062: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 os_vers[32];
data/powermanga-0.93.1/src/tools.c:1063: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 cpu[64];
data/powermanga-0.93.1/src/tools.c:1064: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 freq[32];
data/powermanga-0.93.1/src/tools.c:1066: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 txt[256];
data/powermanga-0.93.1/src/tools.c:1091: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 (cpu, "Unknown");
data/powermanga-0.93.1/src/tools.c:1092: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 (freq, "Unknown");
data/powermanga-0.93.1/src/tools.c:1093: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).
  cpuinfo = fopen ("/proc/cpuinfo", "r");
data/powermanga-0.93.1/src/tools.c:1116:15:  [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 (freq, "%d", atoi (txt + i));
data/powermanga-0.93.1/src/tools.c:1116:36:  [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).
              sprintf (freq, "%d", atoi (txt + i));
data/powermanga-0.93.1/src/tools.c:1294: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 (new_str, str, size);
data/powermanga-0.93.1/src/tools.c:1411: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).
  fi = fopen (fname, fmode);
data/powermanga-0.93.1/src/tools.h:51:14:  [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 palette[768];
data/powermanga-0.93.1/src/bonus.c:154:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/bonus.c:158: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/config_file.c:121: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).
      length = strlen (config_filename) + 3;
data/powermanga-0.93.1/src/config_file.c:127: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).
          length += strlen (getenv ("XDG_CONFIG_HOME")) + 1;
data/powermanga-0.93.1/src/config_file.c:133: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).
              length += strlen (getenv ("HOME"));
data/powermanga-0.93.1/src/config_file.c:139: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).
          length += strlen ("/.config") + 1;
data/powermanga-0.93.1/src/config_file.c:150: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).
  _snprintf (config_dir, strlen (config_dir) - 1, "./%s", config_filename);
data/powermanga-0.93.1/src/config_file.c:156: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).
      snprintf (config_dir, strlen (config_dir) - 1, "%s/%s",
data/powermanga-0.93.1/src/config_file.c:161: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).
      snprintf (config_dir, strlen (config_dir) - 1, "%s/.config/%s",
data/powermanga-0.93.1/src/config_file.c:228: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).
      length = strlen (config_dir) + strlen (config_file_name) + 2;
data/powermanga-0.93.1/src/config_file.c:228:38:  [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).
      length = strlen (config_dir) + strlen (config_file_name) + 2;
data/powermanga-0.93.1/src/counter_shareware.c:170:8:  [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).
  cl = strlen (code);
data/powermanga-0.93.1/src/counter_shareware.c:194:8:  [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).
  cl = strlen (code);
data/powermanga-0.93.1/src/counter_shareware.c:331:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size += 4 * 4 + strlen (GameCount[n].name) + 1;
data/powermanga-0.93.1/src/counter_shareware.c:359: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).
      nb = strlen (GameCount[n].name) + 1;
data/powermanga-0.93.1/src/counter_shareware.c:457:44:  [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).
      memcpy (GameCount[0].name, gamename, strlen (gamename) + 1);
data/powermanga-0.93.1/src/counter_shareware.c:472:19:  [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).
                  strlen (gamename) + 1);
data/powermanga-0.93.1/src/enemies.c:180:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/enemies.c:184: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).
               (Sint32) strlen (model) + 1);
data/powermanga-0.93.1/src/energy_gauge.c:90:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/energy_gauge.c:94: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/explosions.c:138:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/explosions.c:142: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/extra_gun.c:147:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/extra_gun.c:151: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/guardians.c:2812:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/guardians.c:2816: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/inits_game.c:231:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/inits_game.c:235: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/lispreader.c:127:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return getc (stream->v.file);
data/powermanga-0.93.1/src/menu.c:131:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/menu.c:135: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/menu_sections.c:605:41:  [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).
            sprites_string_create (str, strlen (str), FONT_GAME,
data/powermanga-0.93.1/src/menu_sections.c:1286:41:  [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).
                xcoord = 128 + (256 - ((strlen (str)) * 16)) / 2 - 8;
data/powermanga-0.93.1/src/menu_sections.c:1290:41:  [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).
                xcoord = 128 + (256 - ((strlen (str)) * 22)) / 2 - 11;
data/powermanga-0.93.1/src/meteors_phase.c:356:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/meteors_phase.c:360: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/options_panel.c:267:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/options_panel.c:271: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/satellite_protections.c:184:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/satellite_protections.c:188: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/script_page.c:60: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).
  name = memory_allocation (strlen (script_dirname) + strlen (filename) + 1);
data/powermanga-0.93.1/src/script_page.c:60:55:  [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 = memory_allocation (strlen (script_dirname) + strlen (filename) + 1);
data/powermanga-0.93.1/src/script_page.c:145:8:  [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).
  nn = strlen (str);
data/powermanga-0.93.1/src/script_page.c:166:8:  [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).
  nn = strlen (str);
data/powermanga-0.93.1/src/script_page.c:190:15:  [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).
  while ((n < strlen (m)) && (res == 0))
data/powermanga-0.93.1/src/script_page.c:231:15:  [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).
  while ((n < strlen (str)) && (res == 0))
data/powermanga-0.93.1/src/script_page.c:779: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).
  length = strlen (str);
data/powermanga-0.93.1/src/script_page.c:809: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).
  nnn = strlen (ss);
data/powermanga-0.93.1/src/script_page.c:820:13:  [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).
      nnn = strlen (ss);
data/powermanga-0.93.1/src/script_page.c:833:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          nnn = strlen (ss);
data/powermanga-0.93.1/src/scrolltext.c:170:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/scrolltext.c:174: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/scrolltext.c:264:32:  [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).
  scrolltext_length = (Sint32) strlen (scrolltext_current);
data/powermanga-0.93.1/src/scrolltext.c:294:32:  [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).
  scrolltext_length = (Sint32) strlen (scrolltext_current);
data/powermanga-0.93.1/src/shots.c:107:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/shots.c:111: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/spaceship.c:88: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).
  filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/spaceship.c:92: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/spaceship.c:125:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/spaceship.c:129: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/sprites_string.c:153:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/sprites_string.c:157: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/sprites_string.c:299: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).
      numof_chars = strlen (string);
data/powermanga-0.93.1/src/sprites_string.c:300: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).
      maxof_chars = strlen (string) + more_chars;
data/powermanga-0.93.1/src/sprites_string.c:689:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (str) > sprite_str->max_of_chars)
data/powermanga-0.93.1/src/sprites_string.c:695: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).
  sprite_str->num_of_chars = strlen (sprite_str->string);
data/powermanga-0.93.1/src/starfield.c:162:39:  [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 *filename = memory_allocation (strlen (model) + 1);
data/powermanga-0.93.1/src/starfield.c:166: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).
               (Uint32) (strlen (model) + 1));
data/powermanga-0.93.1/src/texts.c:299: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).
      text_level->num_of_chars = strlen (text_level->string);
data/powermanga-0.93.1/src/tools.c:506:16:  [1] (buffer) wcslen:
  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).
      length = wcslen (source) + 1;
data/powermanga-0.93.1/src/tools.c:576:11:  [1] (buffer) wcslen:
  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).
      i = wcslen (filename) - 1;
data/powermanga-0.93.1/src/tools.c:591: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 (wince_module_pathname) + strlen (name) + 1;
data/powermanga-0.93.1/src/tools.c:591:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (wince_module_pathname) + strlen (name) + 1;
data/powermanga-0.93.1/src/tools.c:599: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).
  j = strlen (pathname);
data/powermanga-0.93.1/src/tools.c:600:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (i = 0; i < strlen (name); i++, j++)
data/powermanga-0.93.1/src/tools.c:643:32:  [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).
            memory_allocation (strlen (prefix_dir) + strlen (subdir) +
data/powermanga-0.93.1/src/tools.c:643:54:  [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).
            memory_allocation (strlen (prefix_dir) + strlen (subdir) +
data/powermanga-0.93.1/src/tools.c:644:32:  [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).
                               strlen (name) + 1);
data/powermanga-0.93.1/src/tools.c:668:41:  [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).
          pathname = memory_allocation (strlen (home_dir)
data/powermanga-0.93.1/src/tools.c:669: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).
                                        + 1 + strlen (*p + 1) + 1 +
data/powermanga-0.93.1/src/tools.c:670:41:  [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).
                                        strlen (name) + 1);
data/powermanga-0.93.1/src/tools.c:679: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 (pathname, "/");
data/powermanga-0.93.1/src/tools.c:685:41:  [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).
          pathname = memory_allocation (strlen (*p) + 1 + strlen (name) + 1);
data/powermanga-0.93.1/src/tools.c:685:59:  [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).
          pathname = memory_allocation (strlen (*p) + 1 + strlen (name) + 1);
data/powermanga-0.93.1/src/tools.c:693: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 (pathname, "/");
data/powermanga-0.93.1/src/tools.c:743: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).
  if (filename == NULL || strlen (filename) == 0)
data/powermanga-0.93.1/src/tools.c:749: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).
  fname = memory_allocation (strlen (filename) + 1);
data/powermanga-0.93.1/src/tools.c:754: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).
               (Uint32) (strlen (filename) + 1));
data/powermanga-0.93.1/src/tools.c:777: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).
  if (filename == NULL || strlen (filename) == 0)
data/powermanga-0.93.1/src/tools.c:783: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).
  fname = memory_allocation (strlen (filename) + 1);
data/powermanga-0.93.1/src/tools.c:788:41:  [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).
               filename, num, (Uint32) (strlen (filename) + 1));
data/powermanga-0.93.1/src/tools.c:987:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask (0002);
data/powermanga-0.93.1/src/tools.c:1080: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 (os_name, "?");
data/powermanga-0.93.1/src/tools.c:1081: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 (os_vers, "");
data/powermanga-0.93.1/src/tools.c:1085:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (os_name, kernel.sysname, 32);
data/powermanga-0.93.1/src/tools.c:1086:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (os_vers, kernel.release, 32);
data/powermanga-0.93.1/src/tools.c:1287: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).
  size = strlen (str) + 1;

ANALYSIS SUMMARY:

Hits = 289
Lines analyzed = 45624 in approximately 1.09 seconds (41983 lines/second)
Physical Source Lines of Code (SLOC) = 34661
Hits@level = [0]  84 [1]  98 [2]  78 [3]  13 [4] 100 [5]   0
Hits@level+ = [0+] 373 [1+] 289 [2+] 191 [3+] 113 [4+] 100 [5+]   0
Hits/KSLOC@level+ = [0+] 10.7614 [1+] 8.3379 [2+] 5.51052 [3+] 3.26015 [4+] 2.88509 [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.