cppcheck analysis of 7kaa_2.14.3-1.dsc
- ./src/client/OAI_ATTK.cpp:830 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_ATTK.cpp:93 [error] - Uninitialized variable: originalTargetCombatLevel
- ./src/client/OAI_DIPL.cpp:373 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_DIPL.cpp:441 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_DIPL.cpp:487 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_DIPL.cpp:551 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_DIPL.cpp:675 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_GRAN.cpp:186 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OAI_GRAN.cpp:236 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OBATTLE.cpp:156 [error] - When i==town_array.size(), town_array[i] is out of bounds
- ./src/client/OBATTLE.cpp:424 [error] - When nationRecno==nation_array.size(), nation_array[nationRecno] is out of bounds
- ./src/client/OBATTLE.cpp:459 [error] - When nationRecno==nation_array.size(), nation_array[nationRecno] is out of bounds
- ./src/client/OBATTLE.cpp:252 [error] - When i==town_array.size(), town_array[i] is out of bounds
- ./src/client/OCRC_STO.cpp:67 [error] - When nationRecno==nation_array.size(), nation_array[nationRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:81 [error] - When unitRecno==unit_array.size(), unit_array[unitRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:95 [error] - When firmRecno==firm_array.size(), firm_array[firmRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:109 [error] - When townRecno==town_array.size(), town_array[townRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:123 [error] - When bulletRecno==bullet_array.size(), bullet_array[bulletRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:139 [error] - When rebelRecno==rebel_array.size(), rebel_array[rebelRecno] is out of bounds
- ./src/client/OCRC_STO.cpp:156 [error] - When spyRecno==spy_array.size(), spy_array[spyRecno] is out of bounds
- ./src/client/OF_CAMP.cpp:280 [error] - Uninitialized variable: unitPtr
- ./src/client/OGAMESET.cpp:86 [error] - When i==setDir.size(), setDir[i] is out of bounds
- ./src/client/OGAMSCEN.cpp:75 [error] - When i==gameDir.size(), gameDir[i] is out of bounds
- ./src/client/OGAMSCEN.cpp:79 [error] - When i==gameDir.size(), gameDir[i] is out of bounds
- ./src/client/OGENHILL.cpp:131 [error] - Uninitialized variable: h1
- ./src/client/OGENHILL.cpp:136 [error] - Uninitialized variable: h2
- ./src/client/OGENHILL.cpp:140 [error] - Uninitialized variable: h3
- ./src/client/OGENHILL.cpp:281 [error] - Uninitialized variable: h1
- ./src/client/OGENHILL.cpp:286 [error] - Uninitialized variable: h2
- ./src/client/OGENHILL.cpp:290 [error] - Uninitialized variable: h3
- ./src/client/OGENHILL.cpp:380 [error] - Uninitialized variable: h1
- ./src/client/OGENHILL.cpp:386 [error] - Uninitialized variable: h2
- ./src/client/OGENHILL.cpp:390 [error] - Uninitialized variable: h3
- ./src/client/OGENHILL.cpp:507 [error] - Uninitialized variable: h1
- ./src/client/OGENHILL.cpp:513 [error] - Uninitialized variable: h2
- ./src/client/OGENHILL.cpp:517 [error] - Uninitialized variable: h3
- ./src/client/OGFILE.cpp:322 [error] - When i==game_file_array.size(), game_file_array[i] is out of bounds
- ./src/client/OGFILEA.cpp:742 [error] - When gameFileRecno==game_file_array.size(), game_file_array[gameFileRecno] is out of bounds
- ./src/client/OGFILEA.cpp:907 [error] - When i==gameDir.size(), gameDir[i] is out of bounds
- ./src/client/OGFILEA.cpp:916 [error] - When i==gameDir.size(), gameDir[i] is out of bounds
- ./src/client/OGFILEA.cpp:917 [error] - When i==gameDir.size(), gameDir[i] is out of bounds
- ./src/client/OGFILEA.cpp:975 [error] - When i==game_file_array.size(), game_file_array[i] is out of bounds
- ./src/client/ONATIONA.cpp:440 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/ONATIONA.cpp:488 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OPOWER.cpp:1380 [error] - When i==unit_array.size(), unit_array[i] is out of bounds
- ./src/client/OR_NAT.cpp:637 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OR_NAT.cpp:639 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OR_RANK.cpp:490 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OSYS.cpp:2238 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OSYS.cpp:1092 [error] - When n==nation_array.size(), nation_array[n] is out of bounds
- ./src/client/OSYS.cpp:1201 [error] - When n==nation_array.size(), nation_array[n] is out of bounds
- ./src/client/OSYS.cpp:1277 [error] - When n==nation_array.size(), nation_array[n] is out of bounds
- ./src/client/OTALKRES.cpp:276 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OTALKRES.cpp:282 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OTALKRES.cpp:321 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OTALKRES.cpp:327 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OTERRAIN.cpp:317 [error] - Uninitialized variable: terrainRec
- ./src/client/OTOWNIF.cpp:2022 [error] - When i==nation_array.size(), nation_array[i] is out of bounds
- ./src/client/OU_GOD2.cpp:541 [error] - Uninitialized variable: unitPtr
- ./src/client/OU_GOD2.cpp:496 [error] - Uninitialized variable: unitPtr
- ./src/client/OU_GOD2.cpp:606 [error] - Uninitialized variable: unitPtr
- ./src/netplay/common/OREMOTE2.cpp:426 [error] - When nationRecno==nation_array.size(), nation_array[nationRecno] is out of bounds
- ./src/netplay/common/OREMOTEM.cpp:698 [error] - Uninitialized variable: unitPtr
- ./src/netplay/common/OREMOTEM.cpp:2420 [error] - Uninitialized variable: townPtr
- ./src/netplay/common/OREMOTEM.cpp:2468 [error] - Uninitialized variable: townPtr
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sun, 17 Apr 2011 06:58:01 +0000, based on results by cppcheck 1.46