diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-15 19:54:52 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-15 19:54:52 +0000 |
commit | 80bf6ccfaf347d3041b6a2c03a8e63135c8925b5 (patch) | |
tree | aeec6e7e6d2c519fd6d436841ec729ee7588bddb | |
parent | d26210a33c536d7f309bc8083ce8f986cb5d4868 (diff) | |
download | gcc-80bf6ccfaf347d3041b6a2c03a8e63135c8925b5.tar.gz |
2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/30145
* io/transfer.c (transfer_array): Check for negative extent.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119942 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/transfer.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index d80cf70f170..0844d1a6df7 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/30145 + * io/transfer.c (transfer_array): Check for negative extent. + 2006-12-13 Richard Guenther <rguenther@suse.de> PR fortran/30115 diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 163557d49b3..0139380e821 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -1478,7 +1478,7 @@ transfer_array (st_parameter_dt *dtp, gfc_array_char *desc, int kind, /* If the extent of even one dimension is zero, then the entire array section contains zero elements, so we return. */ - if (extent[n] == 0) + if (extent[n] <= 0) return; } |