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

tkoenig at alice-dsl dot net gcc-bugzilla@gcc.gnu.org
Sat Mar 24 23:07:00 GMT 2007



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



More information about the Gcc-bugs mailing list