[Bug 242042] New: cups-1.2.7-15: array subscript is below array bounds
https://bugzilla.novell.com/show_bug.cgi?id=242042 Summary: cups-1.2.7-15: array subscript is below array bounds Product: openSUSE 10.3 Version: unspecified Platform: All OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: dcb314@hotmail.com QAContact: jsmeix@novell.com I just tried to compile package cups-1.2.7-15 with the GNU C compiler version 4.3 snapshot 20070202. The compiler said interpret.c:576: warning: array subscript is below array bounds The source code is if ((i = atoi(name + 11)) >= 0 || i > 15) return (-1); h->cupsInteger[i] = atoi(value); so i is negative in h->cupsInteger[i]. 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=242042 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsmeix@novell.com |kssingvo@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=242042 kssingvo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from kssingvo@novell.com 2007-02-05 10:23 MST ------- Yes, the bug is valid. Thanks. But I never saw him occur in any real-world printing. Can you please provide any such a test case, otherwise I will fix it for next SUSE version only. -- 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=242042 kssingvo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #2 from kssingvo@novell.com 2007-02-13 12:42 MST ------- Fixed package submitted to STABLE. A fixed package (for personal installation) should appear on openSUSE build service. Please use for download as starting (!) point: http://software.opensuse.org/download/home:/kssingvo/openSUSE_10.2/repodata/... .. and make sure that the version is > -18.html :-) -- 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