[Bug demangler/88480] libiberty's use of VLAs causing stack overflow
tnfchris at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 17:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88480
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #2 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Sorry, I read the function wrong, it's still an issue, in both cases the
demangler uses the stack to allocate, just one it uses a VLA and the other
alloca.
So there needs to be a third option to do heap allocation or a smarter way to
do the demangling that doesn't require these huge lists.
More information about the Gcc-bugs
mailing list