Bug 145806

Summary: OpenIPMI-1.4.19-7: 5 * 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: 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 2006-01-26 12:15:06 UTC
I just tried to compile package OpenIPMI-1.4.19-7 with the Intel C compiler.

It said

1.

ipmi.c(1113): warning #175: subscript out of range

The source code is

	p->username[16] = '\0';

but

    char            username[16];

2.

ipmi.c(1194): warning #175: subscript out of range

The source code is

        p->username[16] = '\0';

3.

ipmi.c(1197): warning #175: subscript out of range

The source code is

        p->password[16] = '\0';

4.

ipmi.c(1312): warning #175: subscript out of range
ipmi.c(1313): warning #175: subscript out of range

The source code is

	p->str_port[2] = ipmi_strdup(args[*curr_arg]);
	if (p->str_port[2] == NULL) {
Comment 1 Torsten Duwe 2006-03-09 16:55:23 UTC
Check out the current version, it has improved a lot.