Merge pull request #9050 from stblr/memory-watcher-fix

MemoryWatcher: Do not follow invalid pointers
This commit is contained in:
LC 2020-09-01 07:24:05 -04:00 committed by GitHub
commit 6bd7687893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}