about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
commit5365acc567a49270b4341b9d325794ec554258d9 (patch)
tree97ae39cd514942f00ab030282b1732ba5b72b30a /include
parent8ece45e4f586abd212d1c02d74d38ef681a45600 (diff)
downloadglibc-5365acc567a49270b4341b9d325794ec554258d9.tar.gz
glibc-5365acc567a49270b4341b9d325794ec554258d9.tar.xz
glibc-5365acc567a49270b4341b9d325794ec554258d9.zip
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  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/printf_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/printf_buffer.h b/include/printf_buffer.h
index e2ca2d72d5..168555d8d3 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 *)