mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix out-of-bounds access on non-continuous frames.
This commit is contained in:
parent
005d092903
commit
d3da7dcecd
@ -2121,7 +2121,7 @@ int64_t Worker::GetFrameEnd( const FrameData& fd, size_t idx ) const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( fd.frames[idx].end >= 0 )
|
if( idx < fd.frames.size() && fd.frames[idx].end >= 0 )
|
||||||
{
|
{
|
||||||
return fd.frames[idx].end;
|
return fd.frames[idx].end;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user