This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/31297] Use of uninitialized variables in libgfortran's I/O



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]