Mail Archives: djgpp-workers/1999/02/09/08:33:14
On Tue, 9 Feb 1999, Pierre Muller wrote:
> Lots of bugs are not caught by Windows 95 because it does not allow zero
> page protection !
>
> Why don't we simply fill this page with NOP
> and a call to a fake exception at the very end of it ?
The problem is not with accessing the null page as code, it's with
accessing it as data. NULL-pointer derefencing usually happens with data
pointers, not with code pointers.
> Of course reading data in this region will still not be caught but
> reading a longint or a pointer would give 0x90909090
> that has big chances to be invalid !
There's nothing invalid with an int with such a pattern. And most NULL
pointers are pointers to data, not to other pointers.
- Raw text -