cppcheck analysis of icinga_1.2.1-1.dsc
- ./base/checks.c:313 [error] - Possible null pointer dereference: queued_check_result - otherwise it is redundant to check if queued_check_result is null at line 325
- ./base/checks.c:316 [error] - Possible null pointer dereference: queued_check_result - otherwise it is redundant to check if queued_check_result is null at line 325
- ./base/checks.c:318 [error] - Possible null pointer dereference: queued_check_result - otherwise it is redundant to check if queued_check_result is null at line 325
- ./base/checks.c:321 [error] - Possible null pointer dereference: queued_check_result - otherwise it is redundant to check if queued_check_result is null at line 325
- ./base/checks.c:267 [error] - Mismatching allocation and deallocation: fp
- ./base/commands.c:788 [error] - Memory leak: username
- ./base/commands.c:3333 [error] - Memory leak: varvalue
- ./base/icinga.c:468 [error] - Common realloc mistake: "config_file" nulled but not freed upon failure
- ./base/nebmods.c:638 [error] - Possible null pointer dereference: temp_callback - otherwise it is redundant to check if temp_callback is null at line 639
- ./base/nebmods.c:206 [error] - Memory leak: output_file
- ./base/notifications.c:1017 [error] - Possible null pointer dereference: svc
- ./base/notifications.c:1036 [error] - Possible null pointer dereference: hst
- ./base/profiler.c:142 [error] - Common realloc mistake: "profiler" nulled but not freed upon failure
- ./base/utils.c:2923 [error] - Possible null pointer dereference: this_cr - otherwise it is redundant to check if this_cr is null at line 2925
- ./base/utils.c:4258 [error] - Possible null pointer dereference: this_event - otherwise it is redundant to check if this_event is null at line 4259
- ./base/utils.c:4331 [error] - Possible null pointer dereference: temp_notification - otherwise it is redundant to check if temp_notification is null at line 4332
- ./base/utils.c:2392 [error] - Resource leak: lockfile
- ./cgi/extinfo.c:619 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/extinfo.c:897 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/extinfo.c:2519 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/extinfo.c:2681 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/extinfo.c:2895 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/notifications.c:488 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/outages.c:323 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/status.c:1358 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/status.c:2013 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/statuswrl.c:910 [error] - Memory leak: vrml_safe_hostname
- ./cgi/summary.c:1688 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/summary.c:1774 [error] - Allocation with strdup, printf doesn't release it.
- ./cgi/summary.c:2046 [error] - Allocation with strdup, printf doesn't release it.
- ./common/objects.c:3373 [error] - Possible null pointer dereference: this_timerange - otherwise it is redundant to check if this_timerange is null at line 3374
- ./common/objects.c:2735 [error] - Possible null pointer dereference: this_objectlist - otherwise it is redundant to check if this_objectlist is null at line 2736
- ./common/shared.c:244 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./module/icinga-api/contrib/idoliteutils/src/idolite2db.c:134 [error] - Memory leak: dir_file
- ./module/idoutils/src/db.c:2141 [error] - Possible null pointer dereference: newbuf
- ./module/idoutils/src/db.c:2141 [error] - Uninitialized variable: y
- ./module/idoutils/src/db.c:5888 [error] - Memory leak: oci_tmp
- ./module/idoutils/src/db.c:461 [error] - Memory leak: temp_port
- ./module/idoutils/src/ido2db.c:803 [error] - Resource leak: lockfile
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: ''.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'HAVE_PTHREAD_H'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'NSCGI'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'NSCGI;USE_ST_BASED_ESCAL_RANGES'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'NSCORE'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'NSCORE;USE_ST_BASED_ESCAL_RANGES'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'USE_EVENT_BROKER'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'USE_LTDL'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: 'USE_ST_BASED_ESCAL_RANGES'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: '__GNUC__'.
- ./t-tap/test_nagios_config.c:386 [error] - Invalid number of character (() when these macros are defined: '__cplusplus'.
- ./xdata/xodtemplate.c:13374 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./xdata/xodtemplate.c:13551 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./xdata/xodtemplate.c:13728 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./xdata/xrddefault.c:280 [error] - Memory leak: temp_file
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:14:50 +0000, based on results by cppcheck 1.46