Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Referencing NULL pointers Message-ID: <2278@auspex.auspex.com> Date: 24 Jul 89 18:47:41 GMT References: <1989Jul14.092231.24845@inquiry.org> <19367@paris.ics.uci.edu> <10515@smoke.BRL.MIL> <168@jma.UUCP> <1501@ibmpa.UUCP> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 8 >In retrospect I think we probably should have gone the other way on this; >or at provided a way to test code with different behaviour. Yes. The paged versions of System V from AT&T - the VAX one for sure, and probably the 3B2 one as well, at least - have a "-z" flag that tells the linker to create an image with no page zero. Unfortunately, it's not the default, which means there's still a fair bit of sloppy code in S5R3, but at least you do have the choice of enforcing correct behavior.