Bug 151088 - kdrill-6.4-4: 5 * array subscript out of range
Summary: kdrill-6.4-4: 5 * 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 : Minor
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 09:20 UTC by David Binderman
Modified: 2006-02-20 17:37 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
bugzilla-151088-array-subscript-out-of-range.patch (421 bytes, patch)
2006-02-20 17:37 UTC, Mike Fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-02-15 09:20:57 UTC
I just tried to compile package kdrill-6.4-4 with a non standard version
of the GNU C compiler.

It said

1.

skipsearch.c:350: warning: array subscript out of range

The source code is

        XtAddCallback(SKIPshapeinput[3],XtNcallback, SKIPshapecallback,
                              (XtPointer) 4);

but, earlier in the same file

Widget SKIPshapeinput[3]; /* if SKIP type 4, click on closest shape */

Suggest code rework, possibly array one element bigger.

2.

skipsearch.c:63: warning: array subscript out of range
skipsearch.c:73: warning: array subscript out of range
skipsearch.c:83: warning: array subscript out of range
skipsearch.c:93: warning: array subscript out of range

Duplicates.
Comment 1 Michael Gross 2006-02-15 13:21:02 UTC
Mike: Maby this should get fixed.
Comment 2 Mike Fabian 2006-02-20 17:37:10 UTC
Created attachment 69384 [details]
bugzilla-151088-array-subscript-out-of-range.patch

The patch I used.
Comment 3 Mike Fabian 2006-02-20 17:37:38 UTC
Fixed package submitted to STABLE.

Closing as FIXED.