From 154a389b7cc0654a4fbec0faf4f0ddc3e89a947a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 1 Apr 2023 11:45:23 +0200 Subject: vasnprintf-posix: Fix crash in narrow %lc directive (regr. 2023-03-21). * lib/vasnprintf.c (VASNPRINTF): Negative results of local_wcrtomb can now occur; handle them. * tests/test-vasnprintf-posix.c (test_function): Test %lc directive with a wint_t argument that is not a valid wide character. * tests/test-snprintf-posix.h (test_function): Likewise. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasnwprintf-posix.c (test_function): Likewise. * tests/test-vasprintf-posix.c (test_function): Likewise. --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index eea37f348e..e696a7eba6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2023-04-01 Bruno Haible + + vasnprintf-posix: Fix crash in narrow %lc directive (regr. 2023-03-21). + * lib/vasnprintf.c (VASNPRINTF): Negative results of local_wcrtomb can + now occur; handle them. + * tests/test-vasnprintf-posix.c (test_function): Test %lc directive with + a wint_t argument that is not a valid wide character. + * tests/test-snprintf-posix.h (test_function): Likewise. + * tests/test-sprintf-posix.h (test_function): Likewise. + * tests/test-vasnwprintf-posix.c (test_function): Likewise. + * tests/test-vasprintf-posix.c (test_function): Likewise. + 2023-04-01 Bruno Haible stddef: Fix __need_wint_t handling in case of two stddef.h overrides. -- cgit v1.2.1