[PATCH] getaddrinfo: Always allocate canonical name on the heap
Florian Weimer
fweimer@redhat.com
Fri Jun 2 14:37:00 GMT 2017
On 06/02/2017 04:10 PM, Adhemerval Zanella wrote:
> 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.
Fair enough. What about the attached patch? I spotted one missing heap
allocation (which is not visible as a bug because the code doesn't try
to pass the pointer to free), and included that as well.
Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getaddrinfo-localplt.patch
Type: text/x-patch
Size: 1347 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170602/944a202d/attachment.bin>
More information about the Libc-alpha
mailing list