mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Do not try to demangle really long function names.
This commit is contained in:
parent
d282425287
commit
a75846dd88
@ -83,6 +83,7 @@ void ___tracy_free_demangle_buffer()
|
||||
extern "C" const char* ___tracy_demangle( const char* mangled )
|
||||
{
|
||||
if( !mangled || mangled[0] != '_' ) return nullptr;
|
||||
if( strlen( mangled ) > ___tracy_demangle_buffer_len ) return nullptr;
|
||||
int status;
|
||||
size_t len = ___tracy_demangle_buffer_len;
|
||||
return abi::__cxa_demangle( mangled, ___tracy_demangle_buffer, &len, &status );
|
||||
|
Loading…
Reference in New Issue
Block a user