Red Hat Bugzilla – Bug 162413
4 * is used uninitialized in this function
Last modified: 2013-07-02 19:08:27 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
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.
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
Version-Release number of selected component (if applicable):
Steps to Reproduce:
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.
>aleph1.c and omega1.c are generated during compilation.
Time to look at the source code of the files they are
generated from ?
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.
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
To post a report you can use
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.
Closed due to user inactivity.