Fix stack overflow crash in getcwd intrinsic.
authorJanne Blomqvist <jb@gcc.gnu.org>
Mon, 12 May 2014 19:23:11 +0000 (22:23 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Mon, 12 May 2014 19:23:11 +0000 (22:23 +0300)
commit16e60fff0b97c8d4a166afc60dad088ce907dd0f
treeabee16e7f24de843f1d23fe13d306718e67bbd5e
parentf7b6856fa4cb73c3b4b4f41a1fbced4c5cf7ebd1
Fix stack overflow crash in getcwd intrinsic.

2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/61035
* intrinsics/getcwd.c (getcwd_i4_sub): Avoid potentially large
stack allocation, avoid extra copying in the common case.

From-SVN: r210335
libgfortran/ChangeLog
libgfortran/intrinsics/getcwd.c