This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR32752 Segfault on WRITE with modified unix_stream structure
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 15 Jul 2007 01:04:40 +0100
- Subject: Re: [patch, libgfortran] PR32752 Segfault on WRITE with modified unix_stream structure
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=DFkOHKK3oSbbZPglxvHA/TOgIGbFDoMS0QlIP3mGn9TKLoCJPS16J70KlWEzJ42oiE3aEkSTdeXpicxSS7/cT89Qh7BE+jLxyQYrv1RN7+Q63vsnWsqqou6S/WT3CGAoKn12WUCxOc5wcCccQzWOepevip/+NTfZWDWzk2vHvBk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=gZ3Fvsz8xfIsCUPGt6oC3sgUCFeU3MV49G/X7HG9saRmmAeuLVTZsZ/aLD6oLn2CvJT8/2soTn02RSSsSFYGVAKJLDPWrlj+zbPiGszCfRGB0BSqZcpmrPgicbnK5wI2FSas/GFEb9esZEN144V+NBIfYwX4ZXI8vpkeTsZ3gEQ=
- References: <4698F8C7.8080207@verizon.net>
:REVIEWMAIL:
2007-07-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/32752
* io/unix.c (unix_stream): Move buffer pointer adjacent to
small_buffer.
* 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. Eliminate duplicate pending_spaces check.
OK