Description of problem:
I just tried to compile package kernel-utils-2.4-13.1.39 from
Redhat Fedora Core 3.
The compiler said
cpuspeed.cc(451): warning #175: subscript out of range
The source code is
saved_governor[MAX_CPUS][MAX_SAVE_STRING] = '\0';
but, just a few lines before
static char saved_governor[MAX_CPUS][MAX_SAVE_STRING+1];
So it is clear that saved_governor[MAX_CPUS] doesn't exist.
Suggest code re-work.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This is broken code from a Red Hat patch. I suggest downloading my original
CPUSpeed 1.2.1 sources from http://carlthompson.net/software/cpuspeed .
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.