diff options
author | Christian Franke <christian.franke@t-online.de> | 2025-07-01 11:00:41 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-07-02 18:09:32 +0200 |
commit | fa272e05bbd049bb39420c6c8997700397283100 (patch) | |
tree | 2e76c32c407ad687b318c0d3d3af64be41508126 /newlib/libc/stdio/viscanf.c | |
parent | 9b6361b0ff0cf8e00beac9b7b0721ad90a3fea7d (diff) | |
download | newlib-master.zip newlib-master.tar.gz newlib-master.tar.bz2 |
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