mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Check if requested data size doesn't overflow buffer.
This commit is contained in:
parent
01ceedb57a
commit
04b132b6e2
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user