Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 1999 01:27:51 -0700 (PDT)
From:      Scott Gasch <scott@mail.medsp.com>
To:        freebsd-questions@freebsd.org
Subject:   IsBadReadPointer
Message-ID:  <199906220827.BAA12613@mail.medsp.com>

next in thread | raw e-mail | index | archive | help

Hi there,

In Win32 there are several system calls that can be used to check
whether pointers are vaild or not.  They are called IsBadReadPointer,
IsBadWritePointer, IsBadStringPointer, etc...

I guess they work by checking the permission of the page of memory the
pointers point to.  I find them useful debugging tools and often write
preconditions based on them as it is often better to check a pointer
for readibility than simply checking for NULL.

My question is: does the same thing exist in FreeBSD?

Thanks for your help,
Scott


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906220827.BAA12613>