FAQ about strlcpy/strlcat ?
Frank Ch. Eigler
fche@redhat.com
Mon May 21 15:14:00 GMT 2012
aj forwarded:
> [...] Unfortunately, in practice these functions can cause trouble,
> as their intended use encourages silent data truncation, adds
> complexity and inefficiency [...]
What complexity & inefficiency is this referring to?
> [...] Also, compiling with gcc -D_FORTIFY_SOURCE can catch many of the
> errors that these functions are supposed to catch [...]
What errors are strlcpy/strlcat supposed to catch?
- FChE
More information about the Libc-alpha
mailing list