#2 Add memory access bounds checks

open
nobody
Monitors (1)
5
2006-03-16
2006-03-16
migosh
No

For example, in order to guard from a code such as:

char* p = new char[8];
p[9] = '!';
delete 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
unchanged.

Alternative way (to think about):
Change access permissions for the memory "around" the
allocated block, so each read/write attempt will
generate an exception.
Risky?
Will significally slow the application?

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks