[Bug fortran/85840] Memory leak in write.c
jjcogliati-r1 at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Fri May 25 14:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85840
--- Comment #7 from Joshua Cogliati <jjcogliati-r1 at yahoo dot com> ---
Created attachment 44185
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44185&action=edit
Patch by checking against original buffer
This is one possible patch for this problem, it just checks if the buffer is at
a different address than the stack buffer.
It does fix the problem in my test case.
More information about the Gcc-bugs
mailing list