cppcheck analysis of samba4_4.0.0~alpha8+git20090912-1.dsc
- ./examples/auth/crackcheck/crackcheck.c:113 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./lib/popt/popt.c:601 [error] - Common realloc mistake: "t" nulled but not freed upon failure
- ./lib/popt/popt.c:612 [error] - Common realloc mistake: "t" nulled but not freed upon failure
- ./lib/replace/test/os2_delete.c:108 [error] - Resource leak: d
- ./lib/replace/test/testsuite.c:82 [error] - Resource leak: fd
- ./lib/replace/test/testsuite.c:166 [error] - Memory leak: x
- ./lib/replace/test/testsuite.c:260 [error] - Memory leak: x
- ./lib/replace/test/testsuite.c:954 [error] - Resource leak: fd
- ./lib/replace/test/testsuite.c:1015 [error] - Resource leak: fd
- ./lib/tdb/tools/tdbtorture.c:285 [error] - Memory leak: pids
- ./lib/util/become_daemon.c:46 [error] - Resource leak: fd
- ./lib/util/talloc_stack.c:158 [error] - Memory leak: ts
- ./lib/util/talloc_stack.c:185 [error] - instance of "talloc_stackframe" object destroyed immediately
- ./lib/zlib/contrib/minizip/unzip.c:522 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 523
- ./lib/zlib/contrib/minizip/unzip.c:1091 [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 1093
- ./lib/zlib/examples/gun.c:393 [error] - Uninitialized variable: next
- ./lib/zlib/gzio.c:147 [error] - Memory leak: s.path
- ./nsswitch/nsstest.c:321 [error] - Possible null pointer dereference: pwd - otherwise it is redundant to check if pwd is null at line 322
- ./nsswitch/nsstest.c:350 [error] - Possible null pointer dereference: grp - otherwise it is redundant to check if grp is null at line 351
- ./source4/dsdb/samdb/ldb_modules/extended_dn_out.c:248 [error] - Possible null pointer dereference: ares - otherwise it is redundant to check if ares is null at line 254
- ./source4/dsdb/samdb/ldb_modules/extended_dn_out.c:624 [error] - Possible null pointer dereference: dereference_control - otherwise it is redundant to check if dereference_control is null at line 626
- ./source4/heimdal/lib/asn1/asn1_gen.c:147 [error] - Memory leak: fnout
- ./source4/heimdal/lib/asn1/asn1parse.c:1646 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/asn1/gen.c:185 [error] - Memory leak: fn
- ./source4/heimdal/lib/asn1/main.c:156 [error] - Common realloc mistake: "arg" nulled but not freed upon failure
- ./source4/heimdal/lib/com_err/parse.c:1428 [error] - Common realloc mistake: "prefix" nulled but not freed upon failure
- ./source4/heimdal/lib/com_err/parse.c:1263 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/gssapi/mech/gss_krb5.c:403 [error] - Memory leak: ctx
- ./source4/heimdal/lib/hx509/ks_file.c:483 [error] - Mismatching allocation and deallocation: f
- ./source4/heimdal/lib/hx509/name.c:232 [error] - Memory leak: oidname
- ./source4/heimdal/lib/hx509/name.c:337 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:344 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:347 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:350 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/sel-gram.c:1251 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/krb5/crypto.c:2174 [error] - Uninitialized variable: k1_c_data
- ./source4/heimdal/lib/krb5/crypto.c:2238 [error] - Uninitialized variable: k1_c_data
- ./source4/heimdal/lib/krb5/get_cred.c:1437 [error] - Memory leak: out
- ./source4/heimdal/lib/krb5/set_default_realm.c:86 [error] - Memory leak: realms
- ./source4/heimdal/lib/krb5/v4_glue.c:154 [error] - Memory leak: path
- ./source4/heimdal/lib/krb5/v4_glue.c:302 [error] - Memory leak: path
- ./source4/lib/ldb/ldb_tdb/ldb_index.c:274 [error] - Uninitialized variable: ret
- ./source4/lib/ldb/tools/ldbedit.c:323 [error] - Possible null pointer dereference: result - otherwise it is redundant to check if result is null at line 325
- ./source4/lib/registry/dir.c:80 [error] - Resource leak: d
- ./source4/lib/registry/dir.c:372 [error] - Resource leak: d
- ./source4/lib/registry/hive.c:64 [error] - Resource leak: fd
- ./source4/ntvfs/ipc/ipc_rap.c:289 [error] - instance of "rap_heap_save" object destroyed immediately
- ./source4/ntvfs/ipc/ipc_rap.c:371 [error] - instance of "rap_heap_save" object destroyed immediately
- ./source4/rpc_server/netlogon/dcerpc_netlogon.c:1169 [error] - Memory leak: temp_str
- ./source4/smb_server/smb/reply.c:817 [error] - Uninitialized variable: req
- ./source4/smb_server/smb/search.c:85 [error] - Uninitialized variable: req
- ./source4/smb_server/smb/search.c:100 [error] - Uninitialized variable: req
Note: this report is incomplete, which means that an error ocurred
while checking this package and not all of the code was analysed.
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 21:18:30 +0000, based on results by cppcheck 1.46