[Bug 252562] New: opie-2.4-592 : array subscript is above array bounds
https://bugzilla.novell.com/show_bug.cgi?id=252562 Summary: opie-2.4-592 : array subscript is above array bounds Product: openSUSE 10.3 Version: Alpha 1plus 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 build package opie-2.4-592 with the GNU C compiler 4.3 snapshot 20070302. The compiler said btoe.c:2262: warning: array subscript is above array bounds The source code is cl = s[start / 8]; cc = s[start / 8 + 1]; cr = s[start / 8 + 2]; So we can see that the routine extract assumes there are three chars to read from array s. but p += extract(cp, i, 2); so there are only two valid chars. This looks like broken code. 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=252562 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |meissner@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=252562 pgajdos@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|meissner@novell.com |pgajdos@novell.com Status|NEW |ASSIGNED -- 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=252562 pgajdos@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #1 from pgajdos@novell.com 2007-03-16 06:26 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