Merge pull request #4952 from ligfx/fix_10110
PatchEngine: check instruction at link addr is non-zero
This commit is contained in:
commit
1f04bab967
|
@ -223,7 +223,8 @@ static bool IsStackSane()
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Check the link register makes sense (that it points to a valid IBAT address)
|
// Check the link register makes sense (that it points to a valid IBAT address)
|
||||||
return PowerPC::HostIsInstructionRAMAddress(PowerPC::HostRead_U32(next_SP + 4));
|
const u32 address = PowerPC::HostRead_U32(next_SP + 4);
|
||||||
|
return PowerPC::HostIsInstructionRAMAddress(address) && 0 != PowerPC::HostRead_U32(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ApplyFramePatches()
|
bool ApplyFramePatches()
|
||||||
|
|
Loading…
Reference in New Issue