Bug 156215 - OpenIPMI-1.4.26-2: array subscript out of range
Summary: OpenIPMI-1.4.26-2: 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: Torsten Duwe
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-08 19:09 UTC by David Binderman
Modified: 2008-01-16 15:45 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-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.