Mail Archives: djgpp-workers/1997/06/24/08:54:56
Hello All.
Yesterday night I thought : "why can't DJGPP use a different 'segment'
for each malloc()/new to allow bounds checking ?".
Since I never saw it implemented, I don't know if it could be possible.
This way, if someone try to access memory never allocated, he gets a
SIGSEGV. Same technique could be used to catch writing attempts to a
NULL ptr.
Well, I really don't know much about 386 protected mode, but if it's not
possible, could you explain me why ?
Tks,
Diego.
- Raw text -