From f99a02505abbc215bd682355ea169efda579fffc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 May 2026 13:33:16 +0200 Subject: [PATCH] Fix possible div-by-zero. If as.ipMaxAsm.local is 0 and m_childCalls is false, GetHotnessColor(count, 0) performs float(2 * count) / 0. The old code explicitly guarded against this with the as.ipMaxAsm.local != 0 check. --- profiler/src/profiler/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracySourceView.cpp b/profiler/src/profiler/TracySourceView.cpp index 74b755a0..560156ba 100644 --- a/profiler/src/profiler/TracySourceView.cpp +++ b/profiler/src/profiler/TracySourceView.cpp @@ -2775,7 +2775,7 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker const auto x60 = round( rect.Min.x + rect.GetWidth() * 0.6f ); for( size_t i=0; i