From: Jerry DeLisle Date: Tue, 13 Jan 2009 05:40:36 +0000 (+0000) Subject: re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads) X-Git-Tag: releases/gcc-4.4.0~899 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a15c900e8fa61477abe64f81edf40e839d77917;p=thirdparty%2Fgcc.git re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads) 2009-01-12 Jerry DeLisle 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 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index f71521fc32b5..7b1241d5fee5 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-01-12 Jerry DeLisle + + 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 PR libfortran/38735 diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c index fb39877012cc..a8ae3d73f53d 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 == ' ') {