From 3374ca793660b1321eb56adc5bd10ccbfa3b8622 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 1 Nov 2023 09:56:09 -0300 Subject: [PATCH] assert: Decorate error message buffer Reviewed-by: DJ Delorie --- assert/assert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assert/assert.c b/assert/assert.c index b7c7a4a1ba..bf0f4a69f5 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -24,6 +24,7 @@ #include #include #include +#include extern const char *__progname; @@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file, { buf->size = total; strcpy (buf->msg, str); + __set_vma_name (buf, total, " glibc: assert"); /* We have to free the old buffer since the application might catch the SIGABRT signal. */ -- 2.11.4.GIT