From bda5c1d13e891faa88aa8a256889a06adece4553 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 Apr 2020 03:13:21 +0200 Subject: [PATCH] Ignore out-of-symbol jumps. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 02bb66d2..d3f8d639 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -177,7 +177,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker ) assert( false ); break; } - if( jumpAddr != 0 ) + if( jumpAddr >= symAddr && jumpAddr < symAddr + len ) { const auto min = std::min( jumpAddr, op.address ); const auto max = std::max( jumpAddr, op.address );