gettimeofday((void *)-1, NULL) implicates core dump on recent FreeBSD 11-CURRENT

O'Connor, Daniel darius at dons.net.au
Wed Jul 8 09:09:39 UTC 2015


> On 8 Jul 2015, at 08:11, Garrett Wollman <wollman at hergotha.csail.mit.edu> wrote:
> Perhaps the test was (erroneously) written to assume that
> gettimeofday() was a system call, and could therefore detect invalid
> pointers and return [EFAULT].  This has not been the case for some
> time.  (In HEAD, not since r237434, which is three years ago.)

In defence of the test, the man page says it can return EFAULT.

(IMO the man page and test should change..)

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C



More information about the freebsd-current mailing list