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/gltron-0.70final/src/include/audio/audio.h
Examining data/gltron-0.70final/src/include/audio/sound_glue.h
Examining data/gltron-0.70final/src/include/base/switchCallbacks.h
Examining data/gltron-0.70final/src/include/base/util.h
Examining data/gltron-0.70final/src/include/configuration/configuration.h
Examining data/gltron-0.70final/src/include/configuration/settings.h
Examining data/gltron-0.70final/src/include/filesystem/dirsetup.h
Examining data/gltron-0.70final/src/include/filesystem/path.h
Examining data/gltron-0.70final/src/include/game/camera.h
Examining data/gltron-0.70final/src/include/game/client_data.h
Examining data/gltron-0.70final/src/include/game/data.h
Examining data/gltron-0.70final/src/include/game/engine.h
Examining data/gltron-0.70final/src/include/game/event.h
Examining data/gltron-0.70final/src/include/game/game.h
Examining data/gltron-0.70final/src/include/game/gltron.h
Examining data/gltron-0.70final/src/include/game/init.h
Examining data/gltron-0.70final/src/include/game/menu.h
Examining data/gltron-0.70final/src/include/game/timedemo.h
Examining data/gltron-0.70final/src/include/game/timesystem.h
Examining data/gltron-0.70final/src/include/game/ai.h
Examining data/gltron-0.70final/src/include/game/game_data.h
Examining data/gltron-0.70final/src/include/input/input.h
Examining data/gltron-0.70final/src/include/scripting/scripting.h
Examining data/gltron-0.70final/src/include/video/explosion.h
Examining data/gltron-0.70final/src/include/video/graphics_fx.h
Examining data/gltron-0.70final/src/include/video/graphics_hud.h
Examining data/gltron-0.70final/src/include/video/graphics_lights.h
Examining data/gltron-0.70final/src/include/video/graphics_utility.h
Examining data/gltron-0.70final/src/include/video/graphics_world.h
Examining data/gltron-0.70final/src/include/video/model.h
Examining data/gltron-0.70final/src/include/video/recognizer.h
Examining data/gltron-0.70final/src/include/video/skybox.h
Examining data/gltron-0.70final/src/include/video/texture.h
Examining data/gltron-0.70final/src/include/video/trail_geometry.h
Examining data/gltron-0.70final/src/include/video/video.h
Examining data/gltron-0.70final/src/include/video/fonttex.h
Examining data/gltron-0.70final/src/filesystem/path.c
Examining data/gltron-0.70final/src/filesystem/dirsetup.c
Examining data/gltron-0.70final/src/base/util.c
Examining data/gltron-0.70final/src/configuration/settings.c
Examining data/gltron-0.70final/src/audio/sound.c
Examining data/gltron-0.70final/src/audio/sound_glue.cpp
Examining data/gltron-0.70final/src/video/artpack.c
Examining data/gltron-0.70final/src/video/explosion.c
Examining data/gltron-0.70final/src/video/fonts.c
Examining data/gltron-0.70final/src/video/fonttex.c
Examining data/gltron-0.70final/src/video/graphics_fx.c
Examining data/gltron-0.70final/src/video/graphics_hud.c
Examining data/gltron-0.70final/src/video/graphics_lights.c
Examining data/gltron-0.70final/src/video/graphics_utility.c
Examining data/gltron-0.70final/src/video/graphics_world.c
Examining data/gltron-0.70final/src/video/load_texture.c
Examining data/gltron-0.70final/src/video/material.c
Examining data/gltron-0.70final/src/video/model.c
Examining data/gltron-0.70final/src/video/recognizer.c
Examining data/gltron-0.70final/src/video/screenshot.c
Examining data/gltron-0.70final/src/video/skybox.c
Examining data/gltron-0.70final/src/video/texture.c
Examining data/gltron-0.70final/src/video/trail_geometry.c
Examining data/gltron-0.70final/src/video/trail_render.c
Examining data/gltron-0.70final/src/video/video.c
Examining data/gltron-0.70final/src/video/visuals_2d.c
Examining data/gltron-0.70final/src/video/trail.c
Examining data/gltron-0.70final/src/video/gamegraphics.c
Examining data/gltron-0.70final/src/input/input.c
Examining data/gltron-0.70final/src/game/camera.c
Examining data/gltron-0.70final/src/game/computer_utilities.c
Examining data/gltron-0.70final/src/game/credits.c
Examining data/gltron-0.70final/src/game/engine.c
Examining data/gltron-0.70final/src/game/game.c
Examining data/gltron-0.70final/src/game/globals.c
Examining data/gltron-0.70final/src/game/gui.c
Examining data/gltron-0.70final/src/game/init.c
Examining data/gltron-0.70final/src/game/menu.c
Examining data/gltron-0.70final/src/game/pause.c
Examining data/gltron-0.70final/src/game/switchCallbacks.c
Examining data/gltron-0.70final/src/game/scripting_interface.c
Examining data/gltron-0.70final/src/game/computer.c
Examining data/gltron-0.70final/src/game/init_sdl.c
Examining data/gltron-0.70final/src/game/event.c
Examining data/gltron-0.70final/src/game/timedemo.c
Examining data/gltron-0.70final/src/gltron.c
Examining data/gltron-0.70final/lua/src/lapi.h
Examining data/gltron-0.70final/lua/src/lcode.h
Examining data/gltron-0.70final/lua/src/ldebug.h
Examining data/gltron-0.70final/lua/src/ldo.h
Examining data/gltron-0.70final/lua/src/lfunc.h
Examining data/gltron-0.70final/lua/src/lgc.h
Examining data/gltron-0.70final/lua/src/llex.h
Examining data/gltron-0.70final/lua/src/llimits.h
Examining data/gltron-0.70final/lua/src/lmem.h
Examining data/gltron-0.70final/lua/src/lobject.h
Examining data/gltron-0.70final/lua/src/lopcodes.h
Examining data/gltron-0.70final/lua/src/lparser.h
Examining data/gltron-0.70final/lua/src/lstate.h
Examining data/gltron-0.70final/lua/src/lstring.h
Examining data/gltron-0.70final/lua/src/ltable.h
Examining data/gltron-0.70final/lua/src/ltm.h
Examining data/gltron-0.70final/lua/src/lundump.h
Examining data/gltron-0.70final/lua/src/lvm.h
Examining data/gltron-0.70final/lua/src/lzio.h
Examining data/gltron-0.70final/lua/src/lapi.c
Examining data/gltron-0.70final/lua/src/lcode.c
Examining data/gltron-0.70final/lua/src/ldebug.c
Examining data/gltron-0.70final/lua/src/ldo.c
Examining data/gltron-0.70final/lua/src/lfunc.c
Examining data/gltron-0.70final/lua/src/lgc.c
Examining data/gltron-0.70final/lua/src/llex.c
Examining data/gltron-0.70final/lua/src/lmem.c
Examining data/gltron-0.70final/lua/src/lobject.c
Examining data/gltron-0.70final/lua/src/lparser.c
Examining data/gltron-0.70final/lua/src/lstate.c
Examining data/gltron-0.70final/lua/src/lstring.c
Examining data/gltron-0.70final/lua/src/ltable.c
Examining data/gltron-0.70final/lua/src/ltests.c
Examining data/gltron-0.70final/lua/src/ltm.c
Examining data/gltron-0.70final/lua/src/lundump.c
Examining data/gltron-0.70final/lua/src/lvm.c
Examining data/gltron-0.70final/lua/src/lzio.c
Examining data/gltron-0.70final/lua/src/lib/lauxlib.c
Examining data/gltron-0.70final/lua/src/lib/lbaselib.c
Examining data/gltron-0.70final/lua/src/lib/ldblib.c
Examining data/gltron-0.70final/lua/src/lib/lmathlib.c
Examining data/gltron-0.70final/lua/src/lib/lstrlib.c
Examining data/gltron-0.70final/lua/src/lib/liolib.c
Examining data/gltron-0.70final/lua/include/lauxlib.h
Examining data/gltron-0.70final/lua/include/lua.h
Examining data/gltron-0.70final/lua/include/luadebug.h
Examining data/gltron-0.70final/lua/include/lualib.h
Examining data/gltron-0.70final/nebu/include/Nebu.h
Examining data/gltron-0.70final/nebu/include/Nebu_audio.h
Examining data/gltron-0.70final/nebu/include/Nebu_base.h
Examining data/gltron-0.70final/nebu/include/Nebu_configuration.h
Examining data/gltron-0.70final/nebu/include/Nebu_filesystem.h
Examining data/gltron-0.70final/nebu/include/Nebu_input.h
Examining data/gltron-0.70final/nebu/include/Nebu_scripting.h
Examining data/gltron-0.70final/nebu/include/Nebu_video.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_Sound.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_SoundSystem.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_Source.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_Source3D.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_SourceCopy.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_SourceEngine.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_SourceMusic.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_SourceSample.h
Examining data/gltron-0.70final/nebu/include/audio/nebu_audio_system.h
Examining data/gltron-0.70final/nebu/include/base/nebu_Vector3.h
Examining data/gltron-0.70final/nebu/include/base/nebu_callbacks.h
Examining data/gltron-0.70final/nebu/include/base/nebu_geom.h
Examining data/gltron-0.70final/nebu/include/base/nebu_matrix.h
Examining data/gltron-0.70final/nebu/include/base/nebu_random.h
Examining data/gltron-0.70final/nebu/include/base/nebu_system.h
Examining data/gltron-0.70final/nebu/include/base/nebu_types.h
Examining data/gltron-0.70final/nebu/include/base/nebu_util.h
Examining data/gltron-0.70final/nebu/include/base/nebu_vector.h
Examining data/gltron-0.70final/nebu/include/filesystem/nebu_file_io.h
Examining data/gltron-0.70final/nebu/include/filesystem/nebu_filesystem.h
Examining data/gltron-0.70final/nebu/include/input/nebu_input_system.h
Examining data/gltron-0.70final/nebu/include/input/nebu_system_keynames.h
Examining data/gltron-0.70final/nebu/include/scripting/nebu_scripting.h
Examining data/gltron-0.70final/nebu/include/video/nebu_console.h
Examining data/gltron-0.70final/nebu/include/video/nebu_extgl.h
Examining data/gltron-0.70final/nebu/include/video/nebu_light.h
Examining data/gltron-0.70final/nebu/include/video/nebu_png_texture.h
Examining data/gltron-0.70final/nebu/include/video/nebu_quad.h
Examining data/gltron-0.70final/nebu/include/video/nebu_renderer_gl.h
Examining data/gltron-0.70final/nebu/include/video/nebu_video_system.h
Examining data/gltron-0.70final/nebu/include/video/nebu_video_types.h
Examining data/gltron-0.70final/nebu/base/geom.c
Examining data/gltron-0.70final/nebu/base/vector.c
Examining data/gltron-0.70final/nebu/base/matrix.c
Examining data/gltron-0.70final/nebu/base/random.c
Examining data/gltron-0.70final/nebu/base/util.c
Examining data/gltron-0.70final/nebu/base/system.c
Examining data/gltron-0.70final/nebu/filesystem/filesystem.c
Examining data/gltron-0.70final/nebu/filesystem/file_io.c
Examining data/gltron-0.70final/nebu/filesystem/directory.c
Examining data/gltron-0.70final/nebu/filesystem/findpath.c
Examining data/gltron-0.70final/nebu/scripting/scripting.c
Examining data/gltron-0.70final/nebu/audio/SoundSystem.cpp
Examining data/gltron-0.70final/nebu/audio/Source.cpp
Examining data/gltron-0.70final/nebu/audio/Source3D.cpp
Examining data/gltron-0.70final/nebu/audio/SourceCopy.cpp
Examining data/gltron-0.70final/nebu/audio/SourceEngine.cpp
Examining data/gltron-0.70final/nebu/audio/SourceMusic.cpp
Examining data/gltron-0.70final/nebu/audio/SourceSample.cpp
Examining data/gltron-0.70final/nebu/video/console.c
Examining data/gltron-0.70final/nebu/video/pixels.c
Examining data/gltron-0.70final/nebu/video/png_texture.c
Examining data/gltron-0.70final/nebu/video/video_system.c
Examining data/gltron-0.70final/nebu/input/system_keynames.c
Examining data/gltron-0.70final/nebu/input/input_system.c

FINAL RESULTS:

data/gltron-0.70final/lua/src/lib/lauxlib.c:112:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buff, fmt, argp);
data/gltron-0.70final/lua/src/lib/liolib.c:60:9:  [4] (shell) popen:
  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.
#define popen(x,y) NULL  /* that is, popen always fails */
data/gltron-0.70final/lua/src/lib/liolib.c:209:29:  [4] (shell) popen:
  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.
    current = (*s == '|') ? popen(s+1, mode) : fopen(s, mode);
data/gltron-0.70final/lua/src/lib/liolib.c:515:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  lua_pushnumber(L, system(luaL_check_string(L, 1)));
data/gltron-0.70final/lua/src/lib/lstrlib.c:564:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, luaL_check_int(L, arg));
data/gltron-0.70final/lua/src/lib/lstrlib.c:567:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (unsigned int)luaL_check_number(L, arg));
data/gltron-0.70final/lua/src/lib/lstrlib.c:570:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, luaL_check_number(L, arg));
data/gltron-0.70final/lua/src/lib/lstrlib.c:586:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buff, form, s);
data/gltron-0.70final/lua/src/llex.c:82:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, token2string[token-FIRST_RESERVED]);
data/gltron-0.70final/lua/src/llimits.h:46:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define lua_number2str(s,n)	sprintf((s), NUMBER_FMT, (n))
data/gltron-0.70final/lua/src/lobject.c:87:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buff, fmt, argp);
data/gltron-0.70final/lua/src/ltests.c:75:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buff+8, "%-12s", name);
data/gltron-0.70final/lua/src/ltests.c:78:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buff+8, "%-12s%4u", name, GETARG_U(i));
data/gltron-0.70final/lua/src/ltests.c:81:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buff+8, "%-12s%4d", name, GETARG_S(i));
data/gltron-0.70final/lua/src/ltests.c:84:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buff+8, "%-12s%4d %4d", name, GETARG_A(i), GETARG_B(i));
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:7:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  SourceMusic::SourceMusic(System *system) { 
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:8:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    _system = system;
data/gltron-0.70final/nebu/audio/SourceSample.cpp:7:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  SourceSample::SourceSample(System *system) { 
data/gltron-0.70final/nebu/audio/SourceSample.cpp:8:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    _system = system;
data/gltron-0.70final/nebu/filesystem/directory.c:47:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if(access(name, R_OK)) {
data/gltron-0.70final/nebu/include/audio/nebu_Source3D.h:17:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    Source3D(System *system, SourceSample *source) { 
data/gltron-0.70final/nebu/include/audio/nebu_Source3D.h:18:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      _system = system; 
data/gltron-0.70final/nebu/include/audio/nebu_SourceEngine.h:9:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SourceEngine(System *system, SourceSample *source) {
data/gltron-0.70final/nebu/include/audio/nebu_SourceEngine.h:10:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      _system = system;
data/gltron-0.70final/nebu/include/audio/nebu_SourceMusic.h:12:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SourceMusic(System *system);
data/gltron-0.70final/nebu/include/audio/nebu_SourceSample.h:12:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SourceSample(System *system);
data/gltron-0.70final/nebu/scripting/scripting.c:184:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buf, format, ap);
data/gltron-0.70final/nebu/video/console.c:43: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(buffer[x], buffer[i]);
data/gltron-0.70final/nebu/video/console.c:89:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(message, fmt_str, ap);
data/gltron-0.70final/nebu/video/console.c:94:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stdout, fmt_str, ap);
data/gltron-0.70final/nebu/video/console.c:99:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt_str, ap);
data/gltron-0.70final/nebu/video/png_texture.c:34:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, ERR_PREFIX "can't open file %s\n", filename);
data/gltron-0.70final/nebu/video/png_texture.c:64:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, ERR_PREFIX "wrong png_color_type\n");
data/gltron-0.70final/nebu/video/png_texture.c:71:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, ERR_PREFIX "wrong bitdepth: %d\n", bpc);
data/gltron-0.70final/src/filesystem/path.c:28:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(preferences_dir, PREF_DIR);
data/gltron-0.70final/src/filesystem/path.c:30:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(preferences_dir, "%s%s", getHome(), PREF_DIR + 1);
data/gltron-0.70final/src/filesystem/path.c:33:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(snapshots_dir, SNAP_DIR);
data/gltron-0.70final/src/filesystem/path.c:35:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(snapshots_dir, "%s%s", getHome(), SNAP_DIR + 1);
data/gltron-0.70final/src/filesystem/path.c:51:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(data_dir, "%s%c%s", DATA_DIR, SEPARATOR, "data");
data/gltron-0.70final/src/filesystem/path.c:52:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(art_dir, "%s%c%s", DATA_DIR, SEPARATOR, "art");
data/gltron-0.70final/src/filesystem/path.c:53:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(scripts_dir, "%s%c%s", DATA_DIR, SEPARATOR, "scripts");
data/gltron-0.70final/src/filesystem/path.c:54:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(music_dir, "%s%c%s", DATA_DIR, SEPARATOR, "music");
data/gltron-0.70final/src/filesystem/path.c:90:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", getDirectory( eLocation ), SEPARATOR, filename);
data/gltron-0.70final/src/filesystem/path.c:110:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s%c%s", 
data/gltron-0.70final/src/filesystem/path.c:115:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s%c%s", 
data/gltron-0.70final/src/video/fonts.c:20:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if(sscanf(buf, "game: %s ", gamefont) == 1)
data/gltron-0.70final/src/video/fonts.c:22:15:  [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.
      else if(sscanf(buf, "menu: %s ", guifont) == 1)
data/gltron-0.70final/src/video/fonttex.c:31:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, FTX_ERR "can't load font file '%s'\n", filename);
data/gltron-0.70final/src/video/fonttex.c:173:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, FTX_ERR " index out of bounds");
data/gltron-0.70final/src/video/graphics_hud.c:49:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(message, winner, game->winner + 1);
data/gltron-0.70final/src/video/material.c:57:7:  [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(buf, "newmtl %s ", name);
data/gltron-0.70final/src/video/material.c:59: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( pMaterials[iMaterial].name, name );
data/gltron-0.70final/src/video/material.c:99:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(sscanf(buf, " mtllib %s ", filename) != 1) {
data/gltron-0.70final/src/video/material.c:110:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(sscanf(buf, " usemtl %s ", name) == 1) {
data/gltron-0.70final/src/video/screenshot.c:95:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname, "%s-%s-%d%s", SCREENSHOT_PREFIX, VERSION, *start_at, 
data/gltron-0.70final/src/video/texture.c:37:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(texname, "%s%s", textures[i].name, TEX_SUFFIX);
data/gltron-0.70final/src/video/texture.c:39:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(texname, "%s%d%s", textures[i].name, j, TEX_SUFFIX);
data/gltron-0.70final/lua/src/lib/liolib.c:555:21:  [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.
  lua_pushstring(L, getenv(luaL_check_string(L, 1)));  /* if NULL push nil */
data/gltron-0.70final/lua/src/lib/lmathlib.c:197: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(luaL_check_int(L, 1));
data/gltron-0.70final/src/filesystem/dirsetup.c:8:10:  [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.
  return getenv("HOME");
data/gltron-0.70final/lua/include/lauxlib.h:78: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 buffer[LUAL_BUFFERSIZE];
data/gltron-0.70final/lua/include/luadebug.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 short_src[LUA_IDSIZE]; /* (S) */
data/gltron-0.70final/lua/src/ldo.c:267:42:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = (filename == NULL) ? stdin : fopen(filename, "r");
data/gltron-0.70final/lua/src/lib/lauxlib.c:44: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[50];
data/gltron-0.70final/lua/src/lib/lauxlib.c:45: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(buff, "%.8s expected, got %.8s", lua_typename(L, t),
data/gltron-0.70final/lua/src/lib/lauxlib.c:109: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[500];
data/gltron-0.70final/lua/src/lib/lauxlib.c:197: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(B->p, lua_tostring(L, -1), vl);  /* put it there */
data/gltron-0.70final/lua/src/lib/lbaselib.c:46:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[100];
data/gltron-0.70final/lua/src/lib/lbaselib.c:47:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "\n  <%.70s: line %d>", ar.short_src, ar.currentline);
data/gltron-0.70final/lua/src/lib/lbaselib.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[64];
data/gltron-0.70final/lua/src/lib/lbaselib.c:321: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(buff, "table: %p", lua_topointer(L, 1));
data/gltron-0.70final/lua/src/lib/lbaselib.c:324: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(buff, "function: %p", lua_topointer(L, 1));
data/gltron-0.70final/lua/src/lib/lbaselib.c:327: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(buff, "userdata(%d): %p", lua_tag(L, 1), lua_touserdata(L, 1));
data/gltron-0.70final/lua/src/lib/ldblib.c:37: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[20];
data/gltron-0.70final/lua/src/lib/ldblib.c:46:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buff, ">%.10s", options);
data/gltron-0.70final/lua/src/lib/liolib.c:186: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(luaL_check_string(L, 1), luaL_check_string(L, 2));
data/gltron-0.70final/lua/src/lib/liolib.c:209:48:  [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).
    current = (*s == '|') ? popen(s+1, mode) : fopen(s, mode);
data/gltron-0.70final/lua/src/lib/liolib.c:229: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).
  current = fopen(luaL_check_string(L, 1), "a");
data/gltron-0.70final/lua/src/lib/liolib.c:379: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 statbuff[BUFSIZ];
data/gltron-0.70final/lua/src/lib/liolib.c:541: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 tmpfname[16];
data/gltron-0.70final/lua/src/lib/liolib.c:543: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(tmpfname,"/tmp/lua.XXXXXX");
data/gltron-0.70final/lua/src/lib/liolib.c:544:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if((fid=mkstemp(tmpfname)))
data/gltron-0.70final/lua/src/lib/liolib.c:567: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 b[256];
data/gltron-0.70final/lua/src/lib/liolib.c:603: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 buffer[250];
data/gltron-0.70final/lua/src/lib/liolib.c:627: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 buff[120];  /* enough to fit following `sprintf's */
data/gltron-0.70final/lua/src/lib/liolib.c:642:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buff, "%4d:  ", level-1);
data/gltron-0.70final/lua/src/lib/liolib.c:647:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "function `%.50s'", ar.name);
data/gltron-0.70final/lua/src/lib/liolib.c:650:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "method `%.50s'", ar.name);
data/gltron-0.70final/lua/src/lib/liolib.c:653:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "`%.50s' tag method", ar.name);
data/gltron-0.70final/lua/src/lib/liolib.c:657:11:  [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(buff, "main of %.70s", ar.short_src);
data/gltron-0.70final/lua/src/lib/liolib.c:659:11:  [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(buff, "%.70s", ar.short_src);
data/gltron-0.70final/lua/src/lib/liolib.c:661:11:  [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(buff, "function <%d:%.70s>", ar.linedefined, ar.short_src);
data/gltron-0.70final/lua/src/lib/liolib.c:667: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(buff, " at line %d", ar.currentline);
data/gltron-0.70final/lua/src/lib/liolib.c:671: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(buff, " [%.70s]", ar.short_src);
data/gltron-0.70final/lua/src/lib/lstrlib.c:545:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char form[MAX_FORMAT];  /* to store the format ('%...') */
data/gltron-0.70final/lua/src/lib/lstrlib.c:546:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[MAX_ITEM];  /* to store the formatted item */
data/gltron-0.70final/lua/src/llex.c:51: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 buff[100];
data/gltron-0.70final/lua/src/llex.c:52:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buff, "too many %.50s (limit=%d)", msg, limit);
data/gltron-0.70final/lua/src/llex.c:59: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[MAXSRC];
data/gltron-0.70final/lua/src/llex.c:67: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[TOKEN_LEN];
data/gltron-0.70final/lua/src/llex.c:87: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[8];
data/gltron-0.70final/lua/src/llex.c:88: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(buff, "0x%02X", c);
data/gltron-0.70final/lua/src/lmem.c:90: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(newblock+HEADER, block, oldsize);
data/gltron-0.70final/lua/src/lobject.c:85: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[MAX_VERROR];  /* to hold formatted message */
data/gltron-0.70final/lua/src/lobject.c:106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(out, "file `...%.99s'", source);
data/gltron-0.70final/lua/src/lobject.c:109:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(out, "file `%.99s'", source);
data/gltron-0.70final/lua/src/lobject.c:116:9:  [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(out, "string \"");
data/gltron-0.70final/lua/src/lobject.c:119:9:  [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(out+len, "...\"");
data/gltron-0.70final/lua/src/lobject.c:122:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(out, "string \"%.99s\"", source);
data/gltron-0.70final/lua/src/lobject.h:96: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[TSPACK];   /* variable length string!! must be the last field! */
data/gltron-0.70final/lua/src/lparser.c:74: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[100], t[TOKEN_LEN];
data/gltron-0.70final/lua/src/lparser.c:76: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(buff, "`%.20s' expected", t);
data/gltron-0.70final/lua/src/lparser.c:107:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[100];
data/gltron-0.70final/lua/src/lparser.c:108:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char t_what[TOKEN_LEN], t_who[TOKEN_LEN];
data/gltron-0.70final/lua/src/lparser.c:111: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(buff, "`%.20s' expected (to close `%.20s' at line %d)",
data/gltron-0.70final/lua/src/lstring.c:106: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(ts->str, str, l);
data/gltron-0.70final/lua/src/ltests.c:55: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 *const instrname[NUM_OPCODES] = {
data/gltron-0.70final/lua/src/ltests.c:68: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[100];
data/gltron-0.70final/lua/src/ltests.c:72: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(buff, "%5d - ", luaG_getline(p->lineinfo, pc, 1, NULL));
data/gltron-0.70final/lua/src/ltests.c:394: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[30];
data/gltron-0.70final/lua/src/ltm.c:54: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 luaT_validevents[NUM_TAGS][TM_N] = {
data/gltron-0.70final/lua/src/lvm.c: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 s[32];  /* 16 digits, sign, point and \0  (+ some extra...) */
data/gltron-0.70final/lua/src/lvm.c:311: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(buffer+tl, tsvalue(top-i)->str, l);
data/gltron-0.70final/lua/src/lzio.c:77: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(b, z->p, m);
data/gltron-0.70final/lua/src/lzio.h:49: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.
  unsigned char buffer[ZBSIZE];		/* buffer */
data/gltron-0.70final/nebu/audio/Source3D.cpp:179:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(tmp, _source->_buffer + _position, clen);
data/gltron-0.70final/nebu/audio/Source3D.cpp:181:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(tmp, _source->_buffer + _position,
data/gltron-0.70final/nebu/audio/Source3D.cpp:183:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(tmp + _source->_buffersize - _position, _source->_buffer,
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:79: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(_filename, filename, n + 1);
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:145: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(_buffer + _decoded, _sample->buffer, count);
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:150: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(_buffer + _decoded, _sample->buffer, _buffersize - _decoded);
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:151: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(_buffer, (Uint8*) _sample->buffer + _buffersize - _decoded,
data/gltron-0.70final/nebu/audio/SourceSample.cpp:43: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(_buffer, sample->buffer, _buffersize);
data/gltron-0.70final/nebu/base/matrix.c:19: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(pOut, &tmp, sizeof(vec4));
data/gltron-0.70final/nebu/base/matrix.c:81: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(pOut, &tmp, sizeof(matrix));
data/gltron-0.70final/nebu/base/matrix.c:115: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(pOut, &tmp, sizeof(matrix));
data/gltron-0.70final/nebu/base/matrix.c:125: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(pOut, &tmp, sizeof(matrix));
data/gltron-0.70final/nebu/base/vector.c:43: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(pOut, &tmp, sizeof(vec3));
data/gltron-0.70final/nebu/base/vector.c:97: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(pOut, pV, sizeof(vec3));
data/gltron-0.70final/nebu/base/vector.c:115:2:  [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(pOut, pV, sizeof(vec3));
data/gltron-0.70final/nebu/base/vector.c:150:2:  [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(pOut, pV, sizeof(vec2));
data/gltron-0.70final/nebu/filesystem/directory.c:32: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(name, entry->d_name, strlen(entry->d_name) + 1);
data/gltron-0.70final/nebu/filesystem/file_io.c:27: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).
  return fopen(path, mode);
data/gltron-0.70final/nebu/filesystem/filesystem.c:11:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((f = fopen(path, "r"))) {
data/gltron-0.70final/nebu/scripting/scripting.c:147: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( *s, lua_tostring(L, -1), size );
data/gltron-0.70final/nebu/scripting/scripting.c:163: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( s, lua_tostring(L, -1), size );
data/gltron-0.70final/nebu/scripting/scripting.c:181:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/gltron-0.70final/nebu/video/console.c:10: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 buffer[CONSOLE_DEPTH][CONSOLE_WIDTH];
data/gltron-0.70final/nebu/video/console.c:83: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 message[CONSOLE_WIDTH];
data/gltron-0.70final/nebu/video/png_texture.c:32: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(filename, "rb");
data/gltron-0.70final/nebu/video/video_system.c:103: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(((char *) temp->pixels) + temp->pitch * i, 
data/gltron-0.70final/src/audio/sound_glue.cpp:212:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sname, "music");
data/gltron-0.70final/src/audio/sound_glue.cpp:254:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(name, "player %d", i);
data/gltron-0.70final/src/audio/sound_glue.cpp:263:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(name, "player %d", i);
data/gltron-0.70final/src/audio/sound_glue.cpp:273:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(name, "recognizer");
data/gltron-0.70final/src/filesystem/path.c:19: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 preferences_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:20: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 snapshots_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:21: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 data_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:22: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 art_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:23: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 music_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:24: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 scripts_dir[PATH_MAX];
data/gltron-0.70final/src/filesystem/path.c:39: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(data_dir, ":data");
data/gltron-0.70final/src/filesystem/path.c:40: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(art_dir, ":art");
data/gltron-0.70final/src/filesystem/path.c:41: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(scripts_dir, ":scripts");
data/gltron-0.70final/src/filesystem/path.c:42: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(music_dir, ":music");
data/gltron-0.70final/src/filesystem/path.c:44:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(data_dir, "data");
data/gltron-0.70final/src/filesystem/path.c:45: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(art_dir, "art");
data/gltron-0.70final/src/filesystem/path.c:46: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(scripts_dir, "scripts");
data/gltron-0.70final/src/filesystem/path.c:47: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(music_dir, "music");
data/gltron-0.70final/src/game/globals.c:65: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 debugcolors[6][4] = {
data/gltron-0.70final/src/game/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 pMenuName[200];
data/gltron-0.70final/src/game/menu.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line_label[100];
data/gltron-0.70final/src/game/menu.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line_data[100];
data/gltron-0.70final/src/include/game/menu.h:13: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 szCaption[64];
data/gltron-0.70final/src/include/game/menu.h:20: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 szName[64];
data/gltron-0.70final/src/include/game/menu.h:21: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 szCapFormat[64];
data/gltron-0.70final/src/include/video/model.h:62:43:  [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 void SetMaterialColor(Mesh *pMesh, char *name, ColorType eType,
data/gltron-0.70final/src/include/video/texture.h:6: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[48];
data/gltron-0.70final/src/include/video/video.h:179: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.
extern unsigned char debugcolors[6][4];
data/gltron-0.70final/src/video/fonts.c:8:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[100];
data/gltron-0.70final/src/video/fonts.c:9: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 gamefont[100];
data/gltron-0.70final/src/video/fonts.c:10: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 guifont[100];
data/gltron-0.70final/src/video/fonttex.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[100];
data/gltron-0.70final/src/video/fonttex.c:51: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(ftx->fontname, buf, len);
data/gltron-0.70final/src/video/fonttex.c:64: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(texname, buf, len); 
data/gltron-0.70final/src/video/gamegraphics.c:461: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(&d2d, d, sizeof(Visual));
data/gltron-0.70final/src/video/graphics_hud.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 buf[100];
data/gltron-0.70final/src/video/graphics_hud.c:65:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[10]; /* hey, they won't reach such a score */
data/gltron-0.70final/src/video/graphics_hud.c:67: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(tmp, "%d", p->data->score);
data/gltron-0.70final/src/video/graphics_hud.c:82: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[20];
data/gltron-0.70final/src/video/graphics_hud.c:110: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(tmp, "average FPS: %d", fps_avg);
data/gltron-0.70final/src/video/graphics_hud.c:113: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(tmp, "minimum FPS: %d", fps_min);
data/gltron-0.70final/src/video/graphics_hud.c:115: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(tmp, "triangles: %d", polycount);
data/gltron-0.70final/src/video/material.c:15: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( pMaterial->ambient, ambient, sizeof(ambient) );
data/gltron-0.70final/src/video/material.c:16: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( pMaterial->diffuse, diffuse, sizeof(diffuse) );
data/gltron-0.70final/src/video/material.c:17: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( pMaterial->specular, specular, sizeof(specular) );
data/gltron-0.70final/src/video/material.c:27:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUF_SIZE];
data/gltron-0.70final/src/video/material.c:28: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[BUF_SIZE];
data/gltron-0.70final/src/video/material.c:91: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( pMesh->pMaterials + i, pMaterials + i, sizeof(Material) );
data/gltron-0.70final/src/video/material.c:98: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 filename[BUF_SIZE];
data/gltron-0.70final/src/video/material.c:107: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[BUF_SIZE];
data/gltron-0.70final/src/video/material.c:125:36:  [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.
void SetMaterialColor(Mesh *pMesh, char *name, ColorType eType,
data/gltron-0.70final/src/video/material.c:134:2:  [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( pMesh->pMaterials[i].ambient, pColor, sizeof(float[4]) );
data/gltron-0.70final/src/video/material.c:137:2:  [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( pMesh->pMaterials[i].diffuse, pColor, sizeof(float[4]) );
data/gltron-0.70final/src/video/material.c:140:2:  [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( pMesh->pMaterials[i].specular, pColor, sizeof(float[4]) );
data/gltron-0.70final/src/video/model.c:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUF_SIZE];
data/gltron-0.70final/src/video/screenshot.c:41:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(fp = fopen(fname, "wb"))) {
data/gltron-0.70final/src/video/screenshot.c:89: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 fname[PATH_MAX];
data/gltron-0.70final/src/video/texture.c:5: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 texname[120];
data/gltron-0.70final/src/video/trail_geometry.c:25:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(color, pV->pColorAlpha, 4 * sizeof(float));
data/gltron-0.70final/src/video/trail_geometry.c:27:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(color, pV->pColorAlpha, 3 * sizeof(float));
data/gltron-0.70final/src/video/trail_geometry.c:30: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(color, white, 3 * sizeof(float));
data/gltron-0.70final/src/video/trail_geometry.c:33: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(color, pV->pColorDiffuse, 3 * sizeof(float));
data/gltron-0.70final/src/video/video.c:168:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[32];
data/gltron-0.70final/src/video/video.c:169: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(name, "model_diffuse_%d", i);
data/gltron-0.70final/src/video/video.c:172: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(name, "model_specular_%d", i);
data/gltron-0.70final/src/video/video.c:175: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(name, "trail_diffuse_%d", i);
data/gltron-0.70final/lua/src/lapi.c:226: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).
    lua_pushlstring(L, s, strlen(s));
data/gltron-0.70final/lua/src/ldo.c:269:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = fgetc(f);
data/gltron-0.70final/lua/src/ldo.c:316: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).
  return lua_dobuffer(L, str, strlen(str), str);
data/gltron-0.70final/lua/src/lib/lauxlib.c:80: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).
      *len = (def ? strlen(def) : 0);
data/gltron-0.70final/lua/src/lib/lauxlib.c:179: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).
  luaL_addlstring(B, s, strlen(s));
data/gltron-0.70final/lua/src/lib/liolib.c:271:34:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (c == NEED_OTHER) c = getc(f);
data/gltron-0.70final/lua/src/lib/liolib.c:283:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              c = getc(f);
data/gltron-0.70final/lua/src/lib/liolib.c:324:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  do { c = fgetc(f); } while (isspace(c));  /* skip spaces */
data/gltron-0.70final/lua/src/lib/liolib.c:327:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(f);
data/gltron-0.70final/lua/src/lib/liolib.c:343: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).
    n = strlen(p);
data/gltron-0.70final/lua/src/lib/lstrlib.c:554: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).
      cap.src_end = strfrmt+strlen(strfrmt)+1;
data/gltron-0.70final/lua/src/lib/lstrlib.c:560:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(form+1, initf, strfrmt-initf+1); /* +1 to include conversion */
data/gltron-0.70final/lua/src/lib/lstrlib.c:593: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).
      luaL_addlstring(&b, buff, strlen(buff));
data/gltron-0.70final/lua/src/lobject.c:95:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out, source+1, bufflen);  /* remove first char */
data/gltron-0.70final/lua/src/lobject.c:103:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen(source);
data/gltron-0.70final/lua/src/lobject.c:117: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).
        out += strlen(out);
data/gltron-0.70final/lua/src/lobject.c:118:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(out, source, len);
data/gltron-0.70final/lua/src/lstring.c:146: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).
  return luaS_newlstr(L, str, strlen(str));
data/gltron-0.70final/lua/src/ltests.c:340:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static int equal (lua_State *L) {
data/gltron-0.70final/lua/src/ltests.c:528:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  {"equal", equal},
data/gltron-0.70final/lua/src/lvm.c:259:20:  [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_t len = strlen(l);  /* index of first '\0' in both strings */
data/gltron-0.70final/lua/src/lzio.c:40: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).
  return zmopen(z, s, strlen(s), name);
data/gltron-0.70final/nebu/audio/SourceMusic.cpp:77:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int n = strlen(filename);
data/gltron-0.70final/nebu/filesystem/directory.c:31: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).
		name = malloc(strlen(entry->d_name) + 1);
data/gltron-0.70final/nebu/filesystem/directory.c:32: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).
		memcpy(name, entry->d_name, strlen(entry->d_name) + 1);
data/gltron-0.70final/src/game/gui.c:121:36:  [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).
	   gScreen->vp_w / (6.0f / 4.0f * strlen(message)), message);
data/gltron-0.70final/src/video/fonttex.c:48: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(buf) + 1;
data/gltron-0.70final/src/video/fonttex.c:61:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf) + 1;
data/gltron-0.70final/src/video/graphics_hud.c:9:53:  [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).
  drawText(gameFtx, d->vp_w / 4, 10, d->vp_w / (2 * strlen(ai)), ai);
data/gltron-0.70final/src/video/graphics_hud.c:61:36:  [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).
	   display->vp_w / (6.0f / 4.0f * strlen(message)), message);
data/gltron-0.70final/src/video/graphics_hud.c:126: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(line);
data/gltron-0.70final/src/video/graphics_utility.c:64: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).
  ftxRenderString(ftx, text, strlen(text));
data/gltron-0.70final/src/video/graphics_utility.c:69:20:  [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).
  polycount += 2 * strlen(text); /* quads are two triangles */
data/gltron-0.70final/src/video/material.c:58: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).
      pMaterials[iMaterial].name = malloc( strlen(name) + 1 );

ANALYSIS SUMMARY:

Hits = 251
Lines analyzed = 26712 in approximately 0.74 seconds (36300 lines/second)
Physical Source Lines of Code (SLOC) = 20145
Hits@level = [0] 155 [1]  34 [2] 157 [3]   3 [4]  57 [5]   0
Hits@level+ = [0+] 406 [1+] 251 [2+] 217 [3+]  60 [4+]  57 [5+]   0
Hits/KSLOC@level+ = [0+] 20.1539 [1+] 12.4597 [2+] 10.7719 [3+] 2.97841 [4+] 2.82949 [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.