Mailinglist Archive: opensuse-bugs (8048 mails)

< Previous Next >
[Bug 243046] New: hostap-0.4.9-42: array subscript is above array bounds
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Feb 2007 05:51:53 -0700 (MST)
  • Message-id: <bug-243046-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=243046

Summary: hostap-0.4.9-42: array subscript is above array bounds
Product: openSUSE 10.3
Version: unspecified
Platform: All
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to compile package hostap-0.4.9-42
with the GNU C compiler version 4.3 snapshot 20070202.

The compiler said

eap_pax.c:364: warning: array subscript is above array bounds

The source code is

if (sm->user->methods[i] != EAP_TYPE_PAX) {

but i is in the range [ 0 .. EAP_MAX_METHODS].
Suggest new code.

if (i >= EAP_MAX_METHODS)


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >