diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2015-04-15 01:27:03 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2015-04-15 01:27:03 +0000 |
commit | 241cbc7a5f4b39f57c350e8fc32d3a43999ba63b (patch) | |
tree | 069058137168dad71c78507962553db85245d69c /libgfortran/ChangeLog | |
parent | 182d115c19b636d1c33ebb905029853fc68e99da (diff) | |
download | gcc-241cbc7a5f4b39f57c350e8fc32d3a43999ba63b.zip gcc-241cbc7a5f4b39f57c350e8fc32d3a43999ba63b.tar.gz gcc-241cbc7a5f4b39f57c350e8fc32d3a43999ba63b.tar.bz2 |
re PR fortran/65089 (FAIL: gfortran.dg/io_real_boz(2|_[45]).f90 when tested with -fsanitize=address)
2015-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/65089
* io/format.h (free_format): New function to free memory
allocated for building format error messages.
* io/format.c (format_error): Add checks before freeing memory
to avoid potential segfaults and free formatting data when
needed on error conditions. Always allocate and NULL terminate
the string.
* io/transfer.c (st_read_done, st_write_done): Use new
free_format function to clean up memory allocations when done.
From-SVN: r222111
Diffstat (limited to 'libgfortran/ChangeLog')
-rw-r--r-- | libgfortran/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 67bb9cc..9f53ae3 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,15 @@ +2015-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/65089 + * io/format.h (free_format): New function to free memory + allocated for building format error messages. + * io/format.c (format_error): Add checks before freeing memory + to avoid potential segfaults and free formatting data when + needed on error conditions. Always allocate and NULL terminate + the string. + * io/transfer.c (st_read_done, st_write_done): Use new + free_format function to clean up memory allocations when done. + 2015-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/65596 |