2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-20 19:35:41 +00:00

chore: make sure that pointer resolving via lookup always resolves something

This commit is contained in:
Jan 2025-06-05 21:04:23 +01:00
parent bd9a680bb0
commit 3c16da006c
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -387,6 +387,7 @@ namespace
uintptr_t lookupEntry = 0u;
std::memcpy(&lookupEntry, &block->m_buffer[blockOffset], m_pointer_byte_count);
assert(lookupEntry != 0);
if (lookupEntry == 0)
return nullptr;
if (lookupEntry > m_pointer_redirect_lookup.size())