[Bug 239175] New: powersave-0.15.10-15: array subscript is above array bounds
https://bugzilla.novell.com/show_bug.cgi?id=239175 Summary: powersave-0.15.10-15: 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 powersave-0.15.10-15 with the new GNU compiler version 4.3 snapshot 20070119 The compiler said pm_interface.cpp:314: warning: array subscript is above array bounds The source code is for (x = 0; config_obj->current_scheme->thermal_zones[x].present && ((state = getThermalZoneState(x)) >= OK) && x < MAX_THERMAL_ZONES; x++) { Maybe the programmer intended for (x = 0; (x < MAX_THERMAL_ZONES) && (config_obj->current_scheme->thermal_zones[x].present) && ((state = getThermalZoneState(x)) >= OK); x++) { -- 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=239175 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |hmacht@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=239175 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from hmacht@novell.com 2007-01-26 03:33 MST ------- Fixed in svn. I don't think this issue should go out along with the online update which is on its way because this shouldn't be a problem although the fix is correct. Thanks. -- 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=239175 behlert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- 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