Bug 156215

Summary: OpenIPMI-1.4.26-2: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Torsten Duwe <duwe>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-03-08 19:09:44 UTC
I just tried to compile package OpenIPMI-1.4.26-2 with the Intel C compiler.

It said

oem_atca.c(3368): warning #175: subscript out of range

The source code is

	if (data[13] != 0) {

but

    unsigned char data[13];

I agree with the compiler.  Suggest make array one element bigger.
Comment 1 Stefan Dirsch 2007-01-16 22:32:49 UTC
Feel free to close as duplicate of Bug #235591.
Comment 2 Torsten Duwe 2008-01-16 15:45:48 UTC
The array is only filled with 13 bytes, so the access is likely off by one.
Fixed in our 2.0.13 package.