]> sourceware.org Git - glibc.git/commit
getaddrinfo: Fix leak with AI_ALL [BZ #28852]
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 3 Mar 2022 17:37:42 +0000 (23:07 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 22 Mar 2022 14:09:14 +0000 (19:39 +0530)
commit300460460706ce3ffe29a7df8966e68323ec5bf1
treed91ecb0adde54bb3e1ab8e2fab130ed19d0014e8
parentd01411f6bc61429fc027c38827bf3103b48eef2e
getaddrinfo: Fix leak with AI_ALL [BZ #28852]

Use realloc in convert_hostent_to_gaih_addrtuple and fix up pointers in
the result list so that a single block is maintained for
hostbyname3_r/hostbyname2_r and freed in gaih_inet.  This result is
never merged with any other results, since the hosts database does not
permit merging.

Resolves BZ #28852.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
sysdeps/posix/getaddrinfo.c
This page took 0.044681 seconds and 5 git commands to generate.