Fix crash in MIPSStackWalk

This commit is contained in:
Henrik Rydgård 2023-04-05 09:48:03 +02:00
parent 8f96ec371e
commit ff907bd523

View file

@ -94,6 +94,11 @@ namespace MIPSStackWalk {
stop = PSP_GetScratchpadMemoryBase();
}
}
if (!Memory::IsValidAddress(start)) {
return false;
}
if (stop < start - LONGEST_FUNCTION) {
stop = start - LONGEST_FUNCTION;
}