mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +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 )
|
extern "C" const char* ___tracy_demangle( const char* mangled )
|
||||||
{
|
{
|
||||||
if( !mangled || mangled[0] != '_' ) return nullptr;
|
if( !mangled || mangled[0] != '_' ) return nullptr;
|
||||||
|
if( strlen( mangled ) > ___tracy_demangle_buffer_len ) return nullptr;
|
||||||
int status;
|
int status;
|
||||||
size_t len = ___tracy_demangle_buffer_len;
|
size_t len = ___tracy_demangle_buffer_len;
|
||||||
return abi::__cxa_demangle( mangled, ___tracy_demangle_buffer, &len, &status );
|
return abi::__cxa_demangle( mangled, ___tracy_demangle_buffer, &len, &status );
|
||||||
|
Loading…
Reference in New Issue
Block a user