relabel malloc read-only after init data

pull/87/head
Daniel Micay 2019-03-25 20:34:10 -04:00
parent fc8f2c3b60
commit 98deb9de52
1 changed files with 1 additions and 0 deletions

View File

@ -1060,6 +1060,7 @@ COLD static void init_slow_path(void) {
if (memory_protect_ro(&ro, sizeof(ro))) { if (memory_protect_ro(&ro, sizeof(ro))) {
fatal_error("failed to protect allocator data"); fatal_error("failed to protect allocator data");
} }
memory_set_name(&ro, sizeof(ro), "malloc read-only after init");
mutex_unlock(&lock); mutex_unlock(&lock);