Bug 154849 - kile-1.8.1-5: array subscript out of range
Summary: kile-1.8.1-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 : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 21:58 UTC by David Binderman
Modified: 2006-03-03 13:10 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-03-02 21:58:28 UTC
I just tried to compile package kile-1.8.1-5 with a non standard version 
of the GNU C compiler.

It said

1.

./src/kile/kilestructurewidget.cpp:82: warning: array subscript out of range

The source code is

	m_current=m_child=m_lastChild=m_parent[0]=m_parent[1]=m_parent[2]=m_parent[3]=m_parent[4]=m_parent[5]=m_parent[7]=m_root;

but

linux:/usr/src/packages/SPECS # find ../BUILD/kile-1.8.1/ -name \*.h -print | xargs fgrep m_parent
../BUILD/kile-1.8.1/src/kile/kilestructurewidget.h:             KileListViewItem                   *m_parent[7], *m_current, *m_root, *m_child, *m_lastChild;

so m_parent[7] does not exist. Perhaps m_parent[ 6] was intended.
Suggest code rework.
Comment 1 Stephan Kulow 2006-03-03 13:10:46 UTC
fixed in SVN and will update package too