Fix stack overflow crash in getcwd intrinsic.
commit0a96ce03ce106e391dcc5d36d91df67e7b98021f
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 May 2014 19:23:11 +0000 (12 19:23 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 May 2014 19:23:11 +0000 (12 19:23 +0000)
treeabee16e7f24de843f1d23fe13d306718e67bbd5e
parenta159faebdbe010d27690e815637291da1a120a66
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.

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