3 ms·
He mentioned a "multi heap" system. If he was using an allocator that knew which address ranges he'd allocated from, it's not unlikely it'd work. Alternatively
by vidarh 17y ago
He mentioned a "multi heap" system. If he was using an allocator that knew which address ranges he'd allocated from, it's not unlikely it'd work. Alternatively if he used an allocator that'd do suitable sanity checks - free() will need to be able to find the length of the block, for example, and if the length doesn't make sense...