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


Khem Raj wrote:
\> I tracked it down to a problem inside timer_* functions. Currently we do
> not check for timerid for NULL value inside timer_delete()
> timer_settime() and timer_gettime() timer_getoverrun() functions.
> This patch adds the checks to these functions.

That's all bullshit.  A zero timer ID is from the outside not different
than anything else.   If you pass an incorrect value your application
will crash.  Fix your own bugs instead of making the implementation
slower just because of your own inabilities.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature


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