relabel malloc read-only after init data

This commit is contained in:
Daniel Micay 2019-03-25 20:34:10 -04:00
parent fc8f2c3b60
commit 98deb9de52

View File

@ -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);