cppcheck analysis of spring_0.81.2+dfsg1-1.dsc
- ./AI/Interfaces/C/src/Interface.cpp:113 [error] - Mismatching allocation and deallocation: ai
- ./AI/Wrappers/LegacyCpp/Event/AIInitEvent.h:49 [possible error] - Memory leak: CAIInitEvent::wrappedGlobalAICallback
- ./AI/Wrappers/LegacyCpp/AIAICallback.h:218 [possible error] - Memory leak: CAIAICallback::weaponDefFrames
- ./AI/Wrappers/LegacyCpp/AIAICallback.h:220 [possible error] - Memory leak: CAIAICallback::unitDefFrames
- ./AI/Wrappers/LegacyCpp/AIAICallback.h:226 [possible error] - Memory leak: CAIAICallback::featureDefFrames
- ./AI/Wrappers/LegacyCpp/AIGlobalAICallback.h:42 [possible error] - Memory leak: CAIGlobalAICallback::wrappedAICallback
- ./AI/Wrappers/LegacyCpp/AIGlobalAICallback.h:43 [possible error] - Memory leak: CAIGlobalAICallback::wrappedAICheats
- ./rts/Game/Game.cpp:2567 [possible error] - Memory leak: feature
- ./rts/Game/PreGame.cpp:170 [possible error] - Memory leak: startupData
- ./rts/Game/PreGame.cpp:170 [possible error] - Memory leak: setup
- ./rts/Game/PreGame.cpp:274 [possible error] - Memory leak: demoScript
- ./rts/Game/PreGame.cpp:329 [possible error] - Memory leak: tempSetup
- ./rts/Game/PreGame.h:72 [possible error] - Memory leak: CPreGame::savefile
- ./rts/Game/UI/KeyBindings.cpp:325 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./rts/Game/WaitCommandsAI.cpp:1059 [error] - Same iterator is used with both unblockSet and waitUnits
- ./rts/Game/WaitCommandsAI.cpp:1059 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./rts/Map/SM3/terrain/TerrainTexEnvCombine.h:101 [possible error] - Memory leak: TexEnvSetupHandler::curSetup
- ./rts/Menu/LobbyConnection.h:26 [possible error] - Memory leak: LobbyConnection::upwin
- ./rts/Menu/SelectMenu.cpp:76 [possible error] - Memory leak: connect
- ./rts/Menu/SelectMenu.cpp:76 [possible error] - Memory leak: close
- ./rts/Menu/SelectMenu.cpp:113 [possible error] - Memory leak: ok
- ./rts/Menu/SelectMenu.cpp:113 [possible error] - Memory leak: close
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: single
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: multi
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: update
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: editsettings
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: settings
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: direct
- ./rts/Menu/SelectMenu.cpp:233 [possible error] - Memory leak: quit
- ./rts/Rendering/Env/GrassDrawer.cpp:169 [possible error] - Memory leak: CGrassBlockDrawer::va
- ./rts/Rendering/GL/VertexArray.h:25 [error] - Class CVertexArray which is inherited by class CVertexArrayRange does not have a virtual destructor
- ./rts/Rendering/GroundDecalHandler.cpp:1148 [error] - Memory leak: tt
- ./rts/Sim/Path/IPath.h:8 [error] - Class IPath which is inherited by class CPathEstimator does not have a virtual destructor
- ./rts/Sim/Path/IPath.h:8 [error] - Class IPath which is inherited by class CPathFinder does not have a virtual destructor
- ./rts/Sim/Projectiles/PieceProjectile.cpp:210 [possible error] - Memory leak: tp
- ./rts/Sim/Projectiles/PieceProjectile.cpp:234 [possible error] - Memory leak: tp
- ./rts/Sim/Projectiles/Unsynced/WreckProjectile.cpp:54 [possible error] - Memory leak: hp
- ./rts/Sim/Projectiles/WeaponProjectiles/MissileProjectile.cpp:307 [possible error] - Memory leak: tp
- ./rts/Sim/Projectiles/WeaponProjectiles/StarburstProjectile.h:48 [possible error] - Memory leak: CStarburstProjectile::curCallback
- ./rts/Sim/Units/COB/CobInstance.cpp:499 [possible error] - Memory leak: t
- ./rts/Sim/Units/COB/UnitScript.cpp:525 [possible error] - Memory leak: hc
- ./rts/Sim/Units/UnitDefHandler.cpp:978 [error] - Memory leak: originalMap
- ./rts/Sim/Units/UnitLoader.cpp:488 [possible error] - Memory leak: weapon
- ./rts/Sim/Weapons/StarburstLauncher.cpp:61 [possible error] - Memory leak: p
- ./rts/System/Demo.h:12 [error] - Class CDemo which is inherited by class CDemoRecorder does not have a virtual destructor
- ./rts/System/FileSystem/Archive7Zip.cpp:150 [possible error] - Memory leak: of
- ./rts/System/FileSystem/ArchiveDir.cpp:72 [possible error] - Memory leak: f
- ./rts/System/Platform/SharedLib.cpp:44 [possible error] - Memory leak: lib
- ./rts/System/Platform/Win/CrashHandler.cpp:41 [error] - Null pointer dereference
- ./rts/System/Sync/Logger.cpp:130 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./rts/lib/gml/gmlfun.h:1312 [error] - Invalid number of character ({) when these macros are defined: 'USE_GML;_WIN32'.
- ./rts/lib/lua/src/lparser.cpp:359 [error] - Possible null pointer dereference: fs - otherwise it is redundant to check if fs is null at line 379
- ./rts/lib/streflop/libm/flt-32/e_j0f.cpp:305 [error] - Uninitialized variable: p
- ./rts/lib/streflop/libm/flt-32/e_j0f.cpp:441 [error] - Uninitialized variable: p
- ./rts/lib/streflop/libm/flt-32/e_j1f.cpp:304 [error] - Uninitialized variable: p
- ./rts/lib/streflop/libm/flt-32/e_j1f.cpp:441 [error] - Uninitialized variable: p
- ./tools/DedicatedServer/main.cpp:53 [possible error] - Memory leak: gameSetup
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 06:02:33 +0000, based on results by cppcheck 1.41-modif