*BSD News Article 44939


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!gatech!news.sprintlink.net!neonramp.com!cynjut.neonramp.com!cynjut.neonramp.com!not-for-mail
From: burgess@cynjut.neonramp.com (Dave Burgess)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Major strcmp bug under BSD 2.0?
Date: 3 Jun 1995 17:02:58 -0500
Organization: Configuration Management Svcs, Inc.
Lines: 30
Message-ID: <3qqm6i$d5m@cynjut.neonramp.com>
References: <3qfn52$188j@troy.la.locus.com> <3qo3m8$aq7@park.uvsc.edu>
NNTP-Posting-Host: cynjut.neonramp.com

In article <3qo3m8$aq7@park.uvsc.edu>,
Terry Lambert  <terry@cs.weber.edu> wrote:
>sassan@locus.com (Sassan Behzadi) wrote:
>] 
>] Am I imagining things or is there a bug in BSD 2.0's strcmp() function?
>] If either of the string parameters is NULL the program core dumps.
>] Isn't this a major bug? (Making the OS pretty much useless). Is there 
>] a simple fix for this ? 
>
>This is a result of the intentional unmapping of page 0 to catch
>NULL pointer dereferences with a kernel "page not present" error.
>
>SunOS and Solaris do the same thing.
>
>SVR4.2 has a switchable mechanism (at least in UnixWare) for the
>same thing.
>

Not to beat a dead horse unnecessarily, but didn't WE used to do the
same thing?

Remember all of the programs that used to work before NetBSD and FreeBSD
unmapped page 0????


-- 
Dave Burgess  (The man of a thousand E-Mail addresses)
386bsd FAQ Maintainer / SysAdmin for the NetBSD system in my spare bedroom
"Just because something is stupid doesn't mean that there isn't someone
that wants to do it...."