mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
relabel large allocation guards when shrinking
This commit is contained in:
parent
64dfd23f7b
commit
3d142eb4c2
1 changed files with 1 additions and 0 deletions
|
@ -1200,6 +1200,7 @@ EXPORT void *h_realloc(void *old, size_t size) {
|
|||
thread_seal_metadata();
|
||||
return NULL;
|
||||
}
|
||||
memory_set_name(new_end, old_guard_size, "malloc large");
|
||||
void *new_guard_end = (char *)new_end + old_guard_size;
|
||||
regions_quarantine_deallocate_pages(new_guard_end, old_rounded_size - rounded_size, 0);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue