public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fixes for getnameinfo() with NI_NOFQDN
@ 2021-12-10 11:07 Adhemerval Zanella
  2021-12-10 11:07 ` [PATCH v2 1/3] inet: Fix getnameinfo (NI_NOFQDN) race condition (BZ#28566) Adhemerval Zanella
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Adhemerval Zanella @ 2021-12-10 11:07 UTC (permalink / raw)
  To: libc-alpha

Changes from v2:
  * Refactored nrl_domainname_core() and fixed a possible memory leak
    on failure path.

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 | 200 ++++++++++++++++++++++++---------------------
 1 file changed, 106 insertions(+), 94 deletions(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH v2 0/3] Fixes for getnameinfo() with NI_NOFQDN
@ 2021-11-12 14:21 Adhemerval Zanella
  2021-11-12 14:21 ` [PATCH v2 3/3] inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory Adhemerval Zanella
  0 siblings, 1 reply; 13+ messages in thread
From: Adhemerval Zanella @ 2021-11-12 14:21 UTC (permalink / raw)
  To: libc-alpha; +Cc: leonardo.macchia

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-03-08 15:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 11:07 [PATCH v2 0/3] Fixes for getnameinfo() with NI_NOFQDN Adhemerval Zanella
2021-12-10 11:07 ` [PATCH v2 1/3] inet: Fix getnameinfo (NI_NOFQDN) race condition (BZ#28566) Adhemerval Zanella
2022-02-03 20:52   ` Adhemerval Zanella
2022-03-08  3:44   ` DJ Delorie
2021-12-10 11:07 ` [PATCH v2 2/3] inet: Remove strdupa from nrl_domainname() Adhemerval Zanella
2022-02-03 20:52   ` Adhemerval Zanella
2022-03-08  3:53   ` DJ Delorie
2021-12-10 11:07 ` [PATCH v2 3/3] inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory Adhemerval Zanella
2022-02-03 20:53   ` Adhemerval Zanella
2022-03-08  4:12   ` DJ Delorie
2022-03-08 15:43     ` Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2021-11-12 14:21 [PATCH v2 0/3] Fixes for getnameinfo() with NI_NOFQDN Adhemerval Zanella
2021-11-12 14:21 ` [PATCH v2 3/3] inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory Adhemerval Zanella
2021-11-12 15:44   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).