]> Savannah Git Hosting - gnulib.git/commit
vasnprintf-posix: Fix crash in narrow %lc directive (regr. 2023-03-21).
authorBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 09:45:23 +0000 (11:45 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 09:45:23 +0000 (11:45 +0200)
commit154a389b7cc0654a4fbec0faf4f0ddc3e89a947a
tree1db12ccfbcc04e30c4643a41dfa6e3d4638e5969
parent5386b7c76fc0ecf8b05003a5b6daaa33799d506f
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
lib/vasnprintf.c
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-vasnprintf-posix.c
tests/test-vasnwprintf-posix.c
tests/test-vasprintf-posix.c