From 98deb9de520cc8ed5439233a7c000a714c2f002e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 25 Mar 2019 20:34:10 -0400 Subject: [PATCH] relabel malloc read-only after init data --- h_malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/h_malloc.c b/h_malloc.c index 46e38a6..0ce2e85 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1060,6 +1060,7 @@ COLD static void init_slow_path(void) { if (memory_protect_ro(&ro, sizeof(ro))) { fatal_error("failed to protect allocator data"); } + memory_set_name(&ro, sizeof(ro), "malloc read-only after init"); mutex_unlock(&lock);