cppcheck analysis of krb5_1.8+dfsg-1.dsc
- ./src/appl/gss-sample/gss-client.c:293 [error] - Resource leak: fd
- ./src/appl/gss-sample/gss-server.c:773 [possible error] - Memory leak: work
- ./src/appl/user_user/client.c:100 [error] - Memory leak: hname
- ./src/appl/user_user/client.c:138 [error] - Memory leak: hname
- ./src/ccapi/common/cci_cred_union.c:862 [possible error] - Memory leak: compat_v4creds
- ./src/ccapi/common/cci_cred_union.c:923 [possible error] - Memory leak: compat_v5creds
- ./src/ccapi/common/cci_cred_union.c:984 [possible error] - Memory leak: v4creds
- ./src/ccapi/common/cci_cred_union.c:1047 [possible error] - Memory leak: v5creds
- ./src/ccapi/server/win/ccs_win_pipe.c:68 [possible error] - Memory leak: uuidCopy
- ./src/ccapi/test/test_ccapi_util.c:97 [error] - Memory leak: cred_union
- ./src/ccapi/test/test_ccapi_util.c:100 [possible error] - Memory leak: v5creds
- ./src/ccapi/test/test_ccapi_util.c:100 [possible error] - Memory leak: client
- ./src/ccapi/test/test_ccapi_util.c:100 [possible error] - Memory leak: server
- ./src/ccapi/test/test_ccapi_v2.c:130 [error] - Memory leak: creds_union
- ./src/ccapi/test/test_ccapi_v2.c:133 [possible error] - Memory leak: v5creds
- ./src/ccapi/test/test_ccapi_v2.c:133 [possible error] - Memory leak: client
- ./src/ccapi/test/test_ccapi_v2.c:133 [possible error] - Memory leak: server
- ./src/clients/kpasswd/ksetpwd.c:189 [possible error] - Memory leak: pPass
- ./src/clients/ksu/ccache.c:420 [error] - Memory leak: linebuf
- ./src/kadmin/dbutil/dump.c:383 [error] - Resource leak: fd
- ./src/kdc/kdc_preauth.c:1782 [possible error] - Memory leak: tmp_padata
- ./src/lib/apputils/daemon.c:79 [possible error] - Resource leak: n
- ./src/lib/crypto/builtin/aes/aescrypp.c:347 [error] - Array 'b1[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:347 [error] - Array 'b1[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:347 [error] - Array 'b1[4]' index 6 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:347 [error] - Array 'b1[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:342 [error] - Array 'b0[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:342 [error] - Array 'b0[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:342 [error] - Array 'b0[4]' index 6 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:342 [error] - Array 'b0[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:479 [error] - Array 'b1[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:479 [error] - Array 'b1[4]' index 6 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:479 [error] - Array 'b1[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:479 [error] - Array 'b1[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:474 [error] - Array 'b0[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:474 [error] - Array 'b0[4]' index 6 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:474 [error] - Array 'b0[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypp.c:474 [error] - Array 'b0[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:291 [error] - Array 'b1[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:291 [error] - Array 'b1[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:291 [error] - Array 'b1[4]' index 6 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:291 [error] - Array 'b1[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:413 [error] - Array 'b1[4]' index 7 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:413 [error] - Array 'b1[4]' index 5 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:413 [error] - Array 'b1[4]' index 4 out of bounds
- ./src/lib/crypto/builtin/aes/aescrypt.c:413 [error] - Array 'b1[4]' index 6 out of bounds
- ./src/lib/gssapi/generic/oid_ops.c:554 [possible error] - Memory leak: copy
- ./src/lib/gssapi/krb5/gssapi_krb5.c:273 [possible error] - Memory leak: name
- ./src/lib/kdb/kdb5.c:555 [possible error] - Memory leak: dal_handle
- ./src/lib/kdb/kdb_log.c:576 [error] - Resource leak: ulogfd
- ./src/lib/krb5/krb/fast.c:392 [error] - Uninitialized variable: fx_error_pa
- ./src/lib/krb5/krb/ser_adata.c:189 [possible error] - Memory leak: authdata
- ./src/lib/krb5/krb/ser_addr.c:193 [possible error] - Memory leak: address
- ./src/lib/krb5/krb/ser_cksum.c:191 [possible error] - Memory leak: checksum
- ./src/lib/krb5/krb/ser_key.c:189 [possible error] - Memory leak: keyblock
- ./src/lib/krb5/rcache/t_replay.c:64 [error] - Memory leak: str
- ./src/lib/krb5/rcache/t_replay.c:84 [error] - Resource leak: fp
- ./src/lib/krb5/unicode/ucstr.c:303 [error] - Uninitialized variable: outpos
- ./src/lib/rpc/svc_auth_gss.c:435 [error] - Memory leak: auth
- ./src/plugins/kdb/db2/kdb_db2.c:1336 [error] - Deallocating a deallocated pointer: dbname
- ./src/plugins/kdb/db2/kdb_db2.c:1472 [error] - Deallocating a deallocated pointer: db_name
- ./src/plugins/kdb/db2/kdb_db2.c:1719 [error] - Deallocating a deallocated pointer: db_name
- ./src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c:40 [error] - Memory leak: key_line
- ./src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c:73 [error] - Memory leak: get_key
- ./src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c:2523 [error] - Memory leak: tl_data
- ./src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c:202 [error] - Memory leak: temp_node
- ./src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c:1151 [error] - Resource leak: tmpfd
- ./src/plugins/kdb/ldap/libkdb_ldap/ldap_krbcontainer.c:203 [possible error] - Memory leak: cparams
- ./src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c:1266 [error] - Memory leak: filter
- ./src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c:1389 [error] - Memory leak: strtime
- ./src/plugins/kdb/ldap/libkdb_ldap/ldap_realm.c:1412 [possible error] - Memory leak: rlparams
- ./src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c:265 [possible error] - Memory leak: lpolicy
- ./src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1111 [possible error] - Memory leak: alg_buf
- ./src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1111 [possible error] - Memory leak: digest_buf
- ./src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1924 [possible error] - Memory leak: princs
- ./src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1924 [possible error] - Memory leak: upns
- ./src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:4677 [possible error] - Memory leak: md
- ./src/plugins/preauth/pkinit/pkinit_matching.c:372 [possible error] - Memory leak: rc
- ./src/plugins/preauth/pkinit/pkinit_matching.c:447 [possible error] - Memory leak: rs
- ./src/plugins/preauth/pkinit/pkinit_srv.c:1305 [possible error] - Memory leak: realm_contexts
- ./src/tests/gss-threads/gss-client.c:331 [error] - Resource leak: fd
- ./src/tests/threads/t_rcache.c:75 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/util/support/errors.c:115 [error] - Memory leak: str
- ./src/util/support/fake-addrinfo.c:559 [error] - Memory leak: n
- ./src/util/support/fake-addrinfo.c:756 [possible error] - Memory leak: ce
- ./src/windows/gss/gss-client.c:274 [error] - Resource leak: fd
- ./src/windows/installer/wix/custom/custom.cpp:512 [error] - Mismatching allocation and deallocation: kpList
- ./src/windows/wintel/auth.c:296 [error] - Uninitialized variable: n
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:49:45 +0000, based on results by cppcheck 1.41-modif