Mail Archives: djgpp/1998/03/20/04:06:35
THIERRY DOT T DOT I DOT IMMORDINO AT TSI DOT thomson DOT fr wrote:
>
> Hi,
>
> How can I protect, some part of the memory (variables, task stack, ..) from
> overwrites ? (mprotect perhaps )
>
> Thierry
I believe this is the function of malloc() and new, in C and C++
respectively. Both return pointers to an allocated area of memory of
the size requested. If the memory is unavailable, malloc() and new
return NULL pointers. Without this areas of memory can easily be
overwritten.
- Raw text -