Bug 142100 - array index out of range
Summary: array index out of range
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: parted
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-07 10:41 UTC by David 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: 2005-01-07 22:33:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-12-07 10:41:45 UTC
Description of problem:

I just tried to compile package parted-1.6.15-5 from 
Redhat Fedora Core 3.

The compiler said

disk_dvh.c(466): warning #175: subscript out of range

The source code is

        vd->vd_name[VDNAMESIZE] = 0;

I agree with the compiler. This code would benefit from re-work to ensure
that non existant data is not accessed.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Andrew Clausen 2004-12-18 11:18:34 UTC
I fixed it (I hope ;)  Thanks!


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