This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/42742] Handle very large format strings correctly
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2010 00:08:04 -0000
- Subject: [Bug libfortran/42742] Handle very large format strings correctly
- References: <bug-42742-9562@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from jvdelisle at gcc dot gnu dot org 2010-02-07 00:08 -------
I have found some time and managed to isolate the problem. It is in the
allocation of new format nodes after the fnode_array is exhausted. During
format caching, reset_fnode relies on a NULL to break out of a loop. The
pointer used comes out of get_fnode not initialized to NULL and the segfault
ensues. I am working on the proper patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42742