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 e7dc99e4df
commit b7ea769589
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())