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/redeclipse-1.6.0/src/game/defendmode.h
Examining data/redeclipse-1.6.0/src/game/server.cpp
Examining data/redeclipse-1.6.0/src/game/weapons.cpp
Examining data/redeclipse-1.6.0/src/game/weapdef.h
Examining data/redeclipse-1.6.0/src/game/projs.cpp
Examining data/redeclipse-1.6.0/src/game/defend.cpp
Examining data/redeclipse-1.6.0/src/game/teamdef.h
Examining data/redeclipse-1.6.0/src/game/bomber.h
Examining data/redeclipse-1.6.0/src/game/entities.cpp
Examining data/redeclipse-1.6.0/src/game/ai.h
Examining data/redeclipse-1.6.0/src/game/aiman.h
Examining data/redeclipse-1.6.0/src/game/gamemode.h
Examining data/redeclipse-1.6.0/src/game/capture.h
Examining data/redeclipse-1.6.0/src/game/auth.h
Examining data/redeclipse-1.6.0/src/game/capture.cpp
Examining data/redeclipse-1.6.0/src/game/physics.cpp
Examining data/redeclipse-1.6.0/src/game/game.cpp
Examining data/redeclipse-1.6.0/src/game/scoreboard.cpp
Examining data/redeclipse-1.6.0/src/game/client.cpp
Examining data/redeclipse-1.6.0/src/game/game.h
Examining data/redeclipse-1.6.0/src/game/compass.h
Examining data/redeclipse-1.6.0/src/game/bombermode.h
Examining data/redeclipse-1.6.0/src/game/player.h
Examining data/redeclipse-1.6.0/src/game/duelmut.h
Examining data/redeclipse-1.6.0/src/game/hud.cpp
Examining data/redeclipse-1.6.0/src/game/vars.h
Examining data/redeclipse-1.6.0/src/game/defend.h
Examining data/redeclipse-1.6.0/src/game/weapons.h
Examining data/redeclipse-1.6.0/src/game/ai.cpp
Examining data/redeclipse-1.6.0/src/game/bomber.cpp
Examining data/redeclipse-1.6.0/src/game/waypoint.cpp
Examining data/redeclipse-1.6.0/src/game/playerdef.h
Examining data/redeclipse-1.6.0/src/game/capturemode.h
Examining data/redeclipse-1.6.0/src/engine/rendergl.cpp
Examining data/redeclipse-1.6.0/src/engine/textedit.h
Examining data/redeclipse-1.6.0/src/engine/server.cpp
Examining data/redeclipse-1.6.0/src/engine/depthfx.h
Examining data/redeclipse-1.6.0/src/engine/bih.cpp
Examining data/redeclipse-1.6.0/src/engine/movie.cpp
Examining data/redeclipse-1.6.0/src/engine/iqm.h
Examining data/redeclipse-1.6.0/src/engine/octaedit.cpp
Examining data/redeclipse-1.6.0/src/engine/material.cpp
Examining data/redeclipse-1.6.0/src/engine/pvs.cpp
Examining data/redeclipse-1.6.0/src/engine/rendermodel.cpp
Examining data/redeclipse-1.6.0/src/engine/world.cpp
Examining data/redeclipse-1.6.0/src/engine/shader.cpp
Examining data/redeclipse-1.6.0/src/engine/rendertarget.h
Examining data/redeclipse-1.6.0/src/engine/md5.h
Examining data/redeclipse-1.6.0/src/engine/irc.h
Examining data/redeclipse-1.6.0/src/engine/decal.cpp
Examining data/redeclipse-1.6.0/src/engine/master.cpp
Examining data/redeclipse-1.6.0/src/engine/lightmap.h
Examining data/redeclipse-1.6.0/src/engine/dynlight.cpp
Examining data/redeclipse-1.6.0/src/engine/lightmap.cpp
Examining data/redeclipse-1.6.0/src/engine/sound.cpp
Examining data/redeclipse-1.6.0/src/engine/engine.h
Examining data/redeclipse-1.6.0/src/engine/model.h
Examining data/redeclipse-1.6.0/src/engine/normal.cpp
Examining data/redeclipse-1.6.0/src/engine/blob.cpp
Examining data/redeclipse-1.6.0/src/engine/bih.h
Examining data/redeclipse-1.6.0/src/engine/octarender.cpp
Examining data/redeclipse-1.6.0/src/engine/glare.cpp
Examining data/redeclipse-1.6.0/src/engine/skelmodel.h
Examining data/redeclipse-1.6.0/src/engine/rendersky.cpp
Examining data/redeclipse-1.6.0/src/engine/smd.h
Examining data/redeclipse-1.6.0/src/engine/shadowmap.cpp
Examining data/redeclipse-1.6.0/src/engine/texture.cpp
Examining data/redeclipse-1.6.0/src/engine/physics.cpp
Examining data/redeclipse-1.6.0/src/engine/water.cpp
Examining data/redeclipse-1.6.0/src/engine/rendertext.cpp
Examining data/redeclipse-1.6.0/src/engine/ui.cpp
Examining data/redeclipse-1.6.0/src/engine/client.cpp
Examining data/redeclipse-1.6.0/src/engine/octa.h
Examining data/redeclipse-1.6.0/src/engine/blend.cpp
Examining data/redeclipse-1.6.0/src/engine/sound.h
Examining data/redeclipse-1.6.0/src/engine/lightning.h
Examining data/redeclipse-1.6.0/src/engine/md2.h
Examining data/redeclipse-1.6.0/src/engine/mpr.h
Examining data/redeclipse-1.6.0/src/engine/octa.cpp
Examining data/redeclipse-1.6.0/src/engine/scale.h
Examining data/redeclipse-1.6.0/src/engine/version.h
Examining data/redeclipse-1.6.0/src/engine/animmodel.h
Examining data/redeclipse-1.6.0/src/engine/lensflare.h
Examining data/redeclipse-1.6.0/src/engine/ragdoll.h
Examining data/redeclipse-1.6.0/src/engine/renderparticles.cpp
Examining data/redeclipse-1.6.0/src/engine/world.h
Examining data/redeclipse-1.6.0/src/engine/vertmodel.h
Examining data/redeclipse-1.6.0/src/engine/menus.cpp
Examining data/redeclipse-1.6.0/src/engine/irc.cpp
Examining data/redeclipse-1.6.0/src/engine/serverbrowser.cpp
Examining data/redeclipse-1.6.0/src/engine/command.cpp
Examining data/redeclipse-1.6.0/src/engine/texture.h
Examining data/redeclipse-1.6.0/src/engine/renderva.cpp
Examining data/redeclipse-1.6.0/src/engine/grass.cpp
Examining data/redeclipse-1.6.0/src/engine/worldio.cpp
Examining data/redeclipse-1.6.0/src/engine/genkey.cpp
Examining data/redeclipse-1.6.0/src/engine/obj.h
Examining data/redeclipse-1.6.0/src/engine/console.cpp
Examining data/redeclipse-1.6.0/src/engine/explosion.h
Examining data/redeclipse-1.6.0/src/engine/md3.h
Examining data/redeclipse-1.6.0/src/engine/main.cpp
Examining data/redeclipse-1.6.0/src/shared/iengine.h
Examining data/redeclipse-1.6.0/src/shared/crypto.cpp
Examining data/redeclipse-1.6.0/src/shared/glemu.h
Examining data/redeclipse-1.6.0/src/shared/geom.cpp
Examining data/redeclipse-1.6.0/src/shared/command.h
Examining data/redeclipse-1.6.0/src/shared/geom.h
Examining data/redeclipse-1.6.0/src/shared/zip.cpp
Examining data/redeclipse-1.6.0/src/shared/tools.h
Examining data/redeclipse-1.6.0/src/shared/tools.cpp
Examining data/redeclipse-1.6.0/src/shared/igame.h
Examining data/redeclipse-1.6.0/src/shared/cube2font.c
Examining data/redeclipse-1.6.0/src/shared/glemu.cpp
Examining data/redeclipse-1.6.0/src/shared/glexts.h
Examining data/redeclipse-1.6.0/src/shared/ents.h
Examining data/redeclipse-1.6.0/src/shared/stream.cpp
Examining data/redeclipse-1.6.0/src/shared/cube.h
Examining data/redeclipse-1.6.0/src/xcode/SDLMain.h
Examining data/redeclipse-1.6.0/src/xcode/ConsoleView.h

FINAL RESULTS:

data/redeclipse-1.6.0/src/engine/animmodel.h:336: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/redeclipse-1.6.0/src/engine/animmodel.h:601: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/command.cpp:368: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/redeclipse-1.6.0/src/engine/command.cpp:394: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/redeclipse-1.6.0/src/engine/command.cpp:402: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/redeclipse-1.6.0/src/engine/command.cpp:439: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/redeclipse-1.6.0/src/engine/command.cpp:527: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/redeclipse-1.6.0/src/engine/command.cpp:593: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/redeclipse-1.6.0/src/engine/command.cpp:599: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/redeclipse-1.6.0/src/engine/command.cpp:605: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/redeclipse-1.6.0/src/engine/command.cpp:616: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/redeclipse-1.6.0/src/engine/command.cpp:627: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/redeclipse-1.6.0/src/engine/command.cpp:637: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/redeclipse-1.6.0/src/engine/command.cpp:719: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/redeclipse-1.6.0/src/engine/command.cpp:720: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/redeclipse-1.6.0/src/engine/command.cpp:724: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/redeclipse-1.6.0/src/engine/command.cpp:737: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/redeclipse-1.6.0/src/engine/command.cpp:1523: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/redeclipse-1.6.0/src/engine/command.cpp:1991: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/redeclipse-1.6.0/src/engine/command.cpp:2200: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/redeclipse-1.6.0/src/engine/console.cpp:78: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/redeclipse-1.6.0/src/engine/console.cpp:632: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/redeclipse-1.6.0/src/engine/console.cpp:732: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/redeclipse-1.6.0/src/engine/console.cpp:747: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/redeclipse-1.6.0/src/engine/console.cpp:755: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/redeclipse-1.6.0/src/engine/console.cpp:843: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(s);
data/redeclipse-1.6.0/src/engine/console.cpp:864: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(s);
data/redeclipse-1.6.0/src/engine/lightmap.cpp:416: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/redeclipse-1.6.0/src/engine/master.cpp:546:18:  [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(authusers.access(name))
data/redeclipse-1.6.0/src/engine/master.cpp:566: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(serverauthusers.access(name))
data/redeclipse-1.6.0/src/engine/master.cpp:611: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.
    authuser *u = authusers.access(name);
data/redeclipse-1.6.0/src/engine/master.cpp:640: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.
    authuser *u = serverauthusers.access(name);
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/menus.cpp:187: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.
    menu *m = menus.access(name);
data/redeclipse-1.6.0/src/engine/menus.cpp:666: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.
    menu *m = menus.access(name);
data/redeclipse-1.6.0/src/engine/menus.cpp:692: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.
    menu *m = menus.access(name);
data/redeclipse-1.6.0/src/engine/menus.cpp:934: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.
    menu *m = menus.access("loading");
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/normal.cpp:225: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/redeclipse-1.6.0/src/engine/normal.cpp:225: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/octa.cpp:1647: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/redeclipse-1.6.0/src/engine/octa.cpp:1735: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/redeclipse-1.6.0/src/engine/octaedit.cpp:1211: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.
    prefab *p = prefabs.access(name);
data/redeclipse-1.6.0/src/engine/octaedit.cpp:1224: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.
    prefab *b = prefabs.access(name);
data/redeclipse-1.6.0/src/engine/octaedit.cpp:1261: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.
   prefab *b = prefabs.access(name);
data/redeclipse-1.6.0/src/engine/octarender.cpp:29: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/redeclipse-1.6.0/src/engine/octarender.cpp:318: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/redeclipse-1.6.0/src/engine/octarender.cpp:332: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/redeclipse-1.6.0/src/engine/octarender.cpp:984: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/redeclipse-1.6.0/src/engine/pvs.cpp:788: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/redeclipse-1.6.0/src/engine/rendergl.cpp:219: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.
    return glexts.access(ext)!=NULL;
data/redeclipse-1.6.0/src/engine/rendermodel.cpp:387: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.
    if(!name || !name[0] || models.access(name)) return;
data/redeclipse-1.6.0/src/engine/rendermodel.cpp:445: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.
    model **mm = models.access(name);
data/redeclipse-1.6.0/src/engine/rendermodel.cpp:466:16:  [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.
        models.access(m->name, m);
data/redeclipse-1.6.0/src/engine/rendermodel.cpp:491: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.
    model **m = models.access(name);
data/redeclipse-1.6.0/src/engine/rendertext.cpp:111: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/redeclipse-1.6.0/src/engine/rendertext.cpp:115:42:  [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(execfile(n, false)) f = fonts.access(name);
data/redeclipse-1.6.0/src/engine/server.cpp:150:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    str += sprintf(str, "[%s] ", ipinfotypes[clamp(info.type, 0, int(ipinfo::MAXTYPES)-1)]);
data/redeclipse-1.6.0/src/engine/server.cpp:1052:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(nid.szTip, apptip);
data/redeclipse-1.6.0/src/engine/server.cpp:1068:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(nid.szTip, apptip);
data/redeclipse-1.6.0/src/engine/shader.cpp:49: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/redeclipse-1.6.0/src/engine/shader.cpp:234: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.
    return localparams.access(name, int(localparams.numelems));
data/redeclipse-1.6.0/src/engine/shader.cpp:257: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.
    GlobalShaderParamState *param = globalparams.access(name);
data/redeclipse-1.6.0/src/engine/shader.cpp:316: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.
    GlobalShaderParamState *param = globalparams.access(name);
data/redeclipse-1.6.0/src/engine/shader.cpp:586: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/redeclipse-1.6.0/src/engine/shader.cpp:994: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/redeclipse-1.6.0/src/engine/shader.cpp:1069: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/redeclipse-1.6.0/src/engine/shader.cpp:1134: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/redeclipse-1.6.0/src/engine/shader.cpp:1208: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/redeclipse-1.6.0/src/engine/shader.cpp:1208: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/redeclipse-1.6.0/src/engine/shader.cpp:1216: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/redeclipse-1.6.0/src/engine/shader.cpp:1216: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/redeclipse-1.6.0/src/engine/skelmodel.h:1064: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/redeclipse-1.6.0/src/engine/skelmodel.h:1153: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/sound.cpp:343: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.
        if(!(sample = soundsamples.access(req))) \
data/redeclipse-1.6.0/src/engine/texture.cpp:1505: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(tname);
data/redeclipse-1.6.0/src/engine/texture.cpp:2356: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/redeclipse-1.6.0/src/engine/texture.cpp:2493: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/redeclipse-1.6.0/src/engine/texture.cpp:2599: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/redeclipse-1.6.0/src/engine/texture.cpp:2912: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(tname);
data/redeclipse-1.6.0/src/engine/texture.cpp:2940: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(copypath(name));
data/redeclipse-1.6.0/src/engine/texture.cpp:3258: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/redeclipse-1.6.0/src/engine/worldio.cpp:1313: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.
                        ident *id = idents.access(name);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1865: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/redeclipse-1.6.0/src/engine/worldio.cpp:1875: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/redeclipse-1.6.0/src/game/client.cpp:1155: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.
        ident *wid = idents.access(flags&SAY_ACTION ? "on_action" : "on_text");
data/redeclipse-1.6.0/src/game/client.cpp:1203: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.
        ident *id = idents.access(cmd);
data/redeclipse-1.6.0/src/game/client.cpp:1415: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.
        if(*name) demonames.access(demonameid, newstring(name));
data/redeclipse-1.6.0/src/game/client.cpp:2603: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.
                    ident *id = idents.access(text);
data/redeclipse-1.6.0/src/game/hud.cpp:1895:48:  [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(idname);
data/redeclipse-1.6.0/src/game/server.cpp:3551: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.
        ident *id = idents.access(cmd);
data/redeclipse-1.6.0/src/game/server.cpp:3684: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.
        ident *id = idents.access(cmdname);
data/redeclipse-1.6.0/src/game/server.cpp:6656: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.
                        ident *id = idents.access(cmdname);
data/redeclipse-1.6.0/src/shared/command.h:401: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.
#define RUNWORLD(n) { ident *wid = idents.access(n); if(wid && wid->type==ID_ALIAS && wid->flags&IDF_WORLD) { WITHWORLD(execute(wid->getstr())); } }
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/shared/glexts.h:384: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/redeclipse-1.6.0/src/shared/stream.cpp:411: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/redeclipse-1.6.0/src/shared/stream.cpp:639:16:  [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.
size_t stream::printf(const char *fmt, ...)
data/redeclipse-1.6.0/src/shared/stream.cpp:653:15:  [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.
    int len = vsnprintf(buf, sizeof(buf), fmt, args);
data/redeclipse-1.6.0/src/shared/stream.cpp:660: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/redeclipse-1.6.0/src/shared/stream.cpp:733:12:  [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.
    size_t printf(const char *fmt, ...)
data/redeclipse-1.6.0/src/shared/stream.cpp:737: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/redeclipse-1.6.0/src/shared/tools.h:146: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/redeclipse-1.6.0/src/shared/tools.h:151: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/redeclipse-1.6.0/src/shared/tools.h:1094: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 U &key)
data/redeclipse-1.6.0/src/shared/tools.h:1100: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 U &key, const V &elem)
data/redeclipse-1.6.0/src/shared/tools.h:1179: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.
        return basetype::access(elem, elem);
data/redeclipse-1.6.0/src/shared/tools.h:1197: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.
        return basetype::access(getkey(elem), elem);
data/redeclipse-1.6.0/src/shared/tools.h:1429:20:  [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 size_t printf(const char *fmt, ...) PRINTFARGS(2, 3);
data/redeclipse-1.6.0/src/shared/zip.cpp:258: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/redeclipse-1.6.0/src/shared/zip.cpp:535: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/redeclipse-1.6.0/src/shared/zip.cpp:550: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(arch->files.access(name)) return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1521:27:  [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 *dir = getenv("OCTA_DATA");
data/redeclipse-1.6.0/src/engine/server.cpp:1525:19:  [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.
            dir = getenv("OCTA_DIR"); // backward compat
data/redeclipse-1.6.0/src/engine/server.cpp:1566:23:  [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 *dir = getenv(sup_var("DATADIR"));
data/redeclipse-1.6.0/src/engine/server.cpp:1588:27:  [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 *dir = getenv("HOME");
data/redeclipse-1.6.0/src/engine/server.cpp:1682:27:  [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 *vbranch = getenv(sup_var("BRANCH"));
data/redeclipse-1.6.0/src/engine/bih.cpp:270: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(meshes, buildmeshes.getbuf(), sizeof(mesh)*buildmeshes.length());
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/blob.cpp:656: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(vdst, &verts[b->startvert], (b->endvert - b->startvert)*sizeof(blobvert));
data/redeclipse-1.6.0/src/engine/command.cpp:239:34:  [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(fmt[0] == '\f') { memcpy(color, fmt, 2); fmt += strlen(color); }
data/redeclipse-1.6.0/src/engine/command.cpp:585: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 ID_SVAR: return atoi(*id->storage.s);
data/redeclipse-1.6.0/src/engine/command.cpp:653: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 ID_SVAR: return atoi((rb ? id->bin : id->def).s);
data/redeclipse-1.6.0/src/engine/command.cpp:943: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 numbuf[3*MAXSTRLEN];
data/redeclipse-1.6.0/src/engine/command.cpp:967: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, prefix, prefixlen);
data/redeclipse-1.6.0/src/engine/command.cpp:975: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(&buf[offset], &numbuf[numoffset], vlen[j]);
data/redeclipse-1.6.0/src/engine/command.cpp:978: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.
        else if(vlen[j]) memcpy(&buf[offset], v[j].s, vlen[j]);
data/redeclipse-1.6.0/src/engine/command.cpp:1034: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/redeclipse-1.6.0/src/engine/command.cpp:1074: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/redeclipse-1.6.0/src/engine/command.cpp:1078: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/redeclipse-1.6.0/src/engine/command.cpp:1265: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/redeclipse-1.6.0/src/engine/command.cpp:1276: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/redeclipse-1.6.0/src/engine/command.cpp:1286: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(&buf[len], str, comment);
data/redeclipse-1.6.0/src/engine/command.cpp:1653: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/redeclipse-1.6.0/src/engine/command.cpp:1912: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/redeclipse-1.6.0/src/engine/command.cpp:2453: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/redeclipse-1.6.0/src/engine/command.cpp:3123: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/redeclipse-1.6.0/src/engine/command.cpp:3322: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/redeclipse-1.6.0/src/engine/command.cpp:3444:16:  [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(offset) memcpy(p, s, offset);
data/redeclipse-1.6.0/src/engine/command.cpp:3445: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.
    if(vlen) memcpy(&p[offset], vals, vlen);
data/redeclipse-1.6.0/src/engine/command.cpp:3446: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.
    if(offset + len < slen) memcpy(&p[offset + vlen], &s[offset + len], slen - (offset + len));
data/redeclipse-1.6.0/src/engine/console.cpp:53: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/redeclipse-1.6.0/src/engine/console.cpp:459: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(&commandbuf[cmdlen], str, len);
data/redeclipse-1.6.0/src/engine/console.cpp:464: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(&commandbuf[commandpos], str, len);
data/redeclipse-1.6.0/src/engine/console.cpp:649: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 cmds[4] = { "bind", "specbind", "editbind", "waitbind" };
data/redeclipse-1.6.0/src/engine/console.cpp:782: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 chrlist[7] = { ';', '(', ')', '[', ']', '\"', '$', };
data/redeclipse-1.6.0/src/engine/console.cpp:850: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).
    if(isnumeric(*v)) on = atoi(v) != 0;
data/redeclipse-1.6.0/src/engine/engine.h:29:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *platnames[MAX_PLATFORMS], *platlongnames[MAX_PLATFORMS];
data/redeclipse-1.6.0/src/engine/engine.h:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *ipinfotypes[ipinfo::MAXTYPES];
data/redeclipse-1.6.0/src/engine/engine.h:237: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(colormask, oldcolormask, sizeof(oldcolormask)); \
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/iqm.h:278: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/redeclipse-1.6.0/src/engine/irc.cpp:128:23:  [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.
    int colorpos = 0; char colorstack[10];
data/redeclipse-1.6.0/src/engine/irc.cpp:492:28:  [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 ircprocess(ircnet *n, char *user[3], int g, int numargs, char *w[])
data/redeclipse-1.6.0/src/engine/irc.cpp:657:63:  [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 numeric = *w[g] && *w[g] >= '0' && *w[g] <= '9' ? atoi(w[g]) : 0, off = 0;
data/redeclipse-1.6.0/src/engine/irc.cpp:723: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 *w[MAXWORDS], *p = (char *)n->input, *start = p, *end = &p[n->inputcarry];
data/redeclipse-1.6.0/src/engine/irc.cpp:745: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 *user[3] = { NULL, NULL, NULL };
data/redeclipse-1.6.0/src/engine/irc.cpp:1115:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const ircstates[IRC_MAX] = { "\fowaiting", "\froffline", "\foconnecting", "\fynegotiating", "\fgonline", "\foquitting" };
data/redeclipse-1.6.0/src/engine/lightmap.cpp:110: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/redeclipse-1.6.0/src/engine/lightmap.cpp:117: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/redeclipse-1.6.0/src/engine/lightmap.cpp:156: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/redeclipse-1.6.0/src/engine/lightmap.cpp:189: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/redeclipse-1.6.0/src/engine/lightmap.cpp:292: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/redeclipse-1.6.0/src/engine/lightmap.cpp:949: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/redeclipse-1.6.0/src/engine/lightmap.cpp:1475: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/redeclipse-1.6.0/src/engine/lightmap.cpp:1682: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/redeclipse-1.6.0/src/engine/lightmap.cpp:1833: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/redeclipse-1.6.0/src/engine/lightmap.cpp:2401: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/redeclipse-1.6.0/src/engine/lightmap.cpp:2441: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/redeclipse-1.6.0/src/engine/lightmap.cpp:2604: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/redeclipse-1.6.0/src/engine/lightmap.cpp:2605: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/redeclipse-1.6.0/src/engine/main.cpp:744:40:  [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(bigstring)]; };
data/redeclipse-1.6.0/src/engine/main.cpp:756: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.
        union { IMAGEHLP_SYMBOL sym; char symext[sizeof(IMAGEHLP_SYMBOL) + sizeof(bigstring)]; };
data/redeclipse-1.6.0/src/engine/main.cpp:966:45:  [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][3]), SCR_MINW, SCR_MAXW); if(!findarg(argc, argv, "-dh")) scr_h = -1; break;
data/redeclipse-1.6.0/src/engine/main.cpp:967:45:  [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][3]), SCR_MINH, SCR_MAXH); if(!findarg(argc, argv, "-dw")) scr_w = -1; break;
data/redeclipse-1.6.0/src/engine/main.cpp:968:43:  [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': depthbits = atoi(&argv[i][3]); break;
data/redeclipse-1.6.0/src/engine/main.cpp:970:38:  [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][3]); break;
data/redeclipse-1.6.0/src/engine/main.cpp:972: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).
                    case 'f': fullscreen = atoi(&argv[i][3]); break;
data/redeclipse-1.6.0/src/engine/master.cpp:70: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[4096];
data/redeclipse-1.6.0/src/engine/master.cpp:755: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 tmp[N];
data/redeclipse-1.6.0/src/engine/master.cpp:764: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 *w[MAXWORDS];
data/redeclipse-1.6.0/src/engine/master.cpp:820:50:  [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(w[1] && *w[1]) c.port = clamp(atoi(w[1]), 1, VAR_MAX);
data/redeclipse-1.6.0/src/engine/master.cpp:822:45:  [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).
                c.version = w[3] && *w[3] ? atoi(w[3]) : (w[2] && *w[2] ? 150 : 0);
data/redeclipse-1.6.0/src/engine/master.cpp:825:49:  [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(w[5] && *w[5]) c.sendstats = atoi(w[5]) != 0;
data/redeclipse-1.6.0/src/engine/master.cpp:917: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).
                    c.stats.mode = atoi(w[3]);
data/redeclipse-1.6.0/src/engine/master.cpp:918: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).
                    c.stats.mutators = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:919: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).
                    c.stats.timeplayed = atoi(w[5]);
data/redeclipse-1.6.0/src/engine/master.cpp:921:38:  [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).
                    c.stats.unique = atoi(w[6]);
data/redeclipse-1.6.0/src/engine/master.cpp:922:41:  [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).
                    c.stats.usetotals = atoi(w[7]);
data/redeclipse-1.6.0/src/engine/master.cpp:928: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).
                    c.stats.port = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:933: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).
                    t.index = atoi(w[2]);
data/redeclipse-1.6.0/src/engine/master.cpp:934: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).
                    t.score = atoi(w[3]);
data/redeclipse-1.6.0/src/engine/master.cpp:943: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).
                    p.score = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:944: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).
                    p.timealive = atoi(w[5]);
data/redeclipse-1.6.0/src/engine/master.cpp:945: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).
                    p.frags = atoi(w[6]);
data/redeclipse-1.6.0/src/engine/master.cpp:946:32:  [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).
                    p.deaths = atoi(w[7]);
data/redeclipse-1.6.0/src/engine/master.cpp:947:29:  [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).
                    p.wid = atoi(w[8]);
data/redeclipse-1.6.0/src/engine/master.cpp:948: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).
                    p.timeactive = atoi(w[9]);
data/redeclipse-1.6.0/src/engine/master.cpp:953: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).
                    #define wint(n) ws.n = atoi(w[qidx++]);
data/redeclipse-1.6.0/src/engine/master.cpp:955: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).
                    ws.playerid = atoi(w[2]);
data/redeclipse-1.6.0/src/engine/master.cpp:982: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).
                    cs.playerid = atoi(w[2]);
data/redeclipse-1.6.0/src/engine/master.cpp:984: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).
                    cs.capturing = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:985: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).
                    cs.captured = atoi(w[5]);
data/redeclipse-1.6.0/src/engine/master.cpp:991: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).
                    bs.playerid = atoi(w[2]);
data/redeclipse-1.6.0/src/engine/master.cpp:993:34:  [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).
                    bs.bombing = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:994:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    bs.bombed = atoi(w[5]);
data/redeclipse-1.6.0/src/engine/master.cpp:1000: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).
                    fr.playerid = atoi(w[2]);
data/redeclipse-1.6.0/src/engine/master.cpp:1002:32:  [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).
                    fr.round = atoi(w[4]);
data/redeclipse-1.6.0/src/engine/master.cpp:1003:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    fr.winner = atoi(w[5]);
data/redeclipse-1.6.0/src/engine/master.cpp:1011: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).
            if(!strcmp(w[0], "reqauth")) { reqauth(c, uint(atoi(w[1])), w[2], w[3]); found = true; }
data/redeclipse-1.6.0/src/engine/master.cpp:1013:62:  [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(!strcmp(w[0], "confauth")) { confauth(c, uint(atoi(w[1])), w[2]); found = true; }
data/redeclipse-1.6.0/src/engine/material.cpp:163:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return tryint && isnumeric(*name) ? atoi(name) : -1;
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/md2.h:165: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/redeclipse-1.6.0/src/engine/md2.h:168: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/md5.h:164: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/redeclipse-1.6.0/src/engine/md5.h:276: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/redeclipse-1.6.0/src/engine/md5.h:328: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/movie.cpp:780: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/redeclipse-1.6.0/src/engine/movie.cpp:916: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/octa.cpp:1491: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/redeclipse-1.6.0/src/engine/octa.cpp:1639: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/redeclipse-1.6.0/src/engine/octaedit.cpp:1100: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(attrs, u->attrs(), numattrs*sizeof(int));
data/redeclipse-1.6.0/src/engine/octaedit.cpp:1181: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/redeclipse-1.6.0/src/engine/octaedit.cpp:1238: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/redeclipse-1.6.0/src/engine/octaedit.cpp:2810:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *rotations[6] = { "none", "90 degrees", "180 degrees", "270 degrees", "flip x", "flip y" };
data/redeclipse-1.6.0/src/engine/octarender.cpp:425: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/redeclipse-1.6.0/src/engine/octarender.cpp:436: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/redeclipse-1.6.0/src/engine/octarender.cpp:437: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/redeclipse-1.6.0/src/engine/octarender.cpp:474: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/redeclipse-1.6.0/src/engine/pvs.cpp:747: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/redeclipse-1.6.0/src/engine/pvs.cpp:773: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/redeclipse-1.6.0/src/engine/pvs.cpp:979: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/redeclipse-1.6.0/src/engine/renderparticles.cpp:336: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.
            if(*text) { int len = text-(start+1); memcpy(font, start+1, len); font[len] = '\0'; text++; }
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/rendertarget.h:177: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/redeclipse-1.6.0/src/engine/rendertext.cpp:184: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/redeclipse-1.6.0/src/engine/renderva.cpp:176: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/redeclipse-1.6.0/src/engine/server.cpp:20: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 *platnames[MAX_PLATFORMS] = {
data/redeclipse-1.6.0/src/engine/server.cpp:142: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 *ipinfotypes[ipinfo::MAXTYPES] = { "allow", "ban", "mute", "limit", "trust" };
data/redeclipse-1.6.0/src/engine/server.cpp:155: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.
        str += sprintf(str, "%d", ip.b[i]);
data/redeclipse-1.6.0/src/engine/server.cpp:196: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/redeclipse-1.6.0/src/engine/server.cpp:251: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/redeclipse-1.6.0/src/engine/server.cpp:1029: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/redeclipse-1.6.0/src/engine/server.cpp:1456: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 'v': setvar("verbose", atoi(opt+2)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1461:50:  [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+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1465:48:  [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': setvar("servertype", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1466:48:  [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 'p': setvar("serverport", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1467: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).
                case 'a': setvar("servermasterport", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1468:50:  [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 'g': setvar("logtimelocal", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1476:50:  [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': setvar("masterserver", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1478:48:  [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 'p': setvar("masterport", atoi(opt+3)); return true;
data/redeclipse-1.6.0/src/engine/server.cpp:1543: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 *tryoctadirs[4] = { // by no means an accurate or definitive list either..
data/redeclipse-1.6.0/src/engine/serverbrowser.cpp:344: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/redeclipse-1.6.0/src/engine/shader.cpp:109: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 *parts[16];
data/redeclipse-1.6.0/src/engine/shader.cpp:212:26:  [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 texnames[8] = { "tex0", "tex1", "tex2", "tex3", "tex4", "tex5", "tex6", "tex7" };
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/sound.cpp:715: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/redeclipse-1.6.0/src/engine/textedit.h:46: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/redeclipse-1.6.0/src/engine/textedit.h:51: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/redeclipse-1.6.0/src/engine/textedit.h:63: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/redeclipse-1.6.0/src/engine/textedit.h:71: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/redeclipse-1.6.0/src/engine/textedit.h:91: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/redeclipse-1.6.0/src/engine/textedit.h:124: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/redeclipse-1.6.0/src/engine/textedit.h:317: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/redeclipse-1.6.0/src/engine/texture.cpp:410: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/redeclipse-1.6.0/src/engine/texture.cpp:411: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/redeclipse-1.6.0/src/engine/texture.cpp:423: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, w*s.bpp);
data/redeclipse-1.6.0/src/engine/texture.cpp:680: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/redeclipse-1.6.0/src/engine/texture.cpp:1182: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/redeclipse-1.6.0/src/engine/texture.cpp:1380:45:  [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(flen >= 4 && dfile[flen-4]=='.') memcpy(dfile + flen - 4, ".dds", 4);
data/redeclipse-1.6.0/src/engine/texture.cpp:1408: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/redeclipse-1.6.0/src/engine/texture.cpp:1411:57:  [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(matchstring(cmd, len, "dup")) texdup(d, atoi(arg[0]), atoi(arg[1]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1411:71:  [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(matchstring(cmd, len, "dup")) texdup(d, atoi(arg[0]), atoi(arg[1]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1412:63:  [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(matchstring(cmd, len, "offset")) texoffset(d, atoi(arg[0]), atoi(arg[1]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1412:77:  [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(matchstring(cmd, len, "offset")) texoffset(d, atoi(arg[0]), atoi(arg[1]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1413:63:  [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(matchstring(cmd, len, "rotate")) texrotate(d, atoi(arg[0]), tex ? tex->type : 0);
data/redeclipse-1.6.0/src/engine/texture.cpp:1414:67:  [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(matchstring(cmd, len, "reorient")) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/redeclipse-1.6.0/src/engine/texture.cpp:1414:83:  [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(matchstring(cmd, len, "reorient")) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/redeclipse-1.6.0/src/engine/texture.cpp:1414:99:  [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(matchstring(cmd, len, "reorient")) texreorient(d, atoi(arg[0])>0, atoi(arg[1])>0, atoi(arg[2])>0, tex ? tex->type : TEX_DIFFUSE);
data/redeclipse-1.6.0/src/engine/texture.cpp:1415:59:  [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(matchstring(cmd, len, "crop")) texcrop(d, atoi(arg[0]), atoi(arg[1]), atoi(arg[2]), atoi(arg[3]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1415:73:  [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(matchstring(cmd, len, "crop")) texcrop(d, atoi(arg[0]), atoi(arg[1]), atoi(arg[2]), atoi(arg[3]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1415:87:  [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(matchstring(cmd, len, "crop")) texcrop(d, atoi(arg[0]), atoi(arg[1]), atoi(arg[2]), atoi(arg[3]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1415:101:  [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(matchstring(cmd, len, "crop")) texcrop(d, atoi(arg[0]), atoi(arg[1]), atoi(arg[2]), atoi(arg[3]));
data/redeclipse-1.6.0/src/engine/texture.cpp:1416:67:  [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(matchstring(cmd, len, "mix")) 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/redeclipse-1.6.0/src/engine/texture.cpp:1416: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(matchstring(cmd, len, "mix")) 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/redeclipse-1.6.0/src/engine/texture.cpp:1416:125:  [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(matchstring(cmd, len, "mix")) 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/redeclipse-1.6.0/src/engine/texture.cpp:1416:154:  [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(matchstring(cmd, len, "mix")) 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/redeclipse-1.6.0/src/engine/texture.cpp:1420: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/redeclipse-1.6.0/src/engine/texture.cpp:1420: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/redeclipse-1.6.0/src/engine/texture.cpp:1427: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/redeclipse-1.6.0/src/engine/texture.cpp:1439:41:  [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).
                anim->delay = *arg[0] ? atoi(arg[0]) : 50;
data/redeclipse-1.6.0/src/engine/texture.cpp:1440: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).
                anim->x = max(1, *arg[1] ? atoi(arg[1]) : 1);
data/redeclipse-1.6.0/src/engine/texture.cpp:1441: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).
                anim->y = max(1, *arg[2] ? atoi(arg[2]) : 2);
data/redeclipse-1.6.0/src/engine/texture.cpp:1442: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).
                anim->throb = *arg[3] && atoi(arg[3]);
data/redeclipse-1.6.0/src/engine/texture.cpp:1450: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/redeclipse-1.6.0/src/engine/texture.cpp:1450: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/redeclipse-1.6.0/src/engine/texture.cpp:2091:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return tryint && isnumeric(*name) ? atoi(name) : -1;
data/redeclipse-1.6.0/src/engine/texture.cpp:3080: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(dst, rgba[bits&3].v, d.bpp);
data/redeclipse-1.6.0/src/engine/texture.cpp:3096: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(dst, rgb[bits&3].v, 3);
data/redeclipse-1.6.0/src/engine/texture.cpp:3140: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(dst, rgb[bits&3].v, 3);
data/redeclipse-1.6.0/src/engine/texture.cpp:3292: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/redeclipse-1.6.0/src/engine/texture.cpp:3543: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 *ifmtexts[IFMT_MAX] = { "", ".bmp", ".png", ".tga" };
data/redeclipse-1.6.0/src/engine/texture.h:328:34:  [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 set(const matrix2 &m) { memcpy(resolve()->fval, m.a.v, sizeof(m)); }
data/redeclipse-1.6.0/src/engine/texture.h:329:34:  [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 set(const matrix3 &m) { memcpy(resolve()->fval, m.a.v, sizeof(m)); }
data/redeclipse-1.6.0/src/engine/texture.h:330:34:  [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 set(const matrix4 &m) { memcpy(resolve()->fval, m.a.v, sizeof(m)); }
data/redeclipse-1.6.0/src/engine/texture.h:333: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.
    void setv(const T *v, int n = 1) { memcpy(resolve()->buf, v, n*sizeof(T)); }
data/redeclipse-1.6.0/src/engine/texture.h:816:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *ifmtexts[IFMT_MAX];
data/redeclipse-1.6.0/src/engine/world.cpp:1043: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.head, "MAPZ", 4);
data/redeclipse-1.6.0/src/engine/world.h:13: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 head[4];
data/redeclipse-1.6.0/src/engine/world.h:34: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/redeclipse-1.6.0/src/engine/world.h:53: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/redeclipse-1.6.0/src/engine/world.h:81: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 gameid[4];
data/redeclipse-1.6.0/src/engine/world.h:88: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 gameid[4];
data/redeclipse-1.6.0/src/engine/world.h:95: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], gameid[4];
data/redeclipse-1.6.0/src/engine/world.h:102: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], gameid[4];
data/redeclipse-1.6.0/src/engine/world.h:109: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], gameid[4];
data/redeclipse-1.6.0/src/engine/worldio.cpp:1000: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.head, "MAPZ", 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1009: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.gameid, gameid, 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1204: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(&chdr, &newhdr, sizeof(binary)); \
data/redeclipse-1.6.0/src/engine/worldio.cpp:1218: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(&newhdr.worldsize, &chdr.worldsize, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1223: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(&newhdr.gamever, &chdr.gamever, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1224: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(&newhdr.gameid, &chdr.gameid, 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1231: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(&newhdr.worldsize, &chdr.worldsize, sizeof(int)*4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1234: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(&newhdr.gamever, &chdr.gamever, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1235: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(&newhdr.gameid, &chdr.gameid, 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1242: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(&newhdr.worldsize, &chdr.worldsize, sizeof(int)*5);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1244: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(&newhdr.gamever, &chdr.gamever, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1245: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(&newhdr.gameid, &chdr.gameid, 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1252: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(&newhdr.worldsize, &chdr.worldsize, sizeof(int)*5);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1254: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(&newhdr.gamever, &chdr.gamever, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1392: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(&ohdr, &newhdr, sizeof(binary));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1397: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(&chdr, &ohdr, sizeof(binary)); \
data/redeclipse-1.6.0/src/engine/worldio.cpp:1431: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(&ohdr.worldsize, &chdr.worldsize, sizeof(int)*2);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1433: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(&ohdr.lightmaps, &chdr.lightmaps, sizeof(int)*3);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1441: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(&ohdr.worldsize, &chdr.worldsize, sizeof(int)*6);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1450: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(&ohdr.worldsize, &chdr.worldsize, sizeof(int)*6);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1480: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(hdr.head, ohdr.head, 4);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1543: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(hdr.gameid, gameid, 4);
data/redeclipse-1.6.0/src/game/ai.cpp:1598: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/redeclipse-1.6.0/src/game/ai.cpp:1729: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 *w[MAXWORDS];
data/redeclipse-1.6.0/src/game/ai.cpp:1768:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char *affirm[4] = { "roger", "okay", "will do", "i'm on it" };
data/redeclipse-1.6.0/src/game/ai.cpp:1959:23:  [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 *quip[4] = { "back to what i was doing then", "resuming previous operations", "i am no longer your slave", "jolly good show then" };
data/redeclipse-1.6.0/src/game/ai.cpp:1965:23:  [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 *quip[4] = { "what was i doing again?", "duh... off i go..", "who were you again?", "ummmm... wtf do i do now?" };
data/redeclipse-1.6.0/src/game/auth.h:28: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[2*MAXSTRLEN];
data/redeclipse-1.6.0/src/game/auth.h:384: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 *w[MAXWORDS];
data/redeclipse-1.6.0/src/game/auth.h:396:62:  [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(!strcmp(w[0], "failauth")) authfailed((uint)(atoi(w[1])));
data/redeclipse-1.6.0/src/game/auth.h:397:65:  [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(!strcmp(w[0], "succauth")) authsucceeded((uint)(atoi(w[1])), w[2], w[3]);
data/redeclipse-1.6.0/src/game/auth.h:403:58:  [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).
                ci->totalpoints = ci->localtotalpoints + atoi(w[2]);
data/redeclipse-1.6.0/src/game/auth.h:404:56:  [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).
                ci->totalfrags = ci->localtotalfrags + atoi(w[3]);
data/redeclipse-1.6.0/src/game/auth.h:405:58:  [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).
                ci->totaldeaths = ci->localtotaldeaths + atoi(w[4]);
data/redeclipse-1.6.0/src/game/auth.h:411:66:  [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(!strcmp(w[0], "chalauth")) authchallenged((uint)(atoi(w[1])), w[2]);
data/redeclipse-1.6.0/src/game/auth.h:428: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).
            c.ip = uint(atoi(w[1]));
data/redeclipse-1.6.0/src/game/auth.h:429:27:  [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).
            c.mask = uint(atoi(w[2]));
data/redeclipse-1.6.0/src/game/client.cpp:526: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 t = atoi(team);
data/redeclipse-1.6.0/src/game/client.cpp:2072: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/redeclipse-1.6.0/src/game/entities.cpp:244: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.
                    const char *cpnames[CP_MAX+1] = { "respawn", "start", "finish", "last", "" };
data/redeclipse-1.6.0/src/game/entities.cpp:254: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.
                    const char *lfxnames[LFX_MAX+1] = { "spotlight", "dynlight", "flicker", "pulse", "glow", "" };
data/redeclipse-1.6.0/src/game/entities.cpp:325: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.
                    const char *trgnames[TR_MAX+1] = { "toggle", "link", "script", "once", "exit", "" }, *actnames[TA_MAX+1] = { "manual", "proximity", "action", "" };
data/redeclipse-1.6.0/src/game/entities.cpp:359: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.
                    const char *telenames[TELE_MAX] = { "no-affinity" };
data/redeclipse-1.6.0/src/game/game.cpp:2033: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 *teamtexs[T_MAX] = { "teamtex", "teamalphatex", "teamomegatex", "teamkappatex", "teamsigmatex", "teamtex" };
data/redeclipse-1.6.0/src/game/game.h:60: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 *name,           *attrs[13];
data/redeclipse-1.6.0/src/game/game.h:283: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 *sendmaptypes[SENDMAP_MAX] = { "mpz", "cfg", "png", "txt", "wpt" };
data/redeclipse-1.6.0/src/game/game.h:285:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *sendmaptypes[SENDMAP_MAX];
data/redeclipse-1.6.0/src/game/game.h:348: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/redeclipse-1.6.0/src/game/gamemode.h:28: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 *gamestates[3][G_S_MAX] = {
data/redeclipse-1.6.0/src/game/gamemode.h:34:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *gamestates[3][G_S_MAX];
data/redeclipse-1.6.0/src/game/gamemode.h:43: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 *name, *sname, *gsp[G_M_GSN], *desc, *gsd[G_M_GSN];
data/redeclipse-1.6.0/src/game/hud.cpp:909: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.
                    const char *crosshairtexs[W_MAX] = {
data/redeclipse-1.6.0/src/game/hud.cpp:924: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.
                    const char *hithairtexs[W_MAX] = {
data/redeclipse-1.6.0/src/game/hud.cpp:1048: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 *cliptexs[W_ALL] = {
data/redeclipse-1.6.0/src/game/hud.cpp:1880: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.
                    const char chrlist[7] = { ';', '(', ')', '[', ']', '\"', '$', };
data/redeclipse-1.6.0/src/game/hud.cpp:2697: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 *teamtexs[T_MAX] = { teamtex, teamalphatex, teamomegatex, teamkappatex, teamsigmatex, teamtex };
data/redeclipse-1.6.0/src/game/hud.cpp:2704: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 *privtexs[2][PRIV_MAX] = {
data/redeclipse-1.6.0/src/game/hud.cpp:2719:23:  [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 *weaptexs[W_MAX] = {
data/redeclipse-1.6.0/src/game/hud.cpp:2796:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char *hudtexs[W_ALL] = {
data/redeclipse-1.6.0/src/game/hud.cpp:3018: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 *actionnames[AC_TOTAL] = {
data/redeclipse-1.6.0/src/game/player.h:6: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 *name, *playermodel[4];
data/redeclipse-1.6.0/src/game/player.h:74: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 *teamnames[T_MAX] = { "neutral", "alpha", "omega", "kappa", "sigma", "enemy" };
data/redeclipse-1.6.0/src/game/player.h:82:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *teamnames[T_MAX];
data/redeclipse-1.6.0/src/game/player.h:109: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 *playertypes[PLAYERTYPES][6] = {
data/redeclipse-1.6.0/src/game/player.h:114:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *playertypes[PLAYERTYPES][6];
data/redeclipse-1.6.0/src/game/scoreboard.cpp:817: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 *posnames[10] = { "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th" };
data/redeclipse-1.6.0/src/game/server.cpp:1233: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 *privnames[2][PRIV_MAX] = {
data/redeclipse-1.6.0/src/game/server.cpp:1243: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 *privnames[2][PRIV_MAX] = {
data/redeclipse-1.6.0/src/game/server.cpp:1282: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 *teamtexs[T_MAX] = { "teamtex", "teamalphatex", "teamomegatex", "teamkappatex", "teamsigmatex", "teamtex" };
data/redeclipse-1.6.0/src/game/server.cpp:5744: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/redeclipse-1.6.0/src/game/waypoint.cpp:708: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/redeclipse-1.6.0/src/game/weapons.cpp:28: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).
            if(isnumeric(list[i][0])) weap = atoi(list[i]);
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/shared/crypto.cpp:264: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/redeclipse-1.6.0/src/shared/crypto.cpp:281: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/redeclipse-1.6.0/src/shared/crypto.cpp:295: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/redeclipse-1.6.0/src/shared/crypto.cpp:372: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[to], &y.digits[from], avail*sizeof(digit));
data/redeclipse-1.6.0/src/shared/crypto.cpp:382: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[to], &digits[from], n*sizeof(digit));
data/redeclipse-1.6.0/src/shared/crypto.cpp:655: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/redeclipse-1.6.0/src/shared/crypto.cpp:844: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/redeclipse-1.6.0/src/shared/crypto.cpp:913: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/shared/glemu.cpp:25: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.
    extern const char * const attribnames[MAXATTRIBS] = { "vvertex", "vcolor", "vtexcoord0", "vtexcoord1", "vnormal", "vtangent", "vboneweight", "vboneindex" };
data/redeclipse-1.6.0/src/shared/glemu.cpp:276: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(dst, attribbuf.getbuf(), attribbuf.length());
data/redeclipse-1.6.0/src/shared/glemu.h:16: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.
    extern const char * const attribnames[MAXATTRIBS];
data/redeclipse-1.6.0/src/shared/stream.cpp:268: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).
        if(isnumeric(*q)) d = min(atoi(q), 1);
data/redeclipse-1.6.0/src/shared/stream.cpp:641: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/redeclipse-1.6.0/src/shared/stream.cpp:676: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/redeclipse-1.6.0/src/shared/stream.cpp:679: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/redeclipse-1.6.0/src/shared/stream.cpp:687: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/redeclipse-1.6.0/src/shared/stream.cpp:689:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        file = tmpfile();
data/redeclipse-1.6.0/src/shared/stream.cpp:843: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/redeclipse-1.6.0/src/shared/stream.cpp:1081: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/redeclipse-1.6.0/src/shared/stream.cpp:1166: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/redeclipse-1.6.0/src/shared/stream.cpp:1185: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/redeclipse-1.6.0/src/shared/stream.cpp:1217: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/redeclipse-1.6.0/src/shared/stream.cpp:1241: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; delete gz; return NULL; }
data/redeclipse-1.6.0/src/shared/stream.cpp:1250: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; delete utf8; return NULL; }
data/redeclipse-1.6.0/src/shared/tools.h:159: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/redeclipse-1.6.0/src/shared/tools.h:162: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 bigstring[BIGSTRLEN];
data/redeclipse-1.6.0/src/shared/tools.h:170: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(d, s, slen);
data/redeclipse-1.6.0/src/shared/tools.h:183: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(d, s, slen);
data/redeclipse-1.6.0/src/shared/tools.h:230:112:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline char *newstring(const char *s)           { if(!s) s = ""; size_t l = strlen(s); char *d = newstring(l); memcpy(d, s, l+1); return d; }
data/redeclipse-1.6.0/src/shared/tools.h:301: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/redeclipse-1.6.0/src/shared/tools.h:309: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/redeclipse-1.6.0/src/shared/tools.h:539: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(d, s.str, slen);
data/redeclipse-1.6.0/src/shared/tools.h:647: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/redeclipse-1.6.0/src/shared/tools.h:697: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.
            if(ulen > 0) memcpy(newbuf, (void *)buf, ulen*sizeof(T));
data/redeclipse-1.6.0/src/shared/tools.h:929: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-n], v, n*sizeof(T));
data/redeclipse-1.6.0/src/shared/zip.cpp:153: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/redeclipse-1.6.0/src/shared/zip.cpp:281: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/redeclipse-1.6.0/src/shared/zip.cpp:374: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/redeclipse-1.6.0/src/shared/zip.cpp:538: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/redeclipse-1.6.0/src/shared/zip.cpp:587: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(0, addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/redeclipse-1.6.0/src/shared/zip.cpp:587:53:  [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(0, addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/redeclipse-1.6.0/src/shared/zip.cpp:587:72:  [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(0, addzip, "sss", (const char *name, const char *mount, const char *strip), addzip(name, mount[0] ? mount : NULL, strip[0] ? strip : NULL));
data/redeclipse-1.6.0/src/engine/blend.cpp:748:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    type = f->getchar();
data/redeclipse-1.6.0/src/engine/blend.cpp:753:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int val = f->getchar();
data/redeclipse-1.6.0/src/engine/blend.cpp:761: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/command.cpp:239: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).
            if(fmt[0] == '\f') { memcpy(color, fmt, 2); fmt += strlen(color); }
data/redeclipse-1.6.0/src/engine/command.cpp:930: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/redeclipse-1.6.0/src/engine/command.cpp:948: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).
        case VAL_STR: len += (vlen[i] = int(strlen(v[i].s))); break;
data/redeclipse-1.6.0/src/engine/command.cpp:952: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).
            numlen += (vlen[i] = strlen(&numbuf[numlen]));
data/redeclipse-1.6.0/src/engine/command.cpp:957: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).
            numlen += (vlen[i] = strlen(&numbuf[numlen]));
data/redeclipse-1.6.0/src/engine/command.cpp:1085: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/redeclipse-1.6.0/src/engine/command.cpp:2438: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/redeclipse-1.6.0/src/engine/command.cpp:2600: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/redeclipse-1.6.0/src/engine/command.cpp:2760: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/redeclipse-1.6.0/src/engine/command.cpp:2774: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/redeclipse-1.6.0/src/engine/command.cpp:2792: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(s);
data/redeclipse-1.6.0/src/engine/command.cpp:2865: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/redeclipse-1.6.0/src/engine/command.cpp:2912: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/redeclipse-1.6.0/src/engine/command.cpp:2933:86:  [1] (buffer) strlen:
  Does not handle 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(0, indexof, "ss", (char *list, char *elem), intret(listincludes(list, elem, strlen(elem))));
data/redeclipse-1.6.0/src/engine/command.cpp:2988: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/redeclipse-1.6.0/src/engine/command.cpp:2997: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/redeclipse-1.6.0/src/engine/command.cpp:3013: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).
        p.put(files[i], strlen(files[i]));
data/redeclipse-1.6.0/src/engine/command.cpp:3088: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/redeclipse-1.6.0/src/engine/command.cpp:3334: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).
ICOMMAND(0, stringlen, "s", (char *s), intret(strlen(s)));
data/redeclipse-1.6.0/src/engine/command.cpp:3369: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(s); \
data/redeclipse-1.6.0/src/engine/command.cpp:3416: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/redeclipse-1.6.0/src/engine/command.cpp:3440: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 slen = strlen(s), vlen = strlen(vals),
data/redeclipse-1.6.0/src/engine/command.cpp:3440: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).
    int slen = strlen(s), vlen = strlen(vals),
data/redeclipse-1.6.0/src/engine/console.cpp:97:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:98:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:99: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).
                    names.put(lastname, strlen(lastname));
data/redeclipse-1.6.0/src/engine/console.cpp:100:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:104:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:105: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).
                    names.put(name1, strlen(name1));
data/redeclipse-1.6.0/src/engine/console.cpp:106:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:107:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:108:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:109: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).
                    names.put(name2, strlen(name2));
data/redeclipse-1.6.0/src/engine/console.cpp:110:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:120: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).
        if(sep2 && *sep2) names.put(sep2, strlen(sep2));
data/redeclipse-1.6.0/src/engine/console.cpp:121:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:122: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).
        if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:123: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).
        names.put(lastname, strlen(lastname));
data/redeclipse-1.6.0/src/engine/console.cpp:124: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).
        if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:130: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).
            if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:131: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).
            names.put(name1, strlen(name1));
data/redeclipse-1.6.0/src/engine/console.cpp:132: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).
            if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:136: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(sep2 && *sep2) names.put(sep2, strlen(sep2));
data/redeclipse-1.6.0/src/engine/console.cpp:137:52:  [1] (buffer) strlen:
  Does not handle 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(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:138: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).
            if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:139: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).
            names.put(name2, strlen(name2));
data/redeclipse-1.6.0/src/engine/console.cpp:140: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).
            if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:170:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:171:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:172: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).
                    names.put(lastname, strlen(lastname));
data/redeclipse-1.6.0/src/engine/console.cpp:173:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:177:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:178: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).
                    names.put(name1, strlen(name1));
data/redeclipse-1.6.0/src/engine/console.cpp:179:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:180:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:181:49:  [1] (buffer) strlen:
  Does not handle 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(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:182: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).
                    names.put(name2, strlen(name2));
data/redeclipse-1.6.0/src/engine/console.cpp:183:49:  [1] (buffer) strlen:
  Does not handle 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(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:193: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).
        if(sep2 && *sep2) names.put(sep2, strlen(sep2));
data/redeclipse-1.6.0/src/engine/console.cpp:194:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        else if(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:195: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).
        if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:196: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).
        names.put(lastname, strlen(lastname));
data/redeclipse-1.6.0/src/engine/console.cpp:197: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).
        if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:203: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).
            if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:204: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).
            names.put(name1, strlen(name1));
data/redeclipse-1.6.0/src/engine/console.cpp:205: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).
            if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:209: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(sep2 && *sep2) names.put(sep2, strlen(sep2));
data/redeclipse-1.6.0/src/engine/console.cpp:210:52:  [1] (buffer) strlen:
  Does not handle 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(sep1 && *sep1) names.put(sep1, strlen(sep1));
data/redeclipse-1.6.0/src/engine/console.cpp:211: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).
            if(s1 && *s1) names.put(s1, strlen(s1));
data/redeclipse-1.6.0/src/engine/console.cpp:212: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).
            names.put(name2, strlen(name2));
data/redeclipse-1.6.0/src/engine/console.cpp:213: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).
            if(s2 && *s2) names.put(s2, strlen(s2));
data/redeclipse-1.6.0/src/engine/console.cpp:255: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/redeclipse-1.6.0/src/engine/console.cpp:308:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t cblen = strlen(cb),
data/redeclipse-1.6.0/src/engine/console.cpp:309: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).
           start = strlen(buf),
data/redeclipse-1.6.0/src/engine/console.cpp:334: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/redeclipse-1.6.0/src/engine/console.cpp:453: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 cmdlen = (int)strlen(commandbuf), cmdspace = maxlen - (cmdlen+1);
data/redeclipse-1.6.0/src/engine/console.cpp:485: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/redeclipse-1.6.0/src/engine/console.cpp:494: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/redeclipse-1.6.0/src/engine/console.cpp:504: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/redeclipse-1.6.0/src/engine/console.cpp:515: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/redeclipse-1.6.0/src/engine/console.cpp:519: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/redeclipse-1.6.0/src/engine/console.cpp:535: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/redeclipse-1.6.0/src/engine/console.cpp:738: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/redeclipse-1.6.0/src/engine/console.cpp:778: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 cmdlen = strlen(cmdprefix);
data/redeclipse-1.6.0/src/engine/console.cpp:798: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).
        completesize = (int)strlen(start);
data/redeclipse-1.6.0/src/engine/console.cpp:836: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).
        if((int)strlen(start) > completesize) start[completesize] = '\0';
data/redeclipse-1.6.0/src/engine/console.cpp:971: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).
        commandpos = strlen(commandbuf);
data/redeclipse-1.6.0/src/engine/iqm.h:327: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/redeclipse-1.6.0/src/engine/iqm.h:332: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)) != hdr.filesize - sizeof(hdr)) goto error;
data/redeclipse-1.6.0/src/engine/iqm.h:383: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).
        const char *fname = name + strlen(name);
data/redeclipse-1.6.0/src/engine/irc.cpp:109: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(str), carry = 0;
data/redeclipse-1.6.0/src/engine/irc.cpp:143: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).
                src += end ? end-src : strlen(src);
data/redeclipse-1.6.0/src/engine/irc.cpp:487: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).
    if(!strncasecmp(str, n->mnick, strlen(n->mnick))) return true;
data/redeclipse-1.6.0/src/engine/irc.cpp:488: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).
    if(!strncasecmp(str, n->nick, strlen(n->nick))) return true;
data/redeclipse-1.6.0/src/engine/irc.cpp:499: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(w[g+2]);
data/redeclipse-1.6.0/src/engine/irc.cpp:540: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).
                    const char *p = &w[g+2][strlen(n->nick)];
data/redeclipse-1.6.0/src/engine/main.cpp:583:97:  [1] (buffer) strlen:
  Does not handle 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 = decodeutf8(buf, sizeof(buf)-1, (const uchar *)event.text.text, strlen(event.text.text));
data/redeclipse-1.6.0/src/engine/master.cpp:351:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    checkstatsdb(sqlite3_bind_text(stmt, 1, handle, strlen(handle), SQLITE_TRANSIENT));
data/redeclipse-1.6.0/src/engine/master.cpp:364: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/redeclipse-1.6.0/src/engine/md2.h:133: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/redeclipse-1.6.0/src/engine/md2.h:152: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/redeclipse-1.6.0/src/engine/md2.h:179: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/redeclipse-1.6.0/src/engine/md2.h:182: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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/md5.h:100: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/redeclipse-1.6.0/src/engine/md5.h:306: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/redeclipse-1.6.0/src/engine/md5.h:404: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).
        const char *fname = name + strlen(name);
data/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/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/redeclipse-1.6.0/src/engine/octaedit.cpp:1268:10:  [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(prefabheader) || memcmp(hdr.magic, "OEBR", 4)) { delete f; if(msg) conoutf("\frprefab %s has malformatted header", filename); return NULL; }
data/redeclipse-1.6.0/src/engine/pvs.cpp:1284:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    p->leafmask = f->getchar();
data/redeclipse-1.6.0/src/engine/pvs.cpp:1309: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/redeclipse-1.6.0/src/engine/rendermodel.cpp:1089: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/redeclipse-1.6.0/src/engine/renderparticles.cpp:148: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(info);
data/redeclipse-1.6.0/src/engine/rendertext.cpp:182: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/redeclipse-1.6.0/src/engine/rendertext.cpp:654:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int q = strlen(key);
data/redeclipse-1.6.0/src/engine/rendertext.cpp:656: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).
    for(int r = strlen(key); q < r; q++) key[q] = tolower(key[q]);
data/redeclipse-1.6.0/src/engine/server.cpp:240: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(buf), carry = 0;
data/redeclipse-1.6.0/src/engine/server.cpp:281: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 count = strlen(word);
data/redeclipse-1.6.0/src/engine/server.cpp:326: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).
                    src += end ? end-src : strlen(src);
data/redeclipse-1.6.0/src/engine/server.cpp:342: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(s);
data/redeclipse-1.6.0/src/engine/server.cpp:572:15:  [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/redeclipse-1.6.0/src/engine/server.cpp:729: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/redeclipse-1.6.0/src/engine/server.cpp:1104: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(line.buf), carry = 0;
data/redeclipse-1.6.0/src/engine/server.cpp:1228: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/redeclipse-1.6.0/src/engine/server.cpp:1272: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/redeclipse-1.6.0/src/engine/serverbrowser.cpp:433: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/redeclipse-1.6.0/src/engine/shader.cpp:95: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(part, 1, next ? next - part + 1 : strlen(part), l);
data/redeclipse-1.6.0/src/engine/shader.cpp:551: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("//:attrib");
data/redeclipse-1.6.0/src/engine/shader.cpp:557: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, "//:attrib %100s %d", name, &loc) == 2)
data/redeclipse-1.6.0/src/engine/shader.cpp:565: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("//:uniform");
data/redeclipse-1.6.0/src/engine/shader.cpp:571: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, "//:uniform %100s %100s %d %d", name, blockname, &binding, &stride);
data/redeclipse-1.6.0/src/engine/shader.cpp:702: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/redeclipse-1.6.0/src/engine/shader.cpp:703: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/redeclipse-1.6.0/src/engine/shader.cpp:705: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("//:variant"), olen = strlen("override");
data/redeclipse-1.6.0/src/engine/shader.cpp:705: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).
    static const int len = strlen("//:variant"), olen = strlen("override");
data/redeclipse-1.6.0/src/engine/shader.cpp:760: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).
    vsw.put(fadeparams, strlen(fadeparams));
data/redeclipse-1.6.0/src/engine/shader.cpp:763: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).
    vsw.put(fadedef, strlen(fadedef));
data/redeclipse-1.6.0/src/engine/shader.cpp:764: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).
    vsw.put(vsend, strlen(vsend)+1);
data/redeclipse-1.6.0/src/engine/shader.cpp:770: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).
    psw.put(fadeinterp, strlen(fadeinterp));
data/redeclipse-1.6.0/src/engine/shader.cpp:773: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).
    psw.put(fade, strlen(fade));
data/redeclipse-1.6.0/src/engine/shader.cpp:774: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).
    psw.put(psend, strlen(psend)+1);
data/redeclipse-1.6.0/src/engine/shader.cpp:794: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, "//:dynlight %100s", pslight)!=1) return;
data/redeclipse-1.6.0/src/engine/shader.cpp:812: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).
        vsdl.put(pos, strlen(pos));
data/redeclipse-1.6.0/src/engine/shader.cpp:813: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).
        psdl.put(pos, strlen(pos));
data/redeclipse-1.6.0/src/engine/shader.cpp:815: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).
        psdl.put(color, strlen(color));
data/redeclipse-1.6.0/src/engine/shader.cpp:820: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).
            vsdl.put(dir, strlen(dir));
data/redeclipse-1.6.0/src/engine/shader.cpp:821: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).
            psdl.put(dir, strlen(dir));
data/redeclipse-1.6.0/src/engine/shader.cpp:834: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/redeclipse-1.6.0/src/engine/shader.cpp:835: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/redeclipse-1.6.0/src/engine/shader.cpp:840: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/redeclipse-1.6.0/src/engine/shader.cpp:843: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/redeclipse-1.6.0/src/engine/shader.cpp:844: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/redeclipse-1.6.0/src/engine/shader.cpp:862: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, "//:shadowmap %100s", pslight)!=1) return;
data/redeclipse-1.6.0/src/engine/shader.cpp:878: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(vsdecl, strlen(vsdecl));
data/redeclipse-1.6.0/src/engine/shader.cpp:884: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(psdecl, strlen(psdecl));
data/redeclipse-1.6.0/src/engine/shader.cpp:892: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).
    vssm.put(tcgen, strlen(tcgen));
data/redeclipse-1.6.0/src/engine/shader.cpp:902: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).
    pssm.put(sm, strlen(sm));
data/redeclipse-1.6.0/src/engine/shader.cpp:906: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).
    pssm.put(smlight, strlen(smlight));
data/redeclipse-1.6.0/src/engine/shader.cpp:908: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/redeclipse-1.6.0/src/engine/shader.cpp:909: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/redeclipse-1.6.0/src/engine/shader.cpp:923: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("//:fog");
data/redeclipse-1.6.0/src/engine/shader.cpp:929: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).
        vsbuf.put(fogparams, strlen(fogparams));
data/redeclipse-1.6.0/src/engine/shader.cpp:932: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/redeclipse-1.6.0/src/engine/shader.cpp:933: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/redeclipse-1.6.0/src/engine/shader.cpp:943: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).
        psbuf.put(fogparams, strlen(fogparams));
data/redeclipse-1.6.0/src/engine/shader.cpp:959:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(clen <= 0) { pspragma = "fogcolor"; clen = strlen(pspragma); }
data/redeclipse-1.6.0/src/engine/shader.cpp:960: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/redeclipse-1.6.0/src/engine/shader.cpp:962: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/redeclipse-1.6.0/src/engine/shader.cpp:963: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/redeclipse-1.6.0/src/engine/shader.cpp:977: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/redeclipse-1.6.0/src/engine/shader.cpp:978: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/redeclipse-1.6.0/src/engine/shader.cpp:983: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/redeclipse-1.6.0/src/engine/shader.cpp:984: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/redeclipse-1.6.0/src/engine/shader.cpp:986: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/redeclipse-1.6.0/src/engine/shader.cpp:987: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/redeclipse-1.6.0/src/engine/shader.cpp:1087: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/redeclipse-1.6.0/src/engine/shader.cpp:1088: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/redeclipse-1.6.0/src/engine/skelmodel.h:502: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/redeclipse-1.6.0/src/engine/skelmodel.h:1040: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/redeclipse-1.6.0/src/engine/skelmodel.h:1041: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/redeclipse-1.6.0/src/engine/skelmodel.h:1045: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/redeclipse-1.6.0/src/engine/smd.h:422: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).
        const char *fname = name + strlen(name);
data/redeclipse-1.6.0/src/engine/sound.cpp:746:28:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if(mumbleinfo) wcsncpy(mumbleinfo->name, (const wchar_t *)versionuname, 256);
data/redeclipse-1.6.0/src/engine/sound.cpp:754:48:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if(mumbleinfo != (MumbleInfo *)-1) wcsncpy(mumbleinfo->name, (const wchar_t *)versionuname, 256);
data/redeclipse-1.6.0/src/engine/textedit.h:45: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/redeclipse-1.6.0/src/engine/textedit.h:59: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/redeclipse-1.6.0/src/engine/textedit.h:70: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/redeclipse-1.6.0/src/engine/textedit.h:75: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/redeclipse-1.6.0/src/engine/textedit.h:81: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/redeclipse-1.6.0/src/engine/textedit.h:94: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/redeclipse-1.6.0/src/engine/textedit.h:120: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/redeclipse-1.6.0/src/engine/textedit.h:206: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/redeclipse-1.6.0/src/engine/textedit.h:779: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/redeclipse-1.6.0/src/engine/texture.cpp:1375: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/redeclipse-1.6.0/src/engine/texture.cpp:3178: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/redeclipse-1.6.0/src/engine/texture.cpp:3180: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/redeclipse-1.6.0/src/engine/texture.cpp:3224: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/redeclipse-1.6.0/src/engine/texture.cpp:3291: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/redeclipse-1.6.0/src/engine/worldio.cpp:380:21:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int octsav = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:390: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/redeclipse-1.6.0/src/engine/worldio.cpp:394:49:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    loopi(6) c.texture[i] = hdr.version<14 ? f->getchar() : f->getlil<ushort>();
data/redeclipse-1.6.0/src/engine/worldio.cpp:395:37:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(hdr.version < 7) loopi(3) f->getchar(); //f->read(c.colour, 3);
data/redeclipse-1.6.0/src/engine/worldio.cpp:398:25:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uchar mask = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:401:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int mat = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:420: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/redeclipse-1.6.0/src/engine/worldio.cpp:434: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/redeclipse-1.6.0/src/engine/worldio.cpp:459:33:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int merged = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:463:35:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    int mask = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:470: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/redeclipse-1.6.0/src/engine/worldio.cpp:494:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int mat = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:499: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/redeclipse-1.6.0/src/engine/worldio.cpp:503:27:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            surfmask = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:504:29:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            totalverts = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:512: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/redeclipse-1.6.0/src/engine/worldio.cpp:628: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/redeclipse-1.6.0/src/engine/worldio.cpp:629: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/redeclipse-1.6.0/src/engine/worldio.cpp:705: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/redeclipse-1.6.0/src/engine/worldio.cpp:865: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).
        if(id.type == ID_ALIAS && id.flags&IDF_WORLD && !(id.flags&IDF_SERVER) && strlen(id.name))
data/redeclipse-1.6.0/src/engine/worldio.cpp:1031:127:  [1] (buffer) strlen:
  Does not handle 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((id.type == ID_VAR || id.type == ID_FVAR || id.type == ID_SVAR) && id.flags&IDF_WORLD && !(id.flags&IDF_SERVER) && strlen(id.name)) numvars++;
data/redeclipse-1.6.0/src/engine/worldio.cpp:1035:127:  [1] (buffer) strlen:
  Does not handle 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((id.type == ID_VAR || id.type == ID_FVAR || id.type == ID_SVAR) && id.flags&IDF_WORLD && !(id.flags&IDF_SERVER) && strlen(id.name))
data/redeclipse-1.6.0/src/engine/worldio.cpp:1039: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).
            f->putlil<int>((int)strlen(id.name));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1040: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).
            f->write(id.name, (int)strlen(id.name)+1);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1051: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->putlil<int>((int)strlen(*id.storage.s));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1052: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).
                    f->write(*id.storage.s, (int)strlen(*id.storage.s)+1);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1188:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&newhdr, sizeof(binary))!=(int)sizeof(binary))
data/redeclipse-1.6.0/src/engine/worldio.cpp:1205:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(f->read(&chdr.worldsize, sizeof(chdr)-sizeof(binary))!=sizeof(chdr)-sizeof(binary)) \
data/redeclipse-1.6.0/src/engine/worldio.cpp:1258:69:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(size_t(newhdr.headersize) > sizeof(newhdr) || f->read(&newhdr.worldsize, newhdr.headersize-sizeof(binary))!=size_t(newhdr.headersize)-sizeof(binary))
data/redeclipse-1.6.0/src/engine/worldio.cpp:1289:73:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int numvars = hdr.version >= 25 ? f->getlil<int>() : f->getchar(), vars = 0;
data/redeclipse-1.6.0/src/engine/worldio.cpp:1295:73:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    int len = hdr.version >= 25 ? f->getlil<int>() : f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1299:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        f->read(name, len+1);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1328:85:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                int val = hdr.version >= 25 ? f->getlil<int>() : f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1354:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                    f->read(val, slen+1);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1365:45:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                    else f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1398:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(f->read(&chdr.worldsize, sizeof(chdr)-sizeof(binary))!=sizeof(chdr)-sizeof(binary)) \
data/redeclipse-1.6.0/src/engine/worldio.cpp:1455:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(f->read(&ohdr.worldsize, sizeof(octa)-sizeof(binary))!=sizeof(octa)-(int)sizeof(binary))
data/redeclipse-1.6.0/src/engine/worldio.cpp:1493:31:  [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/redeclipse-1.6.0/src/engine/worldio.cpp:1495:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(name, min(ilen, OCTASTRLEN-1));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1526:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        f->read(val, min(slen, OCTASTRLEN-1));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1539:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int len = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1540:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(gameid, len+1);
data/redeclipse-1.6.0/src/engine/worldio.cpp:1556:37:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                loopj(extrasize) f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1575:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            f->read(oldtl, sizeof(oldtl));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1596:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(&ec, sizeof(entcompat));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1606:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                f->read(&e, sizeof(entbase));
data/redeclipse-1.6.0/src/engine/worldio.cpp:1732:35:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    int type = f->getchar();
data/redeclipse-1.6.0/src/engine/worldio.cpp:1742:20:  [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/redeclipse-1.6.0/src/game/ai.cpp:1749: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).
                    size_t len = strlen(e->name);
data/redeclipse-1.6.0/src/game/client.cpp:185:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&d.hdr, sizeof(demoheader))!=sizeof(demoheader) || memcmp(d.hdr.magic, VERSION_DEMOMAGIC, sizeof(d.hdr.magic)))
data/redeclipse-1.6.0/src/game/client.cpp:624: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/redeclipse-1.6.0/src/game/client.cpp:631: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/redeclipse-1.6.0/src/game/client.cpp:843: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 n = listincludes(previousmaps, reqmap, strlen(reqmap));
data/redeclipse-1.6.0/src/game/client.cpp:877: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(listincludes(list, reqmap, strlen(reqmap)) < 0 && !haspriv(game::player1, G(modelock)))
data/redeclipse-1.6.0/src/game/client.cpp:1212: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 slen = strlen(cmd)+1+strlen(arg);
data/redeclipse-1.6.0/src/game/client.cpp:1212:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int slen = strlen(cmd)+1+strlen(arg);
data/redeclipse-1.6.0/src/game/client.cpp:1269:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            addmsg(N_COMMAND, "ri2sis", game::player1->clientnum, nargs, cmd, strlen(arg), arg);
data/redeclipse-1.6.0/src/game/client.cpp:1512: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).
                    addmsg(N_EDITVAR, "risis", id->type, id->name, strlen(*id->storage.s), *id->storage.s);
data/redeclipse-1.6.0/src/game/client.cpp:1517: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).
                    addmsg(N_EDITVAR, "risis", id->type, id->name, strlen(s), s);
data/redeclipse-1.6.0/src/game/compass.h:90: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).
    a.name = newstring(strlen(name) > 1 ? name : contents);
data/redeclipse-1.6.0/src/game/hud.cpp:668: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).
        #define ADDMODE(s) { list.put(s, strlen(s)); list.add(' '); }
data/redeclipse-1.6.0/src/game/hud.cpp:1872: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).
                int cp = commandpos >= 0 ? commandpos : strlen(commandbuf);//, fp = completesize && completeoffset >= 0 ? min(pos, completeoffset+completesize) : -1;
data/redeclipse-1.6.0/src/game/hud.cpp:1921: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(strlen(id->args)) tz += draw_textf("\faargs: \fw%d \fa(\fw%s\fa)", tq, ty+tz, 0, 0, 255, 255, 255, int(fullconblend*fade*255), concenter ? TEXT_CENTERED : TEXT_LEFT_JUSTIFY, -1, tt, 1, strlen(id->args), id->args);
data/redeclipse-1.6.0/src/game/hud.cpp:1921:229:  [1] (buffer) strlen:
  Does not handle 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(id->args)) tz += draw_textf("\faargs: \fw%d \fa(\fw%s\fa)", tq, ty+tz, 0, 0, 255, 255, 255, int(fullconblend*fade*255), concenter ? TEXT_CENTERED : TEXT_LEFT_JUSTIFY, -1, tt, 1, strlen(id->args), id->args);
data/redeclipse-1.6.0/src/game/hud.cpp:1972: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).
                                        loopj(strlen(id->args)) switch(id->args[j])
data/redeclipse-1.6.0/src/game/scoreboard.cpp:306: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).
                                int len = strlen(mapauthor);
data/redeclipse-1.6.0/src/game/scoreboard.cpp:327: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).
                                    uicenterlist(g, uifont(g, (strlen(serverdesc) >= 32 ? "tiny" : "little"), {
data/redeclipse-1.6.0/src/game/server.cpp:952: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).
                sendf(-1, 1, "ri2sis", N_COMMAND, -1, &id->name[3], strlen(sval), sval); \
data/redeclipse-1.6.0/src/game/server.cpp:966:78:  [1] (buffer) strlen:
  Does not handle 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(sval) sendf(-1, 1, "ri2sis", N_COMMAND, -1, &id->name[3], strlen(sval), sval); \
data/redeclipse-1.6.0/src/game/server.cpp:979: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).
                sendf(-1, 1, "ri2sis", N_COMMAND, -1, &id->name[3], strlen(*id->storage.s), *id->storage.s); \
data/redeclipse-1.6.0/src/game/server.cpp:1027:76:  [1] (buffer) strlen:
  Does not handle 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(val) sendf(-1, 1, "ri2sis", N_COMMAND, -1, &id.name[3], strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:1367: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).
            if(k < 3 && limit > 0 && int(strlen(mname)) >= limit)
data/redeclipse-1.6.0/src/game/server.cpp:2364: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, VERSION_DEMOMAGIC, sizeof(hdr.magic)))
data/redeclipse-1.6.0/src/game/server.cpp:2382: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/redeclipse-1.6.0/src/game/server.cpp:2396: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/redeclipse-1.6.0/src/game/server.cpp:2397:31:  [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/redeclipse-1.6.0/src/game/server.cpp:2405: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, len)!=size_t(len))
data/redeclipse-1.6.0/src/game/server.cpp:2414: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/redeclipse-1.6.0/src/game/server.cpp:2454:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(f->read(&d.hdr, sizeof(demoheader))!=sizeof(demoheader) || memcmp(d.hdr.magic, VERSION_DEMOMAGIC, sizeof(d.hdr.magic)))
data/redeclipse-1.6.0/src/game/server.cpp:2485: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/redeclipse-1.6.0/src/game/server.cpp:2713: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).
                        int n = listincludes(sv_previousmaps, reqmap, strlen(reqmap));
data/redeclipse-1.6.0/src/game/server.cpp:2745: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).
                    if(!israndom && listincludes(list, reqmap, strlen(reqmap)) < 0 && !haspriv(ci, G(modelock), "select maps not in the rotation"))
data/redeclipse-1.6.0/src/game/server.cpp:3481: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).
            buf.put(smapname, strlen(smapname));
data/redeclipse-1.6.0/src/game/server.cpp:3500: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).
                    buf.put(prev[i], strlen(prev[i]));
data/redeclipse-1.6.0/src/game/server.cpp:3559: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 slen = strlen(id->name);
data/redeclipse-1.6.0/src/game/server.cpp:3560: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).
                    if(arg && nargs > 1) slen += strlen(arg)+1;
data/redeclipse-1.6.0/src/game/server.cpp:3673: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).
                sendf(-1, 1, "ri2sis", N_COMMAND, -1, &id->name[3], strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:3693: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 len = strlen(id->name);
data/redeclipse-1.6.0/src/game/server.cpp:3705: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 slen = strlen(id->name);
data/redeclipse-1.6.0/src/game/server.cpp:3706: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).
                    if(arg && nargs > 1) slen += strlen(arg)+1;
data/redeclipse-1.6.0/src/game/server.cpp:3726:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        sendf(ci->clientnum, 1, "ri2sis", N_COMMAND, -1, name, strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:3760:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        sendf(ci->clientnum, 1, "ri2sis", N_COMMAND, -1, name, strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:3791:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        sendf(ci->clientnum, 1, "ri2sis", N_COMMAND, -1, name, strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:3812:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sendf(-1, 1, "ri2sis", N_COMMAND, ci->clientnum, name, strlen(val), val);
data/redeclipse-1.6.0/src/game/server.cpp:3999: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).
                    putint(p, strlen(val));
data/redeclipse-1.6.0/src/game/server.cpp:6483: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).
                                    size_t len = strlen(t->name);
data/redeclipse-1.6.0/src/game/waypoint.cpp:709: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 false; }
data/redeclipse-1.6.0/src/game/waypoint.cpp:724: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/redeclipse-1.6.0/src/shared/command.h:223: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).
    return conc(v, n, space, prefix, strlen(prefix));
data/redeclipse-1.6.0/src/shared/crypto.cpp:842: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/redeclipse-1.6.0/src/shared/crypto.cpp:873: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/redeclipse-1.6.0/src/shared/stream.cpp:325: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/redeclipse-1.6.0/src/shared/stream.cpp:360: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/redeclipse-1.6.0/src/shared/stream.cpp:366: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/redeclipse-1.6.0/src/shared/stream.cpp:395: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/redeclipse-1.6.0/src/shared/stream.cpp:418: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/redeclipse-1.6.0/src/shared/stream.cpp:434: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/redeclipse-1.6.0/src/shared/stream.cpp:508: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).
    size_t extsize = ext ? strlen(ext)+1 : 0;
data/redeclipse-1.6.0/src/shared/stream.cpp:519: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).
                size_t namelen = strlen(FindFileData.cFileName);
data/redeclipse-1.6.0/src/shared/stream.cpp:542: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).
                size_t namelen = strlen(de->d_name);
data/redeclipse-1.6.0/src/shared/stream.cpp:563: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).
    size_t dirlen = strlen(dirname);
data/redeclipse-1.6.0/src/shared/stream.cpp:593: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/redeclipse-1.6.0/src/shared/stream.cpp:632: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/redeclipse-1.6.0/src/shared/stream.cpp:725:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(void *buf, size_t len) { return fread(buf, 1, len, file); }
data/redeclipse-1.6.0/src/shared/stream.cpp:728: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/redeclipse-1.6.0/src/shared/stream.cpp:728: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/redeclipse-1.6.0/src/shared/stream.cpp:798:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size_t n = file->read(zfile.next_in + zfile.avail_in, size);
data/redeclipse-1.6.0/src/shared/stream.cpp:955: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/redeclipse-1.6.0/src/shared/stream.cpp:982: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/redeclipse-1.6.0/src/shared/stream.cpp:989:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(void *buf, size_t len)
data/redeclipse-1.6.0/src/shared/stream.cpp:1064:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size_t n = file->read(&buf[buflen], min(size, BUFSIZE - buflen));
data/redeclipse-1.6.0/src/shared/stream.cpp:1075:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size_t n = file->read(buf, 3);
data/redeclipse-1.6.0/src/shared/stream.cpp:1133: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/redeclipse-1.6.0/src/shared/stream.cpp:1151: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/redeclipse-1.6.0/src/shared/stream.cpp:1158:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(void *dst, size_t len)
data/redeclipse-1.6.0/src/shared/stream.cpp:1265: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[] buf; return NULL; }
data/redeclipse-1.6.0/src/shared/stream.cpp:1269:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t rlen = f->read(&buf[offset], len-offset);
data/redeclipse-1.6.0/src/shared/tools.h:169:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t slen = min(strlen(s), len-1);
data/redeclipse-1.6.0/src/shared/tools.h:176:79:  [1] (buffer) strlen:
  Does not handle 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) { size_t used = strlen(d); return used < len ? copystring(d+used, s, len-used) : d; }
data/redeclipse-1.6.0/src/shared/tools.h:181:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t slen = min(strlen(s), len);
data/redeclipse-1.6.0/src/shared/tools.h:182: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).
    memmove(&d[slen], d, min(len - slen, strlen(d) + 1));
data/redeclipse-1.6.0/src/shared/tools.h:212: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(d);
data/redeclipse-1.6.0/src/shared/tools.h:230:77:  [1] (buffer) strlen:
  Does not handle 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)           { if(!s) s = ""; size_t l = strlen(s); char *d = newstring(l); memcpy(d, s, l+1); return d; }
data/redeclipse-1.6.0/src/shared/tools.h:308: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/redeclipse-1.6.0/src/shared/tools.h:309: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/redeclipse-1.6.0/src/shared/tools.h:310:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len += read;
data/redeclipse-1.6.0/src/shared/tools.h:311:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;
data/redeclipse-1.6.0/src/shared/tools.h:533: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).
inline int stringlen(const char *s) { return int(strlen(s)); }
data/redeclipse-1.6.0/src/shared/tools.h:557: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).
    return x.len == (int)strlen(y) && !memcmp(x.str, y, x.len);
data/redeclipse-1.6.0/src/shared/tools.h:1394:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef getchar
data/redeclipse-1.6.0/src/shared/tools.h:1395:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/redeclipse-1.6.0/src/shared/tools.h:1421:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t read(void *buf, size_t len) { return 0; }
data/redeclipse-1.6.0/src/shared/tools.h:1424: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/redeclipse-1.6.0/src/shared/tools.h:1424: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/redeclipse-1.6.0/src/shared/tools.h:1427:60:  [1] (buffer) strlen:
  Does not handle 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) { size_t len = strlen(str); return write(str, len) == len; }
data/redeclipse-1.6.0/src/shared/tools.h:1437:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    template<class T> size_t get(T *v, size_t n) { return read(v, n*sizeof(T))/sizeof(T); }
data/redeclipse-1.6.0/src/shared/tools.h:1438: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/redeclipse-1.6.0/src/shared/zip.cpp:217: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).
    size_t striplen = stripdir ? strlen(stripdir) : 0;
data/redeclipse-1.6.0/src/shared/zip.cpp:271: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).
    size_t plen = strlen(pname);
data/redeclipse-1.6.0/src/shared/zip.cpp:311: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/redeclipse-1.6.0/src/shared/zip.cpp:479: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/redeclipse-1.6.0/src/shared/zip.cpp:487:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(void *buf, size_t len)
data/redeclipse-1.6.0/src/shared/zip.cpp:558: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).
    size_t extsize = ext ? strlen(ext)+1 : 0, dirsize = strlen(dir);
data/redeclipse-1.6.0/src/shared/zip.cpp:558: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).
    size_t extsize = ext ? strlen(ext)+1 : 0, dirsize = strlen(dir);
data/redeclipse-1.6.0/src/shared/zip.cpp:573: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).
                size_t namelen = strlen(name);

ANALYSIS SUMMARY:

Hits = 836
Lines analyzed = 111738 in approximately 3.26 seconds (34311 lines/second)
Physical Source Lines of Code (SLOC) = 101710
Hits@level = [0] 190 [1] 364 [2] 348 [3]   5 [4] 119 [5]   0
Hits@level+ = [0+] 1026 [1+] 836 [2+] 472 [3+] 124 [4+] 119 [5+]   0
Hits/KSLOC@level+ = [0+] 10.0875 [1+] 8.21945 [2+] 4.64064 [3+] 1.21915 [4+] 1.16999 [5+]   0
Dot directories skipped = 2 (--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.