[Bug 512162] New: dcbd-0.7.31rt-6.24: array subscript is above array bounds
http://bugzilla.novell.com/show_bug.cgi?id=512162 Summary: dcbd-0.7.31rt-6.24: array subscript is above array bounds Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just tried to build Factory package dcbd-0.7.31rt-6.24 and the build said nltest.c:927:4: warning: array subscript is above array bounds The source code is for (i = 0; i <= 8; i++) { bcn_data->up_settings[i].rp_admin = 1; } but dcbd-0.7.31rt/nltest.h: }up_settings[8]; /* Index is user priority */ I agree with the compiler. Suggest code rework. Maybe for (i = 0; i < 8; i++) { bcn_data->up_settings[i].rp_admin = 1; } would be enough. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=512162
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=512162
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=512162#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=512162
User hare@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=512162#c2
Hannes Reinecke
participants (1)
-
bugzilla_noreply@novell.com