mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
write_after_free_check only reads data
This commit is contained in:
parent
d35674c67e
commit
9ea2fd6667
2
malloc.c
2
malloc.c
@ -289,7 +289,7 @@ static void *slot_pointer(size_t size, void *slab, size_t slot) {
|
|||||||
return (char *)slab + slot * size;
|
return (char *)slab + slot * size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void write_after_free_check(char *p, size_t size) {
|
static void write_after_free_check(const char *p, size_t size) {
|
||||||
if (!WRITE_AFTER_FREE_CHECK) {
|
if (!WRITE_AFTER_FREE_CHECK) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user