[Bug 247312] New: ypbind-1.20.2-49 : array subscript is above array bounds
https://bugzilla.novell.com/show_bug.cgi?id=247312 Summary: ypbind-1.20.2-49 : array subscript is above array bounds Product: openSUSE 10.3 Version: Alpha 1 Platform: All OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package ypbind-1.20.2-49 with the GNU C compiler version 4.3 snapshot 20070216. The compiler said serv_list.c:435: warning: array subscript is above array bounds The source code is /* find empty slot */ for (active = 0; active < _MAXSERVER; ++active) if (entry->server[active].host == NULL) break; /* There is no empty slot */ if (entry->server[active].host != NULL) I agree with the compiler. Better code would be /* find empty slot */ for (active = 0; active < _MAXSERVER; ++active) if (entry->server[active].host == NULL) break; /* There is no empty slot */ if (active >= _MAXSERVER) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=247312 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kukuk@novell.com |screening@forge.provo.novell| |.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=247312 kukuk@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from kukuk@novell.com 2007-03-01 07:34 MST ------- Fixed. -- 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.
participants (1)
-
bugzilla_noreply@novell.com