mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Add limit on disassembly tool reply.
This commit is contained in:
@@ -1039,7 +1039,9 @@ std::string TracyLlmTools::SymbolDisasm( const std::string& address ) const
|
||||
{
|
||||
uint64_t symaddr = strtoull( address.c_str(), nullptr, 16 );
|
||||
auto json = JsonDisassembly( symaddr, m_worker, m_view );
|
||||
return json.dump( -1, ' ', false, nlohmann::json::error_handler_t::replace );
|
||||
auto ret = json.dump( -1, ' ', false, nlohmann::json::error_handler_t::replace );
|
||||
if( ret.size() > CalcMaxSize() ) return "Too much data.";
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string TracyLlmTools::SymbolParents( const std::string& address, uint32_t limit ) const
|
||||
|
||||
Reference in New Issue
Block a user