4 ms·
The piece of memory was previously allocated with a struct header_t at sizeof(struct header_t) bytes below the passed in block pointer. So just recovering and
by noselasd 8y ago
The piece of memory was previously allocated with a struct header_t at sizeof(struct header_t) bytes below the passed in block pointer.
So just recovering and using a pointer to that struct header_t from the block pointer in this way is fine.