https://github.com/spaskalev/buddy_alloc/blob/0b679cd9a567926e28ad333f5f1de64debc90f25/buddy_alloc.h#L443 https://github.com/spaskalev/buddy_alloc/blob/0b679cd9a567926e28ad333f5f1de64debc90f25/buddy_alloc.h#L489 For example, I am writing an OS and manage the whole linear memory with this allocator. However, this check is also useful to general usages. Thanks. This is a pretty-good library.