Bug 152045 - procmeter-3.4a-176: array subscript out of range
Summary: procmeter-3.4a-176: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Pavel Nemec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 12:38 UTC by David Binderman
Modified: 2006-02-24 10:58 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 2006-02-18 12:38:24 UTC
I just tried to compile package procmeter-3.4a-176 with the Intel C compiler.

It said

module.c(327): warning #175: subscript out of range

The source code is

	new->outputs[noutputs]->label[PROCMETER_NAME_LEN]=0;

but

linux:/usr/src/packages/SPECS # find ../BUILD/procmeter3-3.4a/ -name \*.h -print | xargs fgrep "label["
../BUILD/procmeter3-3.4a/procmeterp.h: char label[PROCMETER_NAME_LEN];/*+ The label for the output.
+*/

Suggest new code

	new->outputs[noutputs]->label[ PROCMETER_NAME_LEN - 1]=0;
Comment 1 Pavel Nemec 2006-02-24 10:58:21 UTC
fixed for beta5