From abd547a4050a3190b57aaafa17ef761d0b513917 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 29 May 2025 07:51:56 +0200 Subject: [PATCH] OOB protection --- IDEHelper/Profiler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/IDEHelper/Profiler.cpp b/IDEHelper/Profiler.cpp index a5c3a8f6..82513bab 100644 --- a/IDEHelper/Profiler.cpp +++ b/IDEHelper/Profiler.cpp @@ -525,7 +525,12 @@ void DbgProfiler::AddEntries(String& str, Array& 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];