This is the mail archive of the glibc-bugs@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]

[Bug nss/21915] nss_files can return with NSS_STATUS_SUCCESS and a clobbered errno value, causing getaddrinfo to fail


https://sourceware.org/bugzilla/show_bug.cgi?id=21915

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f4a6be2582b8dfe8adfa68da3dd8decf566b3983 (commit)
      from  5f8340f583fe3d4f5734bd2371c5a45ecff2db0d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f4a6be2582b8dfe8adfa68da3dd8decf566b3983

commit f4a6be2582b8dfe8adfa68da3dd8decf566b3983
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Sep 1 09:34:29 2017 +0200

    getaddrinfo: Fix error handling in gethosts [BZ #21915] [BZ #21922]

    The old code uses errno as the primary indicator for success or
    failure.  This is wrong because errno is only set for specific
    combinations of the status return value and the h_errno variable.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                        |   14 +++++
 nss/Makefile                     |    7 +++
 nss/tst-nss-files-hosts-erange.c |  109 ++++++++++++++++++++++++++++++++++++++
 resolv/tst-resolv-basic.c        |   78 +++++++++++++++++++--------
 sysdeps/posix/getaddrinfo.c      |   42 +++++++--------
 5 files changed, 205 insertions(+), 45 deletions(-)
 create mode 100644 nss/tst-nss-files-hosts-erange.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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