mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
OOB protection
This commit is contained in:
parent
2d251fc2e4
commit
abd547a405
1 changed files with 6 additions and 1 deletions
|
@ -525,7 +525,12 @@ void DbgProfiler::AddEntries(String& str, Array<ProfileProcEntry*>& procEntries,
|
|||
continue;
|
||||
|
||||
// The range should only contain candidates
|
||||
BF_ASSERT(procEntry->mSize > stackIdx);
|
||||
//BF_ASSERT(procEntry->mSize > stackIdx);
|
||||
|
||||
if (stackIdx >= procEntry->mSize)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
auto curProc = procEntry->mData[procEntry->mSize - 1 - stackIdx];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue