http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61035
--- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> --- Author: jb Date: Mon May 12 19:23:11 2014 New Revision: 210335 URL: http://gcc.gnu.org/viewcvs?rev=210335&root=gcc&view=rev Log: Fix stack overflow crash in getcwd intrinsic. 2014-05-12 Janne Blomqvist <j...@gcc.gnu.org> PR libfortran/61035 * intrinsics/getcwd.c (getcwd_i4_sub): Avoid potentially large stack allocation, avoid extra copying in the common case. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/intrinsics/getcwd.c