Bug 152845 - xcoral-3.42b-132: 2 * array subscript out of range
Summary: xcoral-3.42b-132: 2 * 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 : Normal
Target Milestone: ---
Assignee: Michael Andres
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-22 17:00 UTC by David Binderman
Modified: 2007-01-26 22:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-02-22 17:00:39 UTC
I just tried to compile package xcoral-3.42b-132 with a non standard
version of the GNU C compiler.

It said

1.

fs_box.c:302: warning: array subscript out of range

The source code is

	fs_box.title_text [TITLE_SIZE] = '\0';

but

../BUILD/xcoral-3.42b/fs_box.h:    char title_text [TITLE_SIZE];

Suggest new code

	fs_box.title_text [TITLE_SIZE - 1] = '\0';

2.

list_box.c:496: warning: array subscript out of range

The source code is

	          l_box.title_text [TITLE_SIZE] = '\0';

Duplicate.
Comment 1 Stefan Dirsch 2007-01-16 22:32:49 UTC
Feel free to close as duplicate of Bug #235591.
Comment 2 Michael Andres 2007-01-26 22:05:07 UTC
Fixed and reported upstream.