Bug 134534 - Source-Navigator-5.1.4-181: 2 * array subscript out of range
Summary: Source-Navigator-5.1.4-181: 2 * array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Ladislav Michnovic
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-19 14:20 UTC by David Binderman
Modified: 2005-11-30 16:49 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 2005-11-19 14:20:47 UTC
I just tried to compile package Source-Navigator-5.1.4-181 with a version
of the GNU C compiler.

It said

1.

../../../snavigator/hyper/tkTreeTable.c:5028: warning: array subscript out of range

The source code is

	SET_CACHED(itemRet, index);

It seems that in the definition of the macro SET_CACHED, cachedItem[ 5], cachedItem[ 6],
cachedItem[ 7] are accessed, but only five elements are defined for cachedItem.

Suggest code rework.

2.

../../../snavigator/hyper/tkTreeTable.c:5295: warning: array subscript out of range

Duplicate.
Comment 1 Ladislav Michnovic 2005-11-21 19:43:56 UTC
O.K.
Comment 2 Ladislav Michnovic 2005-11-30 16:49:18 UTC
Code reworked.