Bug 134534

Summary: Source-Navigator-5.1.4-181: 2 * array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Ladislav Michnovic <lmichnovic>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.