From 8267ab475cb2ac82fd3724c009f21e8e30143f6b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 28 Apr 2025 18:28:26 -0400 Subject: [SharedCache] Improve support for older shared cache versions Fixed branch island regions being skipped --- view/sharedcache/core/VirtualMemory.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/core/VirtualMemory.h') diff --git a/view/sharedcache/core/VirtualMemory.h b/view/sharedcache/core/VirtualMemory.h index 647f4468..fcaf5c07 100644 --- a/view/sharedcache/core/VirtualMemory.h +++ b/view/sharedcache/core/VirtualMemory.h @@ -61,7 +61,9 @@ public: bool IsAddressMapped(uint64_t address); // Write a pointer at a given address. This pointer is never persisted when a file accessor is closed. - void WritePointer(size_t address, size_t pointer); + void WritePointer(uint64_t address, size_t pointer); + + uint64_t ReadPointer(uint64_t address); std::string ReadCString(uint64_t address); @@ -83,7 +85,7 @@ public: BinaryNinja::DataBuffer ReadBuffer(uint64_t address, size_t length); - std::pair ReadSpan(size_t address, size_t length); + std::pair ReadSpan(uint64_t address, size_t length); void Read(void* dest, uint64_t address, size_t length); }; -- cgit v1.3.1