[Bug other/50277] strndup should use strnlen instead of strlen

2011-09-02 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug other/50277] strndup should use strnlen instead of strlen

2011-09-02 Thread ivan.tubert at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277 --- Comment #3 from Ivan Tubert-Brohman 2011-09-02 16:55:07 UTC --- And the code in glibc already uses strnlen. Sorry about that. Please close the ticket unless you deem necessary to modify the version in libiberty/strndup.c

[Bug other/50277] strndup should use strnlen instead of strlen

2011-09-02 Thread ivan.tubert at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277 --- Comment #2 from Ivan Tubert-Brohman 2011-09-02 16:51:42 UTC --- On Fri, Sep 2, 2011 at 12:45 PM, pinskia at gcc dot gnu.org wrote: > --- Comment #1 from Andrew Pinski 2011-09-02 > 16:45:15 UTC --- > strndup is part of the libc that comes f

[Bug other/50277] strndup should use strnlen instead of strlen

2011-09-02 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277 --- Comment #1 from Andrew Pinski 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.