[PATCH v3 10/32] elf: Make <alloc_buffer.h> usable in ld.so
Florian Weimer
fweimer@redhat.com
Thu Dec 7 10:31:42 GMT 2023
__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 --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");
}
--
2.43.0
More information about the Libc-alpha
mailing list