From 5c92eae3ed0cff7be35adbca5dad7e0b4c608e5c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Oct 2019 18:47:50 +0200 Subject: [PATCH] Add early exit for invalid times. --- server/TracyWorker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 3d1c63aa..c854d691 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1847,6 +1847,7 @@ uint64_t Worker::GetPidFromTid( uint64_t tid ) const void Worker::GetCpuUsageAtTime( int64_t time, int& own, int& other ) const { own = other = 0; + if( time < 0 || time > m_data.lastTime ) return; for( int i=0; i