cppcheck analysis of openafs_1.4.12+dfsg-1.dsc
- ./src/JAVA/libjafs/Cell.c:873 [error] - Memory leak: groupName
- ./src/JAVA/libjafs/Internal.c:441 [error] - Resource leak: f
- ./src/afs/DARWIN/osi_file.c:96 [error] - Uninitialized variable: ret
- ./src/afs/LINUX/osi_alloc.c:97 [error] - Memory leak: new
- ./src/afs/UKERNEL/afs_usrops.c:1232 [error] - Resource leak: cfd
- ./src/afs/afs_init.c:322 [error] - Uninitialized variable: code
- ./src/afs/afs_vcache.c:1139 [error] - Invalid number of character (() when these macros are defined: 'AFS_SGI64_ENV;DEBUG;VNODE_INIT_BITLOCK'.
- ./src/afsd/afsd.c:863 [error] - Resource leak: cfd
- ./src/afsd/afsd.c:1079 [error] - Resource leak: cdirp
- ./src/afsd/afsd.c:2672 [possible error] - Resource leak: fd
- ./src/afsd/afsd.c:3293 [error] - Resource leak: kmem
- ./src/afsweb/apache_afs_plugin.c:391 [error] - Resource leak: f
- ./src/auth/cellconfig.c:330 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:332 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:380 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:382 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:571 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:573 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/auth/cellconfig.c:328 [error] - Dangerous usage of 'tbuffer' (strncpy doesn't always 0-terminate it)
- ./src/auth/cellconfig.c:378 [error] - Uninitialized variable: tbuffer
- ./src/auth/ktc.c:1614 [error] - Resource leak: tktfile
- ./src/auth/userok.c:146 [error] - Resource leak: tf
- ./src/bozo/bos.c:530 [error] - Resource leak: fd
- ./src/bozo/bosserver.c:566 [error] - Mismatching allocation and deallocation: f
- ./src/bozo/bosserver.c:569 [error] - Mismatching allocation and deallocation: f
- ./src/bozo/bosserver.c:571 [error] - Mismatching allocation and deallocation: f
- ./src/bozo/bosserver.c:582 [error] - Mismatching allocation and deallocation: f
- ./src/bozo/bosserver.c:583 [error] - Mismatching allocation and deallocation: f
- ./src/bozo/smail-notifier.c:154 [error] - Uninitialized variable: coreName
- ./src/bucoord/commands.c:1178 [possible error] - Memory leak: tvol
- ./src/bucoord/commands.c:1520 [error] - Resource leak: fd
- ./src/bucoord/commands.c:1520 [error] - Memory leak: tvol
- ./src/bucoord/commands.c:1709 [possible error] - Memory leak: portp
- ./src/budb/server.c:312 [error] - Memory leak: path
- ./src/butc/tcmain.c:828 [error] - Resource leak: pwdFile
- ./src/butc/tcprocs.c:552 [possible error] - Memory leak: ptr
- ./src/butc/tcprocs.c:633 [possible error] - Memory leak: ptr
- ./src/butc/tcprocs.c:726 [possible error] - Memory leak: ptr
- ./src/butc/tdump.c:80 [error] - Resource leak: fd
- ./src/butm/test_ftm.c:431 [error] - Resource leak: fid
- ./src/cmd/cmd.c:46 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./src/comerr/compile_et.c:336 [error] - Resource leak: prolog_hfile
- ./src/dir/test/physio.c:136 [error] - Division by zero
- ./src/gtx/textcb.c:232 [error] - Memory leak: newBuff
- ./src/libacl/aclprocs.c:113 [error] - Memory leak: e
- ./src/libacl/aclprocs.c:156 [error] - Memory leak: e
- ./src/libacl/test/acltest.c:195 [error] - Memory leak: ptr
- ./src/libadmin/bos/afs_bosAdmin.c:2748 [error] - Resource leak: fd
- ./src/libadmin/cfg/cfgclient.c:240 [possible error] - Memory leak: clientCellName
- ./src/libadmin/cfg/cfgdb.c:566 [possible error] - Memory leak: ctrlBlockp
- ./src/libadmin/cfg/cfghost.c:222 [possible error] - Memory leak: serverCellName
- ./src/libadmin/cfg/cfginternal.c:525 [possible error] - Memory leak: aList
- ./src/libadmin/cfg/cfgservers.c:1214 [possible error] - Memory leak: args
- ./src/libadmin/cfg/cfgservers.c:1478 [possible error] - Memory leak: args
- ./src/libadmin/cfg/cfgservers.c:1816 [possible error] - Memory leak: cmd
- ./src/log/unlog.c:196 [error] - Memory leak: tokenInfoP
- ./src/lwp/lwp.c:370 [error] - Memory leak: stackmemory
- ./src/lwp/lwp.c:465 [error] - Memory leak: stackptr
- ./src/ptserver/pts.c:90 [error] - Resource leak: fd
- ./src/ptserver/readgroup.c:208 [error] - Resource leak: fp
- ./src/ptserver/readpwd.c:100 [error] - Resource leak: fp
- ./src/rx/bulk.example/bulk_client.c:149 [possible error] - Resource leak: fd
- ./src/rx/bulktest/bulk_client.c:188 [possible error] - Resource leak: fd
- ./src/rx/rx_kcommon.c:135 [error] - Null pointer dereference
- ./src/rxgk/rxgk_common.c:177 [error] - Uninitialized variable: sz
- ./src/rxkad/test/stress_c.c:188 [error] - Uninitialized variable: outsum
- ./src/tests/dumptool.c:1800 [possible error] - Resource leak: f
- ./src/tests/exit-wo-close.c:61 [error] - Resource leak: fd
- ./src/tests/test-setgroups.c:119 [error] - Memory leak: this_user
- ./src/tests/write-rand.c:76 [possible error] - Memory leak: buf
- ./src/update/server.c:535 [error] - Resource leak: tfd
- ./src/uss/uss.c:1355 [error] - Resource leak: infile
- ./src/util/dirpath.c:649 [possible error] - Memory leak: newPath
- ./src/util/dirpath.c:581 [possible error] - Memory leak: newPath
- ./src/util/netutils.c:368 [error] - Resource leak: fp
- ./src/venus/fs.c:2941 [error] - Resource leak: infd
- ./src/venus/fstrace.c:2774 [possible error] - Resource leak: outfp
- ./src/venus/kdump.c:742 [error] - Resource leak: fp
- ./src/venus/test/fulltest.c:65 [error] - Resource leak: fd1
- ./src/viced/profile.c:84 [error] - Resource leak: f
- ./src/viced/viced.c:787 [error] - Buffer access out-of-bounds
- ./src/viced/viced.c:788 [error] - Buffer access out-of-bounds
- ./src/viced/viced.c:1243 [error] - Memory leak: parms
- ./src/viced/viced.c:785 [error] - Buffer access out-of-bounds
- ./src/viced/viced.c:786 [error] - Buffer access out-of-bounds
- ./src/viced/viced.c:791 [error] - Buffer access out-of-bounds
- ./src/vlserver/sascnvldb.c:60 [error] - Invalid number of character (() when these macros are defined: 'notdef'.
- ./src/vol/fs_conv_411.c:138 [error] - Resource leak: d
- ./src/vol/listinodes.c:404 [error] - Resource leak: pfd
- ./src/vol/listinodes.c:907 [error] - Resource leak: inodeFile
- ./src/vol/ntops.c:1110 [error] - Resource leak: dirp
- ./src/vol/partition.c:377 [error] - Dangerous usage of 'checkfile' (strncpy doesn't always 0-terminate it)
- ./src/vol/partition.c:217 [possible error] - Resource leak: fd
- ./src/vol/test/ltlist.c:69 [error] - Resource leak: fp
- ./src/vol/vol-info.c:212 [error] - Memory leak: vp
- ./src/vol/vol-salvage.c:882 [error] - Resource leak: salvageLock
- ./src/vol/vol-salvage.c:1821 [error] - Deallocating a deallocated pointer: fd
- ./src/vol/volume.c:833 [possible error] - Resource leak: fd
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 05:59:40 +0000, based on results by cppcheck 1.41-modif