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/cube2-0.0.20130404+dfsg/rpggame/stats.h
Examining data/cube2-0.0.20130404+dfsg/rpggame/rpgobj.h
Examining data/cube2-0.0.20130404+dfsg/rpggame/ent.cpp
Examining data/cube2-0.0.20130404+dfsg/rpggame/pch.cpp
Examining data/cube2-0.0.20130404+dfsg/rpggame/entities.cpp
Examining data/cube2-0.0.20130404+dfsg/rpggame/rpg.h
Examining data/cube2-0.0.20130404+dfsg/rpggame/rpgent.h
Examining data/cube2-0.0.20130404+dfsg/rpggame/rpg.cpp
Examining data/cube2-0.0.20130404+dfsg/rpggame/objset.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/rendergl.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/textedit.h
Examining data/cube2-0.0.20130404+dfsg/engine/server.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/depthfx.h
Examining data/cube2-0.0.20130404+dfsg/engine/bih.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/movie.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/iqm.h
Examining data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/material.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/pvs.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/world.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/shader.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/rendertarget.h
Examining data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/md5.h
Examining data/cube2-0.0.20130404+dfsg/engine/pch.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/decal.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/master.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/lightmap.h
Examining data/cube2-0.0.20130404+dfsg/engine/dynlight.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/varray.h
Examining data/cube2-0.0.20130404+dfsg/engine/sound.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/engine.h
Examining data/cube2-0.0.20130404+dfsg/engine/model.h
Examining data/cube2-0.0.20130404+dfsg/engine/normal.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/blob.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/bih.h
Examining data/cube2-0.0.20130404+dfsg/engine/3dgui.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/octarender.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/glare.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/skelmodel.h
Examining data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/smd.h
Examining data/cube2-0.0.20130404+dfsg/engine/shadowmap.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/texture.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/physics.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/water.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/client.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/octa.h
Examining data/cube2-0.0.20130404+dfsg/engine/blend.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/lightning.h
Examining data/cube2-0.0.20130404+dfsg/engine/md2.h
Examining data/cube2-0.0.20130404+dfsg/engine/mpr.h
Examining data/cube2-0.0.20130404+dfsg/engine/octa.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/scale.h
Examining data/cube2-0.0.20130404+dfsg/engine/animmodel.h
Examining data/cube2-0.0.20130404+dfsg/engine/lensflare.h
Examining data/cube2-0.0.20130404+dfsg/engine/ragdoll.h
Examining data/cube2-0.0.20130404+dfsg/engine/renderparticles.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/world.h
Examining data/cube2-0.0.20130404+dfsg/engine/vertmodel.h
Examining data/cube2-0.0.20130404+dfsg/engine/menus.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/command.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/texture.h
Examining data/cube2-0.0.20130404+dfsg/engine/renderva.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/grass.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/worldio.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/obj.h
Examining data/cube2-0.0.20130404+dfsg/engine/console.cpp
Examining data/cube2-0.0.20130404+dfsg/engine/explosion.h
Examining data/cube2-0.0.20130404+dfsg/engine/md3.h
Examining data/cube2-0.0.20130404+dfsg/engine/main.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/iengine.h
Examining data/cube2-0.0.20130404+dfsg/shared/crypto.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/pch.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/geom.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/command.h
Examining data/cube2-0.0.20130404+dfsg/shared/geom.h
Examining data/cube2-0.0.20130404+dfsg/shared/zip.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/tools.h
Examining data/cube2-0.0.20130404+dfsg/shared/tools.cpp
Examining data/cube2-0.0.20130404+dfsg/shared/igame.h
Examining data/cube2-0.0.20130404+dfsg/shared/cube2font.c
Examining data/cube2-0.0.20130404+dfsg/shared/cube.h
Examining data/cube2-0.0.20130404+dfsg/shared/ents.h
Examining data/cube2-0.0.20130404+dfsg/shared/stream.cpp
Examining data/cube2-0.0.20130404+dfsg/include/SDL_joystick.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_mouse.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_audio.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_syswm.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_endian.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_quit.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_getenv.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_name.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_timer.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_mutex.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_types.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_thread.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_main.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_copying.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_events.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_mixer.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_platform.h
Examining data/cube2-0.0.20130404+dfsg/include/zconf.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_active.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_rwops.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_opengl.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_keyboard.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_config.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_video.h
Examining data/cube2-0.0.20130404+dfsg/include/zlib.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_config_win32.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_config_macosx.h
Examining data/cube2-0.0.20130404+dfsg/include/GL/glext.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_keysym.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_loadso.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_image.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_error.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_cdrom.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h
Examining data/cube2-0.0.20130404+dfsg/include/begin_code.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_version.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_byteorder.h
Examining data/cube2-0.0.20130404+dfsg/include/close_code.h
Examining data/cube2-0.0.20130404+dfsg/include/SDL_cpuinfo.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/pch.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/render.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/entities.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/ai.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/collect.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/aiman.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/capture.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/fps.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/ctf.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/scoreboard.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/game.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/extinfo.h
Examining data/cube2-0.0.20130404+dfsg/fpsgame/movable.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/ai.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/monster.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/waypoint.cpp
Examining data/cube2-0.0.20130404+dfsg/fpsgame/weapon.cpp

FINAL RESULTS:

data/cube2-0.0.20130404+dfsg/engine/animmodel.h:384:33:  [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.
                int idx = share.access(v.pos, i);
data/cube2-0.0.20130404+dfsg/engine/animmodel.h:538:24:  [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(!meshgroups.access(name))
data/cube2-0.0.20130404+dfsg/engine/command.cpp:201:25:  [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.
    ident &def = idents.access(id.name, id);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:370:24:  [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.
    ident *id = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:396:24:  [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.
    ident *id = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:404:24:  [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.
    ident *id = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:437:24:  [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.
    ident *id = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:500:24:  [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.
    ident *id = idents.access(name); \
data/cube2-0.0.20130404+dfsg/engine/command.cpp:568:52:  [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.
bool identexists(const char *name) { return idents.access(name)!=NULL; }
data/cube2-0.0.20130404+dfsg/engine/command.cpp:569:51:  [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.
ident *getident(const char *name) { return idents.access(name); }
data/cube2-0.0.20130404+dfsg/engine/command.cpp:573:24:  [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.
    ident *id = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:586:23:  [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.
    ident *i = idents.access(name);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:777:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(buf, v[i].s);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1287:25:  [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.
            id = idents.access(idname);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1736:33:  [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.
                    id = idents.access(arg.s); \
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1947:29:  [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.
                id = idents.access(args[0].s);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:196:22:  [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.
    keym *km = keyms.access(code);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:600:26:  [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.
    keym *haskey = keyms.access(code);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:702:43:  [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.
        filesval **hasfiles = completions.access(command);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:718:36:  [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.
    filesval **val = completefiles.access(key);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:726:39:  [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.
    filesval **hasfiles = completions.access(command);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:767:47:  [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.
            filesval **hasfiles = completions.access(command);
data/cube2-0.0.20130404+dfsg/engine/engine.h:105:116:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:451:38:  [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.
        layoutinfo *val = compressed.access(l);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:176: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(logfile, fmt, args);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:184: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(logfile, fmt, args);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:500:25:  [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.
    userinfo *u = users.access(name);
data/cube2-0.0.20130404+dfsg/engine/md2.h:102:39:  [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.
                    int *idx = tchash.access(tckey);
data/cube2-0.0.20130404+dfsg/engine/menus.cpp:168:20:  [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.
    menu *m = guis.access(name);
data/cube2-0.0.20130404+dfsg/engine/menus.cpp:177:20:  [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.
    menu *m = guis.access(name);
data/cube2-0.0.20130404+dfsg/engine/menus.cpp:512:20:  [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.
    menu *m = guis.access(name);
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:39:35:  [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.
    normalgroup &g = normalgroups.access(key, key);
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:48:35:  [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.
    normalgroup &g = normalgroups.access(key, key);
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:61:35:  [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.
    normalgroup &g = normalgroups.access(key, key);
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:120:41:  [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.
    const normalgroup *g = normalgroups.access(key);
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:223:77:  [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.
                addtnormal(tpos, offset, norms[e1], norms[e2], normalgroups.access(v1), normalgroups.access(v2));
data/cube2-0.0.20130404+dfsg/engine/normal.cpp:223:102:  [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.
                addtnormal(tpos, offset, norms[e1], norms[e2], normalgroups.access(v1), normalgroups.access(v2));
data/cube2-0.0.20130404+dfsg/engine/obj.h:125:51:  [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.
                            int *index = verthash.access(vkey);
data/cube2-0.0.20130404+dfsg/engine/octa.cpp:1663:26:  [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.
        plink &l = links.access(e, e);
data/cube2-0.0.20130404+dfsg/engine/octa.cpp:1751:30:  [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.
            plink &l = links.access(e, e);
data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp:955:32:  [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.
    octabrush *b = octabrushes.access(name);
data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp:993:32:  [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.
    octabrush *b = octabrushes.access(name);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:30:28:  [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.
    vboinfo *exists = vbos.access(vbo);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:354:36:  [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.
            sortval *dst = indices.access(sortkey(k.tex, t.unlit, k.dim, k.layer, k.envmap, k.alpha));
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:368:45:  [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.
                    sortval *uval = indices.access(ukey);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:998:38:  [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.
            int *exists = edgegroups.access(g);
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:800:32:  [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.
        int *val = pvscompress.access(key);
data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp:361:39:  [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(!name || !name[0] || mdllookup.access(name)) return;
data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp:416:28:  [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.
    model **mm = mdllookup.access(name);
data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp:437:19:  [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.
        mdllookup.access(m->name(), m);
data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp:462:27:  [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.
    model **m = mdllookup.access(name);
data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp:86:21:  [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.
    font *s = fonts.access(src);
data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp:105:21:  [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.
    font *f = fonts.access(name);
data/cube2-0.0.20130404+dfsg/engine/server.cpp:737:2:  [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(nid.szTip, apptip);
data/cube2-0.0.20130404+dfsg/engine/server.cpp:753:2:  [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(nid.szTip, apptip);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:63:25:  [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.
    Shader *s = shaders.access(name);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:827:30:  [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.
    Shader *exists = shaders.access(name); 
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1517:30:  [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.
    Shader *exists = shaders.access(name);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1596:25:  [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.
    Shader *s = shaders.access(name);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1686:25:  [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.
    Shader *s = shaders.access(name);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1794:28:  [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.
    Shader *orig = shaders.access(origname), *alt = shaders.access(altname);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1794:61:  [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.
    Shader *orig = shaders.access(origname), *alt = shaders.access(altname);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1802:26:  [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.
    Shader *ns = shaders.access(nice), *fs = shaders.access(fast);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1802:54:  [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.
    Shader *ns = shaders.access(nice), *fs = shaders.access(fast);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1835:44:  [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.
    const char **exists = shaderparamnames.access(name);
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1320:40:  [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.
            int &offset = blendoffsets.access(Shader::lastshader->program, -1);
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1431:26:  [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(skeletons.access(name)) skel = skeletons[name];
data/cube2-0.0.20130404+dfsg/engine/smd.h:159:41:  [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.
                    curmesh = materials.access(material);
data/cube2-0.0.20130404+dfsg/engine/smd.h:203:39:  [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.
                    int index = verts.access(key, curmesh->verts.length());
data/cube2-0.0.20130404+dfsg/engine/sound.cpp:251:30:  [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.
    soundsample *s = samples.access(name);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1285:27:  [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.
    Texture *t = textures.access(path(tname));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1963:20:  [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.
    t.t = textures.access(key.getbuf());
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2113:27:  [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.
    Texture *t = textures.access(path(name.getbuf()));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2231:22:  [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.
        t = textures.access(path(tname));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2529:27:  [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.
    Texture *t = textures.access(path(name, true));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2556:27:  [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.
    Texture *t = textures.access(path(name, true));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2692:27:  [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.
    Texture *t = textures.access(path(cfile));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1316:36:  [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.
                key.x = shareverts.access(pos, verts.length());
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1326:33:  [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.
                key.y = sharetc.access(tc, texcoords.length());
data/cube2-0.0.20130404+dfsg/fpsgame/extinfo.h:78:49:  [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.
                else { teaminfo *ti = teaminfos.access(ci->team); scores.add(teamscore(ci->team, ti ? ti->frags : 0)); }
data/cube2-0.0.20130404+dfsg/fpsgame/scoreboard.cpp:24:33:  [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.
        teaminfo *t = teaminfos.access(team);
data/cube2-0.0.20130404+dfsg/fpsgame/scoreboard.cpp:75:57:  [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(o->state!=CS_SPECTATOR && !teaminfos.access(o->team) && best.htfind(o->team) < 0) { bestfrags = 0; best.add(o->team); } 
data/cube2-0.0.20130404+dfsg/fpsgame/scoreboard.cpp:126:45:  [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.
            else { teaminfo *ti = teaminfos.access(team); g.score = ti ? ti->frags : 0; }
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:926:33:  [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.
        teaminfo *t = teaminfos.access(team);
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2128:50:  [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.
            teaminfo *t = m_teammode ? teaminfos.access(actor->team) : NULL;
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2153:46:  [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.
        teaminfo *t = m_teammode ? teaminfos.access(ci->team) : NULL;
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2616:33:  [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.
            userinfo *u = users.access(userkey(ci->authname, ci->authdesc));
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2652:37:  [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.
                userinfo *u = users.access(userkey(ci->authname, ci->authdesc));
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:3426:41:  [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.
                    userinfo *u = users.access(userkey(name, desc));
data/cube2-0.0.20130404+dfsg/include/GL/glext.h:3391:71:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/cube2-0.0.20130404+dfsg/include/GL/glext.h:3992:74:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/cube2-0.0.20130404+dfsg/include/SDL_opengl.h:3464:71:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/cube2-0.0.20130404+dfsg/include/SDL_opengl.h:4065:74:  [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.
typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:569:25:  [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.
#define SDL_sscanf      sscanf
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:575:25:  [4] (format) snprintf:
  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.
#define SDL_snprintf    snprintf
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:581:25:  [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.
#define SDL_vsnprintf   vsnprintf
data/cube2-0.0.20130404+dfsg/rpggame/objset.cpp:138:26:  [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.
        char **n = names.access(name);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:23: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, v);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:296:8:  [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(path[0] ? path : ".", mode[0]=='w' || mode[0]=='a' ? W_OK : (mode[0]=='d' ? X_OK : R_OK)) == -1) exists = false;
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:543:13:  [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.
int stream::printf(const char *fmt, ...)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:556:18:  [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.
    size_t len = vsnprintf(buf, sizeof(buf), fmt, args);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:562:9:  [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.
        vsnprintf(str, len+1, fmt, args);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:634:9:  [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.
    int printf(const char *fmt, ...)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:638:22:  [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.
        int result = vfprintf(file, fmt, v);
data/cube2-0.0.20130404+dfsg/shared/tools.h:123:20:  [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.
#define _vsnprintf vsnprintf
data/cube2-0.0.20130404+dfsg/shared/tools.h:128:53:  [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.
#define PRINTFARGS(fmt, args) __attribute__((format(printf, fmt, args)))
data/cube2-0.0.20130404+dfsg/shared/tools.h:764:8:  [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.
    T *access(const K &key)
data/cube2-0.0.20130404+dfsg/shared/tools.h:770:8:  [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.
    T &access(const K &key, const E &elem)
data/cube2-0.0.20130404+dfsg/shared/tools.h:872:8:  [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.
    T *access(const K &key)
data/cube2-0.0.20130404+dfsg/shared/tools.h:877:8:  [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.
    T &access(const K &key, const T &data)
data/cube2-0.0.20130404+dfsg/shared/tools.h:1100:17:  [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.
    virtual int printf(const char *fmt, ...) PRINTFARGS(2, 3);
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:254:23:  [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(arch.files.access(fname)) continue;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:530:34:  [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.
        zipfile *f = arch->files.access(name);
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:216: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.
#define SDL_getenv	getenv
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:339:28:  [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.
        const char *home = getenv("HOME");
data/cube2-0.0.20130404+dfsg/engine/bih.cpp:224: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(tris, t[0].getbuf(), t[0].length()*sizeof(tri));
data/cube2-0.0.20130404+dfsg/engine/bih.cpp:225: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(noclip, t[1].getbuf(), t[1].length()*sizeof(tri));
data/cube2-0.0.20130404+dfsg/engine/bih.cpp:250: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(nodes, buildnodes.getbuf(), numnodes*sizeof(BIHNode));
data/cube2-0.0.20130404+dfsg/engine/blend.cpp:403:17:  [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(dst, src, x2 - x1);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:809: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.
    static char brakstack[maxbrak];
data/cube2-0.0.20130404+dfsg/engine/command.cpp:849: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 c[sizeof(uint)];
data/cube2-0.0.20130404+dfsg/engine/command.cpp:853: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(end.c, word + len - endlen, endlen);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1038: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(&buf[len], str, n);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1049:17:  [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(&buf[len], start, str-start);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1409: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(code, buf.getbuf(), buf.length()*sizeof(uint));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:1657: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.
                char s[4] = { char((op>>8)&0xFF), char((op>>16)&0xFF), char((op>>24)&0xFF), '\0' };
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2172: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.
    static char brakstack[maxbrak];
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2738: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(&sorted[offset], item.quotestart, len);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2874:31:  [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.
CASECOMMAND(cases, "s", const char *, args[0].getstr(), args[i].type == VAL_NULL || !strcmp(args[i].getstr(), val));
data/cube2-0.0.20130404+dfsg/engine/console.cpp:30: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.
    static char buf[CONSTRLEN];
data/cube2-0.0.20130404+dfsg/engine/console.cpp:171: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 *actions[NUMACTIONS];
data/cube2-0.0.20130404+dfsg/engine/console.cpp:305:13:  [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(&commandbuf[commandlen], cb, decoded);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:621:18:  [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 *cmds[3] = { "bind", "specbind", "editbind" };
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:45: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 head[4];               // "CUBE"
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:50: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 maptitle[128];
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:320:51:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    for(int i = 0; i<n; i++, k++) memcpy(&world[k], t, sizeof(c_sqr));
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:326:21:  [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, t, sizeof(c_sqr));
data/cube2-0.0.20130404+dfsg/engine/grass.cpp:185:13:  [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(gv.color, color, sizeof(color)); \
data/cube2-0.0.20130404+dfsg/engine/iqm.h:5: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 magic[16];
data/cube2-0.0.20130404+dfsg/engine/iqm.h:251:21:  [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(animbones, skel->framebones, skel->numframes*skel->numbones*sizeof(dualquat));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:143: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(c.ext->surfaces, brightsurfaces, sizeof(brightsurfaces));
data/cube2-0.0.20130404+dfsg/engine/lightmap.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(c.ext->verts(), verts, numverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:189:47:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if(numbefore && c.ext != ext) memcpy(ext->verts(), c.ext->verts(), numbefore*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:222:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if(srcverts) memcpy(c.ext->verts() + dstoffset, srcverts, numsrcverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:327: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(dst, src, bpp * tw);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:947:13:  [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(w->colorbuf, color, 3);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:1461:17:  [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(&litverts[numlitverts], c.ext->verts() + surf.verts, numverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:1668:13:  [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(ext->verts(), litverts, numlitverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:1819:17:  [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(&litverts[numlitverts], c.ext->verts() + surf.verts, numverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:2407: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(dst, c, lm.bpp*LM_PACKW);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:2449:13:  [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(data, ambientcolor.v, 3);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:2631:13:  [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(skylight, skylightcolor.v, 3);
data/cube2-0.0.20130404+dfsg/engine/lightmap.cpp:2632:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        else memcpy(skylight, ambientcolor.v, 3);
data/cube2-0.0.20130404+dfsg/engine/main.cpp:917:34:  [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.
		union { IMAGEHLP_SYMBOL64 sym; char symext[sizeof(IMAGEHLP_SYMBOL64) + sizeof(string)]; };
data/cube2-0.0.20130404+dfsg/engine/main.cpp:929:32:  [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.
		union { IMAGEHLP_SYMBOL sym; char symext[sizeof(IMAGEHLP_SYMBOL) + sizeof(string)]; };
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1055:35:  [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).
            case 'd': dedicated = atoi(&argv[i][2]); if(dedicated<=0) dedicated = 2; break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1056:37:  [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).
            case 'w': scr_w = clamp(atoi(&argv[i][2]), SCR_MINW, SCR_MAXW); if(!findarg(argc, argv, "-h")) scr_h = -1; break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1057:37:  [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).
            case 'h': scr_h = clamp(atoi(&argv[i][2]), SCR_MINH, SCR_MAXH); if(!findarg(argc, argv, "-w")) scr_w = -1; break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1058:35:  [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).
            case 'z': depthbits = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1059:35:  [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).
            case 'b': colorbits = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1060:30:  [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).
            case 'a': fsaa = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1061:31:  [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).
            case 'v': vsync = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1062: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).
            case 't': fullscreen = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/main.cpp:1063:37:  [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).
            case 's': stencilbits = atoi(&argv[i][2]); break;
data/cube2-0.0.20130404+dfsg/engine/master.cpp:89:16:  [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.
        buf += sprintf(buf, "%d", ip.b[i]);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:152: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 input[INPUT_LIMIT];
data/cube2-0.0.20130404+dfsg/engine/master.cpp:715:24:  [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).
    if(argc>=3) port = atoi(argv[2]);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:721:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    logfile = fopen(logname, "a");
data/cube2-0.0.20130404+dfsg/engine/material.cpp:724:25:  [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(wcol, getwatercolor(m.material).v, 3);
data/cube2-0.0.20130404+dfsg/engine/material.cpp:725:25:  [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(wfcol, getwaterfallcolor(m.material).v, 3);
data/cube2-0.0.20130404+dfsg/engine/material.cpp:726:65:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        if(!wfcol[0] && !wfcol[1] && !wfcol[2]) memcpy(wfcol, wcol, 3);
data/cube2-0.0.20130404+dfsg/engine/md2.h:71: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       name[16];
data/cube2-0.0.20130404+dfsg/engine/md2.h:166:13:  [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(m.tcverts, tcgen.getbuf(), m.numverts*sizeof(tcvert));
data/cube2-0.0.20130404+dfsg/engine/md2.h:169:13:  [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(m.tris, trigen.getbuf(), m.numtris*sizeof(tri));
data/cube2-0.0.20130404+dfsg/engine/md3.h:12: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[64];
data/cube2-0.0.20130404+dfsg/engine/md3.h:30: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 id[4];
data/cube2-0.0.20130404+dfsg/engine/md3.h:32: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[64];
data/cube2-0.0.20130404+dfsg/engine/md3.h:40: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 id[4];
data/cube2-0.0.20130404+dfsg/engine/md3.h:41: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[64];
data/cube2-0.0.20130404+dfsg/engine/md3.h:157:21:  [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(tags[i].transform, tag.rotation, sizeof(tag.rotation));
data/cube2-0.0.20130404+dfsg/engine/md5.h:165:13:  [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[512];
data/cube2-0.0.20130404+dfsg/engine/md5.h:277:13:  [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[512];
data/cube2-0.0.20130404+dfsg/engine/md5.h:329:25:  [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(animbones, skel->framebones, skel->numframes*skel->numbones*sizeof(dualquat));
data/cube2-0.0.20130404+dfsg/engine/movie.cpp:206:10:  [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).
    bool open()
data/cube2-0.0.20130404+dfsg/engine/movie.cpp:781:13:  [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(sound, stream, len);
data/cube2-0.0.20130404+dfsg/engine/movie.cpp:917:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!file->open()) 
data/cube2-0.0.20130404+dfsg/engine/obj.h:38:13:  [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[512];
data/cube2-0.0.20130404+dfsg/engine/obj.h:62:21:  [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(curmesh->verts, verts.getbuf(), verts.length()*sizeof(vert)); \
data/cube2-0.0.20130404+dfsg/engine/obj.h:64:21:  [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(curmesh->tcverts, tcverts.getbuf(), tcverts.length()*sizeof(tcvert)); \
data/cube2-0.0.20130404+dfsg/engine/obj.h:70:21:  [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(curmesh->tris, tris.getbuf(), tris.length()*sizeof(tri)); \
data/cube2-0.0.20130404+dfsg/engine/octa.cpp:44:13:  [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(ext->verts(), c.ext->verts(), c.ext->maxverts*sizeof(vertinfo));
data/cube2-0.0.20130404+dfsg/engine/octa.cpp:1507: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(p.verts, verts2, numverts2*sizeof(pvert));
data/cube2-0.0.20130404+dfsg/engine/octa.cpp:1655: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(p.verts, verts, numverts*sizeof(pvert));
data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp:929: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 magic[4];
data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp:969: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(hdr.magic, "OEBR", 4);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:61: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(data, buf, len);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:110: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(edata, va->edata, 3*va->tris*sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:111: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(vdata, (uchar *)va->vdata + va->voffset*VTXSIZE, va->verts*VTXSIZE);
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:468:13:  [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(va->matbuf, matsurfs.getbuf(), matsurfs.length()*sizeof(materialsurface));
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:479:13:  [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(skydata, skyindices.getbuf(), va->sky*sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:480:13:  [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(skydata+va->sky, explicitskyindices.getbuf(), va->explicitsky*sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/octarender.cpp:517:25:  [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(curbuf, t.tris[l].getbuf(), t.tris[l].length() * sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:759: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(pvsnodes, origpvsnodes.getbuf(), origpvsnodes.length()*sizeof(pvsnode));
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:785: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(buf, outbuf.getbuf(), outbuf.length());
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:992: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(lockedpvs, &pvsbuf[d->offset + wbytes], len);
data/cube2-0.0.20130404+dfsg/engine/rendergl.cpp:806:18:  [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 rpnames[4] = { "fixed-function", "assembly shader", "GLSL shader", "assembly/GLSL shader" };
data/cube2-0.0.20130404+dfsg/engine/rendergl.cpp:1483: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(fogmatrix.v, m, sizeof(m));
data/cube2-0.0.20130404+dfsg/engine/renderparticles.cpp:749:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                loopi(4) memcpy(vs[i].color.v, col, sizeof(col)); \
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:5:20:  [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 loadsky(const char *basename, Texture *texs[6])
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:25:17:  [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(name+strlen(name)-3, "png");
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:47:13:  [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(name+strlen(name)-3, "png");
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:175: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, fcolor.v, 3);
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:180: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(color, v0.color, 4);
data/cube2-0.0.20130404+dfsg/engine/rendertarget.h:210:13:  [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(tiles, blurtiles, sizeof(blurtiles));
data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp:158: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(tstr, str, len);
data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp:343: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 colorstack[10];
data/cube2-0.0.20130404+dfsg/engine/renderva.cpp:178: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(oldvfcP, vfcP, sizeof(vfcP));
data/cube2-0.0.20130404+dfsg/engine/renderva.cpp:1364:17:  [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(cur.color, color.v, sizeof(color));
data/cube2-0.0.20130404+dfsg/engine/renderva.cpp:1437: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(cur.color, vslot.colorscale.v, sizeof(vslot.colorscale));
data/cube2-0.0.20130404+dfsg/engine/server.cpp:34:29:  [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(fname) logfile = fopen(fname, "w");
data/cube2-0.0.20130404+dfsg/engine/server.cpp:63: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.
    static char buf[LOGSTRLEN];
data/cube2-0.0.20130404+dfsg/engine/server.cpp:642: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.
                char hn[1024];
data/cube2-0.0.20130404+dfsg/engine/server.cpp:714:27:  [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.
struct logline { int len; char buf[LOGSTRLEN]; };
data/cube2-0.0.20130404+dfsg/engine/server.cpp:1104:42:  [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).
        case 'u': setvar("serveruprate", atoi(opt+2)); return true;
data/cube2-0.0.20130404+dfsg/engine/server.cpp:1105:40:  [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).
        case 'c': setvar("maxclients", atoi(opt+2)); return true;
data/cube2-0.0.20130404+dfsg/engine/server.cpp:1107:40:  [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).
        case 'j': setvar("serverport", atoi(opt+2)); return true; 
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:490: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 text[MAXTRANS];
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:676:35:  [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.
ICOMMAND(addserver, "sis", (const char *name, int *port, const char *password), addserver(name, *port, password[0] ? password : NULL));
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:676:64:  [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.
ICOMMAND(addserver, "sis", (const char *name, int *port, const char *password), addserver(name, *port, password[0] ? password : NULL));
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:677: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.
ICOMMAND(keepserver, "sis", (const char *name, int *port, const char *password), addserver(name, *port, password[0] ? password : NULL, true));
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:677:65:  [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.
ICOMMAND(keepserver, "sis", (const char *name, int *port, const char *password), addserver(name, *port, password[0] ? password : NULL, true));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:301:13:  [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(extparams, s.extparams, s.numextparams*sizeof(LocalShaderParamState));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1026: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(fogcoord, repfogcoord, afterfogcoord - fogcoord);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1032: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(fogoption, "TEMP emufogcolor;     ", fogoptionlen);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1040:13:  [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(str, " emufogcolor", colorlen);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1049: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(str, fogtcstr, fragfogcoordlen);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1870:37:  [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.
ICOMMAND(defvertexparam, "siffff", (char *name, int *n, float *x, float *y, float *z, float *w), addshaderparam(name[0] ? name : NULL, SHPARAM_VERTEX, *n, *x, *y, *z, *w));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1871: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.
ICOMMAND(defpixelparam, "siffff", (char *name, int *n, float *x, float *y, float *z, float *w), addshaderparam(name[0] ? name : NULL, SHPARAM_PIXEL, *n, *x, *y, *z, *w));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:2342:22:  [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 *names[4] = { "offset4", "offset5", "offset6", "offset7" };
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1529:29:  [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(vc.vdata, vverts.getbuf(), vverts.length()*sizeof(type)); \
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1565:17:  [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(edata, idxs.getbuf(), idxs.length()*sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/smd.h:120:21:  [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(mverts, mesh->verts, mesh->numverts*sizeof(vert));
data/cube2-0.0.20130404+dfsg/engine/smd.h:123:17:  [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(&mverts[mesh->numverts], verts.getbuf(), verts.length()*sizeof(vert));
data/cube2-0.0.20130404+dfsg/engine/smd.h:129:21:  [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(mtris, mesh->tris, mesh->numtris*sizeof(tri));
data/cube2-0.0.20130404+dfsg/engine/smd.h:132:17:  [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(&mtris[mesh->numtris], tris.getbuf(), tris.length()*sizeof(tri));
data/cube2-0.0.20130404+dfsg/engine/smd.h:252:13:  [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[512];
data/cube2-0.0.20130404+dfsg/engine/smd.h:356:13:  [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[512];
data/cube2-0.0.20130404+dfsg/engine/smd.h:384:17:  [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(framebones, skel->framebones, skel->numframes*skel->numbones*sizeof(dualquat));
data/cube2-0.0.20130404+dfsg/engine/smd.h:387:13:  [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(&framebones[skel->numframes*skel->numbones], animbones.getbuf(), numframes*skel->numbones*sizeof(dualquat));
data/cube2-0.0.20130404+dfsg/engine/sound.cpp:692:5:  [2] (buffer) wchar_t:
  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.
    wchar_t name[256];
data/cube2-0.0.20130404+dfsg/engine/textedit.h:45:40:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if(!grow(slen, "%s", str)) memcpy(text, str, slen + 1);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:50:13:  [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(text, str, slen);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:62:13:  [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(text, str, slen + 1);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:70:62:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if(!grow(len + slen, "%s%s", text ? text : "", str)) memcpy(&text[len], str, slen + 1);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:90:13:  [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[CHUNKSIZE];
data/cube2-0.0.20130404+dfsg/engine/textedit.h:123: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(&text[start], str, count);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:294:13:  [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(&str[offset], l.text, l.len);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:263: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(dst+xoffset*s.bpp, src, (s.w-xoffset)*s.bpp);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:264: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(dst, src+(s.w-xoffset)*s.bpp, xoffset*s.bpp);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:530:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            loopi(th) memcpy(&buf[i*tw*bpp], &((uchar *)pixels)[i*pitch], tw*bpp);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:874: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(dst, src, s.bpp*s.w);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1192: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(dfile + flen - 4, ".dds", 4);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1217:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int emphasis = atoi(arg[0]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1220:54:  [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).
        else if(!strncmp(cmd, "dup", len)) texdup(d, atoi(arg[0]), atoi(arg[1]));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1220:68:  [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).
        else if(!strncmp(cmd, "dup", len)) texdup(d, atoi(arg[0]), atoi(arg[1]));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1222:60:  [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).
        else if(!strncmp(cmd, "offset", len)) texoffset(d, atoi(arg[0]), atoi(arg[1]));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1222:74:  [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).
        else if(!strncmp(cmd, "offset", len)) texoffset(d, atoi(arg[0]), atoi(arg[1]));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1223:60:  [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).
        else if(!strncmp(cmd, "rotate", len)) texrotate(d, atoi(arg[0]), tex ? tex->type : 0);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1224:64:  [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).
        else if(!strncmp(cmd, "reorient", len)) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1224:80:  [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).
        else if(!strncmp(cmd, "reorient", len)) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1224:96:  [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).
        else if(!strncmp(cmd, "reorient", len)) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1225:64:  [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).
        else if(!strncmp(cmd, "mix", len)) texmix(d, *arg[0] ? atoi(arg[0]) : -1, *arg[1] ? atoi(arg[1]) : -1, *arg[2] ? atoi(arg[2]) : -1, *arg[3] ? atoi(arg[3]) : -1);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1225:93:  [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).
        else if(!strncmp(cmd, "mix", len)) texmix(d, *arg[0] ? atoi(arg[0]) : -1, *arg[1] ? atoi(arg[1]) : -1, *arg[2] ? atoi(arg[2]) : -1, *arg[3] ? atoi(arg[3]) : -1);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1225:122:  [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).
        else if(!strncmp(cmd, "mix", len)) texmix(d, *arg[0] ? atoi(arg[0]) : -1, *arg[1] ? atoi(arg[1]) : -1, *arg[2] ? atoi(arg[2]) : -1, *arg[3] ? atoi(arg[3]) : -1);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1225:151:  [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).
        else if(!strncmp(cmd, "mix", len)) texmix(d, *arg[0] ? atoi(arg[0]) : -1, *arg[1] ? atoi(arg[1]) : -1, *arg[2] ? atoi(arg[2]) : -1, *arg[3] ? atoi(arg[3]) : -1);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1229:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int emphasis = atoi(arg[0]), repeat = atoi(arg[1]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1229:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int emphasis = atoi(arg[0]), repeat = atoi(arg[1]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1236:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int scale = atoi(arg[0]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1246:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int w = atoi(arg[0]), h = atoi(arg[1]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1246:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int w = atoi(arg[0]), h = atoi(arg[1]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1701:23:  [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).
    if(tnum<0) tnum = atoi(type);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2722:40:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if(len > 4 && buf[len-4]=='.') memcpy(&buf[len-4], ".dds", 4);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2987: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.
const char *imageexts[NUMIMG] = { ".bmp", ".tga", ".png" };
data/cube2-0.0.20130404+dfsg/engine/vertmodel.h:434:29:  [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(vc.vdata, vverts.getbuf(), vverts.length()*sizeof(type)); \
data/cube2-0.0.20130404+dfsg/engine/vertmodel.h:460:17:  [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(edata, idxs.getbuf(), idxs.length()*sizeof(ushort));
data/cube2-0.0.20130404+dfsg/engine/water.cpp:531: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(wcol, getwatercolor(ref.material).v, 3);
data/cube2-0.0.20130404+dfsg/engine/world.h:12: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 magic[4];              // "OCTA"
data/cube2-0.0.20130404+dfsg/engine/world.h:26: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 magic[4];              // "OCTA"
data/cube2-0.0.20130404+dfsg/engine/world.h:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char maptitle[128];
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:890: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(hdr.magic, "OCTA", 4);
data/cube2-0.0.20130404+dfsg/fpsgame/ai.cpp:1366: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.
    const char *stnames[AI_S_MAX] = {
data/cube2-0.0.20130404+dfsg/fpsgame/aiman.h:10:22:  [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 defaults[2] = { "good", "evil" };
data/cube2-0.0.20130404+dfsg/fpsgame/capture.h:332:22:  [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 *basemodels[3] = { "base/neutral", "base/red", "base/blue" };
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:346:34:  [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.
    ICOMMAND(getclientnum, "s", (char *name), intret(name[0] ? parseplayer(name) : player1->clientnum));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:394:38:  [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.
    ICOMMAND(sauthkick, "ss", (const char *victim, const char *reason), if(servauth[0]) authkick(servauth, victim, reason));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:394:58:  [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.
    ICOMMAND(sauthkick, "ss", (const char *victim, const char *reason), if(servauth[0]) authkick(servauth, victim, reason));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:395:39:  [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.
    ICOMMAND(dauthkick, "sss", (const char *desc, const char *victim, const char *reason), if(desc[0]) authkick(desc, victim, reason));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:395:57:  [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.
    ICOMMAND(dauthkick, "sss", (const char *desc, const char *victim, const char *reason), if(desc[0]) authkick(desc, victim, reason));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:395:77:  [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.
    ICOMMAND(dauthkick, "sss", (const char *desc, const char *victim, const char *reason), if(desc[0]) authkick(desc, victim, reason));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:468:27:  [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.
    ICOMMAND(dauth, "s", (char *desc), if(desc[0]) tryauth(desc));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:1167:16:  [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 text[MAXTRANS];
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:1751:30:  [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 *fmt[2] = { "%s switched to team %s", "%s forced to team %s"};
data/cube2-0.0.20130404+dfsg/fpsgame/game.h:288: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 magic[16];
data/cube2-0.0.20130404+dfsg/fpsgame/game.h:631: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 team[MAXTEAMLEN+1];
data/cube2-0.0.20130404+dfsg/fpsgame/game.h:811:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *ffa, *blueteam, *redteam, *hudguns,
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:548:44:  [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).
            if(isdigit(mode[0])) modenum = atoi(mode);
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:774:46:  [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).
            case 'o': setvar("publicserver", atoi(&arg[2])); return true;
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:953:22:  [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 teamnames[2] = {"good", "evil"};
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1339: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 buf[2*sizeof(string)];
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2752: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 text[MAXTRANS];
data/cube2-0.0.20130404+dfsg/fpsgame/waypoint.cpp:682: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 magic[4];
data/cube2-0.0.20130404+dfsg/fpsgame/weapon.cpp:827:18:  [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 projnames[2] = { "projectiles/grenade", "projectiles/rocket" };
data/cube2-0.0.20130404+dfsg/fpsgame/weapon.cpp:828:18:  [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 gibnames[3] = { "gibs/gib01", "gibs/gib02", "gibs/gib03" };
data/cube2-0.0.20130404+dfsg/fpsgame/weapon.cpp:829:18:  [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 debrisnames[4] = { "debris/debris01", "debris/debris02", "debris/debris03", "debris/debris04" };
data/cube2-0.0.20130404+dfsg/fpsgame/weapon.cpp:830:18:  [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 barreldebrisnames[4] = { "barreldebris/debris01", "barreldebris/debris02", "barreldebris/debris03", "barreldebris/debris04" };
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:293:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy(dst, src, len) memcpy(dst, src, len)
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:315:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy      memcpy
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:317:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy(d, s, n)	bcopy((s), (d), (n))
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:325:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memcpy4(dst, src, len) memcpy(dst, src, (len)*4)
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:376:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SDL_memmove(d, s, n)	bcopy((s), (d), (n))
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:529:25:  [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).
#define SDL_atoi        atoi
data/cube2-0.0.20130404+dfsg/rpggame/entities.cpp:36:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void writeent(entity &e, char *buf) { memcpy(buf, ((rpgentity &)e).name, SPAWNNAMELEN); }
data/cube2-0.0.20130404+dfsg/rpggame/entities.cpp:39: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(((rpgentity &)e).name, buf, SPAWNNAMELEN); 
data/cube2-0.0.20130404+dfsg/rpggame/objset.cpp:160:96:  [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).
    ICOMMAND(r_contain,     "s",   (char *s), { stack[0]->decontain(); stack[1]->add(stack[0], atoi(s)); });     
data/cube2-0.0.20130404+dfsg/rpggame/rpg.h:9: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[SPAWNNAMELEN];
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:229: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(digits, y.digits, len*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:262:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if(i < x.len && this != &x) memcpy(&digits[i], &x.digits[i], (x.len - i)*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:279:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if(i < x.len && this != &x) memcpy(&digits[i], &x.digits[i], (x.len - i)*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:448: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(digits, result.digits, len*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:454:13:  [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.digits, &result.digits[192/BI_DIGIT_BITS], min(result.len-192/BI_DIGIT_BITS, 64/BI_DIGIT_BITS)*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:456:13:  [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.digits[64/BI_DIGIT_BITS], s.digits, 64/BI_DIGIT_BITS*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:464:17:  [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.digits[64/BI_DIGIT_BITS], &result.digits[256/BI_DIGIT_BITS], min(result.len-256/BI_DIGIT_BITS, 64/BI_DIGIT_BITS)*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:466:17:  [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.digits[128/BI_DIGIT_BITS], &s.digits[64/BI_DIGIT_BITS], 64/BI_DIGIT_BITS*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:473:21:  [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.digits, &result.digits[320/BI_DIGIT_BITS], min(result.len-320/BI_DIGIT_BITS, 64/BI_DIGIT_BITS)*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:475:21:  [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.digits[64/BI_DIGIT_BITS], s.digits, 64/BI_DIGIT_BITS*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:476:21:  [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.digits[128/BI_DIGIT_BITS], s.digits, 64/BI_DIGIT_BITS*sizeof(digit));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:554:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        else { len = C.len; memcpy(digits, C.digits, len*sizeof(digit)); }
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:743: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(privkey.digits, hash.bytes, sizeof(hash.bytes));
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:800: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(challenge.digits, hash.bytes, sizeof(hash.bytes));
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:84:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(filename, "wb");
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:228: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.
    static char buf[7];
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:252: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.
    static char file[256];
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:259: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.
    static char file[512];
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:309: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 file[256];
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:312:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(file, "w");
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:394:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    pad = atoi(argv[4]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:395:14:  [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).
    offset = atoi(argv[5]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:396:15:  [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).
    advance = atoi(argv[6]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:397:9:  [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).
    w = atoi(argv[7]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:398:9:  [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).
    h = atoi(argv[8]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:399:10:  [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).
    tw = atoi(argv[9]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:400:10:  [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).
    th = atoi(argv[10]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:401:24:  [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).
    if(argc > 11) sw = atoi(argv[11]);
data/cube2-0.0.20130404+dfsg/shared/cube2font.c:402:24:  [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).
    if(argc > 12) sh = atoi(argv[12]);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:335: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 home[MAX_PATH+1];
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:545:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:578:10:  [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).
    bool open(const char *name, const char *mode)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:581:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen(name, mode);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:589:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen(name, mode);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:591:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        file = tmpfile();
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:744:10:  [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).
    bool open(stream *f, const char *mode, bool needclose, int level)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:978:10:  [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).
    bool open(stream *f, const char *mode, bool needclose)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1063:13:  [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(&((uchar *)dst)[next], &buf[bufread], n);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1082:13:  [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(&((uchar *)dst)[next], &buf[bufread], n);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1112:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!file->open(found, mode)) { delete file; return NULL; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1138:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!gz->open(source, mode, !file, level)) { if(!file) delete source; return NULL; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1147:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!utf8->open(source, mode, !file)) { if(!file) delete source; return NULL; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:136: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.
typedef char string[MAXSTRLEN];
data/cube2-0.0.20130404+dfsg/shared/tools.h:206: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(&buf[len], (const void *)vals, min(maxlen-len, numvals)*sizeof(T));
data/cube2-0.0.20130404+dfsg/shared/tools.h:214: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(vals, (void *)&buf[len], read*sizeof(T));
data/cube2-0.0.20130404+dfsg/shared/tools.h:490:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if(v.ulen) memcpy(&buf[ulen], (void  *)v.buf, v.ulen*sizeof(T));
data/cube2-0.0.20130404+dfsg/shared/tools.h:538:13:  [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(newbuf, (void *)buf, olen*sizeof(T));
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:148: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(pname, src, namelen);
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:277:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(findfile(pname, "rb"), "rb");
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:370:10:  [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).
    bool open(ziparchive *a, zipfile *f)
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:533:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(s->open(arch, f)) return s;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:566:32:  [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.
ICOMMAND(addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:566:50:  [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.
ICOMMAND(addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:566:69:  [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.
ICOMMAND(addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/cube2-0.0.20130404+dfsg/engine/blend.cpp:801:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    type = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/blend.cpp:806:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int val = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/blend.cpp:814:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(f->read(node.image->data, sizeof(node.image->data)) != sizeof(node.image->data))
data/cube2-0.0.20130404+dfsg/engine/command.cpp:234:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(!end) end = line + strlen(line);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:747: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).
        len = int(strlen(s));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:760: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).
    if(prefix) { prefixlen = strlen(prefix); len += prefixlen; }
data/cube2-0.0.20130404+dfsg/engine/command.cpp:764: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).
        case VAL_STR: len += int(strlen(v[i].s)); break;
data/cube2-0.0.20130404+dfsg/engine/command.cpp:779:19:  [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.
        if(space) strcat(buf, " ");
data/cube2-0.0.20130404+dfsg/engine/command.cpp:860: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).
    compilestr(code, word, int(strlen(word)));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2329: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).
        int len = strlen(vstr);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2470:58:  [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).
    const char *start = args[0].getstr(), *end = start + strlen(start);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2483: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).
    int len = strlen(s), offset = clamp(*start, 0, len);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2516: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).
    int len = strlen(s);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2523: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).
    int len = strlen(s);
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2578: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).
                p.put(conj, strlen(conj));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2625: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).
        p.put(vals, strlen(vals));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2634:22:  [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).
            p.put(s, strlen(s));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2643:83:  [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).
ICOMMAND(indexof, "ss", (char *list, char *elem), intret(listincludes(list, elem, strlen(elem))));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2703: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).
    int macrolen = strlen(list), total = 0;
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2887: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).
ICOMMAND(strlen, "s", (char *s), intret(strlen(s)));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2887: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).
ICOMMAND(strlen, "s", (char *s), intret(strlen(s)));
data/cube2-0.0.20130404+dfsg/engine/command.cpp:2893:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int oldlen = strlen(oldval);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:63:95:  [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).
    draw_text(s, x, y, 0xFF, 0xFF, 0xFF, 0xFF, (commandpos>=0) ? (commandpos+1+(commandprompt?strlen(commandprompt):1)) : strlen(s), w);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:63:123:  [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).
    draw_text(s, x, y, 0xFF, 0xFF, 0xFF, 0xFF, (commandpos>=0) ? (commandpos+1+(commandprompt?strlen(commandprompt):1)) : strlen(s), w);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:208: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).
            names.put(km.name, strlen(km.name));
data/cube2-0.0.20130404+dfsg/engine/console.cpp:239: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).
    int len = strlen(action);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:294: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).
    size_t commandlen = strlen(commandbuf);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:316: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).
    size_t commandlen = strlen(commandbuf);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:328: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).
    size_t commandlen = strlen(commandbuf);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:366:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(commandpos >= (int)strlen(commandbuf)) commandpos = -1;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:489: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).
                if(strlen(commandbuf)) commandpos = 0;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:498: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).
                int len = (int)strlen(commandbuf);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:508: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).
                int len = (int)strlen(commandbuf), i = commandpos>=0 ? commandpos : len;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:519:57:  [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).
                else if(commandpos<0) commandpos = (int)strlen(commandbuf)-1;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:523:56:  [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(commandpos>=0 && ++commandpos>=(int)strlen(commandbuf)) commandpos = -1;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:539:58:  [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(commandpos>=0 && commandpos>=(int)strlen(commandbuf)) commandpos = -1;
data/cube2-0.0.20130404+dfsg/engine/console.cpp:551: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).
                    size_t len = (int)strlen(commandbuf);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:708: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).
        int dirlen = (int)strlen(dir);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:749:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cmdlen = strlen(cmdprefix);
data/cube2-0.0.20130404+dfsg/engine/console.cpp:757:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(!completesize) { completesize = (int)strlen(&s[cmdlen]); lastcomplete[0] = '\0'; }
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:270:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(&hdr, sizeof(c_header)-sizeof(int)*16);
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:293:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(&hdr.waterlevel, sizeof(int)*16);
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:304:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(&e, sizeof(c_persistent_entity));
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:314:27:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int type = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:319:32:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    int n = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:327:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:328:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:334:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->wtex = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:335:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->vdelta = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:336:45:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if(hdr.version<=2) { f->getchar(); f->getchar(); }
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:336:59:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if(hdr.version<=2) { f->getchar(); f->getchar(); }
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:352:35:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->floor = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:353:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->ceil = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:355:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->wtex = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:356:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->ftex = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:357:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->ctex = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:358:45:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if(hdr.version<=2) { f->getchar(); f->getchar(); }
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:358:59:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if(hdr.version<=2) { f->getchar(); f->getchar(); }
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:359:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->vdelta = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:360:53:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    s->utex = (hdr.version>=2) ? f->getchar() : s->wtex;
data/cube2-0.0.20130404+dfsg/engine/cubeloader.cpp:361:43:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if(hdr.version>=5) f->getchar();
data/cube2-0.0.20130404+dfsg/engine/iqm.h:300:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(f->read(&hdr, sizeof(hdr)) != sizeof(hdr) || memcmp(hdr.magic, "INTERQUAKEMODEL", sizeof(hdr.magic))) goto error;
data/cube2-0.0.20130404+dfsg/engine/iqm.h:305:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(f->read(buf + sizeof(hdr), hdr.filesize - sizeof(hdr)) != int(hdr.filesize - sizeof(hdr))) goto error;
data/cube2-0.0.20130404+dfsg/engine/iqm.h:359:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const char *fname = loadname + strlen(loadname);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:215: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).
    if(!len) len = strlen(msg);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:283: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).
        l->buf.put(cmd, strlen(cmd));
data/cube2-0.0.20130404+dfsg/engine/master.cpp:294:24:  [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->buf.put(header, strlen(header));
data/cube2-0.0.20130404+dfsg/engine/master.cpp:296:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int cmdlen = strlen(cmd);
data/cube2-0.0.20130404+dfsg/engine/master.cpp:583:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        else if(sscanf(c.input, "reqauth %u %100s", &id, user) == 2)
data/cube2-0.0.20130404+dfsg/engine/master.cpp:587:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        else if(sscanf(c.input, "confauth %u %100s", &id, val) == 2)
data/cube2-0.0.20130404+dfsg/engine/md2.h:134:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            file->read(&header, sizeof(md2_header));
data/cube2-0.0.20130404+dfsg/engine/md2.h:153:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int numglcommands = file->read(glcommands, header.numglcommands*sizeof(int))/sizeof(int);
data/cube2-0.0.20130404+dfsg/engine/md2.h:180:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                file->read(&frame, sizeof(md2_frame));
data/cube2-0.0.20130404+dfsg/engine/md2.h:183:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                file->read(tmpverts, header.numvertices*sizeof(md2_vertex));
data/cube2-0.0.20130404+dfsg/engine/md3.h:61:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(&header, sizeof(md3header));
data/cube2-0.0.20130404+dfsg/engine/md3.h:84:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(&mheader, sizeof(md3meshheader));
data/cube2-0.0.20130404+dfsg/engine/md3.h:95:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->read(&tri, sizeof(md3triangle)); // read the triangles
data/cube2-0.0.20130404+dfsg/engine/md3.h:103:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(m.tcverts, m.numverts*2*sizeof(float)); // read the UV data
data/cube2-0.0.20130404+dfsg/engine/md3.h:111:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->read(&v, sizeof(md3vertex)); // read the vertices
data/cube2-0.0.20130404+dfsg/engine/md3.h:137:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->read(&tag, sizeof(md3tag));
data/cube2-0.0.20130404+dfsg/engine/md5.h:101: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).
                    char *end = start + strlen(start)-1;
data/cube2-0.0.20130404+dfsg/engine/md5.h:307:28:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                        if(sscanf(buf, " %100s %d %d %d", h.name, &h.parent, &h.flags, &h.start)==4)
data/cube2-0.0.20130404+dfsg/engine/md5.h:408:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const char *fname = loadname + strlen(loadname);
data/cube2-0.0.20130404+dfsg/engine/movie.cpp:377: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).
        writechunk("ISFT", software, strlen(software)+1);
data/cube2-0.0.20130404+dfsg/engine/obj.h:27: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).
            int len = strlen(filename);
data/cube2-0.0.20130404+dfsg/engine/obj.h:98: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).
                        size_t namelen = strlen(name);
data/cube2-0.0.20130404+dfsg/engine/octaedit.cpp:1001:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&hdr, sizeof(hdr)) != sizeof(octabrushheader) || memcmp(hdr.magic, "OEBR", 4)) { delete f; conoutf(CON_ERROR, "brush %s has malformatted header", filename); return; }
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:1293:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    p->leafmask = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/pvs.cpp:1318:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f->read(pvsbuf.reserve(totallen).buf, totallen);
data/cube2-0.0.20130404+dfsg/engine/rendergl.cpp:196: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).
    int len = strlen(ext);
data/cube2-0.0.20130404+dfsg/engine/rendermodel.cpp:1007:22:  [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).
        buf.put(num, strlen(num));
data/cube2-0.0.20130404+dfsg/engine/renderparticles.cpp:954: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).
            if(info[0]) info[strlen(info)-1] = '\0';
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:25: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).
                strcpy(name+strlen(name)-3, "png");
data/cube2-0.0.20130404+dfsg/engine/rendersky.cpp:47: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).
            strcpy(name+strlen(name)-3, "png");
data/cube2-0.0.20130404+dfsg/engine/rendertext.cpp:156: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).
    int len = strlen(str);
data/cube2-0.0.20130404+dfsg/engine/server.cpp:52: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).
    int len = strlen(buf), carry = 0;
data/cube2-0.0.20130404+dfsg/engine/server.cpp:291:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file->read(p.subbuf(len).buf, len);
data/cube2-0.0.20130404+dfsg/engine/server.cpp:432:24:  [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).
    masterout.put(req, strlen(req));
data/cube2-0.0.20130404+dfsg/engine/server.cpp:789: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).
    int len = strlen(line.buf), carry = 0;
data/cube2-0.0.20130404+dfsg/engine/server.cpp:912: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).
    char *buf = new char[strlen(src) + 1], *dst = buf;
data/cube2-0.0.20130404+dfsg/engine/server.cpp:956:24:  [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).
        line.len = min(strlen(line.buf), sizeof(line.buf)-2);
data/cube2-0.0.20130404+dfsg/engine/serverbrowser.cpp:611:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int reqlen = strlen(req);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:72:69:  [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).
    glProgramStringARB_(type, GL_PROGRAM_FORMAT_ASCII_ARB, (GLsizei)strlen(def), def);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:81:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(err>=0 && err<(int)strlen(def))
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:122:62:  [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).
                fwrite(source, 1, next ? next - source + 1 : strlen(source), l); 
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:789:22:  [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).
    static int len = strlen("#pragma CUBE2_attrib");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:794:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if(sscanf(vs, "#pragma CUBE2_attrib %100s %d", name, &loc) == 2)
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:802:22:  [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).
    static int len = strlen("#pragma CUBE2_uniform");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:807:23:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        int numargs = sscanf(vs, "#pragma CUBE2_uniform %100s %100s %d %d", name, blockname, &binding, &stride);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:975: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).
        tc += strlen("result.texcoord[");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:991: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).
        tc += strlen("result.texcoord[");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1022: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).
    static const int fogcoordlen = strlen("result.fogcoord");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1027:92:  [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).
    vsbuf.insert(afterfogcoord - vsbuf.getbuf(), repfogcoord + (afterfogcoord - fogcoord), strlen(repfogcoord) - (afterfogcoord - fogcoord));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1031:37:  [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).
    static const int fogoptionlen = strlen("OPTION ARB_fog_linear;");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1036:37:  [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).
        static const int colorlen = strlen("result.color");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1045:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    static const int fragfogcoordlen = strlen("fragment.fogcoord.x");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1050:90:  [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).
        psbuf.insert(&str[fragfogcoordlen] - psbuf.getbuf(), &fogtcstr[fragfogcoordlen], strlen(fogtcstr) - fragfogcoordlen);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1061:24:  [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).
    psbuf.put(calcfog, strlen(calcfog)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1072: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).
    vsv.put(vs, strlen(vs)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1073: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).
    psv.put(ps, strlen(ps)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1075:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    static const int len = strlen("#pragma CUBE2_variant"), olen = strlen("override");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1075:68:  [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).
    static const int len = strlen("#pragma CUBE2_variant"), olen = strlen("override");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1126:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        vs.insert(vspragma-vs.getbuf(), fadedef, strlen(fadedef));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1128:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ps.insert(pspragma-ps.getbuf(), fadeuse, strlen(fadeuse));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1131:64:  [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).
        vs.insert(vsmain ? vsmain - vs.getbuf() : 0, fadedecl, strlen(fadedecl));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1132:64:  [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).
        ps.insert(psmain ? psmain - ps.getbuf() : 0, fadedecl, strlen(fadedecl));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1147: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).
            vs.insert(vspragma-vs.getbuf(), fadedef, strlen(fadedef));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1150: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).
            ps.insert(pspragma-ps.getbuf(), fadeuse, strlen(fadeuse));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1155: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).
            ps.insert(pspragma-ps.getbuf(), fogfade, strlen(fogfade));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1166: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).
    vsw.put(vs, strlen(vs)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1167: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).
    psw.put(ps, strlen(ps)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1205:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(pspragma, "#pragma CUBE2_dynlight %100s", pslight)!=1) return;
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1233: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).
                if(k<numlights) vsdl.put(pos, strlen(pos));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1234: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).
                else psdl.put(pos, strlen(pos));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1239: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).
                psdl.put(color, strlen(color));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1244: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).
                vsdl.put(dir, strlen(dir));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1245: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).
                psdl.put(dir, strlen(dir));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1273: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).
            if(k < numlights) vsdl.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1274: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).
            else psdl.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1299: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).
            psdl.put(dl, strlen(dl));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1302:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        vsdl.put(vspragma, strlen(vspragma)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1303:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        psdl.put(pspragma, strlen(pspragma)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1336:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(pspragma, "#pragma CUBE2_shadowmap %100s", pslight)!=1) return;
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1355:22:  [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).
        vssm.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1356:22:  [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).
        pssm.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1360: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).
        pssm.put(smtex, strlen(smtex));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1371:22:  [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).
        vssm.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1381:22:  [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).
        pssm.put(sm, strlen(sm));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1385: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).
        pssm.put(smlight, strlen(smlight));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1394:22:  [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).
        vssm.put(tc, strlen(tc));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1410:22:  [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).
        pssm.put(sm, strlen(sm));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1415:22:  [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).
        pssm.put(sm, strlen(sm));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1426:24:  [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).
    vssm.put(vspragma, strlen(vspragma)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1427:24:  [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).
    pssm.put(pspragma, strlen(pspragma)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1443: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).
    static const int pragmalen = strlen("#pragma CUBE2_fog");
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1458:56:  [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(clen <= 0) { vspragma = "gl_Vertex"; clen = strlen(vspragma); }
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1459: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).
        vsbuf.put(vsdef, strlen(vsdef));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1461: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).
        vsbuf.put(vsfog, strlen(vsfog));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1462: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).
        vsbuf.put(vsend, strlen(vsend)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1482: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).
        if(clen <= 0) { pspragma = "gl_Fog.color"; clen = strlen(pspragma); }
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1483: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).
        psbuf.put(psdef, strlen(psdef));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1485: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).
        psbuf.put(psfog, strlen(psfog));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1486: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).
        psbuf.put(psend, strlen(psend)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1500:24:  [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).
        vsbuf.put(uni, strlen(uni));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1501:24:  [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).
        psbuf.put(uni, strlen(uni));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1506:24:  [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).
        vsbuf.put(uni, strlen(uni));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1507:24:  [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).
        psbuf.put(uni, strlen(uni));
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1509: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).
    vsbuf.put(vsmain, strlen(vsmain)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1510: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).
    psbuf.put(psmain, strlen(psmain)+1);
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1624:62:  [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(vsbuf.length()) { vsbak.setsize(0); vsbak.put(vs, strlen(vs)+1); vs = vsbak.getbuf(); vsbuf.setsize(0); } \
data/cube2-0.0.20130404+dfsg/engine/shader.cpp:1625:62:  [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(psbuf.length()) { psbak.setsize(0); psbak.put(ps, strlen(ps)+1); ps = psbak.getbuf(); psbuf.setsize(0); } \
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:647: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).
            int len = sep ? strlen(name) : 0;
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1265:61:  [1] (buffer) mismatch:
  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.
                loopj(numanimparts) if(c.as[j]!=as[j]) goto mismatch;
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1266:132:  [1] (buffer) mismatch:
  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.
                if(c.pitch != pitch || c.partmask != partmask || c.ragdoll != rdata || (rdata && c.millis < rdata->lastmove)) goto mismatch;
data/cube2-0.0.20130404+dfsg/engine/skelmodel.h:1270:13:  [1] (buffer) mismatch:
  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.
            mismatch:
data/cube2-0.0.20130404+dfsg/engine/smd.h:425:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const char *fname = loadname + strlen(loadname);
data/cube2-0.0.20130404+dfsg/engine/sound.cpp:723:28:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            if(mumbleinfo) wcsncpy(mumbleinfo->name, L"Sauerbraten", 256);
data/cube2-0.0.20130404+dfsg/engine/sound.cpp:731:48:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            if(mumbleinfo != (MumbleInfo *)-1) wcsncpy(mumbleinfo->name, L"Sauerbraten", 256);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:44: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).
            slen = strlen(str);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:58: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).
        int slen = strlen(str);
data/cube2-0.0.20130404+dfsg/engine/textedit.h: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).
        int slen = strlen(str);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:74:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(stream *f, int chop = -1)
data/cube2-0.0.20130404+dfsg/engine/textedit.h:80: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).
            len += strlen(&text[len]);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:93:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int blen = strlen(buf);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:119: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).
        if(count <= 0) count = strlen(str);
data/cube2-0.0.20130404+dfsg/engine/textedit.h:196:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while(lines.add().read(file, maxx) && (maxy < 0 || lines.length() <= maxy));
data/cube2-0.0.20130404+dfsg/engine/textedit.h:706: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).
        s.put(editors[i]->name, strlen(editors[i]->name));
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:1187: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).
    int flen = strlen(file);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2651:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(f->read(magic, 4) != 4 || memcmp(magic, "DDS ", 4)) { delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2653:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(f->read(&d, sizeof(d)) != sizeof(d)) { delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2679:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(f->read(image.data, size) != size) { delete f; image.cleanup(); return false; }
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2721: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).
        int len = strlen(buf);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2991: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).
    int len = strlen(filename);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:2994:22:  [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 extlen = strlen(imageexts[i]);
data/cube2-0.0.20130404+dfsg/engine/texture.cpp:3041: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).
        int len = strlen(buf);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:59:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(f->read(&hdr, 7*sizeof(int))!=int(7*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:66:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&chdr.lightprecision, sizeof(chdr) - 7*sizeof(int)) != int(sizeof(chdr) - 7*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:72:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&hdr.blendmap, sizeof(hdr) - (7+extra)*sizeof(int)) != int(sizeof(hdr) - (7+extra)*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:91:23:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int type = f->getchar(), ilen = f->getlil<ushort>();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:107:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int len = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:108:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(gametype, len+1);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:135:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(&e, sizeof(entity));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:496:21:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int octsav = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:506:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case OCTSAV_NORMAL: f->read(c.edges, 12); break;
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:509:48:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    loopi(6) c.texture[i] = mapversion<14 ? f->getchar() : f->getlil<ushort>();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:513:25:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uchar mask = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:516:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int mat = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:535:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    f->read(&surfaces[i], sizeof(surfacecompat));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:549:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        if(mask & 0x40) { hasnorms |= 1<<i; f->read(&normals[i], sizeof(normalscompat)); }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:574:33:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int merged = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:578:35:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    int mask = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:585:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            f->read(m, sizeof(mergecompat));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:609:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int mat = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:614:39:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(octsav&0x80) c.merged = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:618:27:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            surfmask = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:619:29:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            totalverts = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:627:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(&surf, sizeof(surfaceinfo));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:744: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).
            f->putlil<ushort>(strlen(p.name));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:745: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).
            f->write(p.name, strlen(p.name));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:814:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(name, min(nlen, MAXSTRLEN-1));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:913: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).
        f->putlil<ushort>(strlen(id.name));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:914: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).
        f->write(id.name, strlen(id.name));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:929:35:  [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).
                f->putlil<ushort>(strlen(*id.storage.s));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:930: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).
                f->write(*id.storage.s, strlen(*id.storage.s));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:937: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).
    f->putchar((int)strlen(game::gameident()));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:938: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).
    f->write(game::gameident(), (int)strlen(game::gameident())+1);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1003:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(f->read(&hdr, 7*sizeof(int))!=int(7*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1010:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&chdr.lightprecision, sizeof(chdr) - 7*sizeof(int)) != int(sizeof(chdr) - 7*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1016:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&hdr.blendmap, sizeof(hdr) - (7+extra)*sizeof(int)) != int(sizeof(hdr) - (7+extra)*sizeof(int))) { conoutf(CON_ERROR, "map %s has malformatted header", ogzname); delete f; return false; }
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1071:23:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int type = f->getchar(), ilen = f->getlil<ushort>();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1073:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(name, min(ilen, MAXSTRLEN-1));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1100:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(val, min(slen, MAXSTRLEN-1));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1117:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int len = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1118:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(gametype, len+1);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1130:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(extras.pad(extrasize), extrasize);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1138:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(oldtl, sizeof(oldtl));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1156:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f->read(&e, sizeof(entity));
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1164:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(einfosize > 0) f->read(ebuf, einfosize);
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1217:31:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int type = f->getchar();
data/cube2-0.0.20130404+dfsg/engine/worldio.cpp:1227:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(lm.data, lm.bpp * LM_PACKW * LM_PACKH);
data/cube2-0.0.20130404+dfsg/fpsgame/capture.h:772: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).
            buf.put(basenum, strlen(basenum));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:356: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).
            buf.put(cn, strlen(cn));
data/cube2-0.0.20130404+dfsg/fpsgame/client.cpp:363: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).
            buf.put(cn, strlen(cn));
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1043: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).
        char *timestr = ctime(&t), *trim = timestr + strlen(timestr);
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1050:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        demotmp->read(d.data, len);
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1185:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        else if(demoplayback->read(&hdr, sizeof(demoheader))!=sizeof(demoheader) || memcmp(hdr.magic, DEMO_MAGIC, sizeof(hdr.magic)))
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1205:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(demoplayback->read(&nextplayback, sizeof(nextplayback))!=sizeof(nextplayback))
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1220:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(demoplayback->read(&chan, sizeof(chan))!=sizeof(chan) ||
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1221:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               demoplayback->read(&len, sizeof(len))!=sizeof(len))
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1229:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(!packet || demoplayback->read(packet->data+1, len)!=len)
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1239:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(demoplayback->read(&nextplayback, sizeof(nextplayback))!=sizeof(nextplayback))
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:1341: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).
        copystring(&buf[strlen(buf)], pwd);
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2682:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        else if(sscanf(cmd, "chalauth %u %255s", &id, val) == 2)
data/cube2-0.0.20130404+dfsg/fpsgame/server.cpp:2686:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        else if(sscanf(cmd, "addgban %100s", val) == 1)
data/cube2-0.0.20130404+dfsg/fpsgame/waypoint.cpp:683:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(magic, 4) < 4 || memcmp(magic, "OWPT", 4)) { delete f; return; }
data/cube2-0.0.20130404+dfsg/fpsgame/waypoint.cpp:698:31:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int numlinks = f->getchar(), k = 0;
data/cube2-0.0.20130404+dfsg/include/SDL_rwops.h:53:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
data/cube2-0.0.20130404+dfsg/include/SDL_rwops.h:124:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define SDL_RWread(ctx, ptr, size, n)	(ctx)->read(ctx, ptr, size, n)
data/cube2-0.0.20130404+dfsg/include/SDL_stdinc.h:395: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).
#define SDL_strlen      strlen
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:741:43:  [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).
    tiger::hash((const uchar *)seed, (int)strlen(seed), hash);
data/cube2-0.0.20130404+dfsg/shared/crypto.cpp:760: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).
    tiger::hash((uchar *)str, strlen(str), hv);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:215: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).
            size_t len = strlen(tmp);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:251: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).
                memmove(prevdir, curdir+1, strlen(curdir+1)+1);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:257: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).
                memmove(prevdir, curdir+4, strlen(curdir+4)+1);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:281: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).
    const char *p = directory + strlen(directory);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:303:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(path);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:319:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(dir);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:344:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        concatstring(dst, sub+(*sub == '~' ? 1 : strlen("$HOME")));
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:366: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).
        static int len = strlen("packages");
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:374:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pf.dirlen = filter ? filter-pdir : strlen(pdir);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:376: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).
    pf.filterlen = filter ? strlen(filter) : 0;
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:415: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).
    int extsize = ext ? (int)strlen(ext)+1 : 0;
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:426: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).
                int namelength = (int)strlen(FindFileData.cFileName) - extsize; 
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:445: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).
                int namelength = (int)strlen(de->d_name) - extsize;
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:462: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).
    int dirlen = (int)strlen(dirname);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:497:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return f->read(buf, size*nmemb)/size;
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:536:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(read(&str[i], 1) != 1) { str[i] = '\0'; return i > 0; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:627:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(void *buf, int len) { return (int)fread(buf, 1, len, file); }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:629:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int getchar() { return fgetc(file); }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:629:28:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int getchar() { return fgetc(file); }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:699:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int n = file->read(zfile.next_in + zfile.avail_in, size);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:855:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while(read(skip, sizeof(skip)) == sizeof(skip));
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:882:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(read(skip, skipped) != skipped) { stopreading(); return false; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:889:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(void *buf, int len)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:961:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int n = file->read(&buf[buflen], min(size, BUFSIZE - buflen));
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:972:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int n = file->read(buf, 3);
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1030:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while(read(skip, sizeof(skip)) == sizeof(skip));
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1048:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(read(skip, skipped) != skipped) { stopreading(); return false; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1055:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(void *dst, int len)
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1162:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(buf, 3) != 3) { delete f; delete[] buf; return NULL; }
data/cube2-0.0.20130404+dfsg/shared/stream.cpp:1166:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int rlen = f->read(&buf[offset], len-offset);
data/cube2-0.0.20130404+dfsg/shared/tools.h:139:75:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:140:91:  [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).
inline char *concatstring(char *d, const char *s, size_t len = MAXSTRLEN) { size_t used = strlen(d); return used < len ? copystring(d+used, s, len-used) : d; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:213:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(read<numvals) flags |= OVERREAD;
data/cube2-0.0.20130404+dfsg/shared/tools.h:214:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        memcpy(vals, (void *)&buf[len], read*sizeof(T));
data/cube2-0.0.20130404+dfsg/shared/tools.h:215:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len += read;
data/cube2-0.0.20130404+dfsg/shared/tools.h:216:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;
data/cube2-0.0.20130404+dfsg/shared/tools.h:1026:71:  [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).
inline char *newstring(const char *s)           { return newstring(s, strlen(s));          }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1066:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef getchar
data/cube2-0.0.20130404+dfsg/shared/tools.h:1067:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/cube2-0.0.20130404+dfsg/shared/tools.h:1093:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read(void *buf, int len) { return 0; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1095:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int getchar() { uchar c; return read(&c, 1) == 1 ? c : -1; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1095:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int getchar() { uchar c; return read(&c, 1) == 1 ? c : -1; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1098:62:  [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).
    virtual bool putstring(const char *str) { int len = (int)strlen(str); return write(str, len) == len; }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1108:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template<class T> int get(T *v, int n) { return read(v, n*sizeof(T))/sizeof(T); }
data/cube2-0.0.20130404+dfsg/shared/tools.h:1109:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template<class T> T get() { T n; return read(&n, sizeof(n)) == sizeof(n) ? n : 0; }
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:213: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).
    int striplen = stripdir ? (int)strlen(stripdir) : 0;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:267: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).
    int plen = (int)strlen(pname);
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:307: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).
    int plen = (int)strlen(pname);
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:475:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(read(skip, skipped) != skipped) return false;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:483:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(void *buf, int len)
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:541: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).
    int extsize = ext ? (int)strlen(ext)+1 : 0, dirsize = (int)strlen(dir), dirs = 0;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:541:64:  [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 extsize = ext ? (int)strlen(ext)+1 : 0, dirsize = (int)strlen(dir), dirs = 0;
data/cube2-0.0.20130404+dfsg/shared/zip.cpp:555: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).
                int namelength = (int)strlen(name) - extsize;

ANALYSIS SUMMARY:

Hits = 693
Lines analyzed = 108093 in approximately 2.89 seconds (37419 lines/second)
Physical Source Lines of Code (SLOC) = 92254
Hits@level = [0] 126 [1] 314 [2] 264 [3]   2 [4] 113 [5]   0
Hits@level+ = [0+] 819 [1+] 693 [2+] 379 [3+] 115 [4+] 113 [5+]   0
Hits/KSLOC@level+ = [0+] 8.87766 [1+] 7.51187 [2+] 4.10822 [3+] 1.24656 [4+] 1.22488 [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.