cppcheck analysis of nagios3_3.2.0-4.dsc
- ./base/commands.c:5013 [error] - Possible null pointer dereference: this_pcr - otherwise it is redundant to check if this_pcr is null at line 5017
- ./base/commands.c:4967 [error] - Memory leak: checkresult_file
- ./base/nebmods.c:129 [error] - Possible null pointer dereference: temp_module - otherwise it is redundant to check if temp_module is null at line 134
- ./base/nebmods.c:631 [error] - Possible null pointer dereference: temp_callback - otherwise it is redundant to check if temp_callback is null at line 632
- ./base/nebmods.c:205 [possible error] - Memory leak: output_file
- ./base/utils.c:2650 [error] - Possible null pointer dereference: this_cr - otherwise it is redundant to check if this_cr is null at line 2652
- ./base/utils.c:4636 [error] - Possible null pointer dereference: this_event - otherwise it is redundant to check if this_event is null at line 4637
- ./base/utils.c:4717 [error] - Possible null pointer dereference: temp_notification - otherwise it is redundant to check if temp_notification is null at line 4718
- ./base/utils.c:2118 [error] - Resource leak: lockfile
- ./base/utils.c:4480 [error] - Memory leak: buf
- ./cgi/cgiutils.c:1163 [error] - Memory leak: new_mmapfile
- ./cgi/statuswrl.c:932 [error] - Memory leak: vrml_safe_hostname
- ./common/comments.c:553 [error] - Possible null pointer dereference: this_comment - otherwise it is redundant to check if this_comment is null at line 558
- ./common/downtime.c:1015 [error] - Possible null pointer dereference: this_downtime - otherwise it is redundant to check if this_downtime is null at line 1020
- ./common/macros.c:2814 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 2817
- ./common/macros.c:2897 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 2900
- ./common/macros.c:2969 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 2972
- ./common/macros.c:3061 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 3064
- ./common/objects.c:3626 [error] - Possible null pointer dereference: this_daterange - otherwise it is redundant to check if this_daterange is null at line 3631
- ./common/objects.c:3628 [error] - Possible null pointer dereference: this_timerange - otherwise it is redundant to check if this_timerange is null at line 3629
- ./common/objects.c:3646 [error] - Possible null pointer dereference: this_timeperiodexclusion - otherwise it is redundant to check if this_timeperiodexclusion is null at line 3648
- ./common/objects.c:3651 [error] - Possible null pointer dereference: this_timeperiod - otherwise it is redundant to check if this_timeperiod is null at line 3654
- ./common/objects.c:3666 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3669 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3671 [error] - Possible null pointer dereference: this_hostsmember - otherwise it is redundant to check if this_hostsmember is null at line 3673
- ./common/objects.c:3678 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3687 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3689 [error] - Possible null pointer dereference: this_servicesmember - otherwise it is redundant to check if this_servicesmember is null at line 3692
- ./common/objects.c:3697 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3699 [error] - Possible null pointer dereference: this_contactgroupsmember - otherwise it is redundant to check if this_contactgroupsmember is null at line 3701
- ./common/objects.c:3706 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3708 [error] - Possible null pointer dereference: this_contactsmember - otherwise it is redundant to check if this_contactsmember is null at line 3710
- ./common/objects.c:3715 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 3747
- ./common/objects.c:3717 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 3720
- ./common/objects.c:3760 [error] - Possible null pointer dereference: this_hostgroup - otherwise it is redundant to check if this_hostgroup is null at line 3774
- ./common/objects.c:3768 [error] - Possible null pointer dereference: this_hostgroup - otherwise it is redundant to check if this_hostgroup is null at line 3774
- ./common/objects.c:3787 [error] - Possible null pointer dereference: this_servicegroup - otherwise it is redundant to check if this_servicegroup is null at line 3802
- ./common/objects.c:3796 [error] - Possible null pointer dereference: this_servicegroup - otherwise it is redundant to check if this_servicegroup is null at line 3802
- ./common/objects.c:3815 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 3858
- ./common/objects.c:3817 [error] - Possible null pointer dereference: this_commandsmember - otherwise it is redundant to check if this_commandsmember is null at line 3820
- ./common/objects.c:3825 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 3858
- ./common/objects.c:3835 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 3858
- ./common/objects.c:3844 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 3858
- ./common/objects.c:3871 [error] - Possible null pointer dereference: this_contactgroup - otherwise it is redundant to check if this_contactgroup is null at line 3882
- ./common/objects.c:3879 [error] - Possible null pointer dereference: this_contactgroup - otherwise it is redundant to check if this_contactgroup is null at line 3882
- ./common/objects.c:3894 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 3947
- ./common/objects.c:3897 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 3947
- ./common/objects.c:3906 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 3947
- ./common/objects.c:3915 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 3947
- ./common/objects.c:3958 [error] - Possible null pointer dereference: this_command - otherwise it is redundant to check if this_command is null at line 3961
- ./common/objects.c:3974 [error] - Possible null pointer dereference: this_serviceescalation - otherwise it is redundant to check if this_serviceescalation is null at line 3995
- ./common/objects.c:3983 [error] - Possible null pointer dereference: this_serviceescalation - otherwise it is redundant to check if this_serviceescalation is null at line 3995
- ./common/objects.c:3991 [error] - Possible null pointer dereference: this_serviceescalation - otherwise it is redundant to check if this_serviceescalation is null at line 3995
- ./common/objects.c:4006 [error] - Possible null pointer dereference: this_servicedependency - otherwise it is redundant to check if this_servicedependency is null at line 4012
- ./common/objects.c:4023 [error] - Possible null pointer dereference: this_hostdependency - otherwise it is redundant to check if this_hostdependency is null at line 4027
- ./common/objects.c:4040 [error] - Possible null pointer dereference: this_hostescalation - otherwise it is redundant to check if this_hostescalation is null at line 4060
- ./common/objects.c:4049 [error] - Possible null pointer dereference: this_hostescalation - otherwise it is redundant to check if this_hostescalation is null at line 4060
- ./common/objects.c:4057 [error] - Possible null pointer dereference: this_hostescalation - otherwise it is redundant to check if this_hostescalation is null at line 4060
- ./common/objects.c:2988 [error] - Possible null pointer dereference: this_objectlist - otherwise it is redundant to check if this_objectlist is null at line 2989
- ./common/statusdata.c:479 [error] - Possible null pointer dereference: this_hoststatus - otherwise it is redundant to check if this_hoststatus is null at line 484
- ./common/statusdata.c:489 [error] - Possible null pointer dereference: this_svcstatus - otherwise it is redundant to check if this_svcstatus is null at line 495
- ./xdata/xodtemplate.c:12949 [error] - Possible null pointer dereference: this_timeperiod - otherwise it is redundant to check if this_timeperiod is null at line 12964
- ./xdata/xodtemplate.c:12958 [error] - Possible null pointer dereference: this_daterange - otherwise it is redundant to check if this_daterange is null at line 12960
- ./xdata/xodtemplate.c:12971 [error] - Possible null pointer dereference: this_command - otherwise it is redundant to check if this_command is null at line 12976
- ./xdata/xodtemplate.c:12983 [error] - Possible null pointer dereference: this_contactgroup - otherwise it is redundant to check if this_contactgroup is null at line 12990
- ./xdata/xodtemplate.c:12997 [error] - Possible null pointer dereference: this_hostgroup - otherwise it is redundant to check if this_hostgroup is null at line 13007
- ./xdata/xodtemplate.c:13014 [error] - Possible null pointer dereference: this_servicegroup - otherwise it is redundant to check if this_servicegroup is null at line 13024
- ./xdata/xodtemplate.c:13031 [error] - Possible null pointer dereference: this_servicedependency - otherwise it is redundant to check if this_servicedependency is null at line 13043
- ./xdata/xodtemplate.c:13050 [error] - Possible null pointer dereference: this_serviceescalation - otherwise it is redundant to check if this_serviceescalation is null at line 13060
- ./xdata/xodtemplate.c:13069 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 13092
- ./xdata/xodtemplate.c:13071 [error] - Possible null pointer dereference: this_customvariablesmember - otherwise it is redundant to check if this_customvariablesmember is null at line 13074
- ./xdata/xodtemplate.c:13078 [error] - Possible null pointer dereference: this_contact - otherwise it is redundant to check if this_contact is null at line 13092
- ./xdata/xodtemplate.c:13101 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 13132
- ./xdata/xodtemplate.c:13110 [error] - Possible null pointer dereference: this_host - otherwise it is redundant to check if this_host is null at line 13132
- ./xdata/xodtemplate.c:13141 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 13169
- ./xdata/xodtemplate.c:13150 [error] - Possible null pointer dereference: this_service - otherwise it is redundant to check if this_service is null at line 13169
- ./xdata/xodtemplate.c:13176 [error] - Possible null pointer dereference: this_hostdependency - otherwise it is redundant to check if this_hostdependency is null at line 13184
- ./xdata/xodtemplate.c:13191 [error] - Possible null pointer dereference: this_hostescalation - otherwise it is redundant to check if this_hostescalation is null at line 13199
- ./xdata/xodtemplate.c:13206 [error] - Possible null pointer dereference: this_hostextinfo - otherwise it is redundant to check if this_hostextinfo is null at line 13218
- ./xdata/xodtemplate.c:13225 [error] - Possible null pointer dereference: this_serviceextinfo - otherwise it is redundant to check if this_serviceextinfo is null at line 13236
- ./xdata/xodtemplate.c:13320 [error] - Possible null pointer dereference: this_memberlist - otherwise it is redundant to check if this_memberlist is null at line 13323
- ./xdata/xodtemplate.c:484 [possible error] - Memory leak: temp_buffer
- ./xdata/xrddefault.c:283 [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 Thu, 16 Dec 2010 05:59:02 +0000, based on results by cppcheck 1.41-modif