mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 13:28:08 -05:00
chore: make sure that pointer resolving via lookup always resolves something
This commit is contained in:
parent
e7dc99e4df
commit
b7ea769589
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user