Bug 141124 - nagios-1.3-2: array suscript out of range
Summary: nagios-1.3-2: array suscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Minor (vote)
Target Milestone: Beta 1
Assignee: Wolfgang Rosenauer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-30 11:48 UTC by David Binderman
Modified: 2006-01-09 11:47 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2005-12-30 11:48:19 UTC
I just tried to compile package nagios-1.3-2 with a non standard version
of the GNU C compiler 

It said

1.

notifications.c:552: warning: array subscript out of range

The source code is

	host_name[sizeof(host_name)]='\x0';

Clearly broken code. Suggest

	host_name[ sizeof( host_name) - 1 ]='\x0';
Comment 1 Wolfgang Rosenauer 2006-01-09 11:47:44 UTC
fixed for 10.1beta1
Thanks for the report.