Bug 137565

Summary: bbtools-2005.12.1-2: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Hendrik Vogelsang <hvogel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-12-08 12:37:30 UTC
I just tried to compile package bbtools-2005.12.1-2 with a non standard version
of the GNU C compiler. It said

1.

wminterface.cc:71: warning: array subscript out of range

The source code is

	e.xclient.data.l[4] = e.xclient.data.l[5] = 0;

but in the X11 header files, the array l has only five elements,

        union {
                char b[20];
                short s[10];
                long l[5];
                } data;
} XClientMessageEvent;

so e.xclient.data.l[5] does not exist.  Suggest code rework.

2.

wminterface.cc:74: warning: array subscript out of range
wminterface.cc:87: warning: array subscript out of range

Duplicates.

I tried emailing the author [ j.m.b.m.kennis@ele.tue.nl ] but I got no
answer.
Comment 1 Hendrik Vogelsang 2006-01-16 14:35:20 UTC
fixed