From d3da7dcecdd631ee9cfa05d175ef96cd9f92e377 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 24 May 2024 22:52:46 +0200 Subject: [PATCH] Fix out-of-bounds access on non-continuous frames. --- server/TracyWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index b17a7222..fe650831 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -2121,7 +2121,7 @@ int64_t Worker::GetFrameEnd( const FrameData& fd, size_t idx ) const } else { - if( fd.frames[idx].end >= 0 ) + if( idx < fd.frames.size() && fd.frames[idx].end >= 0 ) { return fd.frames[idx].end; }