[PATCH] Set DEMANGLE_RECURSION_LIMIT to 1536
Pedro Alves
palves@redhat.com
Tue Dec 11 15:07:00 GMT 2018
On 12/11/2018 02:25 PM, Ian Lance Taylor wrote:
> On Tue, Dec 11, 2018 at 3:05 AM Pedro Alves <palves@redhat.com> wrote:
>> Ian earlier mentioned that we've wanted to avoid malloc because some
>> programs call the demangler from a signal handler, but it seems like
>> we already do, these functions already aren't safe to use from
>> signal handlers as is. Where does the "we can't use malloc" idea
>> come from? Is there some entry point that avoids
>> the malloc/realloc/free calls?
>
> cplus_demangle_v3_callback and cplus_demangle_print_callback.
Ah, gotcha. Thanks! Interesting.
Pedro Alves
More information about the Binutils
mailing list