diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-12-19 18:56:55 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-12-19 18:56:55 +0100 |
commit | 118816de3383ff12769349784689141355cc787c (patch) | |
tree | fa858eff7a21613e38e532ac9c1d0edd1651aeab /include | |
parent | 5365acc567a49270b4341b9d325794ec554258d9 (diff) | |
download | glibc-118816de3383ff12769349784689141355cc787c.zip glibc-118816de3383ff12769349784689141355cc787c.tar.gz glibc-118816de3383ff12769349784689141355cc787c.tar.bz2 |
libio: Convert __vswprintf_internal to buffers (bug 27857)
Always null-terminate the buffer and set E2BIG if the buffer is too
small. This fixes bug 27857.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include')
-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 168555d..e7a45fb 100644 --- a/include/printf_buffer.h +++ b/include/printf_buffer.h @@ -196,6 +196,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, }; |