Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 116664 - subscript out of range + local variable used before set
subscript out of range + local variable used before set
Product: Fedora
Classification: Fedora
Component: xscreensaver (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ray Strode [halfline]
Depends On:
  Show dependency treegraph
Reported: 2004-02-24 04:11 EST by d.binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-06-18 20:24:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description d.binderman 2004-02-24 04:11:47 EST
Description of problem:

I just tried to compile Core2 Test1 package xscreensaver-4.14-2

The compiler said


analogtv.c(840): remark #592: variable "lineno" is used before its
value is set

The source code is

  int lineno;
  int i,j;
  double osc,filt;
  double *sp;
  double cbfc=1.0/128.0;

  sp = it->rx_signal + lineno*ANALOGTV_H + cur_hsync;

We can clearly see lineno is used before it is set. Suggest give it
a value before first use.


blinkbox.c(289): warning #175: subscript out of range

The source code is

              bpos[2] = bbox.bottom.x - bscale[3];

but earlier in the file is

GLfloat bscale[3] = {1,1,0.25};

so bscale[3] doesn't exist.


blinkbox.c(296): warning #175: subscript out of range
blinkbox.c(303): warning #175: subscript out of range
blinkbox.c(310): warning #175: subscript out of range
blinkbox.c(317): warning #175: subscript out of range
blinkbox.c(324): warning #175: subscript out of range


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Alan Cox 2004-06-18 20:24:07 EDT
The first is code that is never executed, the second is harmless. You
might want to report this upstream to jwz instead.

Note You need to log in before you can comment on or make changes to this bug.