2014-07-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
commit571b6ba9c767a233ac70a0ea8e404ac5eb9e4fe9
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Jul 2014 20:03:41 +0000 (20 20:03 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Jul 2014 20:03:41 +0000 (20 20:03 +0000)
tree2247aa9ad49d39cb0c7106492783f37bd4981e2b
parent85307591af184460c7699ad039e0754197dc1e89
2014-07-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/61632
* io/format.c (format_error): Avoid invalid string pointer by
using the fortran string length values to generate error string.
(parse_format): Allocate the null terminator for the format
string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212875 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/format.c