LWN.net Logo

Glibc and strlcpy

Glibc and strlcpy

Posted Jan 2, 2005 9:54 UTC (Sun) by raboofje (guest, #26972)
In reply to: Glibc and strlcpy by ncm
Parent article: Students uncover dozens of Unix software flaws (News.com)

I would think that's a pretty bad idea: it introduces a `crash' at run-time rather than at compile-time. If the error is, for example, in some rarely-encountered but vital error-handling code, you might get bitten hard.

The ability to see these kind of things at compile-time is one of the main reasons I often choose compiled languages over interpreted ones.


(Log in to post comments)

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