cppcheck analysis of nagios-plugins_1.4.14-1.dsc
- ./contrib/check_cpqarray.c:303 [error] - Resource leak: devicefd
- ./contrib/check_http-with-client-certificate.c:834 [error] - Memory leak: buffer
- ./contrib/check_http-with-client-certificate.c:885 [error] - Memory leak: content
- ./contrib/check_http-with-client-certificate.c:1180 [error] - Memory leak: url_path
- ./contrib/check_http-with-client-certificate.c:1226 [error] - Memory leak: orig_url_path
- ./contrib/check_http-with-client-certificate.c:1244 [error] - Memory leak: buffer
- ./contrib/check_http-with-client-certificate.c:1328 [error] - Memory leak: content
- ./contrib/check_http-with-client-certificate.c:1493 [error] - Uninitialized variable: offset
- ./contrib/check_uptime.c:72 [error] - Uninitialized variable: ch
- ./gl/getaddrinfo.c:324 [error] - Memory leak: storage
- ./gl/getaddrinfo.c:325 [error] - Memory leak: storage
- ./gl/regcomp.c:3058 [error] - Memory leak: mbcset
- ./gl/regcomp.c:3599 [error] - Memory leak: mbcset
- ./gl/regex_internal.c:1629 [error] - Memory leak: newstate
- ./gl/regex_internal.c:1679 [possible error] - Memory leak: newstate
- ./lib/parse_ini.c:113 [possible error] - Resource leak: inifile
- ./lib/tests/test_cmd.c:34 [error] - Memory leak: cmd
- ./lib/tests/test_ini1.c:40 [error] - Memory leak: optstr
- ./lib/utils_base.c:113 [error] - Memory leak: temp_thresholds
- ./lib/utils_cmd.c:310 [error] - Memory leak: cmd
- ./lib/utils_cmd.c:393 [error] - Resource leak: fd
- ./plugins/check_by_ssh.c:155 [error] - Resource leak: fp
- ./plugins/check_dig.c:177 [possible error] - Memory leak: command_line
- ./plugins/check_dig.c:353 [possible error] - Memory leak: myport
- ./plugins/check_disk.c:401 [error] - Memory leak: output
- ./plugins/check_disk.c:422 [error] - Memory leak: details
- ./plugins/check_disk.c:422 [error] - Memory leak: perf
- ./plugins/check_disk.c:422 [error] - Memory leak: preamble
- ./plugins/check_dns.c:257 [possible error] - Memory leak: command_line
- ./plugins/check_dns.c:257 [error] - Memory leak: msg
- ./plugins/check_dns.c:208 [error] - Memory leak: temp_buffer
- ./plugins/check_fping.c:139 [error] - Memory leak: input_buffer
- ./plugins/check_fping.c:139 [error] - Memory leak: option_string
- ./plugins/check_hpjd.c:129 [error] - Memory leak: errmsg
- ./plugins/check_http.c:1071 [possible error] - Memory leak: msg
- ./plugins/check_http.c:825 [error] - Memory leak: buf
- ./plugins/check_http.c:1234 [possible error] - Memory leak: addr
- ./plugins/check_ide_smart.c:235 [possible error] - Resource leak: fd
- ./plugins/check_ldap.c:445 [possible error] - Memory leak: myport
- ./plugins/check_mrtgtraf.c:209 [error] - Memory leak: error_message
- ./plugins/check_mysql.c:233 [error] - Memory leak: result
- ./plugins/check_mysql.c:423 [possible error] - Memory leak: myport
- ./plugins/check_mysql_query.c:323 [possible error] - Memory leak: myport
- ./plugins/check_nt.c:162 [error] - Memory leak: output_message
- ./plugins/check_nt.c:162 [error] - Memory leak: perfdata
- ./plugins/check_nt.c:162 [error] - Memory leak: temp_string
- ./plugins/check_nt.c:162 [possible error] - Memory leak: temp_string_perf
- ./plugins/check_nt.c:463 [possible error] - Memory leak: counter_unit
- ./plugins/check_ntp.c:819 [error] - Memory leak: result_line
- ./plugins/check_ntp.c:829 [error] - Memory leak: perfdata_line
- ./plugins/check_ntp_peer.c:596 [error] - Memory leak: result_line
- ./plugins/check_ntp_peer.c:610 [error] - Memory leak: perfdata_line
- ./plugins/check_ntp_time.c:583 [error] - Memory leak: result_line
- ./plugins/check_ntp_time.c:589 [error] - Memory leak: perfdata_line
- ./plugins/check_nwstat.c:568 [error] - Memory leak: output_message
- ./plugins/check_nwstat.c:221 [error] - Memory leak: temp_buffer
- ./plugins/check_nwstat.c:221 [error] - Memory leak: netware_version
- ./plugins/check_nwstat.c:1682 [possible error] - Memory leak: myport
- ./plugins/check_overcr.c:465 [possible error] - Memory leak: myport
- ./plugins/check_pgsql.c:476 [possible error] - Memory leak: myport
- ./plugins/check_procs.c:306 [error] - Memory leak: input_buffer
- ./plugins/check_radius.c:196 [possible error] - Memory leak: str
- ./plugins/check_radius.c:360 [possible error] - Memory leak: myport
- ./plugins/check_real.c:450 [possible error] - Memory leak: myport
- ./plugins/check_smtp.c:447 [possible error] - Memory leak: error_msg
- ./plugins/check_smtp.c:818 [possible error] - Memory leak: myport
- ./plugins/check_snmp.c:213 [error] - Memory leak: cl_hidden_auth
- ./plugins/check_snmp.c:368 [error] - Memory leak: outbuff
- ./plugins/check_ssh.c:301 [possible error] - Memory leak: myport
- ./plugins/check_swap.c:367 [error] - Memory leak: status
- ./plugins/check_swap.c:367 [error] - Memory leak: swap_format
- ./plugins/check_swap.c:176 [error] - Memory leak: status
- ./plugins/check_swap.c:190 [error] - Undefined behaviour: str 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.
- ./plugins/check_swap.c:192 [error] - Undefined behaviour: str 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.
- ./plugins/check_swap.c:194 [error] - Undefined behaviour: str 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.
- ./plugins/check_time.c:370 [possible error] - Memory leak: myport
- ./plugins/check_ups.c:132 [error] - Memory leak: message
- ./plugins/check_ups.c:132 [error] - Memory leak: data
- ./plugins/check_ups.c:658 [possible error] - Memory leak: myport
- ./plugins/check_users.c:74 [error] - Memory leak: perf
- ./plugins/popen.c:131 [error] - Memory leak: cmd
- ./plugins/runcmd.c:148 [error] - Memory leak: cmd
- ./plugins/urlize.c:156 [possible error] - Memory leak: url
- ./plugins/urlize.c:104 [possible error] - Memory leak: cmd
- ./plugins/urlize.c:156 [possible error] - Memory leak: buf
- ./plugins/utils.c:544 [error] - Memory leak: data
- ./plugins/utils.c:580 [error] - Memory leak: data
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:02 +0000, based on results by cppcheck 1.41-modif