diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2009-01-13 05:40:36 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2009-01-13 05:40:36 +0000 |
commit | 1a15c900e8fa61477abe64f81edf40e839d77917 (patch) | |
tree | 3b32e2b6b48a0242273e5533534eb5a6697cfd39 /libgfortran | |
parent | 1b82a0656e4fce761ccdea815ec99072d18b2891 (diff) | |
download | gcc-1a15c900e8fa61477abe64f81edf40e839d77917.zip gcc-1a15c900e8fa61477abe64f81edf40e839d77917.tar.gz gcc-1a15c900e8fa61477abe64f81edf40e839d77917.tar.bz2 |
re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads)
2009-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/38772
* io/read.c (read_f): Clean up loop conditions for BZ/BN,
allowing proper digit testing. White space fix.
From-SVN: r143327
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/read.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index f71521f..7b1241d 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/38772 + * io/read.c (read_f): Clean up loop conditions for BZ/BN, + allowing proper digit testing. White space fix. + 2009-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/38735 diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c index fb39877..a8ae3d7 100644 --- a/libgfortran/io/read.c +++ b/libgfortran/io/read.c @@ -972,14 +972,14 @@ read_f (st_parameter_dt *dtp, const fnode *f, char *dest, int length) while (w > 0) { if (*p != ' ') - goto bad_float; + goto bad_float; p++; w--; } } else /* BZ or BN status is enabled */ { - while (w > 0 && (isdigit (*p) || *p == ' ')) + while (w > 0) { if (*p == ' ') { |