I've hackfixed it in malloc (and labeled it as such), but removing the hackfix reveals a hole in the invariant maintenance which causes x->prevBlock->nextBlock to sometimes fail to be set. This either causes an assertion failure or arbitrary memory access (which will probably panic since my testing showed x->prevBlock->nextBlock to be NULL when this happened).
I've hackfixed it in malloc (and labeled it as such), but removing the hackfix reveals a hole in the invariant maintenance which causes x->prevBlock->nextBlock to sometimes fail to be set. This either causes an assertion failure or arbitrary memory access (which will probably panic since my testing showed x->prevBlock->nextBlock to be NULL when this happened).