This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: strcpy -> memcpy
- From: DJ Delorie <dj at delorie dot com>
- To: hp at bitrange dot com
- Cc: ac131313 at cygnus dot com, amodra at bigpond dot net dot au, binutils at sources dot redhat dot com
- Date: Tue, 25 Jun 2002 13:22:04 -0400
- Subject: Re: strcpy -> memcpy
- References: <Pine.BSF.4.30.0206251301400.53362-100000@dair.pair.com>
> No x* calls are allowed in bfd (just bfd; and yes existing calls
> are bugs).
Libiberty guarantees the availability of strdup(), which returns NULL
on allocation failure. BFD should be allowed to use that.
Now, if you want to optimize libiberty's strdup, that's a different
story... ;)