LWN.net Logo

The timer API: size or type safety?

The timer API: size or type safety?

Posted Dec 8, 2006 15:57 UTC (Fri) by iabervon (subscriber, #722)
In reply to: The timer API: size or type safety? by liljencrantz
Parent article: The timer API: size or type safety?

Oh, the error paths get terrible coverage. This particular case, however, is looking up the data required for a timer callback. If the timer fires at all, it is almost certain to trigger any bug of this form immediately, because it's standardly unconditional at the beginning of the callback. If this isn't getting tested, a bug is more likely to be that the function does something totally wrong (since it wasn't tested at all) than that the type of the argument is wrong.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds