diff --git a/Core/MIPS/MIPSStackWalk.cpp b/Core/MIPS/MIPSStackWalk.cpp index 8c6305f4f8..7f3589dab6 100644 --- a/Core/MIPS/MIPSStackWalk.cpp +++ b/Core/MIPS/MIPSStackWalk.cpp @@ -94,6 +94,11 @@ namespace MIPSStackWalk { stop = PSP_GetScratchpadMemoryBase(); } } + + if (!Memory::IsValidAddress(start)) { + return false; + } + if (stop < start - LONGEST_FUNCTION) { stop = start - LONGEST_FUNCTION; }