LWN.net Logo

That's a non-problem

That's a non-problem

Posted May 21, 2009 10:09 UTC (Thu) by nix (subscriber, #2304)
In reply to: That's a non-problem by elanthis
Parent article: EGLIBC: Not a fork, but a glibc distribution

Yes indeed. Of course what people then do is use strdup() and forget to check for NULL returns: you'd think 'oh that only leads to a coredump, DoS only', but thanks to structures and arrays it's quite easy to convert a pointer to NULL into a pointer to *anywhere*, so NULL dereferences are often security holes.

C is a nice low-level language but should never be allowed near user data, IMHO. (Now, back to work for me, writing financial stuff in C which spends all its time getting near user data.)


(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