This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24584] Segfault when reading empty string in namelist file
- 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: 12 Nov 2005 22:22:57 -0000
- Subject: [Bug libfortran/24584] Segfault when reading empty string in namelist file
- References: <bug-24584-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2005-11-12 22:22 -------
Subject: Bug 24584
Author: jvdelisle
Date: Sat Nov 12 22:22:53 2005
New Revision: 106838
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106838
Log:
2005-11-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24699, 24700, 24719, 24785
* io/transfer.c (read_sf): Remove incorrect statement that was
clearing bytes_left.
(formatted_transfer_scalar): Add handling of end-of-record
condition, setting values correctly to backup. Handle x format
when doing non-advancing write.
(st_read): Initialize current_record.
PR libgfortran/24584
* io/list_read.c (free_saved): Set saved_used to zero.
Modified:
branches/gcc-4_0-branch/libgfortran/ChangeLog
branches/gcc-4_0-branch/libgfortran/io/list_read.c
branches/gcc-4_0-branch/libgfortran/io/transfer.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24584