1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

OOB protection

This commit is contained in:
Brian Fiete 2025-05-29 07:51:56 +02:00
parent 2d251fc2e4
commit abd547a405

View file

@ -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];