This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/46513] Request: Warning for use of unsafe string handling functions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46513

--- Comment #4 from Jeffrey Walton <noloader at gmail dot com> 2010-11-17 03:49:44 UTC ---
(In reply to comment #2)
> Hi Jonathan,
> 
> (In reply to comment #1)
> > The maintainers of GNU libc, the C and C++ committees and the POSIX working
> > group have not seen fit to include those functions, and they're not available
> > on my GNU/Linux box.
> Interesting. In 2010, I was hoping the strl* functions would side step the
> political mess of TR24731-1 on *nix. For those resisting, TR24731-1 is now a
> normative part of the C1x draft (as Annex K), so its coming whether they want
> it or not :/
I stand corrected: C1X draft dated 2010-10-04 now includes the bounds checking
interfaces. See "C1X Draft",
http://www.open-std.org/Jtc1/sc22/wg14/www/docs/n1516.pdf at
http://www.open-std.org/Jtc1/sc22/wg14/www/projects.

So in addition to [nearly ubiquitous] support for strlcpy and friends, we will
have strcpy_s and friends.

Jeff


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