mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 06:16:24 -04:00
add wrapper for mremap with sanity check
This commit is contained in:
parent
5bc6820c24
commit
1cb28531a8
3 changed files with 14 additions and 2 deletions
1
memory.h
1
memory.h
|
@ -6,5 +6,6 @@
|
|||
void *memory_map(size_t size);
|
||||
int memory_unmap(void *ptr, size_t size);
|
||||
int memory_protect(void *ptr, size_t size, int prot);
|
||||
int memory_remap_fixed(void *old, size_t old_size, void *new, size_t new_size);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue