This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31297] Use of uninitialized variables in libgfortran's I/O
- From: "tkoenig at alice-dsl dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2007 23:07:38 -0000
- Subject: [Bug libfortran/31297] Use of uninitialized variables in libgfortran's I/O
- References: <bug-31297-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from tkoenig at alice-dsl dot net 2007-03-24 23:07 -------
Created an attachment (id=13280)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13280&action=view)
proposed patch
This one also fixes the last case.
It does so by reading size bytes instead of the kind number when
converting endianness. This makes the buffers initialized, and
also makes sure the number of bytes are the same when
using CONVERT="SWAP" or when using the native format.
Not that I really expect anybody to use CONVERT with 10-byte
reals, anyway :-)
--
tkoenig at alice-dsl dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #13279|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31297