diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-08-18 08:49:55 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-12-12 15:40:20 +0100 |
commit | b30518eedbce705f9f34970ff459083d738d2e36 (patch) | |
tree | 28c7c95320f1123e38cde445a4f43b9622c4f59a /include/printf_buffer.h | |
parent | 45234c5d6ba9556451424940fa746e9e66b1a6f4 (diff) | |
download | glibc-fw/vfprintf-2.tar.gz |
libio: Convert __vswprintf_internal to buffers (bug 27857)fw/vfprintf-2
Always null-terminate the buffer and set E2BIG if the buffer is too
small. This fixes bug 27857.
Diffstat (limited to 'include/printf_buffer.h')
-rw-r--r-- | include/printf_buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/printf_buffer.h b/include/printf_buffer.h index a8211dd657..467251e7fa 100644 --- a/include/printf_buffer.h +++ b/include/printf_buffer.h @@ -194,6 +194,7 @@ bool __printf_buffer_flush (struct __printf_buffer *buf) attribute_hidden; enum __wprintf_buffer_mode { __wprintf_buffer_mode_failed, + __wprintf_buffer_mode_swprintf, __wprintf_buffer_mode_to_file, }; |