strlcpy
Posted Jun 12, 2003 3:51 UTC (Thu) by
JoeBuck (subscriber, #2330)
Parent article:
strlcpy
If you don't have a document anywhere, explaining these relatively small functions clearly enough so that any competent programmer can produce a correct implementation, there's a problem. "Just use our code" is OK, but doesn't really suffice for good security analysis unless you want everyone to do duplicate work.
Also, many common uses of strcpy are completely safe and more efficient than strlcpy. Removing every use is just superstition.
(
Log in to post comments)