This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46513] Request: Warning for use of unsafe string handling functions
- From: "noloader at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Nov 2010 03:49:47 +0000
- Subject: [Bug c++/46513] Request: Warning for use of unsafe string handling functions
- Auto-submitted: auto-generated
- References: <bug-46513-4@http.gcc.gnu.org/bugzilla/>
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