cppcheck analysis of nel_0.5.0-1.2.dsc
- ./src/3d/cloud.cpp:75 [error] - Mismatching allocation and deallocation: CCloud::_UStart
- ./src/3d/cloud.cpp:76 [error] - Mismatching allocation and deallocation: CCloud::_VStart
- ./src/3d/cloud.cpp:77 [error] - Mismatching allocation and deallocation: CCloud::_WStart
- ./src/3d/shape_bank.cpp:695 [error] - Possible null pointer dereference: pShpCache
- ./src/3d/skeleton_model.cpp:464 [error] - Possible null pointer dereference: currTransform - otherwise it is redundant to check if currTransform is null at line 465
- ./src/3d/skeleton_model.cpp:501 [error] - Possible null pointer dereference: currTransform - otherwise it is redundant to check if currTransform is null at line 502
- ./src/ligo/zone_template.cpp:263 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:264 [error] - Invalid iterator: currentVert
- ./src/ligo/zone_template.cpp:264 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:272 [error] - Dereferenced iterator 'currentVert' has been erased
- ./src/ligo/zone_template.cpp:278 [error] - Invalid iterator: currentVert
- ./src/ligo/zone_template.cpp:282 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:283 [error] - Invalid iterator: currentVert
- ./src/ligo/zone_template.cpp:283 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:294 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:297 [error] - Dereferenced iterator 'currentVert' has been erased
- ./src/ligo/zone_template.cpp:298 [error] - Dereferenced iterator 'currentVert' has been erased
- ./src/ligo/zone_template.cpp:304 [error] - Invalid iterator: currentVert
- ./src/ligo/zone_template.cpp:304 [error] - Same iterator is used with both edgePair and edgePairReverse
- ./src/ligo/zone_template.cpp:309 [error] - Invalid iterator: currentVert
- ./src/misc/debug.cpp:1678 [error] - Possible null pointer dereference: adr
- ./src/misc/debug.cpp:1649 [error] - Division by zero
- ./src/misc/mutex.cpp:724 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/misc/mutex.cpp:724 [error] - Invalid number of character ({) when these macros are defined: 'MUTEX_DEBUG'.
- ./src/misc/mutex.cpp:724 [error] - Invalid number of character ({) when these macros are defined: 'MUTEX_DEBUG;STORE_MUTEX_NAME'.
- ./src/misc/object_arena_allocator.cpp:81 [error] - Memory leak: block
- ./src/misc/path.cpp:2210 [error] - Resource leak: fp1
- ./src/net/sock.cpp:71 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/sound/driver/fmod/buffer_fmod.cpp:311 [error] - Array 'hdrstr[4]' index 4 out of bounds
- ./src/sound/driver/fmod/buffer_fmod.cpp:322 [error] - Array 'hdrstr[4]' index 4 out of bounds
- ./src/sound/driver/fmod/buffer_fmod.cpp:330 [error] - Array 'hdrstr[4]' index 4 out of bounds
- ./src/sound/driver/fmod/buffer_fmod.cpp:387 [error] - Array 'hdrstr[4]' index 4 out of bounds
- ./src/sound/sample_bank.cpp:327 [error] - Common realloc mistake: "data" nulled but not freed upon failure
- ./src/sound/sample_bank.cpp:334 [error] - Common realloc mistake: "data" nulled but not freed upon failure
- ./tools/3d/ig_elevation/main.cpp:462 [error] - Memory leak: ZoneRegion
- ./tools/3d/object_viewer/snapshot_tool_dlg.cpp:598 [error] - Possible null pointer dereference: model - otherwise it is redundant to check if model is null at line 606
- ./tools/3d/plugin_max/nel_export/nel_export_filetools.cpp:309 [error] - Resource leak: fin
- ./tools/3d/plugin_max/nel_export/nel_export_filetools.cpp:333 [error] - Memory leak: block
- ./tools/3d/tile_edit/GetVal.h:18 [error] - Memory leak: GetVal::name
- ./tools/3d/tile_edit/PIC/Pic_BMP.c:89 [error] - Resource leak: file
- ./tools/3d/tile_edit/PIC/Pic_BMP.c:150 [error] - Resource leak: file
- ./tools/3d/tile_edit/PIC/Pic_TGA.c:60 [error] - Resource leak: file
- ./tools/3d/tile_edit/PIC/Pic_TGA.c:193 [error] - Resource leak: file
- ./tools/3d/tile_edit/PIC/jerror.c:104 [error] - Uninitialized variable: buffer
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1067 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1068 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1069 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1070 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1071 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1072 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1073 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1074 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1075 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1076 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1077 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1080 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1083 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1086 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1087 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1089 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1090 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/PIC/jmemmgr.c:1092 [error] - Possible null pointer dereference: mem
- ./tools/3d/tile_edit/TileCtrl.cpp:69 [error] - Mismatching allocation and deallocation: _Edge::line
- ./tools/3d/tile_edit/TileCtrl.cpp:87 [error] - Mismatching allocation and deallocation: _Edge::line
- ./tools/3d/tile_edit/TileCtrl.cpp:99 [error] - Mismatching allocation and deallocation: _Edge::line
- ./tools/3d/tile_edit/TileCtrl.cpp:111 [error] - Mismatching allocation and deallocation: _Edge::line
- ./tools/3d/tile_edit/TileCtrl.cpp:123 [error] - Mismatching allocation and deallocation: _Edge::line
- ./tools/logic/logic_editor_dll/logic_editorDoc.cpp:275 [error] - Uninitialized variable: pState
- ./tools/misc/bnp_make/main.cpp:145 [error] - Resource leak: f2
- ./tools/misc/bnp_make/main.cpp:151 [error] - Mismatching allocation and deallocation: ptr
- ./tools/misc/bnp_make/main.cpp:222 [error] - Mismatching allocation and deallocation: ptr
- ./tools/misc/data_mirror/data_mirror.cpp:184 [error] - Resource leak: file
- ./tools/misc/data_mirror/data_mirrorDlg.cpp:546 [error] - Resource leak: file
- ./tools/misc/lock/lock.cpp:42 [error] - Resource leak: fileOut
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, 20 Dec 2010 22:58:10 +0000, based on results by cppcheck 1.46