[Bug libfortran/61035] Crash in getcwd intrinsic due to stack overflow

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 12 19:23:00 GMT 2014


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  <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.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/intrinsics/getcwd.c



More information about the Gcc-bugs mailing list