This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70909] Libiberty Demangler segfaults (4)
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2016 14:53:29 +0000
- Subject: [Bug c++/70909] Libiberty Demangler segfaults (4)
- Auto-submitted: auto-generated
- References: <bug-70909-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909
--- Comment #21 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Why doesn't a mark/walk/unmark idiom when walking a potentially circular data
structure work here? I.e. add a mutable counter to demangle_component.
Inc/dec at start/end of d_print_comp? IIUC if it gets to >1 there's a problem.