From 32ff397533715988c19cbf3675dcbd727ec13e18 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 14 May 2019 17:14:59 +0200 Subject: 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. --- ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index c01a2fdc51..ce2b74938e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2019-05-15 Andreas Schwab + + [BZ #20568] + * libio/wfileops.c (_IO_wfile_sync): Correct last argument to + __codecvt_do_length. + * libio/Makefile (tests): Add tst-wfile-sync. + ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales). + * libio/tst-wfile-sync.c: New file. + * libio/tst-wfile-sync.input: New file. + 2019-05-15 Florian Weimer nss: Turn __nss_database_lookup into a compatibility symbol. @@ -26,6 +36,7 @@ * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise. 2019-05-15 Alexandra Hajkova + * support/support.h (support_install_rootsbindir): New variable. * support/support_paths.c: Likewise. * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH. -- cgit 1.4.1