mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #9050 from stblr/memory-watcher-fix
MemoryWatcher: Do not follow invalid pointers
This commit is contained in:
commit
6bd7687893
@ -70,7 +70,11 @@ u32 MemoryWatcher::ChasePointer(const std::string& line)
|
||||
{
|
||||
u32 value = 0;
|
||||
for (u32 offset : m_addresses[line])
|
||||
{
|
||||
value = Memory::Read_U32(value + offset);
|
||||
if (!PowerPC::HostIsRAMAddress(value))
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user