Bug 117182

Summary: Array overrun in iostat
Product: [Fedora] Fedora Reporter: d.binderman
Component: sysstatAssignee: Charlie Bennett <ccb>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: alan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-19 00:45:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2004-03-01 11:11:31 UTC
Description of problem:

I just tried to compile Core2 Test1 package sysstat-5.0.0-0.6

The compiler said

1.

iostat.c(425): warning #175: subscript out of range

The source code is

         st_iodev_tmp[3]->dk_drive_rblk = v_tmp[3];

but, earlier is

   unsigned int v_tmp[3], v_major, v_index;

v_tmp[ 3] doesn't exist. I'm not sure what the fix is for this.

2.

iostat.c(436): warning #175: subscript out of range
iostat.c(447): warning #175: subscript out of range

Duplicates.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Alan Cox 2004-06-16 16:59:39 UTC
Confirmed


Comment 2 Alan Cox 2004-06-16 17:50:28 UTC
Fixed - waiting permission from ccb to commit


Comment 3 Alan Cox 2004-06-19 00:45:47 UTC
Merged into CVS, in FC2 updates testing due to other bugs, will end up
in next release