From a088ebe337ed51c0aaa3fbfb956f6648b270886c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20V=C3=B6r=C3=B6=C5=A1?= Date: Sat, 10 May 2025 00:27:32 +0200 Subject: [PATCH] fix some buffer sizes --- profiler/src/profiler/TracySourceView.cpp | 4 ++-- server/TracyWorker.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/profiler/src/profiler/TracySourceView.cpp b/profiler/src/profiler/TracySourceView.cpp index 780ef318..8f4c3e12 100644 --- a/profiler/src/profiler/TracySourceView.cpp +++ b/profiler/src/profiler/TracySourceView.cpp @@ -1196,7 +1196,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) } else { - char tmp[16]; + char tmp[32]; sprintf( tmp, "0x%" PRIx64, m_baseAddr ); TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", tmp ); } @@ -5665,7 +5665,7 @@ void SourceView::Save( const Worker& worker, size_t start, size_t stop ) f = fopen( fn, "wb" ); } if( !f ) return; - char tmp[16]; + char tmp[32]; auto sym = worker.GetSymbolData( m_symAddr ); assert( sym ); const char* symName; diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index d3de6ba4..7c3ee7e0 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5308,7 +5308,7 @@ void Worker::ProcessZoneColor( const QueueZoneColor& ev ) void Worker::ProcessZoneValue( const QueueZoneValue& ev ) { - char tmp[32]; + char tmp[64]; const auto tsz = sprintf( tmp, "%" PRIu64 " [0x%" PRIx64 "]", ev.value, ev.value ); auto td = RetrieveThread( m_threadCtx );