You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use validate_block() for adjacency checks and panic on failure
Inline adjacency checks were open-coded in free() and
selective_coalesce(). If these checks failed, the allocator would
silently skip the block and continue, masking heap corruption.
Replace the open-coded adjacency logic with calls to validate_block()
to avoid duplication and ensure consistent validation. If a block fails
validation, invoke panic(ERR_HEAP_CORRUPT) instead of silently ignoring
the error, since heap corruption is fatal to kernel safety.
0 commit comments