Bug 151543 - nvtv-0.4.7-12: array subscript out of range
Summary: nvtv-0.4.7-12: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P2 - High : Minor
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 16:53 UTC by David Binderman
Modified: 2006-02-23 11:53 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-02-16 16:53:46 UTC
I just tried to compile package nvtv-0.4.7-12 with a non standard version
of the GNU C compiler.

It said

1.

back_nvidia.c:234: warning: array subscript out of range

The source code is

	pNv->arch.freqM[4] = 0;

but

linux:/usr/src/packages/SPECS # find ../BUILD/nvtv-0.4.7/ -name \*.h -print | xargs fgrep "freqM["
../BUILD/nvtv-0.4.7/src/nv_type.h:  long freqM[4];    /* ascending limit frequencies for maxM, in kHz */

so pNv->arch.freqM[4] does not exist. Suggest make array one element larger.
Comment 1 Stefan Dirsch 2006-02-23 11:53:19 UTC
I've contacted the author and he confirmed that it should be

  pNv->arch.freqM[3] = 0;

instead. Fixed for Beta > 5.