aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/viscanf.c
diff options
context:
space:
mode:
authorChristian Franke <christian.franke@t-online.de>2025-07-01 11:00:41 +0200
committerCorinna Vinschen <corinna@vinschen.de>2025-07-02 18:09:32 +0200
commitfa272e05bbd049bb39420c6c8997700397283100 (patch)
tree2e76c32c407ad687b318c0d3d3af64be41508126 /newlib/libc/stdio/viscanf.c
parent9b6361b0ff0cf8e00beac9b7b0721ad90a3fea7d (diff)
downloadnewlib-master.zip
newlib-master.tar.gz
newlib-master.tar.bz2
wcstombs: also call __WCTOMB on terminating NUL if output buffer is NULLHEADmastermain
A __WCTOMB call on the terminating NUL may emit more than a NUL byte. This is the case if the string ends with a lone UTF-16 high surrogate. Fixes: 2a3a02a68764 ("Add SUSV2 support for calculating size if output buffer is NULL") Signed-off-by: Christian Franke <christian.franke@t-online.de>
Diffstat (limited to 'newlib/libc/stdio/viscanf.c')
0 files changed, 0 insertions, 0 deletions