mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +00:00
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.
This commit is contained in:
@@ -2196,7 +2196,7 @@ The buddy allocator data.
|
||||
*/
|
||||
Buddy_Allocator :: struct {
|
||||
head: ^Buddy_Block,
|
||||
tail: ^Buddy_Block,
|
||||
tail: ^Buddy_Block `fmt:"-"`,
|
||||
alignment: uint,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user