Deallocating invalid pointers

Crashes can also occur when trying to deallocate an allocation that has previously been deallocated, or a bogus address (either not allocated, or part way through a legitimate range of heap memory).

This leads to either immediate termination, or heap corruption, and a crash at some future point.

In DDT, this kind of problem is prevented as invalid pointers immediately trigger an error message, and stop the process exactly where the error occurs.

Previous Next