Bug 162413 - 4 * is used uninitialized in this function
4 * is used uninitialized in this function
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: tetex (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jindrich Novy
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-04 07:02 EDT by David Binderman
Modified: 2013-07-02 19:08 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-18 08:26:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2005-07-04 07:02:16 EDT
Description of problem:

I just tried to compile package tetex-3.0-4 from Redhat
Fedora Core development tree with the gcc 4.0.0 compiler and the
compiler flag -Wall.

The compiler said

1.

aleph1.c:5346: warning: 'alpha' is used uninitialized in this function

The source code is

        fonttables [f ][ k ].cint = sw - alpha ;

I agree with the compiler. Suggest initialise local variable
"alpha" before first use.

2.

omega1.c:3616: warning: 'alpha' is used uninitialized in this function
omega1.c:3611: warning: 'beta' is used uninitialized in this function
aleph1.c:5341: warning: 'beta' is used uninitialized in this function

Duplicates.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Jindrich Novy 2005-07-21 05:55:44 EDT
aleph1.c and omega1.c are generated during compilation. Because this seems not
to be severe as there are no known bugs as the cause of this, closing WONTFIX.
Comment 2 David Binderman 2005-07-21 09:47:47 EDT
>aleph1.c and omega1.c are generated during compilation.

Time to look at the source code of the files they are
generated from ?

>closing WONTFIX.

Code which is known to read random data is just asking for 
lots of downstream trouble, surely ?

I've seen lots of projects which do a lot of downstream firefighting,
but they never seem to look at upstream, which is where a lot of
the downstream firefighting can be avoided.
Comment 3 Jindrich Novy 2005-07-21 10:27:54 EDT
Right, any use of uninitialized variable is bad and may case problems downstream.

The code that generates these files need to modify/add the algorithm of its
generation what's better to be reported upstream. I'm subscribed to upstream
teTeX mailing lists and I see Thomas Esser replies quickly to user requests
there. I did several posts there as well and have this experience. The most of
things discussed there are mostly related to problems on a particular
architecture or usage related problems. IIRC I haven't noticed an email about
usage of uninitilized variables yet.

You may want to report this problem there to make upstream developers aware of
this problem.

To post a report you can use
tetex@dbs.uni-hannover.de

or visit http://www.tug.org/tetex/ to see all upstream mailing lists.

Me or you may close this bug UPSTREAM when the problem is reported there.
Comment 4 Jindrich Novy 2005-08-18 08:26:42 EDT
Closed due to user inactivity.

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