This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/50277] strndup should use strnlen instead of strlen
- From: "ivan.tubert at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Sep 2011 16:51:42 +0000
- Subject: [Bug other/50277] strndup should use strnlen instead of strlen
- Auto-submitted: auto-generated
- References: <bug-50277-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277
--- Comment #2 from Ivan Tubert-Brohman <ivan.tubert at gmail dot com> 2011-09-02 16:51:42 UTC ---
On Fri, Sep 2, 2011 at 12:45 PM, pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-02 16:45:15 UTC ---
> strndup is part of the libc that comes from your OS and not part of GCC. ÂMost
> likely you wanted to file this as a glibc bug.
Thanks, I got confused because I found the code in the gcc repository.
(I was looking at
http://gcc.gnu.org/viewcvs/trunk/libiberty/strndup.c?view=markup )