[PATCH v2 0/3] Fixes for getnameinfo() with NI_NOFQDN

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Nov 12 14:21:11 GMT 2021


Changes from v1:
  * Keep the double-checked locking optimization.
  * Also check for strdup return for EAI_MEMORY

Adhemerval Zanella (3):
  inet: Fix getnameinfo (NI_NOFQDN) race condition (BZ#28566)
  inet: Remove strdupa from nrl_domainname()
  inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory

 inet/getnameinfo.c | 181 +++++++++++++++++++++++++--------------------
 1 file changed, 102 insertions(+), 79 deletions(-)

-- 
2.32.0



More information about the Libc-alpha mailing list