]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 13 Jan 2009 05:40:36 +0000 (05:40 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 13 Jan 2009 05:40:36 +0000 (05:40 +0000)
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

libgfortran/ChangeLog
libgfortran/io/read.c

index f71521fc32b52351c37bd9f1e2cea87a33ba76a7..7b1241d5fee55a164798ec1ca6f8c2c90fa12baf 100644 (file)
@@ -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
index fb39877012cc4f6536e7ef298b9f69023c010ec9..a8ae3d73f53d08ce5dccd1475e1d1cdbe2e131b4 100644 (file)
@@ -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 == ' ')
             {