[Bug libfortran/32752] Segfault on WRITE with modified unix_stream structure

jvdelisle at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 22 04:03:00 GMT 2007



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-07-22 04:03 -------
Subject: Bug 32752

Author: jvdelisle
Date: Sun Jul 22 04:02:57 2007
New Revision: 126822

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126822
Log:
2007-07-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/32752
        PR libgfortran/32678
        Backport from trunk.
        * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
        bytes_used to zero. Fix off by one error in calculation of pos and
        skips. Don't allow pending_spaces to go negative.

Modified:
    branches/gcc-4_2-branch/libgfortran/ChangeLog
    branches/gcc-4_2-branch/libgfortran/io/transfer.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32752



More information about the Gcc-bugs mailing list