From 79e146c957b764fc6a3ff0e6a0a312850401dacf Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 10 Mar 2022 13:40:18 +0100 Subject: [PATCH] Avoid accessing address 0 when reporting a failure. --- server/TracyWorker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index af4ef323..fcb1718a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5438,7 +5438,7 @@ void Worker::ProcessZoneText() auto td = RetrieveThread( m_threadCtx ); if( !td ) { - ZoneTextFailure( td->id, m_pendingSingleString.ptr ); + ZoneTextFailure( m_threadCtx, m_pendingSingleString.ptr ); return; } if( td->fiber ) td = td->fiber; @@ -5485,7 +5485,7 @@ void Worker::ProcessZoneName() auto td = RetrieveThread( m_threadCtx ); if( !td ) { - ZoneNameFailure( td->id ); + ZoneNameFailure( m_threadCtx ); return; } if( td->fiber ) td = td->fiber; @@ -5507,7 +5507,7 @@ void Worker::ProcessZoneColor( const QueueZoneColor& ev ) auto td = RetrieveThread( m_threadCtx ); if( !td ) { - ZoneColorFailure( td->id ); + ZoneColorFailure( m_threadCtx ); return; } if( td->fiber ) td = td->fiber; @@ -5533,7 +5533,7 @@ void Worker::ProcessZoneValue( const QueueZoneValue& ev ) auto td = RetrieveThread( m_threadCtx ); if( !td ) { - ZoneValueFailure( td->id, ev.value ); + ZoneValueFailure( m_threadCtx, ev.value ); return; } if( td->fiber ) td = td->fiber;