Explorar el Código

OOB protection

Brian Fiete hace 1 mes
padre
commit
abd547a405
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      IDEHelper/Profiler.cpp

+ 6 - 1
IDEHelper/Profiler.cpp

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