Bug 117182 - Array overrun in iostat
Summary: Array overrun in iostat
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: sysstat
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Charlie Bennett
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-01 11:11 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-19 00:45:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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



Note You need to log in before you can comment on or make changes to this bug.