cppcheck analysis of spring_0.82.7.1+dfsg1-2.dsc
- ./AI/Skirmish/RAI/GResourceMap.cpp:119 [error] - Resource leak: resourceFile_r
- ./AI/Wrappers/LegacyCpp/Event/AIInitEvent.h:49 [error] - Memory leak: CAIInitEvent::wrappedGlobalAICallback
- ./rts/ExternalAI/AISCommands.cpp:800 [style] - Redundant assignment of "internalUnitCommandTopic" in switch
- ./rts/ExternalAI/AISCommands.cpp:1028 [style] - Redundant assignment of "aiCommandTopic" in switch
- ./rts/ExternalAI/SSkirmishAICallbackImpl.cpp:1572 [error] - Possible null pointer dereference: tmpMap
- ./rts/Game/Game.cpp:2218 [error] - Null pointer dereference
- ./rts/Game/Game.cpp:2225 [error] - Division by zero
- ./rts/Lua/LuaOpenGL.cpp:4420 [error] - Buffer access out-of-bounds: matrix
- ./rts/Lua/LuaOpenGL.cpp:4451 [error] - Buffer access out-of-bounds: matrix
- ./rts/Rendering/FeatureDrawer.cpp:243 [error] - Iterator 'featureSetIt' becomes invalid when deleted by value from 'featureSet'
- ./rts/Rendering/FeatureDrawer.cpp:405 [error] - Iterator 'fi' becomes invalid when deleted by value from 'fadeFeatures'
- ./rts/System/MemPool.cpp:38 [error] - Data is allocated but not initialized: newBlock
- ./rts/System/Platform/Win/CrashHandler.cpp:45 [error] - Null pointer dereference
- ./rts/lib/gml/gmlfun.h:1344 [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/lua/src/lparser.cpp:375 [error] - Possible null pointer dereference: fs - otherwise it is redundant to check if fs is null at line 379
- ./rts/lib/minizip/unzip.c:522 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 523
- ./rts/lib/minizip/unzip.c:1095 [error] - Possible null pointer dereference: pfile_in_zip_read_info - otherwise it is redundant to check if pfile_in_zip_read_info is null at line 1097
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 07 Feb 2011 06:58:22 +0000, based on results by cppcheck 1.46