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/armagetronad-0.2.9.0.1/src/config_ide.h
Examining data/armagetronad-0.2.9.0.1/src/defs.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eAdvWall.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eAdvWall.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eAuthentication.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eAuthentication.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eAxis.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eAxis.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eCamera.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eCamera.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eChat.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eChat.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eCoord.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eDebugLine.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eDebugLine.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eDisplay.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eFloor.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eFloor.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eGameObject.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eGameObject.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eGrid.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eGrid.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eKrawall.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eKrawall.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eLagCompensation.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eLagCompensation.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eNetGameObject.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eNetGameObject.h
Examining data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/ePath.h
Examining data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/ePlayer.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eRectangle.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eRectangle.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eSensor.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eSensor.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eSound.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eSound.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eTeam.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eTeam.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eTess2.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eTimer.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eTimer.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eVoter.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eVoter.h
Examining data/armagetronad-0.2.9.0.1/src/engine/eWall.cpp
Examining data/armagetronad-0.2.9.0.1/src/engine/eWall.h
Examining data/armagetronad-0.2.9.0.1/src/engine/test.cpp
Examining data/armagetronad-0.2.9.0.1/src/leftover.cpp
Examining data/armagetronad-0.2.9.0.1/src/macosx/SDLMain.h
Examining data/armagetronad-0.2.9.0.1/src/macosx/client/config.h
Examining data/armagetronad-0.2.9.0.1/src/macosx/dedicated/config.h
Examining data/armagetronad-0.2.9.0.1/src/network/astat.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/master.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/md5.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/md5.h
Examining data/armagetronad-0.2.9.0.1/src/network/nAuthentication.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nAuthentication.h
Examining data/armagetronad-0.2.9.0.1/src/network/nConfig.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nConfig.h
Examining data/armagetronad-0.2.9.0.1/src/network/nKrawall.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nKrawall.h
Examining data/armagetronad-0.2.9.0.1/src/network/nKrawallPrivate.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nNetObject.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nNetObject.h
Examining data/armagetronad-0.2.9.0.1/src/network/nNetwork.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nNetwork.h
Examining data/armagetronad-0.2.9.0.1/src/network/nObserver.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nObserver.h
Examining data/armagetronad-0.2.9.0.1/src/network/nPriorizing.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nPriorizing.h
Examining data/armagetronad-0.2.9.0.1/src/network/nServerInfo.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nServerInfo.h
Examining data/armagetronad-0.2.9.0.1/src/network/nSimulatePing.h
Examining data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nSocket.h
Examining data/armagetronad-0.2.9.0.1/src/network/nSpamProtection.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nSpamProtection.h
Examining data/armagetronad-0.2.9.0.1/src/network/nettest.cpp
Examining data/armagetronad-0.2.9.0.1/src/network/nettest_main.cpp
Examining data/armagetronad-0.2.9.0.1/src/prototype.cpp
Examining data/armagetronad-0.2.9.0.1/src/prototype.h
Examining data/armagetronad-0.2.9.0.1/src/render/rConsole.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rConsole.h
Examining data/armagetronad-0.2.9.0.1/src/render/rConsoleCout.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rConsoleGraph.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rDisplayList.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rDisplayList.h
Examining data/armagetronad-0.2.9.0.1/src/render/rFont.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rFont.h
Examining data/armagetronad-0.2.9.0.1/src/render/rGL.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rGL.h
Examining data/armagetronad-0.2.9.0.1/src/render/rGLRender.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rModel.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rModel.h
Examining data/armagetronad-0.2.9.0.1/src/render/rRender.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rRender.h
Examining data/armagetronad-0.2.9.0.1/src/render/rSDL.h
Examining data/armagetronad-0.2.9.0.1/src/render/rScreen.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rScreen.h
Examining data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rSysdep.h
Examining data/armagetronad-0.2.9.0.1/src/render/rTexture.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rTexture.h
Examining data/armagetronad-0.2.9.0.1/src/render/rViewport.cpp
Examining data/armagetronad-0.2.9.0.1/src/render/rViewport.h
Examining data/armagetronad-0.2.9.0.1/src/render/testgl.cpp
Examining data/armagetronad-0.2.9.0.1/src/test/chat_prefix_test.cpp
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.h
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/action_api.cpp
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/general.h
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/opengl.cpp
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/p_vector.h
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/papi.h
Examining data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/memtest.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/pthread-binding.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tArray.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tArray.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tCallback.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tCallback.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tCallbackString.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tColor.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tColor.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tCommandLine.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tCommandLine.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tConsole.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tConsole.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tCrypt.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tCrypt.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tDirectories.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tError.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tError.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tEventQueue.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tEventQueue.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tException.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tException.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tHeap.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tHeap.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tInitExit.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tLinkedList.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tLinkedList.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tList.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tLocale.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tLocale.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tMath.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tMemManager.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tMemStack.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tMemStack.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tRandom.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tRandom.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tRecorder.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tRecorderInternal.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tRecorderInternal.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tReferenceHolder.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tRing.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tRing.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tSafePTR.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tSafePTR.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tSafePTRBase.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tString.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tString.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tSysTime.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tSysTime.h
Examining data/armagetronad-0.2.9.0.1/src/tools/tToDo.cpp
Examining data/armagetronad-0.2.9.0.1/src/tools/tToDo.h
Examining data/armagetronad-0.2.9.0.1/src/tools/transfab.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gAIBase.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gAICharacter.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gAICharacter.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gArena.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gArena.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gArmagetron.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gCamera.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gCamera.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gCycle.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gCycle.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gCycleMovement.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gCycleMovement.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gExplosion.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gExplosion.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gFloor.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gFriends.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gFriends.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gGame.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gGame.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gHud.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gLanguageMenu.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gLanguageMenu.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gLogo.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gLogo.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gMenus.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gMenus.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gParser.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gParticles.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gParticles.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gSensor.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gSensor.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gServerBrowser.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gServerBrowser.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gServerFavorites.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gServerFavorites.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gSparks.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gSparks.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gSpawn.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gSpawn.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gStuff.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gStuff.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gTeam.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gTeam.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gWall.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gWall.h
Examining data/armagetronad-0.2.9.0.1/src/tron/gWinZone.cpp
Examining data/armagetronad-0.2.9.0.1/src/tron/gWinZone.h
Examining data/armagetronad-0.2.9.0.1/src/ui/uInput.cpp
Examining data/armagetronad-0.2.9.0.1/src/ui/uInput.h
Examining data/armagetronad-0.2.9.0.1/src/ui/uInputQueue.cpp
Examining data/armagetronad-0.2.9.0.1/src/ui/uInputQueue.h
Examining data/armagetronad-0.2.9.0.1/src/ui/uMenu.cpp
Examining data/armagetronad-0.2.9.0.1/src/ui/uMenu.h
Examining data/armagetronad-0.2.9.0.1/src/win32/config.h
Examining data/armagetronad-0.2.9.0.1/src/win32/config_common.h
Examining data/armagetronad-0.2.9.0.1/src/win32/dirent.c
Examining data/armagetronad-0.2.9.0.1/src/win32/dirent.h
Examining data/armagetronad-0.2.9.0.1/src/win32/strstream.h
Examining data/armagetronad-0.2.9.0.1/src/win32_ded/config.h
Examining data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.c
Examining data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.h
Examining data/armagetronad-0.2.9.0.1/src/win32_ded/strstream.h

FINAL RESULTS:

data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:714:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( &fullname(0), 0600 );
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:89:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:89:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:98:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SDL_SysWMinfo system;
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:99:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SDL_VERSION(&system.version);
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:100:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (!SDL_GetWMInfo(&system)){
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:135:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        HWND hWnd=system.window;
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:164:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system.subsystem!=SDL_SYSWM_X11){
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:166:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        std::cerr << (int)system.subsystem << "!=" << (int)SDL_SYSWM_X11 <<'\n';
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:172:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        dpy=system.info.x11.display;
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:173:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        win=system.info.x11.window;
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:211:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SDL_SysWMinfo system;
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:212:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    SDL_GetWMInfo(&system);
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:225:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    HWND hWnd=system.window;
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1448:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1448:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:586:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(ampm,"%s","PM");
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:590:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(ampm,"%s","AM");
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:595:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(theTime, "%s:%s %s",h,m,ampm);
data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:34:10:  [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/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:989:17:  [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.
        retry = vsnprintf(&buffer[0], maxlen, msg, ap) >= maxlen;
data/armagetronad-0.2.9.0.1/src/win32/dirent.c:71:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(strcpy(dir->name, name), all);
data/armagetronad-0.2.9.0.1/src/win32/dirent.c:71:20:  [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).
            strcat(strcpy(dir->name, name), all);
data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.c:71:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(strcpy(dir->name, name), all);
data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.c:71:20:  [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).
            strcat(strcpy(dir->name, name), all);
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:1108:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand( (unsigned)time( NULL ) );
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:1110:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    static tString ret( getenv( "USER" ) );
data/armagetronad-0.2.9.0.1/src/engine/eSound.cpp:127:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ! getenv("SDL_AUDIODRIVER") ) {
data/armagetronad-0.2.9.0.1/src/render/rConsoleCout.cpp:620:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        getenv("PATH");
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:22:20:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    return pVector(drand48(), drand48(), drand48());
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:22:31:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    return pVector(drand48(), drand48(), drand48());
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:22:42:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    return pVector(drand48(), drand48(), drand48());
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:35:19:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        y = -logf(drand48());
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:37:11:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    while(drand48() > expf(-fsqr(y - 1.0f)*0.5f));
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1297:8:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(drand48() < particle_rate * dt - float(rate))
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1744:21:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            return (drand48() < Gx);
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1765:25:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos = p1 + p2 * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1769:40:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos.x = p1.x + (p2.x - p1.x) * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1770:40:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos.y = p1.y + (p2.y - p1.y) * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1771:40:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos.z = p1.z + (p2.z - p1.z) * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1775:24:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float r1 = drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1776:24:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float r2 = drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1784:24:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos = p1 + u * drand48() + v * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1784:40:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        pos = p1 + u * drand48() + v * drand48();
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1799:41:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            pos = p1 + pos * (radius2 + drand48() * (radius1 - radius2));
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1805:26:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float dist = drand48(); // Distance between base and tip
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1806:27:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float theta = drand48() * 2.0f * float(M_PI); // Angle around axis
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1808:33:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float r = radius2 + drand48() * (radius1 - radius2);
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1831:27:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float theta = drand48() * 2.0f * float(M_PI); // Angle around normal
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/actions.cpp:1833:33:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            float r = radius2 + drand48() * (radius1 - radius2);
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/p_vector.h:18:9:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define drand48() (((float) rand())/((float) RAND_MAX))
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/p_vector.h:19:20:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srand48(x) srand(x)
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:397:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((ret = getenv(type)))
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:116:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&mutex);
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:548:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection(&mutex);
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:886:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&mutex);
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1208:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&mutex);
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1440:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (random < 5)
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1855:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if (random<fear){ // evade him
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1864:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    ((enemydir.x<0 && random<evasive) ||
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1865:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                     (enemydir.y>0 && random<caution) ||
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1866:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                     (enemydir.y<0 && random<attack))){
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1900:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if (random<attack && (!(data.front.Hit() && data.front.distance < 20) || canCutIfAttack > canCutIfDriveOn)){
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1910:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if(random<seek){
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:1920:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if(random<trap){
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:2589:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    gRandomController random( randomizer_ );
data/armagetronad-0.2.9.0.1/src/tron/gAIBase.cpp:2962:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        gRandomController random( randomizer_ );
data/armagetronad-0.2.9.0.1/src/tron/gArmagetron.cpp:705:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if ( ! getenv("SDL_VIDEO_X11_DGAMOUSE") ) {
data/armagetronad-0.2.9.0.1/src/tron/gArmagetron.cpp:712:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if (!getenv( "SDL_VIDEODRIVER") ) {
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:37:25:  [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).
static tHeap<eHalfEdge> open;
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:113:12:  [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).
    while (open.Len())
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:115:24:  [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).
        eHalfEdge *e = open.Remove(0);
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:169:90:  [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).
            run->SetMinPathLength( Distance(run, startPoint) + Distance(run, stopPoint), open, PATH_START );
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:178:12:  [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).
    while (open.Len() > 0 && !stopEdge)
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:184:24:  [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).
        eHalfEdge *e = open.Remove(0);
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:326:38:  [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).
        SetMinPathLength( minLength, open, newOrigin );
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:337:38:  [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).
        SetMinPathLength( minLength, open, newOrigin );
data/armagetronad-0.2.9.0.1/src/engine/ePath.cpp:355: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).
    return &open;
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:283: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 hex[3];
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:7942:16:  [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).
        port = atoi( server.SubStr( pos + 1 ) );
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:8680: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 filter[256];
data/armagetronad-0.2.9.0.1/src/engine/eSound.cpp:416: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(cvt.buf, data, len);
data/armagetronad-0.2.9.0.1/src/engine/eSound.cpp:693: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(buff2,data,len);
data/armagetronad-0.2.9.0.1/src/network/master.cpp:55: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 szTemp[128];
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:92: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 test[7*2] = {
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:107: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 hex_output[16*2 + 1];
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:115:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(hex_output + di * 2, "%02x", digest[di]);
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:258: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(xbuf, data, 64);
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:409: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(pms->buf + offset, p, copy);
data/armagetronad-0.2.9.0.1/src/network/md5.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(pms->buf, p, left);
data/armagetronad-0.2.9.0.1/src/network/nConfig.cpp:423:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char const * sn_groupName[ nConfItemVersionWatcher::Group_Max ] =
data/armagetronad-0.2.9.0.1/src/network/nKrawall.cpp:559:26:  [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 numPlayers = atoi(numP);
data/armagetronad-0.2.9.0.1/src/network/nKrawallPrivate.cpp:470: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[1000];
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:433: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 buff[MAXHOSTNAMELEN]="\0";
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:671: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).
        net_hostport += atoi ( colon + 1 );
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:760:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[256];
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:796:16:  [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).
        port = atoi(b);
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:811: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 buffer[23];
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:1118:22:  [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).
            SetPort( atoi( colon + 1 ) );
data/armagetronad-0.2.9.0.1/src/render/rConsoleCout.cpp:310:24:  [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( pipe, "r" );
data/armagetronad-0.2.9.0.1/src/render/rModel.cpp:128: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 word[100];
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:263: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).
    if (!(fp = fopen(filename, "wb"))) {
data/armagetronad-0.2.9.0.1/src/render/rSysdep.cpp:326: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(reinterpret_cast<char *>(temp->pixels) + temp->pitch * idx,
data/armagetronad-0.2.9.0.1/src/render/rTexture.h:52: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 const * TextureGroupDescription[TEX_GROUPS];   //!< descriptions for the groups
data/armagetronad-0.2.9.0.1/src/test/chat_prefix_test.cpp:106:21:  [2] (integer) atol:
  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).
        long time = atol( (const char *)xmlTime );
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[5000];
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:110:6:  [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 ("/proc/self/maps", "r");
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:355:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, str1, len1);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:356:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result + len1, str2, len2);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:377:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, str, size);
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.cpp:232: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(glist, group_list, group_count * sizeof(void*));
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.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(new_list, alist_list, alist_count * sizeof(void*));
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.cpp:404: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(new_alist, alist, alist->count * sizeof(PAHeader));
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.cpp:413: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(&alist[alist->count], S, size);
data/armagetronad-0.2.9.0.1/src/thirdparty/particles/system.cpp:753: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(static_cast<void *>(pg2), static_cast<void *>(pg), (pg->p_count + 2) * sizeof(Particle));
data/armagetronad-0.2.9.0.1/src/tools/tArray.cpp:123:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newbase,base,size_of_T*(oldsize));
data/armagetronad-0.2.9.0.1/src/tools/tCrypt.cpp:50:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data_out, data_in, data_len);
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:369: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.
        user = (char *)memcpy(malloc(l + sizeof(char)), da + 1, l); user[l] = '\0';
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:379:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            user = (char *)memcpy(malloc(l + sizeof(char)), r + 1, l); user[l] = '\0';
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:386: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.
        type = (char *)memcpy(malloc(l + sizeof(char)), da + 2, l); type[l] = '\0';
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:402: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 path[MAX_PATH];
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:665:11:  [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).
        f.open( fullname );
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:710:7:  [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).
    f.open( fullname, mode );
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:740:11:  [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).
        f.open( fullname );
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1035: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 szBuf[256];
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1072: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 szBuf[256];
data/armagetronad-0.2.9.0.1/src/tools/tError.cpp:110:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ERROR_MESSAGE[1000];
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:282: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 *checksum_filename[MAXCHECKSUM];
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:283: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 *checksum_classname[MAXCHECKSUM];
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1466: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[100];
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1473: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( name, "w" );
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1575: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( ret, ptr, size );
data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp:46:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = fopen(savepath, "w");
data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp:202:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen((const char *)filepath, "r");
data/armagetronad-0.2.9.0.1/src/tools/tString.cpp:1337: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 filter[256];
data/armagetronad-0.2.9.0.1/src/tools/tString.cpp:1446: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 cs[9];
data/armagetronad-0.2.9.0.1/src/tools/tString.cpp:1746: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 szTemp[128];
data/armagetronad-0.2.9.0.1/src/tools/transfab.cpp:44: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[1000];
data/armagetronad-0.2.9.0.1/src/tron/gCycle.cpp:2067: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.
            static char const * names[SLOT_MAX]={"bike.png","cycle_body.png", "cycle_wheel.png"};
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:78: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 string[50];
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:116:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string,"%.1f",value);
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:316: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 fasteststring[50];
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:430:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                sprintf(fasteststring,"%.1f",max);
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:558: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 theTime[13*3];
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:567: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 h[13];
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:568: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 m[13];
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:569: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 ampm[13] = " ";
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:574:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(m, "0%d", thisTime->tm_min);
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:576:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(m, "%d", thisTime->tm_min);
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:580:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(h, "%d", thisTime->tm_hour);
data/armagetronad-0.2.9.0.1/src/tron/gHud.cpp:592:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(h, "%d", newhour);
data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:109: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).
    return (!strncasecmp(str, "t", 1) || !strncasecmp(str, "y", 1) || atoi(str));
data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:121:13:  [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 r = atoi(v);
data/armagetronad-0.2.9.0.1/src/ui/uMenu.cpp:212: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( &tEventRepeat, &tEvent, sizeof( SDL_Event ) );
data/armagetronad-0.2.9.0.1/src/engine/eDisplay.cpp:82:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(s) > 0)
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:1500: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 m = strlen(search_for_text);
data/armagetronad-0.2.9.0.1/src/engine/ePlayer.cpp:1501: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 n = strlen(text_to_search);
data/armagetronad-0.2.9.0.1/src/network/astat.cpp:57:41:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    while (nServerInfo::DoQueryAll(10)) usleep(1000);
data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp:119:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp:123:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000);
data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp:185:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000);
data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp:200:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000);
data/armagetronad-0.2.9.0.1/src/network/l2_demo.cpp:204:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:206:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:210:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:239:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:262:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:273:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000);
data/armagetronad-0.2.9.0.1/src/network/l3_demo.cpp:281:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/armagetronad-0.2.9.0.1/src/network/md5.cpp:111: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).
        md5_append(&state, (const md5_byte_t *)test[i], strlen(test[i]));
data/armagetronad-0.2.9.0.1/src/network/nAuthentication.cpp:765: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).
                authority = authority.SubStr( 0, authority.Len() - strlen( def ) - 1 );
data/armagetronad-0.2.9.0.1/src/network/nAuthentication.cpp:847:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::istringstream read( data.str() );
data/armagetronad-0.2.9.0.1/src/network/nAuthentication.cpp:848:83:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        method = nKrawall::nMethod( static_cast< char const * >( method.method ), read );
data/armagetronad-0.2.9.0.1/src/network/nKrawallPrivate.cpp:345: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).
        unsigned int len = strlen(buf_temp);
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:546:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nHostInfo read;
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:547:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( tRecorder::Playback( section, read ) )
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:549:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        hostList.push_back( read );
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:570:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        tRecorder::Record( section, read );
data/armagetronad-0.2.9.0.1/src/network/nSocket.cpp:770:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buff+1, in,254);
data/armagetronad-0.2.9.0.1/src/network/nSpamProtection.cpp:50: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).
    static int minlen=strlen("/admin SPAM_MAXLEN 1000");
data/armagetronad-0.2.9.0.1/src/network/nettest.cpp:203:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/armagetronad-0.2.9.0.1/src/network/nettest.cpp:219:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/armagetronad-0.2.9.0.1/src/render/rConsoleCout.cpp:160: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( output );
data/armagetronad-0.2.9.0.1/src/render/rConsoleCout.cpp:389:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( (lenRead=read(descriptor_,&c,1))>0){
data/armagetronad-0.2.9.0.1/src/render/rFont.cpp:525: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 colorlen = strlen(text);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:141:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen (path);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:351:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len1 = strlen (str1);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:352:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len2 = strlen (str2);
data/armagetronad-0.2.9.0.1/src/thirdparty/binreloc/prefix.c:372:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (str);
data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.cpp:513: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).
        if (strlen(name)==0) // ignore empty lines
data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.cpp:575: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).
                                static_cast<int>(strlen(ci->title)) > sim_maxlen)
data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.cpp:576: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).
                            sim_maxlen=strlen(ci->title);
data/armagetronad-0.2.9.0.1/src/tools/tConfiguration.cpp:780:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if ( line[strlen(line)-1] == '\\' )
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:220: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(pathname); // the total length of the path
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:707:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        oldmask = umask(0600);
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:715:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(oldmask);
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1040:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( szBuf, fileName, sizeof( szBuf ) - 1 );
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1046:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for ( i = strlen(szBuf); i >= 0; i-- )
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1055: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).
        for ( i = 0; (unsigned)i < strlen(szBuf); i++ )
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1081:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( szBuf, (const char *) fileSpec, sizeof( szBuf ) - 1 );
data/armagetronad-0.2.9.0.1/src/tools/tDirectories.cpp:1282: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).
	if ( !bestGuess || 0 == strlen(bestGuess) )
data/armagetronad-0.2.9.0.1/src/tools/tLocale.cpp:601: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(locale);
data/armagetronad-0.2.9.0.1/src/tools/tMemManager.cpp:1584: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).
        return static_cast< char * >( real_mmove( ptr, strlen( ptr ) + 1 ) );
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:232:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tString read;
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:235:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.ReadLine(s);
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:242:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for(int i=0; i<read.Len()-1; ++i)
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:244:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        char c = read[i];
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:245:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( c != '\\' || i+1 == read.Len() || ( read[i+1] != 'n' && read[i+1] != '\\' ) )
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:245:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( c != '\\' || i+1 == read.Len() || ( read[i+1] != 'n' && read[i+1] != '\\' ) )
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:245:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( c != '\\' || i+1 == read.Len() || ( read[i+1] != 'n' && read[i+1] != '\\' ) )
data/armagetronad-0.2.9.0.1/src/tools/tRecorder.cpp:249:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        else if ( read[i+1] == '\\' )
data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp:89:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(u, r, len);
data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp:129:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(nf, file, l);
data/armagetronad-0.2.9.0.1/src/tools/tResourceManager.cpp:139:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(nf, pos, l);
data/armagetronad-0.2.9.0.1/src/tools/tString.cpp:1135: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(c);
data/armagetronad-0.2.9.0.1/src/tools/tSysTime.cpp:170:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
void usleep(int x)
data/armagetronad-0.2.9.0.1/src/tools/tSysTime.cpp:293:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep( usecdelay );
data/armagetronad-0.2.9.0.1/src/tools/tSysTime.cpp:302:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep( usecdelay );
data/armagetronad-0.2.9.0.1/src/tron/gCycle.cpp:4504:94:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                glProgramStringARB_ptr(GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, strlen(program), program);
data/armagetronad-0.2.9.0.1/src/tron/gCycle.cpp:4506:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                glProgramStringARB(GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, strlen(program), program);
data/armagetronad-0.2.9.0.1/src/tron/gGame.cpp:3383: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).
                    if (strlen(sg_roundConsoleMessage) > 2)
data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:815:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(myxmlGetProp(cur, "name")) && strlen(myxmlGetProp(cur, "value")) && sn_GetNetState() != nCLIENT )
data/armagetronad-0.2.9.0.1/src/tron/gParser.cpp:815: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).
    if (strlen(myxmlGetProp(cur, "name")) && strlen(myxmlGetProp(cur, "value")) && sn_GetNetState() != nCLIENT )
data/armagetronad-0.2.9.0.1/src/ui/uMenu.cpp:599: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(text);
data/armagetronad-0.2.9.0.1/src/win32/dirent.c:64:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t base_length = strlen(name);
data/armagetronad-0.2.9.0.1/src/win32/dirent.c:69: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).
           (dir->name = (char *) malloc(base_length + strlen(all) + 1)) != 0)
data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.c:64:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t base_length = strlen(name);
data/armagetronad-0.2.9.0.1/src/win32_ded/dirent.c:69: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).
           (dir->name = (char *) malloc(base_length + strlen(all) + 1)) != 0)

ANALYSIS SUMMARY:

Hits = 228
Lines analyzed = 120673 in approximately 2.38 seconds (50695 lines/second)
Physical Source Lines of Code (SLOC) = 73485
Hits@level = [0]  33 [1]  74 [2]  85 [3]  44 [4]  24 [5]   1
Hits@level+ = [0+] 261 [1+] 228 [2+] 154 [3+]  69 [4+]  25 [5+]   1
Hits/KSLOC@level+ = [0+] 3.55175 [1+] 3.10267 [2+] 2.09567 [3+] 0.938967 [4+] 0.340205 [5+] 0.0136082
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.