[Bug 246740] New: texinfo-4.8-49 : array subscript is below array bounds
https://bugzilla.novell.com/show_bug.cgi?id=246740 Summary: texinfo-4.8-49 : array subscript is below array bounds Product: openSUSE 10.3 Version: Alpha 1 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 texinfo-4.8-49 with the GNU C compiler version 4.3 snapshot 20070216. The compiler said xml.c:660: warning: array subscript is below array bounds The source code is return element_stack[element_stack_index-1]; but in routine xml_pop_current_element is the line if (element_stack_index < 0) 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=246740 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |werner@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=246740 ------- Comment #1 from werner@novell.com 2007-02-19 06:27 MST ------- Please do your report also upstream, I've no time to determine how this code should work. -- 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=246740 ------- Comment #2 from dcb314@hotmail.com 2007-02-19 06:32 MST ------- (In reply to comment #1)
Please do your report also upstream,
Thanks for the offer, but I have no experience with this package and so it is likely I will break the package.
I've no time to determine how this code should work.
Not a problem. Suggest postpone fix until convenient time. -- 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=246740 ------- Comment #3 from werner@novell.com 2007-02-19 06:46 MST ------- AFAIS from CVS of texinfo at cvs.savannah.gnu.org they have included an `assert(element_stack_index > 0);' before the compromised line. Does this stop gcc shouting about the array subscript in the reported return line? -- 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=246740 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #4 from werner@novell.com 2007-02-19 07:11 MST ------- I'm using parts of the cvs version, seems to compile without warning at least with gcc 4.2.0_20070130 -- 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