glibc/nss
Florian Weimer b0d3f7858c nss_compat: internal_end*ent may clobber errno, hiding ERANGE [BZ #25976]
During cleanup, before returning from get*_r functions, the end*ent
calls must not change errno.  Otherwise, an ERANGE error from the
underlying implementation can be hidden, causing unexpected lookup
failures.  This commit introduces an internal_end*ent_noerror
function which saves and restore errno, and marks the original
internal_end*ent function as warn_unused_result, so that it is used
only in contexts were errors from it can be handled explicitly.

Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 790b8dda44)
2020-05-19 16:33:04 +02:00
..
nss_compat nss_compat: internal_end*ent may clobber errno, hiding ERANGE [BZ #25976] 2020-05-19 16:33:04 +02:00
nss_db nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
nss_files Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-db-endgrent.root/etc nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
tst-nss-db-endpwent.root nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
tst-nss-test3.root Add test-in-container infrastructure. 2018-08-22 21:20:37 -04:00
Depend
Makefile nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
Versions nss: Export nscd hash function as __nss_hash [BZ #22459] 2017-11-23 14:08:11 +01:00
XXX-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
alias-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
bug-erange.c
bug17079.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
compat-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
databases.def Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
db-Makefile Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
digits_dots.c CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-01-21 21:26:03 +01:00
ethers-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
function.def Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getXXbyYY.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getXXbyYY_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getXXent.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getXXent_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getent.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
getnssent.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getnssent_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
grp-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
hosts-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
key-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
makedb.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
netgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
network-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nss.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nss_hash.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nss_test.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nss_test.ver Extend NSS test suite 2017-07-17 15:52:44 -04:00
nss_test1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nss_test2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nsswitch.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nsswitch.conf
nsswitch.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
proto-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pwd-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
rewrite_field.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
rpc-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
service-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
spwd-lookup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-digits-dots.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-netdb.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-cancel-getpwuid_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-field.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-db-endgrent.c nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
tst-nss-db-endpwent.c nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 18:12:21 -04:00
tst-nss-files-alias-leak.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-files-hosts-erange.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-files-hosts-getent.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-files-hosts-multi.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-getpwent.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-static.c Update nss tests to new skeleton 2017-08-17 18:00:51 -04:00
tst-nss-test1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-test2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-test3.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-test4.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-nss-test5.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
valid_field.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
valid_list_field.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00