mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +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 )
|
bool Profiler::NeedDataSize( size_t len )
|
||||||
{
|
{
|
||||||
|
assert( len <= TargetFrameSize );
|
||||||
bool ret = true;
|
bool ret = true;
|
||||||
if( m_bufferOffset - m_bufferStart + len > TargetFrameSize )
|
if( m_bufferOffset - m_bufferStart + len > TargetFrameSize )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user