Re: [PATCH, libgfortran] PR 61035 Stack overflow in GETCWD

2014-05-12 Thread Tobias Burnus
Janne Blomqvist wrote: > the attached patch avoids a stack overflow crash due to not trying to > create a null-terminated duplicate of the argument char array on the > stack. Also, for the common case it avoids an extra allocation and an > extra memcpy. > > Regtested on x86_64-unknown-linux-gnu, Ok

Re: [PATCH, libgfortran] PR 61035 Stack overflow in GETCWD

2014-05-11 Thread Janne Blomqvist
PING On Sat, May 3, 2014 at 11:47 PM, Janne Blomqvist wrote: > Hello, > > the attached patch avoids a stack overflow crash due to not trying to > create a null-terminated duplicate of the argument char array on the > stack. Also, for the common case it avoids an extra allocation and an > extra me