[mod.computers.vax] *NULL

jon@CSVAX.CALTECH.EDU (Jonathan P. Leech) (02/06/86)

> Thanks to Ken Adelman (Ken@Hamlet.Caltech.Edu) for the following
> response to my query as to how to avoid problems with (typically
> UNIX-originated) applications dereferencing NULL pointers on VMS.
> ...
>		The net effect is to map page zero into the virtual
> address space, and thus any dereferencing of NULL pointers, while
> strictly invalid, will succeed without causing an access violation.
> Quick, dirty, cheap and effective!!!
>
>	  Bill
>
> ARPA: RIZZI@ISIB
> UUCP: cca!ima!ism780b!billr

	Wonderful, now you can have code that is  nonportable  running
on BOTH Unix and VMS systems. What happens when you want to go to  yet
another machine, where dereferencing NULL is  caught  in  the  address
decoder?

    -- Jon Leech (jon@csvax.caltech.edu)
    __@/