diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-28 18:28:26 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-28 18:28:31 -0400 |
| commit | 8267ab475cb2ac82fd3724c009f21e8e30143f6b (patch) | |
| tree | cb3f759c3b9659b077b090ce66d402a43b9fede9 /view/sharedcache/core/VirtualMemory.h | |
| parent | 4b04f93ad0161bef8434300a153aed4f5ec100f9 (diff) | |
[SharedCache] Improve support for older shared cache versions
Fixed branch island regions being skipped
Diffstat (limited to 'view/sharedcache/core/VirtualMemory.h')
| -rw-r--r-- | view/sharedcache/core/VirtualMemory.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<const uint8_t*, const uint8_t*> ReadSpan(size_t address, size_t length); + std::pair<const uint8_t*, const uint8_t*> ReadSpan(uint64_t address, size_t length); void Read(void* dest, uint64_t address, size_t length); }; |
