Date: Sun, 22 Jun 1997 12:04:38 +0300 (IDT) From: Eli Zaretskii To: Nate Eldredge cc: djgpp AT delorie DOT com Subject: Re: Possible misbehavior of write In-Reply-To: <199706192159.OAA27333@adit.ap.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 19 Jun 1997, Nate Eldredge wrote: > Egad! I had a look at the sources and it seems it would require changing > alomst every function that takes a pointer argument. Plus, is it to check > just for NULL's, or decide whether it's a valid address some other way? You could check if the pointer is in the first page, like so: if (! (ptr & ~4095) ) errno = EFAULT; since the CWSDPMI's null pointer detection actually tests for this also.