diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2018-06-10 01:49:02 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2018-06-10 01:49:02 +0000 |
commit | 3a579cbe0781a62146c4ddf430ae0e40c3f75f0f (patch) | |
tree | 7f7e32f927a37d239f64fcb937993e5f2a57e1f1 /libgfortran | |
parent | f0a9b3ddac0aaa324e2ea4ae6194cb599dfba1ee (diff) | |
download | gcc-3a579cbe0781a62146c4ddf430ae0e40c3f75f0f.zip gcc-3a579cbe0781a62146c4ddf430ae0e40c3f75f0f.tar.gz gcc-3a579cbe0781a62146c4ddf430ae0e40c3f75f0f.tar.bz2 |
re PR libfortran/86070 (gfortran.dg/fmt_zero_digits.f90 segmentation fault starting with r261077)
2018-06-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/86070
* io/write_float.def (build_float_string): Initialize *len.
From-SVN: r261382
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/write_float.def | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 4e9c5c7..dbfc5d3 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2018-06-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/86070 + * io/write_float.def (build_float_string): Initialize *len. + 2018-06-01 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/85816 diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def index 177a568..25ea64b 100644 --- a/libgfortran/io/write_float.def +++ b/libgfortran/io/write_float.def @@ -135,6 +135,7 @@ build_float_string (st_parameter_dt *dtp, const fnode *f, char *buffer, w = f->u.real.w; d = f->u.real.d; p = dtp->u.p.scale_factor; + *len = 0; rchar = '5'; |