From 04b132b6e2549a9336eaca32651d757227de8dad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 24 Oct 2019 21:22:22 +0200 Subject: [PATCH] Check if requested data size doesn't overflow buffer. --- client/TracyProfiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index fd15686c..06f69899 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1965,6 +1965,7 @@ bool Profiler::CommitData() bool Profiler::NeedDataSize( size_t len ) { + assert( len <= TargetFrameSize ); bool ret = true; if( m_bufferOffset - m_bufferStart + len > TargetFrameSize ) {