
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.