This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32752] Segfault on WRITE with modified unix_stream structure
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2007 04:03:20 -0000
- Subject: [Bug libfortran/32752] Segfault on WRITE with modified unix_stream structure
- References: <bug-32752-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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