Florian Krohm 23c60d2567 Change the GCC demangler to not use VLA. The rationale is that these VLAs
are allocated on the stack and they can become quite large - in particular
when the client is a C++ application using the Boost library.
In combination with the demanglers recursive nature this can quickly lead
to exhaustion of valgrind's per-thread stack (which cannot be dynamically
grown). Additionally, due to the large VLAs (I've seen a 32k array) we
could run out of stack space without issuing a prior warning and instead
just segfault. 
Therefore this patch allocates these arrays on the heap and frees them
later. Basically this is a respin of Joseph's r10385.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15029
2015-03-21 10:58:37 +00:00
..