This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FAQ about strlcpy/strlcat ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]