1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

assert: Decorate error message buffer

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Adhemerval Zanella
2023-11-01 09:56:09 -03:00
parent fee9e40a8d
commit 3374ca7936

View File

@@ -24,6 +24,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <setvmaname.h>
extern const char *__progname; extern const char *__progname;
@@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file,
{ {
buf->size = total; buf->size = total;
strcpy (buf->msg, str); strcpy (buf->msg, str);
__set_vma_name (buf, total, " glibc: assert");
/* We have to free the old buffer since the application might /* We have to free the old buffer since the application might
catch the SIGABRT signal. */ catch the SIGABRT signal. */