This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH]: NULL pointer check in timer_* functions
- From: Khem Raj <kraj at mvista dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Ulrich Drepper <drepper at redhat dot com>, libc-alpha at sources dot redhat dot com
- Date: Fri, 12 Aug 2005 10:37:10 -0700
- Subject: Re: [PATCH]: NULL pointer check in timer_* functions
- References: <20050812012902.9F474180EBD@magilla.sf.frob.com>
- Reply-to: kraj at mvista dot com
Roland McGrath wrote:
That test is indeed incorrect. It relies on getting EINVAL when passing an
invalid (deleted) timer_t to timer_settime. POSIX does not require
diagnosing this error (it's a "may fail"). The test invokes undefined
behavior.
Thanks Roland for your explanation.