Skip to content

Commit e34544c

Browse files
committed
[SharedCache] Fix parsing of Objective-C metadata
8267ab4 introduced a logic error in VirtualMemoryReader::ReadPointer that caused VirtualMemoryReader to attempt to read pointers from the wrong address, breaking parsing of Objective-C metadata.
1 parent a8e1a5f commit e34544c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/sharedcache/core/VirtualMemory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ uint64_t VirtualMemoryReader::ReadPointer()
265265

266266
uint64_t VirtualMemoryReader::ReadPointer(uint64_t address)
267267
{
268-
m_cursor = m_memory->GetAddressSize();
268+
m_cursor = address + m_addressSize;
269269
return m_memory->ReadPointer(address);
270270
}
271271

0 commit comments

Comments
 (0)