Bugzilla – Bug 133245
nagios-plugins-sap-ccms-0.7.2-46 : 2 * array subscript out of range
Last modified: 2005-12-28 11:11:25 UTC
I just tried to compile package nagios-plugins-sap-ccms-0.7.2-46 with the Intel C compiler. It said 1. agnt_mon.c(472): warning #175: subscript out of range The source code is (*nodes)[crow].Lastvaldat[MT_DATE_LENGTH] = '\0'; but #define MT_DATE_LENGTH 8 char Lastvaldat[MT_TIME_LENGTH+1]; #define MT_TIME_LENGTH 6 so the buffer is only 7 chars long, but the code tries to access index 8. Suggest code rework. 2. agnt_mon.c(475): warning #175: subscript out of range Duplicate.
do you see problems with using char Lastvaldat[MT_DATE_LENGTH+1]; char Lastvaltim[MT_TIME_LENGTH+1]; ?
>do you see problems with using Looks ok to me. I'll be testing this package in less than a week's time, so if there is a new version, so much the better.
new binary and source packages for testing will be available soon on ftp://ftp.suse.com/pub/projects/stark/nagios/10.0/ Marking as fixed (please reopen if needed)
sorry, the link is: ftp://ftp.suse.com/pub/people/stark/nagios/10.0/