Making the region revealed by sbrk filled with uninitialized by default is possibly sufficient.
A heap allocator using sbrk could allocate extra memory to ensure subsequent sbrk addresses remain well-aligned. Rather than filling the gap between the requested memory and the end of the allocation with nulls, or clear marker bytes, it would be useful for debugging purposes to mark this gap as uninitialized. In fact, the entire region should probably be uninitialized and set by the code.
Making the region revealed by
sbrk
filled with uninitialized by default is possibly sufficient.A heap allocator using
sbrk
could allocate extra memory to ensure subsequentsbrk
addresses remain well-aligned. Rather than filling the gap between the requested memory and the end of the allocation with nulls, or clear marker bytes, it would be useful for debugging purposes to mark this gap as uninitialized. In fact, the entire region should probably be uninitialized and set by the code.