diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-20 06:34:51 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-20 06:41:42 -0400 |
| commit | bfa0e1110a4685aaf4f2778d584d7fca4ccd0fa3 (patch) | |
| tree | ad8ded1d883569834c3472f3d92446406b08c6fb | |
| parent | 293267c7b24713a4559a305e8b64b75bc6ec0676 (diff) | |
mem: Don't print `Buddy_Allocator.tail`
This is always a pointer past the end of the buffer given to
`buddy_allocator_init`, which could be an invalid address. Printing may
result in a segmentation violation.
| -rw-r--r-- | core/mem/allocators.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index a5a7d9951..335cf008e 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -2196,7 +2196,7 @@ The buddy allocator data. */ Buddy_Allocator :: struct { head: ^Buddy_Block, - tail: ^Buddy_Block, + tail: ^Buddy_Block `fmt:"-"`, alignment: uint, } |