diff options
author | Paul Brook <pbrook@gcc.gnu.org> | 2004-08-31 20:37:43 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2004-08-31 20:37:43 +0000 |
commit | 334ff453eaa61a47ee9b45b273a0a8057697060e (patch) | |
tree | dc7a4ca767a0ceaea51b4b9fda68b21315cdcfa6 /libgfortran/io/unix.c | |
parent | af287697443400b33dbfd2297bdcf63121e7bc86 (diff) | |
download | gcc-334ff453eaa61a47ee9b45b273a0a8057697060e.zip gcc-334ff453eaa61a47ee9b45b273a0a8057697060e.tar.gz gcc-334ff453eaa61a47ee9b45b273a0a8057697060e.tar.bz2 |
re PR libfortran/16805 (Runtime failure using list directed read from string)
PR libfortran/16805
* io/list_read.c (next_char): Don't signal EOF for internal files.
* io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
testsuite/
2004-08-31 Bud Davis <bdavis9659@comcast.net>
* gfortran.dg/list_read_2.f90: New test.
From-SVN: r86844
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 33d7fda..377cadd 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -746,9 +746,6 @@ mem_alloc_r_at (unix_stream * s, int *len, gfc_offset where) if (where < s->buffer_offset || where > s->buffer_offset + s->active) return NULL; - if (is_internal_unit() && where + *len > s->file_length) - return NULL; - s->logical_offset = where + *len; n = s->buffer_offset + s->active - where; |