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: strcpy_s, strlcpy, and strncpy and checking for overflow


Yuhong Bao wrote:
Regardless it is not part of a standard yet, so it may not be a good idea to add it to glibc.

No, it's not. If you're concerned about overflows use the functions which do all this by themselves. Read


http://people.redhat.com/drepper/defprogramming.pdf

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â


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