Prevent a few edge case overflows

This commit is contained in:
Nils O. Selåsdal
2026-06-09 14:43:04 +02:00
parent b06b78aeef
commit 78eb30d67f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ struct MemoryBlock {
U8 *base;
U32 size; // Block size, page aligned
U32 pos; // start of next allocation
U32 base_pos; // absolute position of base relative to the first linked arena
U64 base_pos; // absolute position of base relative to the first linked arena
U32 committed_pos; // end of committed region. Will be page aligned
MemoryBlock *prev;
};