This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [PATCH] getaddrinfo: Always allocate canonical name on the heap



On 02/06/2017 11:05, Florian Weimer wrote:
> On 06/02/2017 03:56 PM, Adhemerval Zanella wrote:
>>> +static char *
>>> +getcanonname (service_user *nip, struct gaih_addrtuple *at, const char *name)
>>> +{
> 
>>> +  return strdup (name);
>>> +}
> 
>> I think you need to use __strdup here, I am seeing check-local-plt failures on
>> master.
> 
> On which architecture?  I don't get see it on x86-64.
> 
> I can push a fix blindly (based on the headers, it indeed needs to be
> __strdup).
> 
> Thanks,
> Florian
> 

I noticed on x86_64 (gcc 5.4), powerpc64le (gcc 5.4), aarch64 (gcc 4.9.2),
and sparc64 (gcc 6.3.1).  My guess is newer GCC versions are inline it.


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