LWN.net Logo

Open-before-use

Open-before-use

Posted Apr 1, 2008 15:35 UTC (Tue) by NAR (subscriber, #1313)
In reply to: Open-before-use by epa
Parent article: How Do I Make This Hard to Misuse?

That still wouldn't solve the problem, one could write code like this, even if only an "open" would return a valid handle:

handle_t* handle;
read(handle);


(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