mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Check consistency during BumpAllocator allocation
This commit is contained in:
parent
8e55c4bfaf
commit
885b69c877
Notes:
sideshowbarker
2024-07-18 01:58:19 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/885b69c8772 Pull-request: https://github.com/SerenityOS/serenity/pull/10579 Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ protected:
|
|||
|
||||
VERIFY(m_current_chunk);
|
||||
auto& old_header = *(ChunkHeader*)m_current_chunk;
|
||||
VERIFY(old_header.magic == chunk_magic);
|
||||
VERIFY(old_header.next_chunk == 0);
|
||||
old_header.next_chunk = (FlatPtr)new_chunk;
|
||||
m_current_chunk = (FlatPtr)new_chunk;
|
||||
|
|
Loading…
Reference in a new issue