For example, in order to guard from a code such as:
char* p = new char;
p = '!';
Once we control the allocation process, we can
allocate extra space (before and after the block) and
use it to store a "signature" sequence of bytes. When
the block is being released - verify the signature is
Alternative way (to think about):
Change access permissions for the memory "around" the
allocated block, so each read/write attempt will
generate an exception.
Will significally slow the application?
Log in to post a comment.