mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 21:38:01 -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;
|
uintptr_t lookupEntry = 0u;
|
||||||
std::memcpy(&lookupEntry, &block->m_buffer[blockOffset], m_pointer_byte_count);
|
std::memcpy(&lookupEntry, &block->m_buffer[blockOffset], m_pointer_byte_count);
|
||||||
|
|
||||||
|
assert(lookupEntry != 0);
|
||||||
if (lookupEntry == 0)
|
if (lookupEntry == 0)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
if (lookupEntry > m_pointer_redirect_lookup.size())
|
if (lookupEntry > m_pointer_redirect_lookup.size())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user