cppcheck analysis of wzdftpd_0.8.3-6.dsc
- ./backends/mysql/libmysql_group.c:314 [error] - Memory leak: stored_ref
- ./backends/mysql/libmysql_user.c:401 [error] - Memory leak: stored_gid
- ./backends/mysql/libmysql_user.c:401 [error] - Memory leak: stored_ref
- ./backends/mysql/libmysql_user.c:493 [error] - Memory leak: stored_ref
- ./backends/plaintext/libplaintext_file.c:277 [error] - Resource leak: file
- ./backends/plaintext/libplaintext_file.c:288 [error] - Resource leak: fileold
- ./backends/plaintext/libplaintext_file.c:894 [error] - Resource leak: file_user
- ./backends/plaintext/libplaintext_file.c:900 [error] - Memory leak: line
- ./libwzd-auth/wzd_sha1_hash.c:47 [error] - Array 'sha1buf[20]' index 20 out of bounds
- ./libwzd-core/wzd_file.c:1594 [error] - Dangerous usage of 'path' (strncpy doesn't always 0-terminate it)
- ./libwzd-core/wzd_file.c:1628 [error] - Dangerous usage of 'perm_filename' (strncpy doesn't always 0-terminate it)
- ./libwzd-core/wzd_file.c:1718 [error] - Dangerous usage of 'perm_filename' (strncpy doesn't always 0-terminate it)
- ./libwzd-core/wzd_misc.c:830 [error] - Resource leak: fp
- ./libwzd-core/wzd_section.c:115 [error] - Possible null pointer dereference: section
- ./libwzd-core/wzd_shm.c:320 [error] - Memory leak: shm
- ./libwzd-core/wzd_shm.c:377 [error] - Memory leak: shm
- ./libwzd-core/wzd_site.c:2040 [error] - Dangerous usage of 'buffer' (strncpy doesn't always 0-terminate it)
- ./libwzd-core/wzd_tls.c:1086 [error] - Memory leak: tls_cipher_list
- ./libwzd-core/wzd_tls.c:234 [possible error] - Memory leak: tls_certificate
- ./modules/sfv/libwzd_sfv_indicators.c:100 [error] - Memory leak: directory
- ./modules/sfv/libwzd_sfv_indicators.c:347 [error] - Dangerous usage of 'buffer' (strncpy doesn't always 0-terminate it)
- ./modules/sfv/libwzd_sfv_site.c:190 [error] - Resource leak: fd_sfv
- ./modules/sfv/libwzd_sfv_site.c:225 [error] - Dangerous usage of 'dir' (strncpy doesn't always 0-terminate it)
- ./modules/zeroconf/libwzd_avahi.c:410 [error] - Memory leak: ctx.name
- ./modules/zeroconf/libwzd_avahi.c:410 [error] - Memory leak: ctx.username
- ./modules/zeroconf/libwzd_avahi.c:410 [error] - Memory leak: ctx.password
- ./modules/zeroconf/libwzd_avahi.c:410 [error] - Memory leak: ctx.path
- ./modules/zeroconf/libwzd_zeroconf.c:217 [error] - Memory leak: zeroconf_name
- ./modules/zeroconf/libwzd_zeroconf.c:217 [error] - Memory leak: zeroconf_username
- ./modules/zeroconf/libwzd_zeroconf.c:217 [error] - Memory leak: zeroconf_password
- ./modules/zeroconf/libwzd_zeroconf.c:217 [error] - Memory leak: zeroconf_path
- ./modules/zeroconf/libwzd_zeroconf.c:144 [error] - Memory leak: zeroconf_name
- ./modules/zeroconf/libwzd_zeroconf.c:144 [error] - Memory leak: zeroconf_username
- ./modules/zeroconf/libwzd_zeroconf.c:144 [error] - Memory leak: zeroconf_password
- ./modules/zeroconf/libwzd_zeroconf.c:144 [error] - Memory leak: zeroconf_path
- ./tests/test_wzd_cache.c:51 [error] - Resource leak: file
- ./wzdftpd/wzd_ServerThread.c:1099 [possible error] - Memory leak: ipaddress
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 06:03:50 +0000, based on results by cppcheck 1.41-modif