Fix printf(3) signal safety for wide character strings.
authormillert <millert@openbsd.org>
Sun, 14 Jul 2024 13:31:50 +0000 (13:31 +0000)
committermillert <millert@openbsd.org>
Sun, 14 Jul 2024 13:31:50 +0000 (13:31 +0000)
commiteac10ac73088b23a7d38f0f1163720df1b5e2244
tree5583a65abbbb81a27e26ddaa2120fdbbc3e95eb2
parentf294d01ebd825ba95d9a2cd0f609578eac0baf4f
Fix printf(3) signal safety for wide character strings.

The %ls (wide char string) support in printf(3) currently uses
malloc(3), which violates the promise in in sigaction(2).  This
makes it use mmap(2) instead.  OK deraadt@
lib/libc/stdio/vfprintf.c