[Bug 517294] New: spu-tools-2.3.0-3.2: bad symbolic array index into static array
http://bugzilla.novell.com/show_bug.cgi?id=517294 Summary: spu-tools-2.3.0-3.2: bad symbolic array index into static array Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 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 Found By: --- I just had a look at factory package spu-tools-2.3.0-3.2 For source code file spu-tools-2.3.0/spu-top.c around line 161 is the source code mvprintw(3, 0, "Cpu(s):%5.1f%%us,%5.1f%%sys,%5.1f%%wait,%5.1f%%nice,%5.1f%%idle", percents[TIME_USER], percents[TIME_SYSTEM], percents[TIME_IOWAIT], percents[TIME_NICE], percents[TIME_IDLE]); but static float percents[TIME_TOTAL]; and enum time { TIME_USER=0, TIME_NICE, TIME_SYSTEM, TIME_IOWAIT, TIME_LOADED, TIME_TOTAL, TIME_IDLE, TIME_MAX }; so an array of size 5 has an index of size 6 applied to it, by TIME_IDLE. Suggest code rework. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=517294 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |sassmann@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=517294 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |stefan.fent@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=517294 User rguenther@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=517294#c4 --- Comment #4 from Richard Guenther <rguenther@novell.com> 2009-10-17 08:54:25 MDT --- David, in case the issues are not introduced by a patch local to openSUSE please report the issues upstream. Packagers, please do not add openSUSE-local patches to fix this kind of errors but forward the bugs upstream and close the bugs as RESOLVED UPSTREAM. Note that it is perfectly fine to have "resource leaks" at the end of a program as the kernel will clean up for you. Manually freeing them only increases binary size and runtime. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=517294 https://bugzilla.novell.com/show_bug.cgi?id=517294#c5 Stefan Fent <stefan.fent@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #5 from Stefan Fent <stefan.fent@suse.com> 2013-11-25 15:33:36 UTC --- There's no development upstream anymore, as the platform is dead. (And this bug wasn't even reported upstream) -- 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.
participants (1)
-
bugzilla_noreply@novell.com