Ensure slot address is valid inside of array

This commit is contained in:
Andrew Case
2025-03-05 23:15:14 +00:00
parent ced9e15b0c
commit 86fa9d8556
@@ -702,7 +702,11 @@ class IDStorage(ABC):
node = self.nodep_to_node(nodep)
node_slots = node.slots
for off in range(self.CHUNK_SIZE):
slot = node_slots[off]
try:
slot = node_slots[off]
except exceptions.InvalidAddressException:
continue
if slot == 0:
continue