diff mbox series

[10/33] elf: Make <alloc_buffer.h> usable in ld.so

Message ID 3c720834d6f1e25170f954ed376ce01afd83a705.1688499219.git.fweimer@redhat.com
State New
Headers show
Series RFC: RELRO link maps | expand

Commit Message

Florian Weimer July 4, 2023, 8:02 p.m. UTC
__libc_alloc_buffer_create_failure used to snprintf, which is not
available in ld.so.  The size information in the error message
is probably not that useful, so remove it.
---
 malloc/alloc_buffer_create_failure.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/malloc/alloc_buffer_create_failure.c b/malloc/alloc_buffer_create_failure.c
index c9557cae5b..7a2c2b7b8f 100644
--- a/malloc/alloc_buffer_create_failure.c
+++ b/malloc/alloc_buffer_create_failure.c
@@ -22,9 +22,5 @@ 
 void
 __libc_alloc_buffer_create_failure (void *start, size_t size)
 {
-  char buf[200];
-  __snprintf (buf, sizeof (buf), "Fatal glibc error: "
-              "invalid allocation buffer of size %zu\n",
-              size);
-  __libc_fatal (buf);
+  __libc_fatal ("Fatal glibc error: invalid allocation buffer\n");
 }