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] |
Khem Raj wrote:0 ID is not being passed from outside but from within glibc. testcase is passing correct ID that it got with timer_create
\> 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.
This is a negative testcase from ltp testsuite ./testcases/open_posix_testsuite/conformance/interfaces/timer_delete/1-2.cIf 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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |