mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Avoid an infinite loop on bad stack walk.
If the address is wrong, it'll re-trigger debug mode, which will re-walk the stack, which will continue ad infinitum.
This commit is contained in:
parent
2347498667
commit
648c0f6685
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace MIPSStackWalk {
|
|||
|
||||
frame.entry = pc;
|
||||
frame.stackSize = -_IMM16;
|
||||
if (ra_offset != -1) {
|
||||
if (ra_offset != -1 && Memory::IsValidAddress(frame.sp + ra_offset)) {
|
||||
ra = Memory::Read_U32(frame.sp + ra_offset);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue