mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 08:49:20 +01:00
MemoryWatcher: Do not follow invalid pointers
This commit is contained in:
parent
75b4f70e5e
commit
ff168469b7
@ -70,7 +70,11 @@ u32 MemoryWatcher::ChasePointer(const std::string& line)
|
|||||||
{
|
{
|
||||||
u32 value = 0;
|
u32 value = 0;
|
||||||
for (u32 offset : m_addresses[line])
|
for (u32 offset : m_addresses[line])
|
||||||
|
{
|
||||||
value = Memory::Read_U32(value + offset);
|
value = Memory::Read_U32(value + offset);
|
||||||
|
if (!PowerPC::HostIsRAMAddress(value))
|
||||||
|
break;
|
||||||
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user