re PR fortran/61632 (Improve error locus on large format strings)
commitdbb400d7076fb71c447a342f561aecbf57dd87ad
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 20 Jul 2014 20:03:41 +0000 (20 20:03 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 20 Jul 2014 20:03:41 +0000 (20 20:03 +0000)
tree2247aa9ad49d39cb0c7106492783f37bd4981e2b
parentfbd86cc6a12a6ee77a808c0d08b4c55869aa19e1
re PR fortran/61632 (Improve error locus on large format strings)

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.

From-SVN: r212875
libgfortran/ChangeLog
libgfortran/io/format.c