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][BZ #13724] Do not segfault in pthread_setname_np (x, NULL)


> I agree with Jeff Law on this one, this is not a performance
> critical routine and checking arguments and returning EFAULT
> is good for QoI.

Historically we've considered it a QoI feature not to mask user bugs in
this way.  If passing a bad pointer has undefined behavior, it is far more
useful in the long run if it crashes quickly rather than diagnosing an
error that is probably ignored by the flaky caller.


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