From 5365acc567a49270b4341b9d325794ec554258d9 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 19 Dec 2022 18:56:55 +0100 Subject: libio: Convert __obstack_vprintf_internal to buffers (bug 27124) This fixes bug 27124 because the problematic built-in vtable is gone. Reviewed-by: Adhemerval Zanella --- include/printf_buffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/printf_buffer.h b/include/printf_buffer.h index e2ca2d7..168555d 100644 --- a/include/printf_buffer.h +++ b/include/printf_buffer.h @@ -55,6 +55,7 @@ enum __printf_buffer_mode __printf_buffer_mode_fp, /* For __printf_fp_l_buffer. */ __printf_buffer_mode_fp_to_wide, /* For __wprintf_fp_l_buffer. */ __printf_buffer_mode_fphex_to_wide, /* For __wprintf_fphex_l_buffer. */ + __printf_buffer_mode_obstack, /* For __printf_buffer_flush_obstack. */ }; /* Buffer for fast character writing with overflow handling. @@ -322,6 +323,9 @@ struct __printf_buffer_fphex_to_wide; void __printf_buffer_flush_fphex_to_wide (struct __printf_buffer_fphex_to_wide *) attribute_hidden; +struct __printf_buffer_obstack; +void __printf_buffer_flush_obstack (struct __printf_buffer_obstack *) + attribute_hidden; struct __wprintf_buffer_to_file; void __wprintf_buffer_flush_to_file (struct __wprintf_buffer_to_file *) -- cgit v1.1