glibc:fw/resolv-cleanups

Last commit made on 2019-05-17
Get this branch:
git clone -b fw/resolv-cleanups https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
fw/resolv-cleanups
Repository:
lp:glibc

Recent commits

343c790... by Florian Weimer on 2019-05-17

nss_dns: Remove RES_USE_INET6 handling

Since commit 3f8b44be0a658266adff5ece1e4bc3ce097a5dbe ("resolv:
Remove support for RES_USE_INET6 and the inet6 option"),
res_use_inet6 () always evaluates to false.

53bc577... by Florian Weimer on 2019-05-16

nss_dns: Check for proper A/AAAA address alignment

ec255a9... by Florian Weimer on 2019-05-16

nss_nis, nss_nisplus: Remove RES_USE_INET6 handling

Since commit 3f8b44be0a658266adff5ece1e4bc3ce097a5dbe ("resolv:
Remove support for RES_USE_INET6 and the inet6 option"),
res_use_inet6 () always evaluates to false.

9c02d07... by Florian Weimer on 2019-05-16

nss_files: Remove RES_USE_INET6 from hosts processing

Since commit 3f8b44be0a658266adff5ece1e4bc3ce097a5dbe ("resolv:
Remove support for RES_USE_INET6 and the inet6 option"),
res_use_inet6 () always evaluates to false.

85b0e1e... by Florian Weimer on 2019-05-16

support: Report NULL blobs explicitly in TEST_COMPARE

Provide an explicit diagnostic if the length is positive, and
do not just crash with a null pointer dereference. Null pointers
are only valid if the length is zero, so this can only happen with
a faulty test.

11b451c... by Mark J. Wielaard on 2019-05-15

dlfcn: Guard __dlerror_main_freeres with __libc_once_get (once) [BZ# 24476]

dlerror.c (__dlerror_main_freeres) will try to free resources which only
have been initialized when init () has been called. That function is
called when resources are needed using __libc_once (once, init) where
once is a __libc_once_define (static, once) in the dlerror.c file.
Trying to free those resources if init () hasn't been called will
produce errors under valgrind memcheck. So guard the freeing of those
resources using __libc_once_get (once) and make sure we have a valid
key. Also add a similar guard to __dlerror ().

 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
 __libc_once_get (once) and static_bug == NULL.
 (__dlerror): Check we have a valid key, set result to static_buf
 otherwise.

Reviewed-by: Carlos O'Donell <email address hidden>

5dde9ef... by DJ Delorie <email address hidden> on 2019-05-15

Add missing Changelog entry

For 5b06f538c5aee0389ed034f60d90a8884d6d54de

32ff397... by Andreas Schwab <email address hidden> on 2019-05-14

Fix crash in _IO_wfile_sync (bug 20568)

When computing the length of the converted part of the stdio buffer, use
the number of consumed wide characters, not the (negative) distance to the
end of the wide buffer.

a9368c3... by Florian Weimer on 2019-05-15

nss: Turn __nss_database_lookup into a compatibility symbol

The function uses the internal service_user type, so it is not
really usable from the outside of glibc. Rename the function
to __nss_database_lookup2 for internal use, and change
__nss_database_lookup to always indicate failure to the caller.

__nss_next already was a compatibility symbol. The new
implementation always fails and no longer calls __nss_next2.

unscd, the alternative nscd implementation, does not use
__nss_database_lookup, so it is not affected by this change.

d50f091... by Alexandra Hájková <email address hidden> on 2019-05-13

support: Add support_install_rootsbindir

Reviewed by: Adhemerval Zanella <email address hidden>