Bug 239170

Summary: parted-1.8.2-2: array subscript is above array bounds
Product: [openSUSE] openSUSE 10.3 Reporter: David Binderman <dcb314>
Component: OtherAssignee: Thomas Fehr <fehr>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2007-01-26 09:24:46 UTC
I just tried to compile package parted-1.8.2-2
with the new GNU compiler version 4.3 snapshot 20070119

The compiler said

traverse.c:358: warning: array subscript is above array bounds

The source code is

        if (src[8] != ' ' && src[8] != 0) {

I agree with the compiler. Names have only 8 chars, numbered 0..7 inclusive.
Suggest code rework.
Comment 1 Stefan Dirsch 2007-01-31 22:40:48 UTC
Feel free to close as duplicate of Bug #240922.
Comment 2 Thomas Fehr 2007-02-01 08:35:15 UTC

*** This bug has been marked as a duplicate of bug 240922 ***