This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: NULL pointer check in timer_* functions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]