mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 17:01:21 -04:00
preserve PROT_MTE when releasing memory
This commit is contained in:
parent
9739cb4690
commit
e03579253a
3 changed files with 27 additions and 4 deletions
3
memory.h
3
memory.h
|
@ -15,6 +15,9 @@ void *memory_map(size_t size);
|
|||
void *memory_map_mte(size_t size);
|
||||
#endif
|
||||
bool memory_map_fixed(void *ptr, size_t size);
|
||||
#ifdef HAS_ARM_MTE
|
||||
bool memory_map_fixed_mte(void *ptr, size_t size);
|
||||
#endif
|
||||
bool memory_unmap(void *ptr, size_t size);
|
||||
bool memory_protect_ro(void *ptr, size_t size);
|
||||
bool memory_protect_rw(void *ptr, size_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue