]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
assert: Decorate error message buffer
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Nov 2023 12:56:09 +0000 (09:56 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Nov 2023 13:27:44 +0000 (10:27 -0300)
Reviewed-by: DJ Delorie <dj@redhat.com>
assert/assert.c

index b7c7a4a1ba31087ad3d0c33bc7edff27d513914c..bf0f4a69f58fc424750cbfe9122a9ec50ddb10a1 100644 (file)
@@ -24,6 +24,7 @@
 #include <sysdep.h>
 #include <unistd.h>
 #include <sys/mman.h>
+#include <setvmaname.h>
 
 
 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.  */