From: Jerry DeLisle Date: Wed, 28 Dec 2005 07:20:19 +0000 (+0000) Subject: re PR libfortran/25550 (file data corrupted after reading end of file) X-Git-Tag: releases/gcc-4.2.0~5139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5918dea9c512bd13382d3fce512b725fe78aa24;p=thirdparty%2Fgcc.git re PR libfortran/25550 (file data corrupted after reading end of file) 2005-12-28 Jerry DeLisle PR libgfortran/25550 * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in next_record_r. From-SVN: r109101 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 65be7e725c6d..c9fdb6bc30cb 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2005-12-28 Jerry DeLisle + + PR libgfortran/25550 + * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in + next_record_r. + 2005-12-28 Jerry DeLisle PR libgfortran/25419 diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c index 3d7dd9ab8b6c..d9ac1e7f7eda 100644 --- a/libgfortran/io/file_pos.c +++ b/libgfortran/io/file_pos.c @@ -255,6 +255,7 @@ st_rewind (st_parameter_filepos *fpp) u->endfile = NO_ENDFILE; u->current_record = 0; + u->bytes_left = 0; test_endfile (u); } /* Update position for INQUIRE. */