I just wanted to say this for other developers using JamesM's tutorials. I'm not sure but, isn't this piece of code:
Code: Select all
if ((u32int)hole_footer < heap->end_address)
{
hole_footer->magic = HEAP_MAGIC;
hole_footer->header = hole_header;
}
Code: Select all
if (((u32int)hole_footer + sizeof(footer_t)) < heap->end_address)
{
hole_footer->magic = HEAP_MAGIC;
hole_footer->header = hole_header;
}
Can you give me any feedback on this (I'm not really a guru in heap-related things).