[Bug 244545] New: libnl-1.0-40 : array subscript is above array bounds
https://bugzilla.novell.com/show_bug.cgi?id=244545 Summary: libnl-1.0-40 : 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@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package libnl-1.0-40 with the GNU C compiler version 4.3 snapshot 20070209. The compiler said route/route.c:517: warning: array subscript is above array bounds The source code is for (i = 0; i < RTAX_MAX; i++) { if (f->rt_metrics_mask & (1 << i)) { if (!(o->rt_metrics_mask & (1 << i)) || f->rt_metrics[i+1] != o->rt_metrics[i+1]) return 0; } } but ./BUILD/libnl-1.0-pre5/include/netlink-types.h: uint32_t rt_metrics[RTAX_MAX]; So i runs from [ 0.. RTAX_MAX), then f->rt_metrics[i+1] is not valid. Suggest code rework. -- 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=244545 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |bnc-team-gnome@forge.provo.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=244545 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |bnc-team-gnome-build@forge.provo.novell.com |gnome@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=244545 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-gnome- |tambet@novell.com |build@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=244545#c1 --- Comment #1 from JP Rosevear <jpr@novell.com> 2007-09-12 07:31:42 MST --- Mailed upstream developer. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=244545#c2 --- Comment #2 from JP Rosevear <jpr@novell.com> 2007-09-28 13:49:36 MST --- This is fixed in git upstream, but not released. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=244545 User tambet@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=244545#c3 Tambet Ingo <tambet@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Tambet Ingo <tambet@novell.com> 2008-03-03 11:43:51 MST --- Fixed in factory. -- 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.
participants (1)
-
bugzilla_noreply@novell.com